Lines Matching refs:path

238 static int coresight_enable_path(struct list_head *path)  in coresight_enable_path()  argument
243 list_for_each_entry(cd, path, path_link) { in coresight_enable_path()
244 if (cd == list_first_entry(path, struct coresight_device, in coresight_enable_path()
247 } else if (list_is_last(&cd->path_link, path)) { in coresight_enable_path()
263 list_for_each_entry_continue_reverse(cd, path, path_link) { in coresight_enable_path()
264 if (cd == list_first_entry(path, struct coresight_device, in coresight_enable_path()
267 } else if (list_is_last(&cd->path_link, path)) { in coresight_enable_path()
277 static int coresight_disable_path(struct list_head *path) in coresight_disable_path() argument
281 list_for_each_entry_reverse(cd, path, path_link) { in coresight_disable_path()
282 if (cd == list_first_entry(path, struct coresight_device, in coresight_disable_path()
285 } else if (list_is_last(&cd->path_link, path)) { in coresight_disable_path()
300 struct list_head *path, in coresight_build_paths() argument
306 list_add(&csdev->path_link, path); in coresight_build_paths()
312 ret = coresight_enable_path(path); in coresight_build_paths()
314 ret = coresight_disable_path(path); in coresight_build_paths()
319 path, enable) == 0) in coresight_build_paths()
324 if (list_first_entry(path, struct coresight_device, path_link) != csdev) in coresight_build_paths()
335 LIST_HEAD(path); in coresight_enable()
346 if (coresight_build_paths(csdev, &path, true)) { in coresight_enable()
361 LIST_HEAD(path); in coresight_disable()
372 if (coresight_build_paths(csdev, &path, false)) in coresight_disable()