/Linux-v4.19/drivers/hwtracing/coresight/ |
D | coresight.c | 31 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 …]
|
D | coresight-tmc-etf.c | 119 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 …]
|
D | coresight-replicator.c | 30 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()
|
D | coresight-etm3x.c | 426 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 …]
|
D | coresight-etm-perf.c | 216 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 …]
|
D | coresight-etm4x.c | 66 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 …]
|
D | coresight-tpiu.c | 59 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()
|
D | coresight-dynamic-replicator.c | 34 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()
|
D | coresight-catu.c | 21 #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 …]
|
D | coresight-funnel.c | 41 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()
|
D | coresight-catu.h | 66 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()
|
D | coresight-etb10.c | 83 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 …]
|
D | coresight-stm.c | 133 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 …]
|
D | coresight-etm-perf.h | 47 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
|
D | coresight-tmc-etr.c | 717 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()
|
D | coresight-tmc.c | 461 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()
|
D | coresight-priv.h | 143 struct list_head *coresight_build_path(struct coresight_device *csdev,
|
D | coresight-etm.h | 237 struct coresight_device *csdev; member
|
D | coresight-tmc.h | 177 struct coresight_device *csdev; member
|
D | coresight-etm4x.h | 344 struct coresight_device *csdev; member
|
/Linux-v4.19/include/linux/ |
D | coresight.h | 181 #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/ |
D | scsi_dh_emc.c | 149 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/ |
D | comedi_fops.c | 373 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/ |
D | coresight.txt | 137 void coresight_unregister(struct coresight_device *csdev); 139 The registering function is taking a "struct coresight_device *csdev" and
|