Searched refs:oa_config (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_perf.c | 22 struct i915_oa_config *oa_config; in alloc_empty_config() local 24 oa_config = kzalloc_obj(*oa_config); 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 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()
|
| H A D | i915_perf_types.h | 232 struct i915_oa_config *oa_config; member
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_oa.c | 110 struct xe_oa_config *oa_config; 163 struct xe_oa_config *oa_config = in xe_oa_config_release() 164 container_of(ref, typeof(*oa_config), ref); in xe_oa_config_release() 166 kfree(oa_config->regs); in xe_oa_config_release() 168 kfree_rcu(oa_config, rcu); 171 static void xe_oa_config_put(struct xe_oa_config *oa_config) in xe_oa_config_put() 173 if (!oa_config) in xe_oa_config_put() 176 kref_put(&oa_config->ref, xe_oa_config_release); 179 static struct xe_oa_config *xe_oa_config_get(struct xe_oa_config *oa_config) in xe_oa_config_get() 181 return kref_get_unless_zero(&oa_config in xe_oa_config_get() 108 struct xe_oa_config *oa_config; global() member 161 struct xe_oa_config *oa_config = xe_oa_config_release() local 169 xe_oa_config_put(struct xe_oa_config * oa_config) xe_oa_config_put() argument 177 xe_oa_config_get(struct xe_oa_config * oa_config) xe_oa_config_get() argument 184 struct xe_oa_config *oa_config; xe_oa_get_oa_config() local 899 __xe_oa_alloc_config_buffer(struct xe_oa_stream * stream,struct xe_oa_config * oa_config) __xe_oa_alloc_config_buffer() argument 929 xe_oa_alloc_config_buffer(struct xe_oa_stream * stream,struct xe_oa_config * oa_config) xe_oa_alloc_config_buffer() argument 2290 struct xe_oa_config *oa_config = show_dynamic_id() local 2297 create_dynamic_oa_sysfs_entry(struct xe_oa * oa,struct xe_oa_config * oa_config) create_dynamic_oa_sysfs_entry() argument 2330 struct xe_oa_config *oa_config, *tmp; xe_oa_add_config_ioctl() local 2432 struct xe_oa_config *oa_config; xe_oa_remove_config_ioctl() local [all...] |