Searched refs:vce_bo (Results 1 – 1 of 1) sorted by relevance
180 static void alloc_resource(struct amdgpu_vce_bo *vce_bo, unsigned size, unsigned domain) in alloc_resource() argument200 vce_bo->addr = va; in alloc_resource()201 vce_bo->handle = buf_handle; in alloc_resource()202 vce_bo->size = req.alloc_size; in alloc_resource()203 vce_bo->va_handle = va_handle; in alloc_resource()204 r = amdgpu_bo_cpu_map(vce_bo->handle, (void **)&vce_bo->ptr); in alloc_resource()206 memset(vce_bo->ptr, 0, size); in alloc_resource()207 r = amdgpu_bo_cpu_unmap(vce_bo->handle); in alloc_resource()211 static void free_resource(struct amdgpu_vce_bo *vce_bo) in free_resource() argument215 r = amdgpu_bo_va_op(vce_bo->handle, 0, vce_bo->size, in free_resource()[all …]