Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/i915/selftests/
A Di915_perf.c24 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()
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()
57 oa_config = tmp; in destroy_empty_config()
62 if (oa_config) in destroy_empty_config()
67 if (oa_config) in destroy_empty_config()
88 return oa_config; in get_empty_config()
[all …]
/linux/drivers/gpu/drm/i915/
A Di915_perf.c395 if (oa_config) in i915_perf_get_oa_config()
396 oa_config = i915_oa_config_get(oa_config); in i915_perf_get_oa_config()
1920 oa_bo->oa_config = i915_oa_config_get(oa_config); in alloc_oa_config_buffer()
1951 if (oa_bo->oa_config == oa_config && in get_oa_vma()
2093 if (!oa_config) in oa_config_flex_reg()
2477 struct i915_oa_config *oa_config = stream->oa_config; in gen8_enable_metric_set() local
2535 struct i915_oa_config *oa_config = stream->oa_config; in gen12_enable_metric_set() local
4030 oa_config->attrs[0] = &oa_config->sysfs_metric_id.attr; in create_dynamic_oa_sysfs_entry()
4033 oa_config->sysfs_metric.name = oa_config->uuid; in create_dynamic_oa_sysfs_entry()
4034 oa_config->sysfs_metric.attrs = oa_config->attrs; in create_dynamic_oa_sysfs_entry()
[all …]
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()
A Di915_query.c202 struct i915_oa_config *oa_config; in query_perf_config_data() local
241 oa_config = NULL; in query_perf_config_data()
245 oa_config = i915_oa_config_get(tmp); in query_perf_config_data()
256 if (!oa_config) in query_perf_config_data()
266 oa_config->b_counter_regs_len); in query_perf_config_data()
272 oa_config->flex_regs_len); in query_perf_config_data()
278 oa_config->mux_regs_len); in query_perf_config_data()
283 oa_config->b_counter_regs_len, in query_perf_config_data()
290 oa_config->flex_regs_len, in query_perf_config_data()
297 oa_config->mux_regs_len, in query_perf_config_data()
[all …]
A Di915_perf_types.h193 struct i915_oa_config *oa_config; member

Completed in 17 milliseconds