Lines Matching refs:oa_bo
422 static void free_oa_config_bo(struct i915_oa_config_bo *oa_bo) in free_oa_config_bo() argument
424 i915_oa_config_put(oa_bo->oa_config); in free_oa_config_bo()
425 i915_vma_put(oa_bo->vma); in free_oa_config_bo()
426 kfree(oa_bo); in free_oa_config_bo()
1634 struct i915_oa_config_bo *oa_bo, *tmp; in free_oa_configs() local
1637 llist_for_each_entry_safe(oa_bo, tmp, stream->oa_config_bos.first, node) in free_oa_configs()
1638 free_oa_config_bo(oa_bo); in free_oa_configs()
2197 struct i915_oa_config_bo *oa_bo; in alloc_oa_config_buffer() local
2203 oa_bo = kzalloc(sizeof(*oa_bo), GFP_KERNEL); in alloc_oa_config_buffer()
2204 if (!oa_bo) in alloc_oa_config_buffer()
2251 oa_bo->vma = i915_vma_instance(obj, in alloc_oa_config_buffer()
2254 if (IS_ERR(oa_bo->vma)) { in alloc_oa_config_buffer()
2255 err = PTR_ERR(oa_bo->vma); in alloc_oa_config_buffer()
2259 oa_bo->oa_config = i915_oa_config_get(oa_config); in alloc_oa_config_buffer()
2260 llist_add(&oa_bo->node, &stream->oa_config_bos); in alloc_oa_config_buffer()
2274 kfree(oa_bo); in alloc_oa_config_buffer()
2277 return oa_bo; in alloc_oa_config_buffer()
2283 struct i915_oa_config_bo *oa_bo; in get_oa_vma() local
2289 llist_for_each_entry(oa_bo, stream->oa_config_bos.first, node) { in get_oa_vma()
2290 if (oa_bo->oa_config == oa_config && in get_oa_vma()
2291 memcmp(oa_bo->oa_config->uuid, in get_oa_vma()
2297 oa_bo = alloc_oa_config_buffer(stream, oa_config); in get_oa_vma()
2298 if (IS_ERR(oa_bo)) in get_oa_vma()
2299 return ERR_CAST(oa_bo); in get_oa_vma()
2302 return i915_vma_get(oa_bo->vma); in get_oa_vma()