Lines Matching refs:path
238 static int coresight_enable_path(struct list_head *path) in coresight_enable_path() argument
248 list_for_each_entry(cd, path, path_link) { in coresight_enable_path()
249 if (cd == list_first_entry(path, struct coresight_device, in coresight_enable_path()
252 } else if (list_is_last(&cd->path_link, path)) { in coresight_enable_path()
268 list_for_each_entry_continue_reverse(cd, path, path_link) { in coresight_enable_path()
269 if (cd == list_first_entry(path, struct coresight_device, in coresight_enable_path()
272 } else if (list_is_last(&cd->path_link, path)) { in coresight_enable_path()
282 static int coresight_disable_path(struct list_head *path) in coresight_disable_path() argument
286 list_for_each_entry_reverse(cd, path, path_link) { in coresight_disable_path()
287 if (cd == list_first_entry(path, struct coresight_device, in coresight_disable_path()
290 } else if (list_is_last(&cd->path_link, path)) { in coresight_disable_path()
305 struct list_head *path, in coresight_build_paths() argument
311 list_add(&csdev->path_link, path); in coresight_build_paths()
317 ret = coresight_enable_path(path); in coresight_build_paths()
319 ret = coresight_disable_path(path); in coresight_build_paths()
324 path, enable) == 0) in coresight_build_paths()
329 if (list_first_entry(path, struct coresight_device, path_link) != csdev) in coresight_build_paths()
340 LIST_HEAD(path); in coresight_enable()
351 if (coresight_build_paths(csdev, &path, true)) { in coresight_enable()
366 LIST_HEAD(path); in coresight_disable()
377 if (coresight_build_paths(csdev, &path, false)) in coresight_disable()