Lines Matching full:sink

35 /* Sink ID - same for all ETMs */
127 struct coresight_device *sink; in free_sink_buffer() local
136 sink = coresight_get_sink(etm_event_cpu_path(event_data, cpu)); in free_sink_buffer()
137 sink_ops(sink)->free_buffer(event_data->snk_config); in free_sink_buffer()
149 /* Free the sink buffers, if there are any */ in free_event_data()
213 struct coresight_device *sink = NULL; in etm_setup_aux() local
221 /* First get the selected sink from user space. */ in etm_setup_aux()
224 sink = coresight_get_sink_by_id(id); in etm_setup_aux()
252 * No sink provided - look for a default sink for one of the in etm_setup_aux()
254 * use the same sink [N:1], so only need to find one sink. The in etm_setup_aux()
256 * attach to the sink, or if we have not found a sink. in etm_setup_aux()
258 if (!sink) in etm_setup_aux()
259 sink = coresight_find_default_sink(csdev); in etm_setup_aux()
263 * list of devices from source to sink that can be in etm_setup_aux()
266 path = coresight_build_path(csdev, sink); in etm_setup_aux()
275 /* no sink found for any CPU - cannot trace */ in etm_setup_aux()
276 if (!sink) in etm_setup_aux()
284 if (!sink_ops(sink)->alloc_buffer || !sink_ops(sink)->free_buffer) in etm_setup_aux()
287 /* Allocate the sink buffer for this session */ in etm_setup_aux()
289 sink_ops(sink)->alloc_buffer(sink, event, pages, in etm_setup_aux()
308 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_start() local
325 * sink from this ETM. We can't do much in this case if in etm_event_start()
326 * the sink was specified or hinted to the driver. For in etm_event_start()
333 /* We need a sink, no need to continue without one */ in etm_event_start()
334 sink = coresight_get_sink(path); in etm_event_start()
335 if (WARN_ON_ONCE(!sink)) in etm_event_start()
366 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_stop() local
381 sink = coresight_get_sink(path); in etm_event_stop()
382 if (!sink) in etm_event_stop()
396 if (!sink_ops(sink)->update_buffer) in etm_event_stop()
399 size = sink_ops(sink)->update_buffer(sink, handle, in etm_event_stop()