Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/i915/selftests/
H A Di915_perf.c22 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/drivers/gpu/drm/i915/
H A Di915_perf.h43 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()
H A Di915_perf_types.h232 struct i915_oa_config *oa_config; member
/linux/drivers/gpu/drm/xe/
H A Dxe_oa.c108 struct xe_oa_config *oa_config; member
161 struct xe_oa_config *oa_config = in xe_oa_config_release() local
162 container_of(ref, typeof(*oa_config), ref); in xe_oa_config_release()
164 kfree(oa_config->regs); in xe_oa_config_release()
166 kfree_rcu(oa_config, rcu); in xe_oa_config_release()
169 static void xe_oa_config_put(struct xe_oa_config *oa_config) in xe_oa_config_put() argument
171 if (!oa_config) in xe_oa_config_put()
174 kref_put(&oa_config->ref, xe_oa_config_release); in xe_oa_config_put()
177 static struct xe_oa_config *xe_oa_config_get(struct xe_oa_config *oa_config) in xe_oa_config_get() argument
179 return kref_get_unless_zero(&oa_config->ref) ? oa_config : NULL; in xe_oa_config_get()
[all …]