Home
last modified time | relevance | path

Searched refs:coresight_device (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.4/include/linux/
Dcoresight.h138 struct coresight_device *child_dev;
157 struct coresight_device { struct
193 #define to_coresight_device(d) container_of(d, struct coresight_device, dev)
210 int (*enable)(struct coresight_device *csdev, u32 mode, void *data);
211 int (*disable)(struct coresight_device *csdev);
212 void *(*alloc_buffer)(struct coresight_device *csdev,
216 unsigned long (*update_buffer)(struct coresight_device *csdev,
228 int (*enable)(struct coresight_device *csdev, int iport, int oport);
229 void (*disable)(struct coresight_device *csdev, int iport, int oport);
243 int (*cpu_id)(struct coresight_device *csdev);
[all …]
/Linux-v5.4/drivers/hwtracing/coresight/
Dcoresight.c33 struct coresight_device *csdev;
61 struct coresight_device *csdev, *i_csdev; in coresight_id_match()
85 static int coresight_source_is_unique(struct coresight_device *csdev) in coresight_source_is_unique()
97 static int coresight_find_link_inport(struct coresight_device *csdev, in coresight_find_link_inport()
98 struct coresight_device *parent) in coresight_find_link_inport()
115 static int coresight_find_link_outport(struct coresight_device *csdev, in coresight_find_link_outport()
116 struct coresight_device *child) in coresight_find_link_outport()
219 static int coresight_enable_sink(struct coresight_device *csdev, in coresight_enable_sink()
239 static void coresight_disable_sink(struct coresight_device *csdev) in coresight_disable_sink()
252 static int coresight_enable_link(struct coresight_device *csdev, in coresight_enable_link()
[all …]
Dcoresight-etm-perf.h13 struct coresight_device;
61 int etm_perf_symlink(struct coresight_device *csdev, bool link);
62 int etm_perf_add_symlink_sink(struct coresight_device *csdev);
63 void etm_perf_del_symlink_sink(struct coresight_device *csdev);
73 static inline int etm_perf_symlink(struct coresight_device *csdev, bool link) in etm_perf_symlink()
75 int etm_perf_add_symlink_sink(struct coresight_device *csdev) in etm_perf_add_symlink_sink()
77 void etm_perf_del_symlink_sink(struct coresight_device *csdev) {} in etm_perf_del_symlink_sink()
Dcoresight-priv.h149 struct coresight_device *coresight_get_sink(struct list_head *path);
150 struct coresight_device *coresight_get_enabled_sink(bool reset);
151 struct coresight_device *coresight_get_sink_by_id(u32 id);
152 struct list_head *coresight_build_path(struct coresight_device *csdev,
153 struct coresight_device *sink);
Dcoresight-tmc-etf.c16 static int tmc_set_etf_buffer(struct coresight_device *csdev,
149 static int tmc_enable_etf_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etf_sink_sysfs()
223 static int tmc_enable_etf_sink_perf(struct coresight_device *csdev, void *data) in tmc_enable_etf_sink_perf()
279 static int tmc_enable_etf_sink(struct coresight_device *csdev, in tmc_enable_etf_sink()
304 static int tmc_disable_etf_sink(struct coresight_device *csdev) in tmc_disable_etf_sink()
334 static int tmc_enable_etf_link(struct coresight_device *csdev, in tmc_enable_etf_link()
357 static void tmc_disable_etf_link(struct coresight_device *csdev, in tmc_disable_etf_link()
376 static void *tmc_alloc_etf_buffer(struct coresight_device *csdev, in tmc_alloc_etf_buffer()
404 static int tmc_set_etf_buffer(struct coresight_device *csdev, in tmc_set_etf_buffer()
428 static unsigned long tmc_update_etf_buffer(struct coresight_device *csdev, in tmc_update_etf_buffer()
Dcoresight-etm-perf.c28 static DEFINE_PER_CPU(struct coresight_device *, csdev_src);
127 struct coresight_device *sink; in free_sink_buffer()
213 struct coresight_device *sink; in etm_setup_aux()
243 struct coresight_device *csdev; in etm_setup_aux()
299 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_start()
347 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_stop()
485 int etm_perf_symlink(struct coresight_device *csdev, bool link) in etm_perf_symlink()
520 int etm_perf_add_symlink_sink(struct coresight_device *csdev) in etm_perf_add_symlink_sink()
565 void etm_perf_del_symlink_sink(struct coresight_device *csdev) in etm_perf_del_symlink_sink()
Dcoresight-etb10.c86 struct coresight_device *csdev;
97 static int etb_set_buffer(struct coresight_device *csdev,
144 static int etb_enable_sysfs(struct coresight_device *csdev) in etb_enable_sysfs()
172 static int etb_enable_perf(struct coresight_device *csdev, void *data) in etb_enable_perf()
227 static int etb_enable(struct coresight_device *csdev, u32 mode, void *data) in etb_enable()
349 static int etb_disable(struct coresight_device *csdev) in etb_disable()
373 static void *etb_alloc_buffer(struct coresight_device *csdev, in etb_alloc_buffer()
400 static int etb_set_buffer(struct coresight_device *csdev, in etb_set_buffer()
424 static unsigned long etb_update_buffer(struct coresight_device *csdev, in etb_update_buffer()
Dcoresight-tpiu.c60 struct coresight_device *csdev;
72 static int tpiu_enable(struct coresight_device *csdev, u32 mode, void *__unused) in tpiu_enable()
98 static int tpiu_disable(struct coresight_device *csdev) in tpiu_disable()
Dcoresight-catu.h65 struct coresight_device *csdev;
100 static inline bool coresight_is_catu_device(struct coresight_device *csdev) in CATU_REG_PAIR()
Dcoresight-etm3x.c447 static int etm_cpu_id(struct coresight_device *csdev) in etm_cpu_id()
483 static int etm_trace_id(struct coresight_device *csdev) in etm_trace_id()
490 static int etm_enable_perf(struct coresight_device *csdev, in etm_enable_perf()
504 static int etm_enable_sysfs(struct coresight_device *csdev) in etm_enable_sysfs()
535 static int etm_enable(struct coresight_device *csdev, in etm_enable()
590 static void etm_disable_perf(struct coresight_device *csdev) in etm_disable_perf()
612 static void etm_disable_sysfs(struct coresight_device *csdev) in etm_disable_sysfs()
637 static void etm_disable(struct coresight_device *csdev, in etm_disable()
Dcoresight-replicator.c38 struct coresight_device *csdev;
95 static int replicator_enable(struct coresight_device *csdev, int inport, in replicator_enable()
136 static void replicator_disable(struct coresight_device *csdev, int inport, in replicator_disable()
Dcoresight-etm4x.c69 static int etm4_cpu_id(struct coresight_device *csdev) in etm4_cpu_id()
76 static int etm4_trace_id(struct coresight_device *csdev) in etm4_trace_id()
368 static int etm4_enable_perf(struct coresight_device *csdev, in etm4_enable_perf()
390 static int etm4_enable_sysfs(struct coresight_device *csdev) in etm4_enable_sysfs()
416 static int etm4_enable(struct coresight_device *csdev, in etm4_enable()
481 static int etm4_disable_perf(struct coresight_device *csdev, in etm4_disable_perf()
506 static void etm4_disable_sysfs(struct coresight_device *csdev) in etm4_disable_sysfs()
531 static void etm4_disable(struct coresight_device *csdev, in etm4_disable()
Dcoresight-funnel.c45 struct coresight_device *csdev;
74 static int funnel_enable(struct coresight_device *csdev, int inport, in funnel_enable()
106 static void funnel_disable(struct coresight_device *csdev, int inport, in funnel_disable()
Dcoresight-tmc-etr.c752 struct coresight_device *
756 struct coresight_device *tmp, *etr = drvdata->csdev; in tmc_etr_get_catu_device()
773 struct coresight_device *catu = tmc_etr_get_catu_device(drvdata); in tmc_etr_enable_catu()
782 struct coresight_device *catu = tmc_etr_get_catu_device(drvdata); in tmc_etr_disable_catu()
1123 static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etr_sink_sysfs()
1361 static void *tmc_alloc_etr_buffer(struct coresight_device *csdev, in tmc_alloc_etr_buffer()
1476 tmc_update_etr_buffer(struct coresight_device *csdev, in tmc_update_etr_buffer()
1559 static int tmc_enable_etr_sink_perf(struct coresight_device *csdev, void *data) in tmc_enable_etr_sink_perf()
1614 static int tmc_enable_etr_sink(struct coresight_device *csdev, in tmc_enable_etr_sink()
1628 static int tmc_disable_etr_sink(struct coresight_device *csdev) in tmc_disable_etr_sink()
Dcoresight-tmc.h190 struct coresight_device *csdev;
326 struct coresight_device *tmc_etr_get_catu_device(struct tmc_drvdata *drvdata);
Dcoresight-catu.c332 struct coresight_device *csdev; in catu_alloc_etr_buf()
453 static int catu_enable(struct coresight_device *csdev, void *data) in catu_enable()
480 static int catu_disable(struct coresight_device *csdev, void *__unused) in catu_disable()
Dcoresight-stm.c134 struct coresight_device *csdev;
194 static int stm_enable(struct coresight_device *csdev, in stm_enable()
257 static void stm_disable(struct coresight_device *csdev, in stm_disable()
282 static int stm_trace_id(struct coresight_device *csdev) in stm_trace_id()
Dcoresight-etm.h235 struct coresight_device *csdev;
Dcoresight-etm4x.h342 struct coresight_device *csdev;
/Linux-v5.4/Documentation/trace/
Dcoresight.rst146 .. c:function:: struct coresight_device *coresight_register(struct coresight_desc *desc);
147 .. c:function:: void coresight_unregister(struct coresight_device *csdev);
151 a reference to a ``struct coresight_device *csdev`` obtained at registration time.
161 The functions take a ``struct coresight_device``, which looks like this::