Lines Matching refs:sink
640 struct coresight_device *sink = NULL; in coresight_find_enabled_sink() local
655 sink = coresight_find_enabled_sink(child_dev); in coresight_find_enabled_sink()
656 if (sink) in coresight_find_enabled_sink()
657 return sink; in coresight_find_enabled_sink()
818 struct coresight_device *sink, in _coresight_build_path() argument
826 if (csdev == sink) in _coresight_build_path()
829 if (coresight_is_percpu_source(csdev) && coresight_is_percpu_sink(sink) && in _coresight_build_path()
830 sink == per_cpu(csdev_sink, source_ops(csdev)->cpu_id(csdev))) { in _coresight_build_path()
831 if (_coresight_build_path(sink, sink, path) == 0) { in _coresight_build_path()
843 _coresight_build_path(child_dev, sink, path) == 0) { in _coresight_build_path()
874 struct coresight_device *sink) in coresight_build_path() argument
879 if (!sink) in coresight_build_path()
888 rc = _coresight_build_path(source, sink, path); in coresight_build_path()
949 coresight_select_best_sink(struct coresight_device *sink, int *depth, in coresight_select_best_sink() argument
954 if (!sink) { in coresight_select_best_sink()
958 sink->subtype.sink_subtype) { in coresight_select_best_sink()
962 sink->subtype.sink_subtype) && in coresight_select_best_sink()
970 return update ? new_sink : sink; in coresight_select_best_sink()
1008 struct coresight_device *child_dev, *sink = NULL; in coresight_find_sink() local
1013 sink = coresight_find_sink(child_dev, &child_depth); in coresight_find_sink()
1015 if (sink) in coresight_find_sink()
1018 sink, in coresight_find_sink()
1062 struct coresight_device *sink = data; in coresight_remove_sink_ref() local
1065 if (source->def_sink == sink) in coresight_remove_sink_ref()
1120 struct coresight_device *sink; in coresight_enable() local
1143 sink = coresight_get_enabled_sink(csdev); in coresight_enable()
1144 if (!sink) { in coresight_enable()
1149 path = coresight_build_path(csdev, sink); in coresight_enable()