Searched refs:oa_config (Results 1 – 5 of 5) sorted by relevance
/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 strlcpy(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 …]
|
/drivers/gpu/drm/i915/ |
D | i915_perf.c | 368 struct i915_oa_config *oa_config; member 378 struct i915_oa_config *oa_config = in i915_oa_config_release() local 379 container_of(ref, typeof(*oa_config), ref); in i915_oa_config_release() 381 kfree(oa_config->flex_regs); in i915_oa_config_release() 382 kfree(oa_config->b_counter_regs); in i915_oa_config_release() 383 kfree(oa_config->mux_regs); in i915_oa_config_release() 385 kfree_rcu(oa_config, rcu); in i915_oa_config_release() 391 struct i915_oa_config *oa_config; in i915_perf_get_oa_config() local 394 oa_config = idr_find(&perf->metrics_idr, metrics_set); in i915_perf_get_oa_config() 395 if (oa_config) in i915_perf_get_oa_config() [all …]
|
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_query.c | 200 struct i915_oa_config *oa_config; in query_perf_config_data() local 239 oa_config = NULL; in query_perf_config_data() 243 oa_config = i915_oa_config_get(tmp); in query_perf_config_data() 252 oa_config = i915_perf_get_oa_config(perf, config_id); in query_perf_config_data() 254 if (!oa_config) in query_perf_config_data() 264 oa_config->b_counter_regs_len); in query_perf_config_data() 270 oa_config->flex_regs_len); in query_perf_config_data() 276 oa_config->mux_regs_len); in query_perf_config_data() 280 ret = copy_perf_config_registers_or_number(oa_config->b_counter_regs, in query_perf_config_data() 281 oa_config->b_counter_regs_len, in query_perf_config_data() [all …]
|
D | i915_perf_types.h | 193 struct i915_oa_config *oa_config; member
|