Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/hwtracing/coresight/
A Dcoresight-core.c325 ret = sink_ops(csdev)->enable(csdev, mode, data); in coresight_enable_sink()
342 ret = sink_ops(csdev)->disable(csdev); in coresight_disable_sink()
454 source_ops(csdev)->disable(csdev, NULL); in coresight_disable_source()
476 csdev = nd->csdev; in coresight_disable_path_from()
528 csdev = nd->csdev; in coresight_enable_path()
822 node->csdev = csdev; in _coresight_build_path()
865 csdev = nd->csdev; in coresight_release_path()
1008 csdev->def_sink = per_cpu(csdev_sink, source_ops(csdev)->cpu_id(csdev)); in coresight_find_default_sink()
1130 cpu = source_ops(csdev)->cpu_id(csdev); in coresight_enable()
1179 cpu = source_ops(csdev)->cpu_id(csdev); in coresight_disable()
[all …]
A Dcoresight-syscfg.c49 struct device *dev = csdev->dev.parent; in cscfg_alloc_csdev_cfg()
58 config_csdev->csdev = csdev; in cscfg_alloc_csdev_cfg()
169 feat_csdev->csdev = csdev; in cscfg_alloc_csdev_feat()
761 csdev_item->csdev = csdev; in cscfg_list_add_csdev()
779 if (csdev_item->csdev == csdev) { in cscfg_list_remove_csdev()
814 cscfg_list_remove_csdev(csdev); in cscfg_register_csdev()
818 ret = cscfg_add_cfgs_csdev(csdev); in cscfg_register_csdev()
820 cscfg_list_remove_csdev(csdev); in cscfg_register_csdev()
840 cscfg_list_remove_csdev(csdev); in cscfg_unregister_csdev()
1094 if (csdev->active_cscfg_ctxt) in cscfg_csdev_enable_active_config()
[all …]
A Dcoresight-tmc-etf.c28 dev_err(&drvdata->csdev->dev, in __tmc_etb_enable_hw()
56 coresight_disclaim_device(drvdata->csdev); in tmc_etb_enable_hw()
114 dev_err(&drvdata->csdev->dev, in __tmc_etf_enable_hw()
145 struct coresight_device *csdev = drvdata->csdev; in tmc_etf_disable_hw() local
209 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs()
232 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs()
287 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_perf()
296 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_perf()
341 if (atomic_dec_return(csdev->refcnt)) { in tmc_disable_etf_sink()
381 atomic_inc(&csdev->refcnt[0]); in tmc_enable_etf_link()
[all …]
A Dcoresight-cti-core.c43 dev_get_drvdata(csdev->dev.parent)
153 struct coresight_device *csdev = drvdata->csdev; in cti_disable_hw() local
256 tc->con_dev = csdev; in cti_add_connection_entry()
261 if (csdev) in cti_add_connection_entry()
530 tc->con_dev = csdev; in cti_match_fixup_csdev()
575 ect_item->csdev); in cti_add_assoc_to_csdev()
594 if (csdev->ect_dev) { in cti_remove_assoc_from_csdev()
598 if (tc->con_dev == csdev) { in cti_remove_assoc_from_csdev()
604 csdev->ect_dev = NULL; in cti_remove_assoc_from_csdev()
634 drvdata->csdev); in cti_update_conn_xrefs()
[all …]
A Dcoresight-replicator.c41 struct coresight_device *csdev; member
48 struct coresight_device *csdev = drvdata->csdev; in dynamic_replicator_reset() local
52 if (!coresight_claim_device_unlocked(csdev)) { in dynamic_replicator_reset()
55 coresight_disclaim_device_unlocked(csdev); in dynamic_replicator_reset()
75 struct coresight_device *csdev = drvdata->csdev; in dynamic_replicator_enable() local
134 atomic_inc(&csdev->refcnt[outport]); in replicator_enable()
146 struct coresight_device *csdev = drvdata->csdev; in dynamic_replicator_disable() local
167 coresight_disclaim_device_unlocked(csdev); in dynamic_replicator_disable()
279 if (IS_ERR(drvdata->csdev)) { in replicator_probe()
280 ret = PTR_ERR(drvdata->csdev); in replicator_probe()
[all …]
A Dcoresight-etm3x-core.c167 dev_err(&drvdata->csdev->dev, in etm_set_prog()
186 dev_err(&drvdata->csdev->dev, in etm_clr_prog()
366 struct coresight_device *csdev = drvdata->csdev; in etm_enable_hw() local
472 dev_err(&drvdata->csdev->dev, in etm_read_alloc_trace_id()
570 ret = etm_enable_sysfs(csdev); in etm_enable()
591 struct coresight_device *csdev = drvdata->csdev; in etm_disable_hw() local
607 dev_dbg(&drvdata->csdev->dev, in etm_disable_hw()
688 etm_disable_sysfs(csdev); in etm_disable()
691 etm_disable_perf(csdev); in etm_disable()
913 if (IS_ERR(drvdata->csdev)) in etm_probe()
[all …]
A Dcoresight-etb10.c86 struct coresight_device *csdev; member
166 atomic_inc(csdev->refcnt); in etb_enable_sysfs()
202 atomic_inc(csdev->refcnt); in etb_enable_perf()
211 ret = etb_set_buffer(csdev, handle); in etb_enable_perf()
220 atomic_inc(csdev->refcnt); in etb_enable_perf()
234 ret = etb_enable_sysfs(csdev); in etb_enable()
237 ret = etb_enable_perf(csdev, data); in etb_enable()
449 if (atomic_read(csdev->refcnt) != 1) in etb_update_buffer()
465 dev_err(&csdev->dev, in etb_update_buffer()
777 if (IS_ERR(drvdata->csdev)) in etb_probe()
[all …]
A Dcoresight-etm-perf.c356 if (!csdev) { in etm_setup_aux()
454 if (!csdev) in etm_event_start()
495 if (source_ops(csdev)->enable(csdev, event, CS_MODE_PERF)) in etm_event_start()
577 if (!csdev) in etm_event_stop()
589 source_ops(csdev)->disable(csdev, event); in etm_event_stop()
730 int ret = 0, cpu = source_ops(csdev)->cpu_id(csdev); in etm_perf_symlink()
810 if (csdev->ea != NULL) in etm_perf_add_symlink_sink()
815 if (IS_ERR(csdev->ea)) { in etm_perf_add_symlink_sink()
817 csdev->ea = NULL; in etm_perf_add_symlink_sink()
838 if (!csdev->ea) in etm_perf_del_symlink_sink()
[all …]
A Dcoresight-tpiu.c60 struct coresight_device *csdev; member
74 tpiu_enable_hw(&csdev->access); in tpiu_enable()
75 atomic_inc(csdev->refcnt); in tpiu_enable()
76 dev_dbg(&csdev->dev, "TPIU enabled\n"); in tpiu_enable()
98 if (atomic_dec_return(csdev->refcnt)) in tpiu_disable()
101 tpiu_disable_hw(&csdev->access); in tpiu_disable()
103 dev_dbg(&csdev->dev, "TPIU disabled\n"); in tpiu_disable()
163 drvdata->csdev = coresight_register(&desc); in tpiu_probe()
165 if (!IS_ERR(drvdata->csdev)) { in tpiu_probe()
170 return PTR_ERR(drvdata->csdev); in tpiu_probe()
[all …]
A Dcoresight-funnel.c46 struct coresight_device *csdev; member
55 struct coresight_device *csdev = drvdata->csdev; in dynamic_funnel_enable_hw() local
62 rc = coresight_claim_device_unlocked(csdev); in dynamic_funnel_enable_hw()
86 if (atomic_read(&csdev->refcnt[inport]) == 0) { in funnel_enable()
93 atomic_inc(&csdev->refcnt[inport]); in funnel_enable()
105 struct coresight_device *csdev = drvdata->csdev; in dynamic_funnel_disable_hw() local
115 coresight_disclaim_device_unlocked(csdev); in dynamic_funnel_disable_hw()
265 drvdata->csdev = coresight_register(&desc); in funnel_probe()
266 if (IS_ERR(drvdata->csdev)) { in funnel_probe()
267 ret = PTR_ERR(drvdata->csdev); in funnel_probe()
[all …]
A Dcoresight-sysfs.c20 struct coresight_device *csdev = to_coresight_device(dev); in nr_links_show() local
22 return sprintf(buf, "%d\n", csdev->nr_links); in nr_links_show()
41 int coresight_create_conns_sysfs_group(struct coresight_device *csdev) in coresight_create_conns_sysfs_group() argument
45 if (!csdev) in coresight_create_conns_sysfs_group()
48 ret = sysfs_create_group(&csdev->dev.kobj, &coresight_conns_group); in coresight_create_conns_sysfs_group()
52 csdev->has_conns_grp = true; in coresight_create_conns_sysfs_group()
56 void coresight_remove_conns_sysfs_group(struct coresight_device *csdev) in coresight_remove_conns_sysfs_group() argument
58 if (!csdev) in coresight_remove_conns_sysfs_group()
61 if (csdev->has_conns_grp) { in coresight_remove_conns_sysfs_group()
62 sysfs_remove_group(&csdev->dev.kobj, &coresight_conns_group); in coresight_remove_conns_sysfs_group()
[all …]
A Dcoresight-catu.h65 struct coresight_device *csdev; member
73 return csdev_access_relaxed_read32(&drvdata->csdev->access, offset); \
78 csdev_access_relaxed_write32(&drvdata->csdev->access, val, offset); \
85 return csdev_access_relaxed_read_pair(&drvdata->csdev->access, lo_off, hi_off); \
90 csdev_access_relaxed_write_pair(&drvdata->csdev->access, val, lo_off, hi_off); \
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()
A Dcoresight-catu.c21 #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
337 if (!csdev) in catu_alloc_etr_buf()
403 struct device *dev = &drvdata->csdev->dev; in catu_enable_hw()
404 struct coresight_device *csdev = drvdata->csdev; in catu_enable_hw() local
458 struct device *dev = &drvdata->csdev->dev; in catu_disable_hw()
459 struct coresight_device *csdev = drvdata->csdev; in catu_disable_hw() local
555 if (IS_ERR(drvdata->csdev)) in catu_probe()
556 ret = PTR_ERR(drvdata->csdev); in catu_probe()
[all …]
A Dcoresight-tpda.c49 if (!drvdata->csdev->enable) in __tpda_enable()
59 struct tpda_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpda_enable()
62 if (atomic_read(&csdev->refcnt[inport]) == 0) in tpda_enable()
65 atomic_inc(&csdev->refcnt[inport]); in tpda_enable()
85 static void tpda_disable(struct coresight_device *csdev, int inport, in tpda_disable() argument
88 struct tpda_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpda_disable()
91 if (atomic_dec_return(&csdev->refcnt[inport]) == 0) in tpda_disable()
167 drvdata->csdev = coresight_register(&desc); in tpda_probe()
168 if (IS_ERR(drvdata->csdev)) in tpda_probe()
169 return PTR_ERR(drvdata->csdev); in tpda_probe()
[all …]
A Dultrasoc-smb.c109 if (atomic_read(drvdata->csdev->refcnt)) { in smb_open()
129 struct device *dev = &drvdata->csdev->dev; in smb_read()
280 smb_enable_sysfs(csdev); in smb_enable()
283 ret = smb_enable_perf(csdev, data); in smb_enable()
292 atomic_inc(csdev->refcnt); in smb_enable()
313 if (atomic_dec_return(csdev->refcnt)) { in smb_disable()
413 if (atomic_read(csdev->refcnt) != 1) in smb_update_buffer()
520 if (IS_ERR(drvdata->csdev)) in smb_register_sink()
521 return PTR_ERR(drvdata->csdev); in smb_register_sink()
528 coresight_unregister(drvdata->csdev); in smb_register_sink()
[all …]
A Dcoresight-etm4x-core.c199 if (!WARN_ON(!drvdata->csdev)) in etm4_os_unlock()
205 if (WARN_ON(!drvdata->csdev)) in etm4_os_lock()
247 dev_err(&drvdata->csdev->dev, in etm4_read_alloc_trace_id()
397 struct coresight_device *csdev = drvdata->csdev; in etm4_enable_hw() local
861 struct coresight_device *csdev = drvdata->csdev; in etm4_disable_hw() local
1006 etm4_disable_sysfs(csdev); in etm4_disable()
1631 struct coresight_device *csdev = drvdata->csdev; in __etm4_cpu_save() local
1635 if (WARN_ON(!csdev)) in __etm4_cpu_save()
1638 etm_dev = &csdev->dev; in __etm4_cpu_save()
1639 csa = &csdev->access; in __etm4_cpu_save()
[all …]
A Dcoresight-etm-perf.h66 int etm_perf_symlink(struct coresight_device *csdev, bool link);
67 int etm_perf_add_symlink_sink(struct coresight_device *csdev);
68 void etm_perf_del_symlink_sink(struct coresight_device *csdev);
81 static inline int etm_perf_symlink(struct coresight_device *csdev, bool link) in etm_perf_symlink() argument
83 int etm_perf_add_symlink_sink(struct coresight_device *csdev) in etm_perf_add_symlink_sink() argument
85 void etm_perf_del_symlink_sink(struct coresight_device *csdev) {} in etm_perf_del_symlink_sink() argument
A Dcoresight-syscfg.h72 struct coresight_device *csdev; member
116 int cscfg_register_csdev(struct coresight_device *csdev, u32 match_flags,
118 void cscfg_unregister_csdev(struct coresight_device *csdev);
121 void cscfg_csdev_reset_feats(struct coresight_device *csdev);
122 int cscfg_csdev_enable_active_config(struct coresight_device *csdev,
124 void cscfg_csdev_disable_active_config(struct coresight_device *csdev);
A Dcoresight-tmc-core.c36 struct coresight_device *csdev = drvdata->csdev; in tmc_wait_for_tmcready() local
37 struct csdev_access *csa = &csdev->access; in tmc_wait_for_tmcready()
41 dev_err(&csdev->dev, in tmc_wait_for_tmcready()
50 struct coresight_device *csdev = drvdata->csdev; in tmc_flush_and_stop() local
51 struct csdev_access *csa = &csdev->access; in tmc_flush_and_stop()
61 dev_err(&csdev->dev, in tmc_flush_and_stop()
190 dev_dbg(&drvdata->csdev->dev, in tmc_read()
526 if (IS_ERR(drvdata->csdev)) { in tmc_probe()
527 ret = PTR_ERR(drvdata->csdev); in tmc_probe()
536 coresight_unregister(drvdata->csdev); in tmc_probe()
[all …]
A Dcoresight-priv.h142 coresight_find_default_sink(struct coresight_device *csdev);
143 struct list_head *coresight_build_path(struct coresight_device *csdev,
148 int coresight_create_conns_sysfs_group(struct coresight_device *csdev);
149 void coresight_remove_conns_sysfs_group(struct coresight_device *csdev);
165 void (*add)(struct coresight_device *csdev);
166 void (*remove)(struct coresight_device *csdev);
214 void coresight_release_platform_data(struct coresight_device *csdev,
218 void coresight_set_assoc_ectdev_mutex(struct coresight_device *csdev,
221 void coresight_set_percpu_sink(int cpu, struct coresight_device *csdev);
A Dcoresight-config.c83 dev_dbg(&feat_csdev->csdev->dev, "Feature %s: %s", in cscfg_set_on_enable()
98 dev_dbg(&feat_csdev->csdev->dev, "Feature %s: %s", in cscfg_save_on_disable()
170 dev_dbg(&config_csdev->csdev->dev, in cscfg_update_presets()
175 dev_dbg(&config_csdev->csdev->dev, in cscfg_update_presets()
209 dev_dbg(&config_csdev->csdev->dev, in cscfg_update_curr_params()
214 dev_dbg(&config_csdev->csdev->dev, in cscfg_update_curr_params()
230 struct coresight_device *csdev; in cscfg_prog_config() local
234 csdev = feat_csdev->csdev; in cscfg_prog_config()
235 dev_dbg(&csdev->dev, "cfg %s; %s feature:%s", config_csdev->config_desc->name, in cscfg_prog_config()
A Dcoresight-tpdm.c45 static int tpdm_enable(struct coresight_device *csdev, in tpdm_enable() argument
48 struct tpdm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpdm_enable()
86 static void tpdm_disable(struct coresight_device *csdev, in tpdm_disable() argument
89 struct tpdm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpdm_disable()
214 drvdata->csdev = coresight_register(&desc); in tpdm_probe()
215 if (IS_ERR(drvdata->csdev)) in tpdm_probe()
216 return PTR_ERR(drvdata->csdev); in tpdm_probe()
230 coresight_unregister(drvdata->csdev); in tpdm_remove()
A Dcoresight-stm.c135 struct coresight_device *csdev; member
210 pm_runtime_get_sync(csdev->dev.parent); in stm_enable()
277 pm_runtime_put(csdev->dev.parent); in stm_disable()
334 if (!drvdata || !drvdata->csdev) in stm_generic_link()
337 return coresight_enable(drvdata->csdev); in stm_generic_link()
345 if (!drvdata || !drvdata->csdev) in stm_generic_unlink()
348 coresight_disable(drvdata->csdev); in stm_generic_unlink()
888 if (IS_ERR(drvdata->csdev)) { in stm_probe()
889 ret = PTR_ERR(drvdata->csdev); in stm_probe()
907 coresight_unregister(drvdata->csdev); in stm_probe()
[all …]
/linux-6.3-rc2/include/linux/
A Dcoresight.h275 #define source_ops(csdev) csdev->ops->source_ops argument
276 #define sink_ops(csdev) csdev->ops->sink_ops argument
277 #define link_ops(csdev) csdev->ops->link_ops argument
278 #define helper_ops(csdev) csdev->ops->helper_ops argument
279 #define ect_ops(csdev) csdev->ops->ect_ops argument
292 int (*disable)(struct coresight_device *csdev);
322 int (*cpu_id)(struct coresight_device *csdev);
323 int (*enable)(struct coresight_device *csdev,
350 int (*enable)(struct coresight_device *csdev);
486 return csdev && (csdev->type == CORESIGHT_DEV_TYPE_SOURCE) && in coresight_is_percpu_source()
[all …]
/linux-6.3-rc2/drivers/scsi/device_handler/
A Dscsi_dh_emc.c141 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()
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()
181 if (csdev->default_sp == csdev->current_sp) in parse_sp_info_reply()
348 struct clariion_dh_data *csdev) in clariion_std_inquiry() argument
413 csdev->port, lun_state[csdev->lun_state], in clariion_activate()
[all …]

Completed in 49 milliseconds

12