Home
last modified time | relevance | path

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

/linux-6.15/drivers/perf/arm_cspmu/
H A Darm_cspmu.c364 cspmu->impl.pmiidr = readl(cspmu->base0 + PMIIDR); in arm_cspmu_init_impl_ops()
459 cspmu->identifier = impl_ops->get_identifier(cspmu); in arm_cspmu_alloc_attr_groups()
460 cspmu->name = impl_ops->get_name(cspmu); in arm_cspmu_alloc_attr_groups()
462 if (!cspmu->identifier || !cspmu->name) in arm_cspmu_alloc_attr_groups()
550 ret = cspmu->impl.ops.validate_event(cspmu, event); in arm_cspmu_get_event_idx()
798 cspmu->impl.ops.set_cc_filter(cspmu, event); in arm_cspmu_start()
801 cspmu->impl.ops.set_ev_filter(cspmu, event); in arm_cspmu_start()
886 if (!cspmu) in arm_cspmu_alloc()
921 cspmu->base1 = cspmu->base0; in arm_cspmu_init_mmio()
930 cspmu->pmcfgr = readl(cspmu->base0 + PMCFGR); in arm_cspmu_init_mmio()
[all …]
H A Dampere_cspmu.c18 #define to_ampere_cspmu_ctx(cspmu) ((struct ampere_cspmu_ctx *)(cspmu->impl.ctx)) argument
153 writel(threshold, cspmu->base0 + PMAUXR0); in ampere_cspmu_set_ev_filter()
154 writel(rank, cspmu->base0 + PMAUXR1); in ampere_cspmu_set_ev_filter()
155 writel(bank, cspmu->base0 + PMAUXR2); in ampere_cspmu_set_ev_filter()
181 idx = find_first_bit(cspmu->hw_events.used_ctrs, in ampere_cspmu_validate_event()
182 cspmu->cycle_counter_logical_idx); in ampere_cspmu_validate_event()
185 if (idx == cspmu->cycle_counter_logical_idx) in ampere_cspmu_validate_event()
188 curr = cspmu->hw_events.events[idx]; in ampere_cspmu_validate_event()
196 struct device *dev = cspmu->dev; in ampere_cspmu_format_name()
208 struct device *dev = cspmu->dev; in ampere_cspmu_init_ops()
[all …]
H A Dnvidia_cspmu.c30 #define to_nv_cspmu_ctx(cspmu) ((struct nv_cspmu_ctx *)(cspmu->impl.ctx)) argument
151 nv_cspmu_get_event_attrs(const struct arm_cspmu *cspmu) in nv_cspmu_get_event_attrs() argument
159 nv_cspmu_get_format_attrs(const struct arm_cspmu *cspmu) in nv_cspmu_get_format_attrs() argument
167 nv_cspmu_get_name(const struct arm_cspmu *cspmu) in nv_cspmu_get_name() argument
193 writel(filter, cspmu->base0 + offset); in nv_cspmu_set_ev_filter()
201 writel(filter, cspmu->base0 + PMCCFILTR); in nv_cspmu_set_cc_filter()
288 struct device *dev = cspmu->dev; in nv_cspmu_format_name()
313 static int nv_cspmu_init_ops(struct arm_cspmu *cspmu) in nv_cspmu_init_ops() argument
317 struct device *dev = cspmu->dev; in nv_cspmu_init_ops()
335 ctx->name = nv_cspmu_format_name(cspmu, match); in nv_cspmu_init_ops()
[all …]
H A Darm_cspmu.h144 struct attribute **(*get_event_attrs)(const struct arm_cspmu *cspmu);
146 struct attribute **(*get_format_attrs)(const struct arm_cspmu *cspmu);
148 const char *(*get_identifier)(const struct arm_cspmu *cspmu);
150 const char *(*get_name)(const struct arm_cspmu *cspmu);
156 void (*set_cc_filter)(struct arm_cspmu *cspmu,
158 void (*set_ev_filter)(struct arm_cspmu *cspmu,
161 int (*validate_event)(struct arm_cspmu *cspmu,
177 int (*impl_init_ops)(struct arm_cspmu *cspmu);