Lines Matching refs:oa_config
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
57 oa_config = tmp; in destroy_empty_config()
62 if (oa_config) in destroy_empty_config()
63 idr_remove(&perf->metrics_idr, oa_config->id); in destroy_empty_config()
67 if (oa_config) in destroy_empty_config()
68 i915_oa_config_put(oa_config); in destroy_empty_config()
74 struct i915_oa_config *oa_config = NULL, *tmp; in get_empty_config() local
81 oa_config = i915_oa_config_get(tmp); in get_empty_config()
88 return oa_config; in get_empty_config()
95 struct i915_oa_config *oa_config = get_empty_config(perf); in test_stream() local
112 if (!oa_config) in test_stream()
115 props.metrics_set = oa_config->id; in test_stream()
119 i915_oa_config_put(oa_config); in test_stream()
132 i915_oa_config_put(oa_config); in test_stream()