Searched refs:oa_config (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/i915/selftests/ |
D | i915_perf.c | 22 struct i915_oa_config *oa_config; in alloc_empty_config() local 24 oa_config = kzalloc(sizeof(*oa_config), GFP_KERNEL); in alloc_empty_config() 25 if (!oa_config) in alloc_empty_config() 28 oa_config->perf = perf; in alloc_empty_config() 29 kref_init(&oa_config->ref); in alloc_empty_config() 31 strscpy(oa_config->uuid, TEST_OA_CONFIG_UUID, sizeof(oa_config->uuid)); in alloc_empty_config() 35 oa_config->id = idr_alloc(&perf->metrics_idr, oa_config, 2, 0, GFP_KERNEL); in alloc_empty_config() 36 if (oa_config->id < 0) { in alloc_empty_config() 38 i915_oa_config_put(oa_config); in alloc_empty_config() 50 struct i915_oa_config *oa_config = NULL, *tmp; in destroy_empty_config() local [all …]
|
/linux-6.12.1/drivers/gpu/drm/i915/ |
D | i915_perf.h | 43 i915_oa_config_get(struct i915_oa_config *oa_config) in i915_oa_config_get() argument 45 if (kref_get_unless_zero(&oa_config->ref)) in i915_oa_config_get() 46 return oa_config; in i915_oa_config_get() 52 static inline void i915_oa_config_put(struct i915_oa_config *oa_config) in i915_oa_config_put() argument 54 if (!oa_config) in i915_oa_config_put() 57 kref_put(&oa_config->ref, i915_oa_config_release); in i915_oa_config_put()
|
D | i915_perf.c | 389 struct i915_oa_config *oa_config; member 399 struct i915_oa_config *oa_config = in i915_oa_config_release() local 400 container_of(ref, typeof(*oa_config), ref); in i915_oa_config_release() 402 kfree(oa_config->flex_regs); in i915_oa_config_release() 403 kfree(oa_config->b_counter_regs); in i915_oa_config_release() 404 kfree(oa_config->mux_regs); in i915_oa_config_release() 406 kfree_rcu(oa_config, rcu); in i915_oa_config_release() 412 struct i915_oa_config *oa_config; in i915_perf_get_oa_config() local 415 oa_config = idr_find(&perf->metrics_idr, metrics_set); in i915_perf_get_oa_config() 416 if (oa_config) in i915_perf_get_oa_config() [all …]
|
D | i915_query.c | 236 struct i915_oa_config *oa_config; in query_perf_config_data() local 276 oa_config = NULL; in query_perf_config_data() 280 oa_config = i915_oa_config_get(tmp); in query_perf_config_data() 289 oa_config = i915_perf_get_oa_config(perf, config_id); in query_perf_config_data() 291 if (!oa_config) in query_perf_config_data() 301 oa_config->b_counter_regs_len); in query_perf_config_data() 307 oa_config->flex_regs_len); in query_perf_config_data() 313 oa_config->mux_regs_len); in query_perf_config_data() 317 ret = copy_perf_config_registers_or_number(oa_config->b_counter_regs, in query_perf_config_data() 318 oa_config->b_counter_regs_len, in query_perf_config_data() [all …]
|
D | i915_perf_types.h | 232 struct i915_oa_config *oa_config; member
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_oa.c | 89 struct xe_oa_config *oa_config; member 131 struct xe_oa_config *oa_config = in xe_oa_config_release() local 132 container_of(ref, typeof(*oa_config), ref); in xe_oa_config_release() 134 kfree(oa_config->regs); in xe_oa_config_release() 136 kfree_rcu(oa_config, rcu); in xe_oa_config_release() 139 static void xe_oa_config_put(struct xe_oa_config *oa_config) in xe_oa_config_put() argument 141 if (!oa_config) in xe_oa_config_put() 144 kref_put(&oa_config->ref, xe_oa_config_release); in xe_oa_config_put() 147 static struct xe_oa_config *xe_oa_config_get(struct xe_oa_config *oa_config) in xe_oa_config_get() argument 149 return kref_get_unless_zero(&oa_config->ref) ? oa_config : NULL; in xe_oa_config_get() [all …]
|
D | xe_oa_types.h | 207 struct xe_oa_config *oa_config; member
|