Home
last modified time | relevance | path

Searched refs:csdev (Results 1 – 24 of 24) sorted by relevance

/Linux-v4.19/drivers/hwtracing/coresight/
Dcoresight.c31 struct coresight_device *csdev; member
59 struct coresight_device *csdev, *i_csdev; in coresight_id_match() local
61 csdev = data; in coresight_id_match()
68 if (i_csdev == csdev || !i_csdev->enable || in coresight_id_match()
73 trace_id = source_ops(csdev)->trace_id(csdev); in coresight_id_match()
83 static int coresight_source_is_unique(struct coresight_device *csdev) in coresight_source_is_unique() argument
85 int trace_id = source_ops(csdev)->trace_id(csdev); in coresight_source_is_unique()
92 csdev, coresight_id_match); in coresight_source_is_unique()
95 static int coresight_find_link_inport(struct coresight_device *csdev, in coresight_find_link_inport() argument
103 if (conn->child_dev == csdev) in coresight_find_link_inport()
[all …]
Dcoresight-tmc-etf.c119 static int tmc_enable_etf_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etf_sink_sysfs() argument
125 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_sink_sysfs()
185 static int tmc_enable_etf_sink_perf(struct coresight_device *csdev) in tmc_enable_etf_sink_perf() argument
189 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_sink_perf()
215 static int tmc_enable_etf_sink(struct coresight_device *csdev, u32 mode) in tmc_enable_etf_sink() argument
218 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_sink()
222 ret = tmc_enable_etf_sink_sysfs(csdev); in tmc_enable_etf_sink()
225 ret = tmc_enable_etf_sink_perf(csdev); in tmc_enable_etf_sink()
240 static void tmc_disable_etf_sink(struct coresight_device *csdev) in tmc_disable_etf_sink() argument
243 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_disable_etf_sink()
[all …]
Dcoresight-replicator.c30 struct coresight_device *csdev; member
33 static int replicator_enable(struct coresight_device *csdev, int inport, in replicator_enable() argument
36 struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_enable()
42 static void replicator_disable(struct coresight_device *csdev, int inport, in replicator_disable() argument
45 struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_disable()
96 drvdata->csdev = coresight_register(&desc); in replicator_probe()
97 if (IS_ERR(drvdata->csdev)) { in replicator_probe()
98 ret = PTR_ERR(drvdata->csdev); in replicator_probe()
Dcoresight-etm3x.c426 static int etm_cpu_id(struct coresight_device *csdev) in etm_cpu_id() argument
428 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_cpu_id()
460 static int etm_trace_id(struct coresight_device *csdev) in etm_trace_id() argument
462 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_trace_id()
467 static int etm_enable_perf(struct coresight_device *csdev, in etm_enable_perf() argument
470 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_enable_perf()
483 static int etm_enable_sysfs(struct coresight_device *csdev) in etm_enable_sysfs() argument
485 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_enable_sysfs()
512 static int etm_enable(struct coresight_device *csdev, in etm_enable() argument
517 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_enable()
[all …]
Dcoresight-etm-perf.c216 struct coresight_device *csdev; in etm_setup_aux() local
218 csdev = per_cpu(csdev_src, cpu); in etm_setup_aux()
219 if (!csdev) in etm_setup_aux()
227 event_data->path[cpu] = coresight_build_path(csdev, sink); in etm_setup_aux()
257 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_start() local
259 if (!csdev) in etm_event_start()
288 if (source_ops(csdev)->enable(csdev, event, CS_MODE_PERF)) in etm_event_start()
306 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_stop() local
313 if (!csdev) in etm_event_stop()
321 source_ops(csdev)->disable(csdev, event); in etm_event_stop()
[all …]
Dcoresight-etm4x.c66 static int etm4_cpu_id(struct coresight_device *csdev) in etm4_cpu_id() argument
68 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_cpu_id()
73 static int etm4_trace_id(struct coresight_device *csdev) in etm4_trace_id() argument
75 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_trace_id()
229 static int etm4_enable_perf(struct coresight_device *csdev, in etm4_enable_perf() argument
233 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_enable_perf()
251 static int etm4_enable_sysfs(struct coresight_device *csdev) in etm4_enable_sysfs() argument
253 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_enable_sysfs()
278 static int etm4_enable(struct coresight_device *csdev, in etm4_enable() argument
283 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_enable()
[all …]
Dcoresight-tpiu.c59 struct coresight_device *csdev; member
71 static int tpiu_enable(struct coresight_device *csdev, u32 mode) in tpiu_enable() argument
73 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_enable()
97 static void tpiu_disable(struct coresight_device *csdev) in tpiu_disable() argument
99 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_disable()
163 drvdata->csdev = coresight_register(&desc); in tpiu_probe()
165 return PTR_ERR_OR_ZERO(drvdata->csdev); in tpiu_probe()
Dcoresight-dynamic-replicator.c34 struct coresight_device *csdev; member
37 static int replicator_enable(struct coresight_device *csdev, int inport, in replicator_enable() argument
40 struct replicator_state *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_enable()
63 static void replicator_disable(struct coresight_device *csdev, int inport, in replicator_disable() argument
66 struct replicator_state *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_disable()
157 drvdata->csdev = coresight_register(&desc); in replicator_probe()
159 return PTR_ERR_OR_ZERO(drvdata->csdev); in replicator_probe()
Dcoresight-catu.c21 #define csdev_to_catu_drvdata(csdev) \ argument
22 dev_get_drvdata(csdev->dev.parent)
330 struct coresight_device *csdev; in catu_alloc_etr_buf() local
335 csdev = tmc_etr_get_catu_device(tmc_drvdata); in catu_alloc_etr_buf()
336 if (!csdev) in catu_alloc_etr_buf()
338 catu_dev = csdev->dev.parent; in catu_alloc_etr_buf()
446 static int catu_enable(struct coresight_device *csdev, void *data) in catu_enable() argument
449 struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); in catu_enable()
471 static int catu_disable(struct coresight_device *csdev, void *__unused) in catu_disable() argument
474 struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); in catu_disable()
[all …]
Dcoresight-funnel.c41 struct coresight_device *csdev; member
61 static int funnel_enable(struct coresight_device *csdev, int inport, in funnel_enable() argument
64 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_enable()
85 static void funnel_disable(struct coresight_device *csdev, int inport, in funnel_disable() argument
88 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_disable()
209 drvdata->csdev = coresight_register(&desc); in funnel_probe()
211 return PTR_ERR_OR_ZERO(drvdata->csdev); in funnel_probe()
Dcoresight-catu.h66 struct coresight_device *csdev; member
101 static inline bool coresight_is_catu_device(struct coresight_device *csdev) in CATU_REG_PAIR()
105 if (csdev->type != CORESIGHT_DEV_TYPE_HELPER) in CATU_REG_PAIR()
107 if (csdev->subtype.helper_subtype != CORESIGHT_DEV_SUBTYPE_HELPER_CATU) in CATU_REG_PAIR()
Dcoresight-etb10.c83 struct coresight_device *csdev; member
134 static int etb_enable(struct coresight_device *csdev, u32 mode) in etb_enable() argument
138 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_enable()
253 static void etb_disable(struct coresight_device *csdev) in etb_disable() argument
255 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_disable()
268 static void *etb_alloc_buffer(struct coresight_device *csdev, int cpu, in etb_alloc_buffer() argument
296 static int etb_set_buffer(struct coresight_device *csdev, in etb_set_buffer() argument
318 static unsigned long etb_reset_buffer(struct coresight_device *csdev, in etb_reset_buffer() argument
348 static void etb_update_buffer(struct coresight_device *csdev, in etb_update_buffer() argument
360 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_update_buffer()
[all …]
Dcoresight-stm.c133 struct coresight_device *csdev; member
193 static int stm_enable(struct coresight_device *csdev, in stm_enable() argument
197 struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in stm_enable()
256 static void stm_disable(struct coresight_device *csdev, in stm_disable() argument
259 struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in stm_disable()
281 static int stm_trace_id(struct coresight_device *csdev) in stm_trace_id() argument
283 struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in stm_trace_id()
339 if (!drvdata || !drvdata->csdev) in stm_generic_link()
342 return coresight_enable(drvdata->csdev); in stm_generic_link()
350 if (!drvdata || !drvdata->csdev) in stm_generic_unlink()
[all …]
Dcoresight-etm-perf.h47 int etm_perf_symlink(struct coresight_device *csdev, bool link);
50 static inline int etm_perf_symlink(struct coresight_device *csdev, bool link) in etm_perf_symlink() argument
Dcoresight-tmc-etr.c717 struct coresight_device *tmp, *etr = drvdata->csdev; in tmc_etr_get_catu_device()
1022 static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etr_sink_sysfs() argument
1026 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etr_sink_sysfs()
1088 static int tmc_enable_etr_sink_perf(struct coresight_device *csdev) in tmc_enable_etr_sink_perf() argument
1094 static int tmc_enable_etr_sink(struct coresight_device *csdev, u32 mode) in tmc_enable_etr_sink() argument
1098 return tmc_enable_etr_sink_sysfs(csdev); in tmc_enable_etr_sink()
1100 return tmc_enable_etr_sink_perf(csdev); in tmc_enable_etr_sink()
1107 static void tmc_disable_etr_sink(struct coresight_device *csdev) in tmc_disable_etr_sink() argument
1110 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_disable_etr_sink()
Dcoresight-tmc.c461 drvdata->csdev = coresight_register(&desc); in tmc_probe()
462 if (IS_ERR(drvdata->csdev)) { in tmc_probe()
463 ret = PTR_ERR(drvdata->csdev); in tmc_probe()
472 coresight_unregister(drvdata->csdev); in tmc_probe()
Dcoresight-priv.h143 struct list_head *coresight_build_path(struct coresight_device *csdev,
Dcoresight-etm.h237 struct coresight_device *csdev; member
Dcoresight-tmc.h177 struct coresight_device *csdev; member
Dcoresight-etm4x.h344 struct coresight_device *csdev; member
/Linux-v4.19/include/linux/
Dcoresight.h181 #define source_ops(csdev) csdev->ops->source_ops argument
182 #define sink_ops(csdev) csdev->ops->sink_ops argument
183 #define link_ops(csdev) csdev->ops->link_ops argument
184 #define helper_ops(csdev) csdev->ops->helper_ops argument
198 int (*enable)(struct coresight_device *csdev, u32 mode);
199 void (*disable)(struct coresight_device *csdev);
200 void *(*alloc_buffer)(struct coresight_device *csdev, int cpu,
203 int (*set_buffer)(struct coresight_device *csdev,
206 unsigned long (*reset_buffer)(struct coresight_device *csdev,
209 void (*update_buffer)(struct coresight_device *csdev,
[all …]
/Linux-v4.19/drivers/scsi/device_handler/
Dscsi_dh_emc.c149 struct clariion_dh_data *csdev) in parse_sp_info_reply() argument
154 if (csdev->buffer[48] != 0) { in parse_sp_info_reply()
161 if (csdev->buffer[4] > 2) { in parse_sp_info_reply()
169 switch (csdev->buffer[28] & 0x0f) { in parse_sp_info_reply()
181 CLARIION_NAME, csdev->buffer[28] & 0x0f); in parse_sp_info_reply()
186 csdev->default_sp = csdev->buffer[5]; in parse_sp_info_reply()
187 csdev->lun_state = csdev->buffer[4]; in parse_sp_info_reply()
188 csdev->current_sp = csdev->buffer[8]; in parse_sp_info_reply()
189 csdev->port = csdev->buffer[7]; in parse_sp_info_reply()
190 if (csdev->lun_state == CLARIION_LUN_OWNED) in parse_sp_info_reply()
[all …]
/Linux-v4.19/drivers/staging/comedi/
Dcomedi_fops.c373 static ssize_t max_read_buffer_kb_show(struct device *csdev, in max_read_buffer_kb_show() argument
376 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_show()
395 static ssize_t max_read_buffer_kb_store(struct device *csdev, in max_read_buffer_kb_store() argument
399 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_store()
429 static ssize_t read_buffer_kb_show(struct device *csdev, in read_buffer_kb_show() argument
432 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_show()
451 static ssize_t read_buffer_kb_store(struct device *csdev, in read_buffer_kb_store() argument
455 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_store()
485 static ssize_t max_write_buffer_kb_show(struct device *csdev, in max_write_buffer_kb_show() argument
489 unsigned int minor = MINOR(csdev->devt); in max_write_buffer_kb_show()
[all …]
/Linux-v4.19/Documentation/trace/
Dcoresight.txt137 void coresight_unregister(struct coresight_device *csdev);
139 The registering function is taking a "struct coresight_device *csdev" and