Home
last modified time | relevance | path

Searched refs:feat_csdev (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/hwtracing/coresight/
Dcoresight-config.c56 static void cscfg_init_reg_param(struct cscfg_feature_csdev *feat_csdev, in cscfg_init_reg_param() argument
63 param_csdev = &feat_csdev->params_csdev[reg_desc->param_idx]; in cscfg_init_reg_param()
74 static int cscfg_set_on_enable(struct cscfg_feature_csdev *feat_csdev) in cscfg_set_on_enable() argument
79 spin_lock_irqsave(feat_csdev->drv_spinlock, flags); in cscfg_set_on_enable()
80 for (i = 0; i < feat_csdev->nr_regs; i++) in cscfg_set_on_enable()
81 cscfg_set_reg(&feat_csdev->regs_csdev[i]); in cscfg_set_on_enable()
82 spin_unlock_irqrestore(feat_csdev->drv_spinlock, flags); in cscfg_set_on_enable()
83 dev_dbg(&feat_csdev->csdev->dev, "Feature %s: %s", in cscfg_set_on_enable()
84 feat_csdev->feat_desc->name, "set on enable"); in cscfg_set_on_enable()
89 static void cscfg_save_on_disable(struct cscfg_feature_csdev *feat_csdev) in cscfg_save_on_disable() argument
[all …]
Dcoresight-syscfg.c35 struct cscfg_feature_csdev *feat_csdev = NULL; in cscfg_get_feat_csdev() local
37 list_for_each_entry(feat_csdev, &csdev->feature_csdev_list, node) { in cscfg_get_feat_csdev()
38 if (strcmp(feat_csdev->feat_desc->name, name) == 0) in cscfg_get_feat_csdev()
39 return feat_csdev; in cscfg_get_feat_csdev()
67 struct cscfg_feature_csdev *feat_csdev; in cscfg_add_csdev_cfg() local
74 feat_csdev = cscfg_get_feat_csdev(csdev, config_desc->feat_ref_names[i]); in cscfg_add_csdev_cfg()
75 if (feat_csdev) { in cscfg_add_csdev_cfg()
87 config_csdev->feats_csdev[config_csdev->nr_feat++] = feat_csdev; in cscfg_add_csdev_cfg()
125 struct cscfg_feature_csdev *feat_csdev = NULL; in cscfg_alloc_csdev_feat() local
129 feat_csdev = devm_kzalloc(dev, sizeof(struct cscfg_feature_csdev), GFP_KERNEL); in cscfg_alloc_csdev_feat()
[all …]
Dcoresight-etm4x-cfg.c148 struct cscfg_feature_csdev *feat_csdev) in etm4_cfg_load_feature() argument
152 const struct cscfg_feature_desc *feat_desc = feat_csdev->feat_desc; in etm4_cfg_load_feature()
161 feat_csdev->drv_spinlock = &drvdata->spinlock; in etm4_cfg_load_feature()
164 for (i = 0; i < feat_csdev->nr_regs && !err; i++) { in etm4_cfg_load_feature()
166 err = etm4_cfg_map_reg_offset(drvdata, &feat_csdev->regs_csdev[i], offset); in etm4_cfg_load_feature()
Dcoresight-config.h179 struct cscfg_feature_csdev *feat_csdev; member
250 struct cscfg_feature_csdev *feat_csdev);
260 void cscfg_reset_feat(struct cscfg_feature_csdev *feat_csdev);