Searched refs:cspmu (Results 1 – 4 of 4) sorted by relevance
160 static inline bool supports_cycle_counter(const struct arm_cspmu *cspmu) in supports_cycle_counter() argument162 return (cspmu->pmcfgr & PMCFGR_CC); in supports_cycle_counter()166 static inline u32 counter_size(const struct arm_cspmu *cspmu) in counter_size() argument168 return FIELD_GET(PMCFGR_SIZE, cspmu->pmcfgr) + 1; in counter_size()172 static inline u64 counter_mask(const struct arm_cspmu *cspmu) in counter_mask() argument174 return GENMASK_ULL(counter_size(cspmu) - 1, 0); in counter_mask()178 static inline bool use_64b_counter_reg(const struct arm_cspmu *cspmu) in use_64b_counter_reg() argument180 return (counter_size(cspmu) > 32); in use_64b_counter_reg()200 arm_cspmu_get_event_attrs(const struct arm_cspmu *cspmu) in arm_cspmu_get_event_attrs() argument204 attrs = devm_kmemdup(cspmu->dev, arm_cspmu_event_attrs, in arm_cspmu_get_event_attrs()[all …]
28 #define to_nv_cspmu_ctx(cspmu) ((struct nv_cspmu_ctx *)(cspmu->impl.ctx)) argument212 nv_cspmu_get_event_attrs(const struct arm_cspmu *cspmu) in nv_cspmu_get_event_attrs() argument214 const struct nv_cspmu_ctx *ctx = to_nv_cspmu_ctx(cspmu); in nv_cspmu_get_event_attrs()220 nv_cspmu_get_format_attrs(const struct arm_cspmu *cspmu) in nv_cspmu_get_format_attrs() argument222 const struct nv_cspmu_ctx *ctx = to_nv_cspmu_ctx(cspmu); in nv_cspmu_get_format_attrs()228 nv_cspmu_get_name(const struct arm_cspmu *cspmu) in nv_cspmu_get_name() argument230 const struct nv_cspmu_ctx *ctx = to_nv_cspmu_ctx(cspmu); in nv_cspmu_get_name()325 static char *nv_cspmu_format_name(const struct arm_cspmu *cspmu, in nv_cspmu_format_name() argument329 struct device *dev = cspmu->dev; in nv_cspmu_format_name()335 const int cpu = cpumask_first(&cspmu->associated_cpus); in nv_cspmu_format_name()[all …]
91 struct attribute **(*get_event_attrs)(const struct arm_cspmu *cspmu);93 struct attribute **(*get_format_attrs)(const struct arm_cspmu *cspmu);95 const char *(*get_identifier)(const struct arm_cspmu *cspmu);97 const char *(*get_name)(const struct arm_cspmu *cspmu);
15 int nv_cspmu_init_ops(struct arm_cspmu *cspmu);