Lines Matching refs:path
482 static void coresight_disable_path_from(struct list_head *path, in coresight_disable_path_from() argument
489 nd = list_first_entry(path, struct coresight_node, link); in coresight_disable_path_from()
491 list_for_each_entry_continue(nd, path, link) { in coresight_disable_path_from()
502 type = (csdev == coresight_get_sink(path)) ? in coresight_disable_path_from()
529 void coresight_disable_path(struct list_head *path) in coresight_disable_path() argument
531 coresight_disable_path_from(path, NULL); in coresight_disable_path()
535 int coresight_enable_path(struct list_head *path, u32 mode, void *sink_data) in coresight_enable_path() argument
543 list_for_each_entry_reverse(nd, path, link) { in coresight_enable_path()
554 type = (csdev == coresight_get_sink(path)) ? in coresight_enable_path()
588 coresight_disable_path_from(path, nd); in coresight_enable_path()
592 struct coresight_device *coresight_get_sink(struct list_head *path) in coresight_get_sink() argument
596 if (!path) in coresight_get_sink()
599 csdev = list_last_entry(path, struct coresight_node, link)->csdev; in coresight_get_sink()
784 struct list_head *path) in _coresight_build_path() argument
796 if (_coresight_build_path(sink, sink, path) == 0) { in _coresight_build_path()
808 _coresight_build_path(child_dev, sink, path) == 0) { in _coresight_build_path()
833 list_add(&node->link, path); in _coresight_build_path()
841 struct list_head *path; in coresight_build_path() local
847 path = kzalloc(sizeof(struct list_head), GFP_KERNEL); in coresight_build_path()
848 if (!path) in coresight_build_path()
851 INIT_LIST_HEAD(path); in coresight_build_path()
853 rc = _coresight_build_path(source, sink, path); in coresight_build_path()
855 kfree(path); in coresight_build_path()
859 return path; in coresight_build_path()
869 void coresight_release_path(struct list_head *path) in coresight_release_path() argument
874 list_for_each_entry_safe(nd, next, path, link) { in coresight_release_path()
882 kfree(path); in coresight_release_path()
883 path = NULL; in coresight_release_path()
1087 struct list_head *path; in coresight_enable() local
1115 path = coresight_build_path(csdev, sink); in coresight_enable()
1116 if (IS_ERR(path)) { in coresight_enable()
1118 ret = PTR_ERR(path); in coresight_enable()
1122 ret = coresight_enable_path(path, CS_MODE_SYSFS, NULL); in coresight_enable()
1140 per_cpu(tracer_path, cpu) = path; in coresight_enable()
1143 stm_path = path; in coresight_enable()
1155 coresight_disable_path(path); in coresight_enable()
1158 coresight_release_path(path); in coresight_enable()
1166 struct list_head *path = NULL; in coresight_disable() local
1180 path = per_cpu(tracer_path, cpu); in coresight_disable()
1184 path = stm_path; in coresight_disable()
1192 coresight_disable_path(path); in coresight_disable()
1193 coresight_release_path(path); in coresight_disable()