Home
last modified time | relevance | path

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

/external/libdrm/tests/amdgpu/
Dvce_tests.c188 static void alloc_resource(struct amdgpu_vce_bo *vce_bo, unsigned size, unsigned domain) in alloc_resource() argument
208 vce_bo->addr = va; in alloc_resource()
209 vce_bo->handle = buf_handle; in alloc_resource()
210 vce_bo->size = req.alloc_size; in alloc_resource()
211 vce_bo->va_handle = va_handle; in alloc_resource()
212 r = amdgpu_bo_cpu_map(vce_bo->handle, (void **)&vce_bo->ptr); in alloc_resource()
214 memset(vce_bo->ptr, 0, size); in alloc_resource()
215 r = amdgpu_bo_cpu_unmap(vce_bo->handle); in alloc_resource()
219 static void free_resource(struct amdgpu_vce_bo *vce_bo) in free_resource() argument
223 r = amdgpu_bo_va_op(vce_bo->handle, 0, vce_bo->size, in free_resource()
[all …]