Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/hwtracing/coresight/
Dcoresight.c35 struct coresight_device *csdev, *i_csdev; in coresight_id_match() local
37 csdev = data; in coresight_id_match()
44 if (i_csdev == csdev || !i_csdev->enable || in coresight_id_match()
49 trace_id = source_ops(csdev)->trace_id(csdev); in coresight_id_match()
59 static int coresight_source_is_unique(struct coresight_device *csdev) in coresight_source_is_unique() argument
61 int trace_id = source_ops(csdev)->trace_id(csdev); in coresight_source_is_unique()
68 csdev, coresight_id_match); in coresight_source_is_unique()
71 static int coresight_find_link_inport(struct coresight_device *csdev) in coresight_find_link_inport() argument
77 parent = container_of(csdev->path_link.next, in coresight_find_link_inport()
82 if (conn->child_dev == csdev) in coresight_find_link_inport()
[all …]
Dcoresight-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_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_enable()
46 static void replicator_disable(struct coresight_device *csdev, int inport, in replicator_disable() argument
49 struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_disable()
94 drvdata->csdev = coresight_register(desc); in replicator_probe()
95 if (IS_ERR(drvdata->csdev)) in replicator_probe()
96 return PTR_ERR(drvdata->csdev); in replicator_probe()
106 coresight_unregister(drvdata->csdev); in replicator_remove()
Dcoresight-tpiu.c59 struct coresight_device *csdev; member
72 static int tpiu_enable(struct coresight_device *csdev) in tpiu_enable() argument
74 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_enable()
99 static void tpiu_disable(struct coresight_device *csdev) in tpiu_disable() argument
101 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_disable()
170 drvdata->csdev = coresight_register(desc); in tpiu_probe()
171 if (IS_ERR(drvdata->csdev)) in tpiu_probe()
172 return PTR_ERR(drvdata->csdev); in tpiu_probe()
182 coresight_unregister(drvdata->csdev); in tpiu_remove()
Dcoresight-funnel.c45 struct coresight_device *csdev; member
66 static int funnel_enable(struct coresight_device *csdev, int inport, in funnel_enable() argument
69 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_enable()
95 static void funnel_disable(struct coresight_device *csdev, int inport, in funnel_disable() argument
98 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_disable()
221 drvdata->csdev = coresight_register(desc); in funnel_probe()
222 if (IS_ERR(drvdata->csdev)) in funnel_probe()
223 return PTR_ERR(drvdata->csdev); in funnel_probe()
233 coresight_unregister(drvdata->csdev); in funnel_remove()
Dcoresight-etb10.c82 struct coresight_device *csdev; member
137 static int etb_enable(struct coresight_device *csdev) in etb_enable() argument
139 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_enable()
244 static void etb_disable(struct coresight_device *csdev) in etb_disable() argument
246 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_disable()
478 drvdata->csdev = coresight_register(desc); in etb_probe()
479 if (IS_ERR(drvdata->csdev)) in etb_probe()
480 return PTR_ERR(drvdata->csdev); in etb_probe()
493 coresight_unregister(drvdata->csdev); in etb_probe()
502 coresight_unregister(drvdata->csdev); in etb_remove()
Dcoresight-tmc.c121 struct coresight_device *csdev; member
276 static int tmc_enable_sink(struct coresight_device *csdev) in tmc_enable_sink() argument
278 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_sink()
283 static int tmc_enable_link(struct coresight_device *csdev, int inport, in tmc_enable_link() argument
286 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_link()
394 static void tmc_disable_sink(struct coresight_device *csdev) in tmc_disable_sink() argument
396 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_disable_sink()
401 static void tmc_disable_link(struct coresight_device *csdev, int inport, in tmc_disable_link() argument
404 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_disable_link()
763 drvdata->csdev = coresight_register(desc); in tmc_probe()
[all …]
Dcoresight-etm3x.c320 static int etm_trace_id(struct coresight_device *csdev) in etm_trace_id() argument
322 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_trace_id()
344 static int etm_enable(struct coresight_device *csdev) in etm_enable() argument
346 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_enable()
404 static void etm_disable(struct coresight_device *csdev) in etm_disable() argument
406 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_disable()
1667 coresight_enable(etmdrvdata[cpu]->csdev); in etm_cpu_callback()
1856 drvdata->csdev = coresight_register(desc); in etm_probe()
1857 if (IS_ERR(drvdata->csdev)) { in etm_probe()
1858 ret = PTR_ERR(drvdata->csdev); in etm_probe()
[all …]
Dcoresight-etm.h195 struct coresight_device *csdev; member
/linux-4.1.27/drivers/scsi/device_handler/
Dscsi_dh_emc.c169 struct clariion_dh_data *csdev) in parse_sp_info_reply() argument
174 if (csdev->buffer[48] != 0) { in parse_sp_info_reply()
181 if (csdev->buffer[4] > 2) { in parse_sp_info_reply()
189 switch (csdev->buffer[28] & 0x0f) { in parse_sp_info_reply()
201 CLARIION_NAME, csdev->buffer[28] & 0x0f); in parse_sp_info_reply()
206 csdev->default_sp = csdev->buffer[5]; in parse_sp_info_reply()
207 csdev->lun_state = csdev->buffer[4]; in parse_sp_info_reply()
208 csdev->current_sp = csdev->buffer[8]; in parse_sp_info_reply()
209 csdev->port = csdev->buffer[7]; in parse_sp_info_reply()
322 struct clariion_dh_data *csdev) in send_inquiry_cmd() argument
[all …]
/linux-4.1.27/include/linux/
Dcoresight.h178 #define source_ops(csdev) csdev->ops->source_ops argument
179 #define sink_ops(csdev) csdev->ops->sink_ops argument
180 #define link_ops(csdev) csdev->ops->link_ops argument
189 int (*enable)(struct coresight_device *csdev);
190 void (*disable)(struct coresight_device *csdev);
200 int (*enable)(struct coresight_device *csdev, int iport, int oport);
201 void (*disable)(struct coresight_device *csdev, int iport, int oport);
213 int (*trace_id)(struct coresight_device *csdev);
214 int (*enable)(struct coresight_device *csdev);
215 void (*disable)(struct coresight_device *csdev);
[all …]
/linux-4.1.27/drivers/staging/comedi/drivers/
Dunioxx5.c93 struct device *csdev = s->device->class_dev;
97 dev_dbg(csdev, "mode = %d\n", mask);
140 struct device *csdev = s->device->class_dev; in __unioxx5_digital_read() local
145 dev_err(csdev, in __unioxx5_digital_read()
165 struct device *csdev = s->device->class_dev; in __unioxx5_analog_read() local
174 dev_err(csdev, in __unioxx5_analog_read()
192 dev_err(csdev, "4 bytes error\n"); in __unioxx5_analog_read()
208 struct device *csdev = s->device->class_dev; in __unioxx5_digital_write() local
214 dev_err(csdev, in __unioxx5_digital_write()
239 struct device *csdev = s->device->class_dev; in __unioxx5_analog_write() local
[all …]
/linux-4.1.27/drivers/staging/comedi/
Dcomedi_fops.c370 static ssize_t max_read_buffer_kb_show(struct device *csdev, in max_read_buffer_kb_show() argument
373 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_show()
392 static ssize_t max_read_buffer_kb_store(struct device *csdev, in max_read_buffer_kb_store() argument
396 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_store()
426 static ssize_t read_buffer_kb_show(struct device *csdev, in read_buffer_kb_show() argument
429 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_show()
448 static ssize_t read_buffer_kb_store(struct device *csdev, in read_buffer_kb_store() argument
452 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_store()
482 static ssize_t max_write_buffer_kb_show(struct device *csdev, in max_write_buffer_kb_show() argument
486 unsigned int minor = MINOR(csdev->devt); in max_write_buffer_kb_show()
[all …]
/linux-4.1.27/Documentation/trace/
Dcoresight.txt137 void coresight_unregister(struct coresight_device *csdev);
139 The registering function is taking a "struct coresight_device *csdev" and