/linux/drivers/hwtracing/coresight/ |
A D | coresight-core.c | 104 trace_id = source_ops(csdev)->trace_id(csdev); in coresight_id_match() 353 ret = sink_ops(csdev)->disable(csdev); in coresight_disable_sink() 436 source_ops(csdev)->trace_id(csdev)); in coresight_enable_source() 471 source_ops(csdev)->disable(csdev, NULL); in coresight_disable_source() 493 csdev = nd->csdev; in coresight_disable_path_from() 545 csdev = nd->csdev; in coresight_enable_path() 839 node->csdev = csdev; in _coresight_build_path() 882 csdev = nd->csdev; in coresight_release_path() 1025 csdev->def_sink = per_cpu(csdev_sink, source_ops(csdev)->cpu_id(csdev)); in coresight_find_default_sink() 1145 cpu = source_ops(csdev)->cpu_id(csdev); in coresight_enable() [all …]
|
A D | coresight-syscfg.c | 49 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() 460 csdev_item->csdev = csdev; in cscfg_list_add_csdev() 478 if (csdev_item->csdev == csdev) { in cscfg_list_remove_csdev() 513 cscfg_list_remove_csdev(csdev); in cscfg_register_csdev() 517 ret = cscfg_add_cfgs_csdev(csdev); in cscfg_register_csdev() 519 cscfg_list_remove_csdev(csdev); in cscfg_register_csdev() 539 cscfg_list_remove_csdev(csdev); in cscfg_unregister_csdev() 707 if (csdev->active_cscfg_ctxt) in cscfg_csdev_enable_active_config() [all …]
|
A D | coresight-tmc-etf.c | 91 coresight_disclaim_device(drvdata->csdev); in tmc_etb_disable_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() 187 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs() 210 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs() 265 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_perf() 274 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_perf() 289 ret = tmc_enable_etf_sink_sysfs(csdev); in tmc_enable_etf_sink() 319 if (atomic_dec_return(csdev->refcnt)) { in tmc_disable_etf_sink() 359 atomic_inc(&csdev->refcnt[0]); in tmc_enable_etf_link() [all …]
|
A D | coresight-cti-core.c | 43 dev_get_drvdata(csdev->dev.parent) 157 struct coresight_device *csdev = drvdata->csdev; in cti_disable_hw() local 254 tc->con_dev = csdev; in cti_add_connection_entry() 259 if (csdev) in cti_add_connection_entry() 528 tc->con_dev = csdev; in cti_match_fixup_csdev() 572 csdev->ect_dev = ect_item->csdev; in cti_add_assoc_to_csdev() 591 if (csdev->ect_dev) { in cti_remove_assoc_from_csdev() 595 if (tc->con_dev == csdev) { in cti_remove_assoc_from_csdev() 601 csdev->ect_dev = NULL; in cti_remove_assoc_from_csdev() 631 drvdata->csdev); in cti_update_conn_xrefs() [all …]
|
A D | coresight-replicator.c | 41 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() 285 if (IS_ERR(drvdata->csdev)) { in replicator_probe() 286 ret = PTR_ERR(drvdata->csdev); in replicator_probe() [all …]
|
A D | coresight-etm3x-core.c | 166 dev_err(&drvdata->csdev->dev, in etm_set_prog() 185 dev_err(&drvdata->csdev->dev, in etm_clr_prog() 361 struct coresight_device *csdev = drvdata->csdev; in etm_enable_hw() local 549 ret = etm_enable_sysfs(csdev); in etm_enable() 570 struct coresight_device *csdev = drvdata->csdev; in etm_disable_hw() local 586 dev_dbg(&drvdata->csdev->dev, in etm_disable_hw() 654 etm_disable_sysfs(csdev); in etm_disable() 657 etm_disable_perf(csdev); in etm_disable() 886 if (IS_ERR(drvdata->csdev)) in etm_probe() 887 return PTR_ERR(drvdata->csdev); in etm_probe() [all …]
|
A D | coresight-etb10.c | 86 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() 789 if (IS_ERR(drvdata->csdev)) in etb_probe() [all …]
|
A D | coresight-etm-perf.c | 344 if (!csdev) { in etm_setup_aux() 434 if (!csdev) in etm_event_start() 475 if (source_ops(csdev)->enable(csdev, event, CS_MODE_PERF)) in etm_event_start() 544 if (!csdev) in etm_event_stop() 556 source_ops(csdev)->disable(csdev, event); in etm_event_stop() 697 int ret = 0, cpu = source_ops(csdev)->cpu_id(csdev); in etm_perf_symlink() 777 if (csdev->ea != NULL) in etm_perf_add_symlink_sink() 782 if (IS_ERR(csdev->ea)) { in etm_perf_add_symlink_sink() 784 csdev->ea = NULL; in etm_perf_add_symlink_sink() 805 if (!csdev->ea) in etm_perf_del_symlink_sink() [all …]
|
A D | coresight-tpiu.c | 60 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 D | coresight-funnel.c | 46 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 D | coresight-sysfs.c | 20 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 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 337 if (!csdev) in catu_alloc_etr_buf() 414 struct device *dev = &drvdata->csdev->dev; in catu_enable_hw() 415 struct coresight_device *csdev = drvdata->csdev; in catu_enable_hw() local 469 struct device *dev = &drvdata->csdev->dev; in catu_disable_hw() 470 struct coresight_device *csdev = drvdata->csdev; in catu_disable_hw() local 566 if (IS_ERR(drvdata->csdev)) in catu_probe() 567 ret = PTR_ERR(drvdata->csdev); in catu_probe() [all …]
|
A D | coresight-etm4x-core.c | 195 if (!WARN_ON(!drvdata->csdev)) in etm4_os_unlock() 201 if (WARN_ON(!drvdata->csdev)) in etm4_os_lock() 376 struct coresight_device *csdev = drvdata->csdev; in etm4_enable_hw() local 783 struct coresight_device *csdev = drvdata->csdev; in etm4_disable_hw() local 838 dev_dbg(&drvdata->csdev->dev, in etm4_disable_hw() 916 etm4_disable_sysfs(csdev); in etm4_disable() 1593 struct coresight_device *csdev = drvdata->csdev; in __etm4_cpu_save() local 1597 if (WARN_ON(!csdev)) in __etm4_cpu_save() 1600 etm_dev = &csdev->dev; in __etm4_cpu_save() 1601 csa = &csdev->access; in __etm4_cpu_save() [all …]
|
A D | coresight-syscfg.h | 53 struct coresight_device *csdev; member 71 int cscfg_register_csdev(struct coresight_device *csdev, u32 match_flags, 73 void cscfg_unregister_csdev(struct coresight_device *csdev); 76 void cscfg_csdev_reset_feats(struct coresight_device *csdev); 77 int cscfg_csdev_enable_active_config(struct coresight_device *csdev, 79 void cscfg_csdev_disable_active_config(struct coresight_device *csdev);
|
A D | coresight-tmc-core.c | 36 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() 188 dev_dbg(&drvdata->csdev->dev, in tmc_read() 544 if (IS_ERR(drvdata->csdev)) { in tmc_probe() 545 ret = PTR_ERR(drvdata->csdev); in tmc_probe() 554 coresight_unregister(drvdata->csdev); in tmc_probe() [all …]
|
A D | coresight-etm-perf.h | 64 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
|
A D | coresight-priv.h | 156 coresight_find_default_sink(struct coresight_device *csdev); 157 struct list_head *coresight_build_path(struct coresight_device *csdev, 162 int coresight_create_conns_sysfs_group(struct coresight_device *csdev); 163 void coresight_remove_conns_sysfs_group(struct coresight_device *csdev); 179 void (*add)(struct coresight_device *csdev); 180 void (*remove)(struct coresight_device *csdev); 228 void coresight_release_platform_data(struct coresight_device *csdev, 232 void coresight_set_assoc_ectdev_mutex(struct coresight_device *csdev, 235 void coresight_set_percpu_sink(int cpu, struct coresight_device *csdev);
|
A D | coresight-config.c | 83 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 D | coresight-stm.c | 134 struct coresight_device *csdev; member 209 pm_runtime_get_sync(csdev->dev.parent); in stm_enable() 261 struct csdev_access *csa = &csdev->access; in stm_disable() 276 pm_runtime_put(csdev->dev.parent); in stm_disable() 341 if (!drvdata || !drvdata->csdev) in stm_generic_link() 344 return coresight_enable(drvdata->csdev); in stm_generic_link() 352 if (!drvdata || !drvdata->csdev) in stm_generic_unlink() 355 coresight_disable(drvdata->csdev); in stm_generic_unlink() 940 if (IS_ERR(drvdata->csdev)) { in stm_probe() 941 ret = PTR_ERR(drvdata->csdev); in stm_probe() [all …]
|
A D | coresight-tmc-etr.c | 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() 868 struct device *dev = &drvdata->csdev->dev; in tmc_alloc_etr_buf() 972 dev_dbg(&drvdata->csdev->dev, in tmc_sync_etr_buf() 1199 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_sysfs() 1216 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_sysfs() 1525 if (atomic_read(csdev->refcnt) != 1) { in tmc_update_etr_buffer() 1637 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_perf() 1647 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_perf() 1660 return tmc_enable_etr_sink_sysfs(csdev); in tmc_enable_etr_sink() [all …]
|
A D | coresight-cti-platform.c | 95 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()
|
A 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()
|
A D | coresight-cti.h | 176 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/include/linux/ |
A D | coresight.h | 279 #define source_ops(csdev) csdev->ops->source_ops argument 280 #define sink_ops(csdev) csdev->ops->sink_ops argument 281 #define link_ops(csdev) csdev->ops->link_ops argument 282 #define helper_ops(csdev) csdev->ops->helper_ops argument 283 #define ect_ops(csdev) csdev->ops->ect_ops argument 296 int (*disable)(struct coresight_device *csdev); 328 int (*cpu_id)(struct coresight_device *csdev); 330 int (*enable)(struct coresight_device *csdev, 357 int (*enable)(struct coresight_device *csdev); 470 return csdev && (csdev->type == CORESIGHT_DEV_TYPE_SOURCE) && in coresight_is_percpu_source() [all …]
|
/linux/drivers/scsi/device_handler/ |
A D | scsi_dh_emc.c | 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() 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() 345 struct clariion_dh_data *csdev) in clariion_std_inquiry() argument 410 csdev->port, lun_state[csdev->lun_state], in clariion_activate() [all …]
|