Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/hwtracing/coresight/
Dcoresight-core.c35 struct coresight_device *csdev; member
66 struct coresight_device *csdev = container_of(_dev, struct coresight_device, dev); in coresight_simple_show_pair() local
71 val = csdev_access_relaxed_read_pair(&csdev->access, cs_attr->lo_off, cs_attr->hi_off); in coresight_simple_show_pair()
80 struct coresight_device *csdev = container_of(_dev, struct coresight_device, dev); in coresight_simple_show32() local
85 val = csdev_access_relaxed_read32(&csdev->access, cs_attr->off); in coresight_simple_show32()
103 void coresight_set_percpu_sink(int cpu, struct coresight_device *csdev) in coresight_set_percpu_sink() argument
105 per_cpu(csdev_sink, cpu) = csdev; in coresight_set_percpu_sink()
118 struct coresight_device *csdev, *i_csdev; in coresight_id_match() local
120 csdev = data; in coresight_id_match()
127 if (i_csdev == csdev || !i_csdev->enable || in coresight_id_match()
[all …]
Dcoresight-syscfg.c33 cscfg_get_feat_csdev(struct coresight_device *csdev, const char *name) in cscfg_get_feat_csdev() argument
37 list_for_each_entry(feat_csdev, &csdev->feature_csdev_list, node) { in cscfg_get_feat_csdev()
46 cscfg_alloc_csdev_cfg(struct coresight_device *csdev, int nr_feats) in cscfg_alloc_csdev_cfg() argument
49 struct device *dev = csdev->dev.parent; in cscfg_alloc_csdev_cfg()
58 config_csdev->csdev = csdev; in cscfg_alloc_csdev_cfg()
63 static int cscfg_add_csdev_cfg(struct coresight_device *csdev, in cscfg_add_csdev_cfg() argument
74 feat_csdev = cscfg_get_feat_csdev(csdev, config_desc->feat_ref_names[i]); in cscfg_add_csdev_cfg()
81 config_csdev = cscfg_alloc_csdev_cfg(csdev, in cscfg_add_csdev_cfg()
92 spin_lock_irqsave(&csdev->cscfg_csdev_lock, flags); in cscfg_add_csdev_cfg()
93 list_add(&config_csdev->node, &csdev->config_csdev_list); in cscfg_add_csdev_cfg()
[all …]
Dcoresight-tmc-etf.c16 static int tmc_set_etf_buffer(struct coresight_device *csdev,
40 int rc = coresight_claim_device(drvdata->csdev); in tmc_etb_enable_hw()
91 coresight_disclaim_device(drvdata->csdev); in tmc_etb_disable_hw()
112 int rc = coresight_claim_device(drvdata->csdev); in tmc_etf_enable_hw()
123 struct coresight_device *csdev = drvdata->csdev; in tmc_etf_disable_hw() local
129 coresight_disclaim_device_unlocked(csdev); in tmc_etf_disable_hw()
151 static int tmc_enable_etf_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etf_sink_sysfs() argument
157 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_sink_sysfs()
187 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs()
210 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs()
[all …]
Dcoresight-cti-core.c42 #define csdev_to_cti_drvdata(csdev) \ argument
43 dev_get_drvdata(csdev->dev.parent)
103 rc = coresight_claim_device(drvdata->csdev); in cti_enable_hw()
136 if (coresight_claim_device(drvdata->csdev)) in cti_cpuhp_enable_hw()
153 struct coresight_device *csdev = drvdata->csdev; in cti_disable_hw() local
171 coresight_disclaim_device_unlocked(csdev); in cti_disable_hw()
244 struct coresight_device *csdev, in cti_add_connection_entry() argument
249 tc->con_dev = csdev; in cti_add_connection_entry()
254 if (csdev) in cti_add_connection_entry()
255 tc->con_dev_name = dev_name(&csdev->dev); in cti_add_connection_entry()
[all …]
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
90 rc = coresight_claim_device_unlocked(csdev); in dynamic_replicator_enable()
117 static int replicator_enable(struct coresight_device *csdev, int inport, in replicator_enable() argument
121 struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in replicator_enable()
126 if (atomic_read(&csdev->refcnt[outport]) == 0) { in replicator_enable()
134 atomic_inc(&csdev->refcnt[outport]); in replicator_enable()
[all …]
Dcoresight-etm3x-core.c166 dev_err(&drvdata->csdev->dev, in etm_set_prog()
185 dev_err(&drvdata->csdev->dev, in etm_clr_prog()
365 struct coresight_device *csdev = drvdata->csdev; in etm_enable_hw() local
369 rc = coresight_claim_device_unlocked(csdev); in etm_enable_hw()
431 dev_dbg(&drvdata->csdev->dev, "cpu: %d enable smp call done: %d\n", in etm_enable_hw()
450 static int etm_cpu_id(struct coresight_device *csdev) in etm_cpu_id() argument
452 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_cpu_id()
466 etm_dev = drvdata->csdev->dev.parent; in etm_get_trace_id()
486 static int etm_trace_id(struct coresight_device *csdev) in etm_trace_id() argument
488 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_trace_id()
[all …]
Dcoresight-etb10.c86 struct coresight_device *csdev; member
97 static int etb_set_buffer(struct coresight_device *csdev,
135 int rc = coresight_claim_device(drvdata->csdev); in etb_enable_hw()
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()
202 atomic_inc(csdev->refcnt); in etb_enable_perf()
211 ret = etb_set_buffer(csdev, handle); in etb_enable_perf()
[all …]
Dcoresight-etm-perf.c338 struct coresight_device *csdev; in etm_setup_aux() local
340 csdev = per_cpu(csdev_src, cpu); in etm_setup_aux()
346 if (!csdev) { in etm_setup_aux()
366 sink = coresight_find_default_sink(csdev); in etm_setup_aux()
385 path = coresight_build_path(csdev, sink); in etm_setup_aux()
433 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_start() local
436 if (!csdev) in etm_event_start()
477 if (source_ops(csdev)->enable(csdev, event, CS_MODE_PERF)) in etm_event_start()
508 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_stop() local
546 if (!csdev) in etm_event_stop()
[all …]
Dcoresight-tpiu.c60 struct coresight_device *csdev; member
72 static int tpiu_enable(struct coresight_device *csdev, u32 mode, void *__unused) in tpiu_enable() argument
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()
96 static int tpiu_disable(struct coresight_device *csdev) in tpiu_disable() argument
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()
[all …]
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()
77 static int funnel_enable(struct coresight_device *csdev, int inport, in funnel_enable() argument
81 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_enable()
86 if (atomic_read(&csdev->refcnt[inport]) == 0) { in funnel_enable()
93 atomic_inc(&csdev->refcnt[inport]); in funnel_enable()
97 dev_dbg(&csdev->dev, "FUNNEL inport %d enabled\n", 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()
[all …]
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 …]
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
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()
393 struct csdev_access *csa = &drvdata->csdev->access; in catu_wait_for_ready()
403 struct device *dev = &drvdata->csdev->dev; in catu_enable_hw()
404 struct coresight_device *csdev = drvdata->csdev; in catu_enable_hw() local
415 rc = coresight_claim_device_unlocked(csdev); in catu_enable_hw()
[all …]
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()
Dcoresight-etm-perf.h64 int etm_perf_symlink(struct coresight_device *csdev, bool link);
65 int etm_perf_add_symlink_sink(struct coresight_device *csdev);
66 void etm_perf_del_symlink_sink(struct coresight_device *csdev);
79 static inline int etm_perf_symlink(struct coresight_device *csdev, bool link) in etm_perf_symlink() argument
81 int etm_perf_add_symlink_sink(struct coresight_device *csdev) in etm_perf_add_symlink_sink() argument
83 void etm_perf_del_symlink_sink(struct coresight_device *csdev) {} in etm_perf_del_symlink_sink() argument
Dcoresight-etm4x-core.c195 if (!WARN_ON(!drvdata->csdev)) in etm4_os_unlock()
196 etm4_os_unlock_csa(drvdata, &drvdata->csdev->access); in etm4_os_unlock()
201 if (WARN_ON(!drvdata->csdev)) in etm4_os_lock()
204 etm_write_os_lock(drvdata, &drvdata->csdev->access, 0x1); in etm4_os_lock()
223 static int etm4_cpu_id(struct coresight_device *csdev) in etm4_cpu_id() argument
225 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_cpu_id()
230 static int etm4_trace_id(struct coresight_device *csdev) in etm4_trace_id() argument
232 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm4_trace_id()
376 struct coresight_device *csdev = drvdata->csdev; in etm4_enable_hw() local
377 struct device *etm_dev = &csdev->dev; in etm4_enable_hw()
[all …]
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()
48 struct coresight_device *csdev = drvdata->csdev; in tmc_flush_and_stop() local
49 struct csdev_access *csa = &csdev->access; in tmc_flush_and_stop()
59 dev_err(&csdev->dev, in tmc_flush_and_stop()
119 dev_dbg(&drvdata->csdev->dev, "TMC read start\n"); in tmc_read_prepare()
141 dev_dbg(&drvdata->csdev->dev, "TMC read end\n"); in tmc_read_unprepare()
158 dev_dbg(&drvdata->csdev->dev, "%s: successfully opened\n", __func__); in tmc_open()
188 dev_dbg(&drvdata->csdev->dev, in tmc_read()
[all …]
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);
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);
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()
Dcoresight-stm.c134 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()
261 struct csdev_access *csa = &csdev->access; in stm_disable()
276 pm_runtime_put(csdev->dev.parent); in stm_disable()
279 dev_dbg(&csdev->dev, "STM tracing disabled\n"); in stm_disable()
[all …]
Dcoresight-cti-platform.c95 struct coresight_device **csdev) in cti_plat_get_csdev_or_node_name() argument
98 *csdev = coresight_find_csdev_by_fwnode(fwnode); in cti_plat_get_csdev_or_node_name()
99 if (*csdev) in cti_plat_get_csdev_or_node_name()
100 name = dev_name(&(*csdev)->dev); in cti_plat_get_csdev_or_node_name()
120 struct coresight_device *csdev; in cti_plat_create_v8_etm_connection() local
161 assoc_name = cti_plat_get_csdev_or_node_name(cs_fwnode, &csdev); in cti_plat_create_v8_etm_connection()
162 ret = cti_add_connection_entry(dev, drvdata, tc, csdev, assoc_name); in cti_plat_create_v8_etm_connection()
346 struct coresight_device *csdev = NULL; in cti_plat_create_connection() local
404 &csdev); in cti_plat_create_connection()
409 err = cti_add_connection_entry(dev, drvdata, tc, csdev, assoc_name); in cti_plat_create_connection()
Dcoresight-tmc-etr.c600 struct device *real_dev = drvdata->csdev->dev.parent; in tmc_etr_alloc_flat_buf()
619 flat_buf->dev = &drvdata->csdev->dev; in tmc_etr_alloc_flat_buf()
698 struct device *dev = &drvdata->csdev->dev; in tmc_etr_alloc_sg_buf()
779 struct coresight_device *tmp, *etr = drvdata->csdev; in tmc_etr_get_catu_device()
868 struct device *dev = &drvdata->csdev->dev; in tmc_alloc_etr_buf()
972 dev_dbg(&drvdata->csdev->dev, in tmc_sync_etr_buf()
1060 rc = coresight_claim_device(drvdata->csdev); in tmc_etr_enable_hw()
1154 coresight_disclaim_device(drvdata->csdev); in tmc_etr_disable_hw()
1159 static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etr_sink_sysfs() argument
1163 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etr_sink_sysfs()
[all …]
Dcoresight-cti.h176 struct coresight_device *csdev; member
214 struct coresight_device *csdev,
218 int cti_enable(struct coresight_device *csdev);
219 int cti_disable(struct coresight_device *csdev);
/Linux-v6.1/include/linux/
Dcoresight.h274 #define source_ops(csdev) csdev->ops->source_ops argument
275 #define sink_ops(csdev) csdev->ops->sink_ops argument
276 #define link_ops(csdev) csdev->ops->link_ops argument
277 #define helper_ops(csdev) csdev->ops->helper_ops argument
278 #define ect_ops(csdev) csdev->ops->ect_ops argument
290 int (*enable)(struct coresight_device *csdev, u32 mode, void *data);
291 int (*disable)(struct coresight_device *csdev);
292 void *(*alloc_buffer)(struct coresight_device *csdev,
296 unsigned long (*update_buffer)(struct coresight_device *csdev,
308 int (*enable)(struct coresight_device *csdev, int iport, int oport);
[all …]
/Linux-v6.1/drivers/scsi/device_handler/
Dscsi_dh_emc.c136 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 …]

12