Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/hwtracing/coresight/
H A Dcoresight-core.c283 sink_ops(csdev)->disable(csdev); in coresight_disable_sink()
338 helper_ops(csdev)->disable(csdev, data); in coresight_disable_helper()
365 source_ops(csdev)->disable(csdev, data); in coresight_disable_source()
385 csdev = nd->csdev; in coresight_disable_path_from()
462 csdev = nd->csdev; in coresight_enable_path()
770 node->csdev = csdev; in _coresight_build_path()
813 csdev = nd->csdev; in coresight_release_path()
956 csdev->def_sink = per_cpu(csdev_sink, source_ops(csdev)->cpu_id(csdev)); in coresight_find_default_sink()
1376 coresight_release_platform_data(csdev, csdev->dev.parent, csdev->pdata); in coresight_unregister()
1524 panic_ops(csdev)->sync(csdev); in coresight_panic_sync()
[all …]
H A Dcoresight-sysfs.c68 ret = source_ops(csdev)->enable(csdev, NULL, mode, path); in coresight_enable_source_sysfs()
73 csdev->refcnt++; in coresight_enable_source_sysfs()
95 csdev->refcnt--; in coresight_disable_source_sysfs()
96 if (csdev->refcnt == 0) { in coresight_disable_source_sysfs()
118 return csdev; in coresight_find_activated_sysfs_sink()
148 type = csdev->type; in coresight_validate_source_sysfs()
196 csdev->refcnt++; in coresight_enable_sysfs()
234 cpu = source_ops(csdev)->cpu_id(csdev); in coresight_enable_sysfs()
284 cpu = source_ops(csdev)->cpu_id(csdev); in coresight_disable_sysfs()
442 if (!csdev) in coresight_create_conns_sysfs_group()
[all …]
H 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 …]
H A Dcoresight-tmc-etf.c148 struct coresight_device *csdev = drvdata->csdev; in tmc_etf_disable_hw() local
212 csdev->refcnt++; in tmc_enable_etf_sink_sysfs()
234 csdev->refcnt++; in tmc_enable_etf_sink_sysfs()
289 csdev->refcnt++; in tmc_enable_etf_sink_perf()
298 csdev->refcnt++; in tmc_enable_etf_sink_perf()
343 csdev->refcnt--; in tmc_disable_etf_sink()
344 if (csdev->refcnt) { in tmc_disable_etf_sink()
385 csdev->refcnt++; in tmc_enable_etf_link()
407 csdev->refcnt--; in tmc_disable_etf_link()
496 if (csdev->refcnt != 1) in tmc_update_etf_buffer()
[all …]
H A Dcoresight-tpda.c28 (csdev->subtype.source_subtype == in coresight_device_is_tpdm()
66 struct coresight_device *csdev) in tpdm_read_element_size() argument
82 dev_warn_once(&csdev->dev, in tpdm_read_element_size()
97 struct coresight_device *csdev, in tpda_get_element_size() argument
166 dev_warn_once(&drvdata->csdev->dev, in tpda_enable_port()
169 dev_warn_once(&drvdata->csdev->dev, in tpda_enable_port()
186 if (!drvdata->csdev->refcnt) in __tpda_enable()
207 csdev->refcnt++; in tpda_enable()
238 csdev->refcnt--; in tpda_disable()
325 if (IS_ERR(drvdata->csdev)) in tpda_probe()
[all …]
H A Dcoresight-etb10.c85 struct coresight_device *csdev; member
164 csdev->refcnt++; in etb_enable_sysfs()
200 csdev->refcnt++; in etb_enable_perf()
218 csdev->refcnt++; in etb_enable_perf()
233 ret = etb_enable_sysfs(csdev); in etb_enable()
357 csdev->refcnt--; in etb_disable()
358 if (csdev->refcnt) { in etb_disable()
449 if (csdev->refcnt != 1) in etb_update_buffer()
465 dev_err(&csdev->dev, in etb_update_buffer()
776 if (IS_ERR(drvdata->csdev)) in etb_probe()
[all …]
H A Dcoresight-dummy.c18 struct coresight_device *csdev; member
29 if (!coresight_take_mode(csdev, mode)) in dummy_source_enable()
32 dev_dbg(csdev->dev.parent, "Dummy source enabled\n"); in dummy_source_enable()
40 coresight_set_mode(csdev, CS_MODE_DISABLED); in dummy_source_disable()
49 drvdata = dev_get_drvdata(csdev->dev.parent); in dummy_source_trace_id()
57 dev_dbg(csdev->dev.parent, "Dummy sink enabled\n"); in dummy_sink_enable()
64 dev_dbg(csdev->dev.parent, "Dummy sink disabled\n"); in dummy_sink_disable()
182 drvdata->csdev = coresight_register(&desc); in dummy_probe()
183 if (IS_ERR(drvdata->csdev)) { in dummy_probe()
184 ret = PTR_ERR(drvdata->csdev); in dummy_probe()
[all …]
H A Dcoresight-cti-core.c42 #define csdev_to_cti_drvdata(csdev) \ argument
43 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()
577 coresight_add_helper(csdev, ect_item->csdev); in cti_add_assoc_to_csdev()
606 if (tc->con_dev == csdev) { in cti_remove_assoc_from_csdev()
640 drvdata->csdev); in cti_update_conn_xrefs()
674 csdev = drvdata->csdev; in cti_cpu_pm_notify()
[all …]
H 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
550 struct coresight_device *csdev = drvdata->csdev; in etm_disable_hw() local
566 dev_dbg(&drvdata->csdev->dev, in etm_disable_hw()
640 mode = coresight_get_mode(csdev); in etm_disable()
646 etm_disable_sysfs(csdev); in etm_disable()
649 etm_disable_perf(csdev); in etm_disable()
872 if (IS_ERR(drvdata->csdev)) in etm_probe()
873 return PTR_ERR(drvdata->csdev); in etm_probe()
[all …]
H A Dultrasoc-smb.c106 if (drvdata->csdev->refcnt) in smb_open()
256 coresight_get_mode(csdev) != mode) in smb_enable()
261 smb_enable_sysfs(csdev); in smb_enable()
264 ret = smb_enable_perf(csdev, data); in smb_enable()
273 csdev->refcnt++; in smb_enable()
288 csdev->refcnt--; in smb_disable()
289 if (csdev->refcnt) in smb_disable()
384 if (csdev->refcnt != 1) in smb_update_buffer()
488 if (IS_ERR(drvdata->csdev)) in smb_register_sink()
489 return PTR_ERR(drvdata->csdev); in smb_register_sink()
[all …]
H A Dcoresight-replicator.c43 struct coresight_device *csdev; member
50 struct coresight_device *csdev = drvdata->csdev; in dynamic_replicator_reset() local
54 if (!coresight_claim_device_unlocked(csdev)) { in dynamic_replicator_reset()
57 coresight_disclaim_device_unlocked(csdev); in dynamic_replicator_reset()
77 struct coresight_device *csdev = drvdata->csdev; in dynamic_replicator_enable() local
92 rc = coresight_claim_device_unlocked(csdev); in dynamic_replicator_enable()
149 struct coresight_device *csdev = drvdata->csdev; in dynamic_replicator_disable() local
170 coresight_disclaim_device_unlocked(csdev); in dynamic_replicator_disable()
288 if (IS_ERR(drvdata->csdev)) { in replicator_probe()
289 ret = PTR_ERR(drvdata->csdev); in replicator_probe()
[all …]
H A Dcoresight-tpiu.c64 struct coresight_device *csdev; member
83 tpiu_enable_hw(&csdev->access); in tpiu_enable()
84 csdev->refcnt++; in tpiu_enable()
85 dev_dbg(&csdev->dev, "TPIU enabled\n"); in tpiu_enable()
110 csdev->refcnt--; in tpiu_disable()
111 if (csdev->refcnt) in tpiu_disable()
114 tpiu_disable_hw(&csdev->access); in tpiu_disable()
116 dev_dbg(&csdev->dev, "TPIU disabled\n"); in tpiu_disable()
182 if (!IS_ERR(drvdata->csdev)) in __tpiu_probe()
185 return PTR_ERR(drvdata->csdev); in __tpiu_probe()
[all …]
H A Dcoresight-etm-perf.c363 if (!csdev) { in etm_setup_aux()
463 if (!csdev) in etm_event_start()
504 if (source_ops(csdev)->enable(csdev, event, CS_MODE_PERF, path)) in etm_event_start()
590 if (!csdev) in etm_event_stop()
743 int ret = 0, cpu = source_ops(csdev)->cpu_id(csdev); in etm_perf_symlink()
823 if (csdev->ea != NULL) in etm_perf_add_symlink_sink()
828 if (IS_ERR(csdev->ea)) { in etm_perf_add_symlink_sink()
829 err = PTR_ERR(csdev->ea); in etm_perf_add_symlink_sink()
830 csdev->ea = NULL; in etm_perf_add_symlink_sink()
851 if (!csdev->ea) in etm_perf_del_symlink_sink()
[all …]
H A Dcoresight-catu.h66 struct coresight_device *csdev; member
74 return csdev_access_relaxed_read32(&drvdata->csdev->access, offset); \
79 csdev_access_relaxed_write32(&drvdata->csdev->access, val, offset); \
86 return csdev_access_relaxed_read_pair(&drvdata->csdev->access, lo_off, hi_off); \
91 csdev_access_relaxed_write_pair(&drvdata->csdev->access, val, lo_off, hi_off); \
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()
H A Dcoresight-ctcu-core.c97 struct ctcu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in __ctcu_set_etr_traceid()
146 dev_err(&csdev->dev, "Invalid sink device or trace ID\n"); in ctcu_set_etr_traceid()
150 port_num = ctcu_get_active_port(sink, csdev); in ctcu_set_etr_traceid()
154 dev_dbg(&csdev->dev, "traceid is %d\n", traceid); in ctcu_set_etr_traceid()
156 return __ctcu_set_etr_traceid(csdev, traceid, port_num, enable); in ctcu_set_etr_traceid()
163 return ctcu_set_etr_traceid(csdev, path, true); in ctcu_enable()
170 return ctcu_set_etr_traceid(csdev, path, false); in ctcu_disable()
235 drvdata->csdev = coresight_register(&desc); in ctcu_probe()
236 if (IS_ERR(drvdata->csdev)) { in ctcu_probe()
240 return PTR_ERR(drvdata->csdev); in ctcu_probe()
[all …]
H A Dcoresight-funnel.c48 struct coresight_device *csdev; member
57 struct coresight_device *csdev = drvdata->csdev; in dynamic_funnel_enable_hw() local
64 rc = coresight_claim_device_unlocked(csdev); in dynamic_funnel_enable_hw()
100 dev_dbg(&csdev->dev, "FUNNEL inport %d enabled\n", in funnel_enable()
109 struct coresight_device *csdev = drvdata->csdev; in dynamic_funnel_disable_hw() local
119 coresight_disclaim_device_unlocked(csdev); in dynamic_funnel_disable_hw()
141 dev_dbg(&csdev->dev, "FUNNEL inport %d disabled\n", in funnel_disable()
275 drvdata->csdev = coresight_register(&desc); in funnel_probe()
276 if (IS_ERR(drvdata->csdev)) { in funnel_probe()
277 ret = PTR_ERR(drvdata->csdev); in funnel_probe()
[all …]
H A Dcoresight-stm.c137 struct coresight_device *csdev; member
205 if (!coresight_take_mode(csdev, mode)) { in stm_enable()
210 pm_runtime_get_sync(csdev->dev.parent); in stm_enable()
277 pm_runtime_put(csdev->dev.parent); in stm_disable()
345 if (!drvdata || !drvdata->csdev) in stm_generic_link()
356 if (!drvdata || !drvdata->csdev) in stm_generic_unlink()
911 if (IS_ERR(drvdata->csdev)) { in __stm_probe()
912 ret = PTR_ERR(drvdata->csdev); in __stm_probe()
924 stm_csdev_name(drvdata->csdev)); in __stm_probe()
928 coresight_unregister(drvdata->csdev); in __stm_probe()
[all …]
H A Dcoresight-priv.h141 coresight_find_default_sink(struct coresight_device *csdev);
142 struct coresight_path *coresight_build_path(struct coresight_device *csdev,
147 int coresight_create_conns_sysfs_group(struct coresight_device *csdev);
148 void coresight_remove_conns_sysfs_group(struct coresight_device *csdev);
154 u32 coresight_get_sink_id(struct coresight_device *csdev);
167 void (*add)(struct coresight_device *csdev);
168 void (*remove)(struct coresight_device *csdev);
241 void coresight_release_platform_data(struct coresight_device *csdev,
246 void coresight_add_helper(struct coresight_device *csdev,
249 void coresight_set_percpu_sink(int cpu, struct coresight_device *csdev);
[all …]
H A Dcoresight-catu.c23 #define csdev_to_catu_drvdata(csdev) \ argument
24 dev_get_drvdata(csdev->dev.parent)
334 struct coresight_device *csdev; in catu_alloc_etr_buf() local
339 if (!csdev) in catu_alloc_etr_buf()
406 struct device *dev = &drvdata->csdev->dev; in catu_enable_hw()
407 struct coresight_device *csdev = drvdata->csdev; in catu_enable_hw() local
473 struct device *dev = &drvdata->csdev->dev; in catu_disable_hw()
474 struct coresight_device *csdev = drvdata->csdev; in catu_disable_hw() local
562 if (IS_ERR(drvdata->csdev)) in __catu_probe()
563 ret = PTR_ERR(drvdata->csdev); in __catu_probe()
[all …]
H A Dcoresight-etm4x-core.c200 if (!WARN_ON(!drvdata->csdev)) in etm4_os_unlock()
206 if (WARN_ON(!drvdata->csdev)) in etm4_os_lock()
438 struct coresight_device *csdev = drvdata->csdev; in etm4_enable_hw() local
892 struct coresight_device *csdev = drvdata->csdev; in etm4_disable_hw() local
962 dev_dbg(&drvdata->csdev->dev, in etm4_disable_hw()
1051 etm4_disable_sysfs(csdev); in etm4_disable()
1727 struct coresight_device *csdev = drvdata->csdev; in __etm4_cpu_save() local
1731 if (WARN_ON(!csdev)) in __etm4_cpu_save()
1734 etm_dev = &csdev->dev; in __etm4_cpu_save()
1735 csa = &csdev->access; in __etm4_cpu_save()
[all …]
H 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);
H A Dcoresight-tmc-core.c40 struct coresight_device *csdev = drvdata->csdev; in tmc_wait_for_tmcready() local
45 dev_err(&csdev->dev, in tmc_wait_for_tmcready()
54 struct coresight_device *csdev = drvdata->csdev; in tmc_flush_and_stop() local
65 dev_err(&csdev->dev, in tmc_flush_and_stop()
124 dev_dbg(&drvdata->csdev->dev, in is_tmc_crashdata_valid()
135 dev_dbg(&drvdata->csdev->dev, in is_tmc_crashdata_valid()
142 dev_err(&drvdata->csdev->dev, in is_tmc_crashdata_valid()
148 dev_err(&drvdata->csdev->dev, in is_tmc_crashdata_valid()
210 dev_dbg(&drvdata->csdev->dev, in tmc_prepare_crashdata()
316 dev_dbg(&drvdata->csdev->dev, in tmc_read()
[all …]
H A Dcoresight-tmc-etr.c629 flat_buf->dev = &drvdata->csdev->dev; in tmc_etr_alloc_flat_buf()
1047 dev_dbg(&drvdata->csdev->dev, in tmc_sync_etr_buf()
1072 dev_err(&drvdata->csdev->dev, in __tmc_etr_enable_hw()
1310 csdev->refcnt++; in tmc_enable_etr_sink_sysfs()
1317 csdev->refcnt++; in tmc_enable_etr_sink_sysfs()
1643 if (csdev->refcnt != 1) { in tmc_update_etr_buffer()
1755 csdev->refcnt++; in tmc_enable_etr_sink_perf()
1765 csdev->refcnt++; in tmc_enable_etr_sink_perf()
1798 csdev->refcnt--; in tmc_disable_etr_sink()
1799 if (csdev->refcnt) { in tmc_disable_etr_sink()
[all …]
/linux-6.15/drivers/scsi/device_handler/
H 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 …]
/linux-6.15/include/linux/
H A Dcoresight.h349 #define coresight_ops(csdev) csdev->ops argument
350 #define source_ops(csdev) csdev->ops->source_ops argument
351 #define sink_ops(csdev) csdev->ops->sink_ops argument
352 #define link_ops(csdev) csdev->ops->link_ops argument
353 #define helper_ops(csdev) csdev->ops->helper_ops argument
354 #define ect_ops(csdev) csdev->ops->ect_ops argument
355 #define panic_ops(csdev) csdev->ops->panic_ops argument
627 return csdev && (csdev->type == CORESIGHT_DEV_TYPE_SOURCE); in coresight_is_device_source()
632 return csdev && coresight_is_device_source(csdev) && in coresight_is_percpu_source()
638 return csdev && (csdev->type == CORESIGHT_DEV_TYPE_SINK) && in coresight_is_percpu_sink()
[all …]

12