Searched refs:cspmu (Results 1 – 4 of 4) sorted by relevance
411 cspmu->impl.pmiidr = readl(cspmu->base0 + PMIIDR); in arm_cspmu_init_impl_ops()506 cspmu->identifier = impl_ops->get_identifier(cspmu); in arm_cspmu_alloc_attr_groups()507 cspmu->name = impl_ops->get_name(cspmu); in arm_cspmu_alloc_attr_groups()509 if (!cspmu->identifier || !cspmu->name) in arm_cspmu_alloc_attr_groups()597 ret = cspmu->impl.ops.validate_event(cspmu, event); in arm_cspmu_get_event_idx()848 cspmu->impl.ops.set_ev_filter(cspmu, hwc, filter); in arm_cspmu_start()933 if (!cspmu) in arm_cspmu_alloc()968 cspmu->base1 = cspmu->base0; in arm_cspmu_init_mmio()977 cspmu->pmcfgr = readl(cspmu->base0 + PMCFGR); in arm_cspmu_init_mmio()1230 if (!cspmu) in arm_cspmu_device_probe()[all …]
18 #define to_ampere_cspmu_ctx(cspmu) ((struct ampere_cspmu_ctx *)(cspmu->impl.ctx)) argument157 cspmu->cycle_counter_logical_idx); in ampere_cspmu_set_ev_filter()159 event = cspmu->hw_events.events[idx]; in ampere_cspmu_set_ev_filter()165 writel(threshold, cspmu->base0 + PMAUXR0); in ampere_cspmu_set_ev_filter()166 writel(rank, cspmu->base0 + PMAUXR1); in ampere_cspmu_set_ev_filter()167 writel(bank, cspmu->base0 + PMAUXR2); in ampere_cspmu_set_ev_filter()194 cspmu->cycle_counter_logical_idx); in ampere_cspmu_validate_event()200 curr = cspmu->hw_events.events[idx]; in ampere_cspmu_validate_event()208 struct device *dev = cspmu->dev; in ampere_cspmu_format_name()220 struct device *dev = cspmu->dev; in ampere_cspmu_init_ops()[all …]
29 #define to_nv_cspmu_ctx(cspmu) ((struct nv_cspmu_ctx *)(cspmu->impl.ctx)) argument213 nv_cspmu_get_event_attrs(const struct arm_cspmu *cspmu) in nv_cspmu_get_event_attrs() argument215 const struct nv_cspmu_ctx *ctx = to_nv_cspmu_ctx(cspmu); in nv_cspmu_get_event_attrs()221 nv_cspmu_get_format_attrs(const struct arm_cspmu *cspmu) in nv_cspmu_get_format_attrs() argument229 nv_cspmu_get_name(const struct arm_cspmu *cspmu) in nv_cspmu_get_name() argument330 struct device *dev = cspmu->dev; in nv_cspmu_format_name()355 static int nv_cspmu_init_ops(struct arm_cspmu *cspmu) in nv_cspmu_init_ops() argument359 struct device *dev = cspmu->dev; in nv_cspmu_init_ops()360 struct arm_cspmu_impl_ops *impl_ops = &cspmu->impl.ops; in nv_cspmu_init_ops()377 ctx->name = nv_cspmu_format_name(cspmu, match); in nv_cspmu_init_ops()[all …]
95 struct attribute **(*get_event_attrs)(const struct arm_cspmu *cspmu);97 struct attribute **(*get_format_attrs)(const struct arm_cspmu *cspmu);99 const char *(*get_identifier)(const struct arm_cspmu *cspmu);101 const char *(*get_name)(const struct arm_cspmu *cspmu);109 void (*set_ev_filter)(struct arm_cspmu *cspmu,112 int (*validate_event)(struct arm_cspmu *cspmu,128 int (*impl_init_ops)(struct arm_cspmu *cspmu);