| /Linux-v5.4/drivers/hwtracing/coresight/ |
| D | coresight.c | 33 struct coresight_device *csdev; member 61 struct coresight_device *csdev, *i_csdev; in coresight_id_match() local 63 csdev = data; in coresight_id_match() 70 if (i_csdev == csdev || !i_csdev->enable || in coresight_id_match() 75 trace_id = source_ops(csdev)->trace_id(csdev); in coresight_id_match() 85 static int coresight_source_is_unique(struct coresight_device *csdev) in coresight_source_is_unique() argument 87 int trace_id = source_ops(csdev)->trace_id(csdev); in coresight_source_is_unique() 94 csdev, coresight_id_match); in coresight_source_is_unique() 97 static int coresight_find_link_inport(struct coresight_device *csdev, in coresight_find_link_inport() argument 105 if (conn->child_dev == csdev) in coresight_find_link_inport() [all …]
|
| D | coresight-tmc-etf.c | 16 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() argument 155 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_sink_sysfs() 185 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs() 208 atomic_inc(csdev->refcnt); 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() argument 228 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_sink_perf() 253 ret = tmc_set_etf_buffer(csdev, handle); in tmc_enable_etf_sink_perf() 262 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_perf() 271 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_perf() [all …]
|
| D | coresight-etm-perf.c | 243 struct coresight_device *csdev; in etm_setup_aux() local 245 csdev = per_cpu(csdev_src, cpu); in etm_setup_aux() 251 if (!csdev) { in etm_setup_aux() 261 path = coresight_build_path(csdev, sink); in etm_setup_aux() 299 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_start() local 302 if (!csdev) in etm_event_start() 327 if (source_ops(csdev)->enable(csdev, event, CS_MODE_PERF)) in etm_event_start() 347 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_stop() local 355 if (!csdev) in etm_event_stop() 367 source_ops(csdev)->disable(csdev, event); in etm_event_stop() [all …]
|
| D | coresight-etb10.c | 86 struct coresight_device *csdev; member 97 static int etb_set_buffer(struct coresight_device *csdev, 144 static int etb_enable_sysfs(struct coresight_device *csdev) in etb_enable_sysfs() argument 148 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_enable_sysfs() 166 atomic_inc(csdev->refcnt); in etb_enable_sysfs() 172 static int etb_enable_perf(struct coresight_device *csdev, void *data) in etb_enable_perf() argument 177 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_enable_perf() 201 atomic_inc(csdev->refcnt); in etb_enable_perf() 210 ret = etb_set_buffer(csdev, handle); in etb_enable_perf() 219 atomic_inc(csdev->refcnt); in etb_enable_perf() [all …]
|
| D | coresight-tpiu.c | 60 struct coresight_device *csdev; member 72 static int tpiu_enable(struct coresight_device *csdev, u32 mode, void *__unused) in tpiu_enable() argument 74 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_enable() 77 atomic_inc(csdev->refcnt); in tpiu_enable() 78 dev_dbg(&csdev->dev, "TPIU enabled\n"); in tpiu_enable() 98 static int tpiu_disable(struct coresight_device *csdev) in tpiu_disable() argument 100 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_disable() 102 if (atomic_dec_return(csdev->refcnt)) in tpiu_disable() 107 dev_dbg(&csdev->dev, "TPIU disabled\n"); in tpiu_disable() 166 drvdata->csdev = coresight_register(&desc); in tpiu_probe() [all …]
|
| D | coresight-etm3x.c | 168 dev_err(&drvdata->csdev->dev, in etm_set_prog() 187 dev_err(&drvdata->csdev->dev, in etm_clr_prog() 428 dev_dbg(&drvdata->csdev->dev, "cpu: %d enable smp call done: %d\n", in etm_enable_hw() 447 static int etm_cpu_id(struct coresight_device *csdev) in etm_cpu_id() argument 449 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_cpu_id() 463 etm_dev = drvdata->csdev->dev.parent; in etm_get_trace_id() 483 static int etm_trace_id(struct coresight_device *csdev) in etm_trace_id() argument 485 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_trace_id() 490 static int etm_enable_perf(struct coresight_device *csdev, in etm_enable_perf() argument 493 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_enable_perf() [all …]
|
| D | coresight-etm-perf.h | 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() argument 75 int etm_perf_add_symlink_sink(struct coresight_device *csdev) in etm_perf_add_symlink_sink() argument 77 void etm_perf_del_symlink_sink(struct coresight_device *csdev) {} in etm_perf_del_symlink_sink() argument
|
| D | coresight-etm4x.c | 69 static int etm4_cpu_id(struct coresight_device *csdev) in etm4_cpu_id() argument 71 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_cpu_id() 76 static int etm4_trace_id(struct coresight_device *csdev) in etm4_trace_id() argument 78 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_trace_id() 92 struct device *etm_dev = &drvdata->csdev->dev; in etm4_enable_hw() 368 static int etm4_enable_perf(struct coresight_device *csdev, in etm4_enable_perf() argument 372 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_enable_perf() 390 static int etm4_enable_sysfs(struct coresight_device *csdev) in etm4_enable_sysfs() argument 392 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_enable_sysfs() 412 dev_dbg(&csdev->dev, "ETM tracing enabled\n"); in etm4_enable_sysfs() [all …]
|
| D | coresight-replicator.c | 38 struct coresight_device *csdev; member 95 static int replicator_enable(struct coresight_device *csdev, int inport, in replicator_enable() argument 99 struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_enable() 104 dev_dbg(&csdev->dev, "REPLICATOR enabled\n"); in replicator_enable() 136 static void replicator_disable(struct coresight_device *csdev, int inport, in replicator_disable() argument 139 struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_disable() 143 dev_dbg(&csdev->dev, "REPLICATOR disabled\n"); in replicator_disable() 234 drvdata->csdev = coresight_register(&desc); in replicator_probe() 235 if (IS_ERR(drvdata->csdev)) { in replicator_probe() 236 ret = PTR_ERR(drvdata->csdev); in replicator_probe()
|
| D | coresight-catu.c | 21 #define csdev_to_catu_drvdata(csdev) \ argument 22 dev_get_drvdata(csdev->dev.parent) 332 struct coresight_device *csdev; in catu_alloc_etr_buf() local 336 csdev = tmc_etr_get_catu_device(tmc_drvdata); in catu_alloc_etr_buf() 337 if (!csdev) in catu_alloc_etr_buf() 343 catu_table = catu_init_sg_table(&csdev->dev, node, in catu_alloc_etr_buf() 413 struct device *dev = &drvdata->csdev->dev; in catu_enable_hw() 453 static int catu_enable(struct coresight_device *csdev, void *data) in catu_enable() argument 456 struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); in catu_enable() 467 struct device *dev = &drvdata->csdev->dev; in catu_disable_hw() [all …]
|
| D | coresight-funnel.c | 45 struct coresight_device *csdev; member 74 static int funnel_enable(struct coresight_device *csdev, int inport, in funnel_enable() argument 78 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_enable() 84 dev_dbg(&csdev->dev, "FUNNEL inport %d enabled\n", inport); in funnel_enable() 106 static void funnel_disable(struct coresight_device *csdev, int inport, in funnel_disable() argument 109 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_disable() 114 dev_dbg(&csdev->dev, "FUNNEL inport %d disabled\n", inport); in funnel_disable() 241 drvdata->csdev = coresight_register(&desc); in funnel_probe() 242 if (IS_ERR(drvdata->csdev)) { in funnel_probe() 243 ret = PTR_ERR(drvdata->csdev); in funnel_probe()
|
| D | coresight-tmc.c | 39 dev_err(&drvdata->csdev->dev, in tmc_wait_for_tmcready() 56 dev_err(&drvdata->csdev->dev, in tmc_flush_and_stop() 118 dev_dbg(&drvdata->csdev->dev, "TMC read start\n"); in tmc_read_prepare() 140 dev_dbg(&drvdata->csdev->dev, "TMC read end\n"); in tmc_read_unprepare() 157 dev_dbg(&drvdata->csdev->dev, "%s: successfully opened\n", __func__); in tmc_open() 187 dev_dbg(&drvdata->csdev->dev, in tmc_read() 193 dev_dbg(&drvdata->csdev->dev, "%zu bytes copied\n", actual); in tmc_read() 208 dev_dbg(&drvdata->csdev->dev, "%s: released\n", __func__); in tmc_release() 523 drvdata->csdev = coresight_register(&desc); in tmc_probe() 524 if (IS_ERR(drvdata->csdev)) { in tmc_probe() [all …]
|
| D | coresight-catu.h | 65 struct coresight_device *csdev; member 100 static inline bool coresight_is_catu_device(struct coresight_device *csdev) in CATU_REG_PAIR() 104 if (csdev->type != CORESIGHT_DEV_TYPE_HELPER) in CATU_REG_PAIR() 106 if (csdev->subtype.helper_subtype != CORESIGHT_DEV_SUBTYPE_HELPER_CATU) in CATU_REG_PAIR()
|
| D | coresight-stm.c | 134 struct coresight_device *csdev; member 194 static int stm_enable(struct coresight_device *csdev, in stm_enable() argument 198 struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in stm_enable() 209 pm_runtime_get_sync(csdev->dev.parent); in stm_enable() 215 dev_dbg(&csdev->dev, "STM tracing enabled\n"); in stm_enable() 257 static void stm_disable(struct coresight_device *csdev, in stm_disable() argument 260 struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in stm_disable() 275 pm_runtime_put(csdev->dev.parent); in stm_disable() 278 dev_dbg(&csdev->dev, "STM tracing disabled\n"); in stm_disable() 282 static int stm_trace_id(struct coresight_device *csdev) in stm_trace_id() argument [all …]
|
| D | coresight-tmc-etr.c | 595 struct device *real_dev = drvdata->csdev->dev.parent; in tmc_etr_alloc_flat_buf() 613 flat_buf->dev = &drvdata->csdev->dev; in tmc_etr_alloc_flat_buf() 675 struct device *dev = &drvdata->csdev->dev; in tmc_etr_alloc_sg_buf() 756 struct coresight_device *tmp, *etr = drvdata->csdev; in tmc_etr_get_catu_device() 833 struct device *dev = &drvdata->csdev->dev; in tmc_alloc_etr_buf() 937 dev_dbg(&drvdata->csdev->dev, in tmc_sync_etr_buf() 1123 static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etr_sink_sysfs() argument 1127 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etr_sink_sysfs() 1163 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_sysfs() 1180 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_sysfs() [all …]
|
| D | coresight-etm.h | 235 struct coresight_device *csdev; member 261 dev_err(&drvdata->csdev->dev, in etm_writel() 275 dev_err(&drvdata->csdev->dev, in etm_readl()
|
| D | coresight-priv.h | 152 struct list_head *coresight_build_path(struct coresight_device *csdev,
|
| D | coresight-tmc.h | 190 struct coresight_device *csdev; member
|
| D | coresight-etm4x.h | 342 struct coresight_device *csdev; member
|
| /Linux-v5.4/drivers/scsi/device_handler/ |
| D | scsi_dh_emc.c | 136 struct clariion_dh_data *csdev) in parse_sp_info_reply() argument 141 if (csdev->buffer[48] != 0) { in parse_sp_info_reply() 148 if (csdev->buffer[4] > 2) { in parse_sp_info_reply() 156 switch (csdev->buffer[28] & 0x0f) { in parse_sp_info_reply() 168 CLARIION_NAME, csdev->buffer[28] & 0x0f); in parse_sp_info_reply() 173 csdev->default_sp = csdev->buffer[5]; in parse_sp_info_reply() 174 csdev->lun_state = csdev->buffer[4]; in parse_sp_info_reply() 175 csdev->current_sp = csdev->buffer[8]; in parse_sp_info_reply() 176 csdev->port = csdev->buffer[7]; in parse_sp_info_reply() 177 if (csdev->lun_state == CLARIION_LUN_OWNED) in parse_sp_info_reply() [all …]
|
| /Linux-v5.4/include/linux/ |
| D | coresight.h | 195 #define source_ops(csdev) csdev->ops->source_ops argument 196 #define sink_ops(csdev) csdev->ops->sink_ops argument 197 #define link_ops(csdev) csdev->ops->link_ops argument 198 #define helper_ops(csdev) csdev->ops->helper_ops argument 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); [all …]
|
| /Linux-v5.4/drivers/staging/comedi/ |
| D | comedi_fops.c | 378 static ssize_t max_read_buffer_kb_show(struct device *csdev, in max_read_buffer_kb_show() argument 381 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_show() 400 static ssize_t max_read_buffer_kb_store(struct device *csdev, in max_read_buffer_kb_store() argument 404 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_store() 434 static ssize_t read_buffer_kb_show(struct device *csdev, in read_buffer_kb_show() argument 437 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_show() 456 static ssize_t read_buffer_kb_store(struct device *csdev, in read_buffer_kb_store() argument 460 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_store() 490 static ssize_t max_write_buffer_kb_show(struct device *csdev, in max_write_buffer_kb_show() argument 494 unsigned int minor = MINOR(csdev->devt); in max_write_buffer_kb_show() [all …]
|
| /Linux-v5.4/Documentation/trace/ |
| D | coresight.rst | 147 .. c:function:: void coresight_unregister(struct coresight_device *csdev); 151 a reference to a ``struct coresight_device *csdev`` obtained at registration time.
|