Searched refs:oa_config (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_perf.c | 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() 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() 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 …]
|
/openbmc/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.c | 415 if (oa_config) in i915_perf_get_oa_config() 416 oa_config = i915_oa_config_get(oa_config); in i915_perf_get_oa_config() 2288 oa_bo->oa_config = i915_oa_config_get(oa_config); in alloc_oa_config_buffer() 2319 if (oa_bo->oa_config == oa_config && in get_oa_vma() 2459 if (!oa_config) in oa_config_flex_reg() 2831 struct i915_oa_config *oa_config = stream->oa_config; in gen8_enable_metric_set() local 4629 oa_config->attrs[0] = &oa_config->sysfs_metric_id.attr; in create_dynamic_oa_sysfs_entry() 4632 oa_config->sysfs_metric.name = oa_config->uuid; in create_dynamic_oa_sysfs_entry() 4633 oa_config->sysfs_metric.attrs = oa_config->attrs; in create_dynamic_oa_sysfs_entry() 4684 oa_config = kzalloc(sizeof(*oa_config), GFP_KERNEL); in i915_perf_add_config_ioctl() [all …]
|
H A D | i915_query.c | 236 struct i915_oa_config *oa_config; in query_perf_config_data() local 276 oa_config = NULL; in query_perf_config_data() 280 oa_config = i915_oa_config_get(tmp); in query_perf_config_data() 291 if (!oa_config) in query_perf_config_data() 301 oa_config->b_counter_regs_len); in query_perf_config_data() 307 oa_config->flex_regs_len); in query_perf_config_data() 313 oa_config->mux_regs_len); in query_perf_config_data() 318 oa_config->b_counter_regs_len, in query_perf_config_data() 325 oa_config->flex_regs_len, in query_perf_config_data() 332 oa_config->mux_regs_len, in query_perf_config_data() [all …]
|
H A D | i915_perf_types.h | 232 struct i915_oa_config *oa_config; member
|