Lines Matching refs:bo
186 AMDGPU_GEM_CREATE_CPU_GTT_USWC, NULL, NULL, &(*mem)->bo); in alloc_gtt_mem()
194 r = amdgpu_bo_reserve((*mem)->bo, true); in alloc_gtt_mem()
200 r = amdgpu_bo_pin((*mem)->bo, AMDGPU_GEM_DOMAIN_GTT, in alloc_gtt_mem()
208 r = amdgpu_bo_kmap((*mem)->bo, &(*mem)->cpu_ptr); in alloc_gtt_mem()
216 amdgpu_bo_unreserve((*mem)->bo); in alloc_gtt_mem()
221 amdgpu_bo_unpin((*mem)->bo); in alloc_gtt_mem()
223 amdgpu_bo_unreserve((*mem)->bo); in alloc_gtt_mem()
225 amdgpu_bo_unref(&(*mem)->bo); in alloc_gtt_mem()
236 amdgpu_bo_reserve(mem->bo, true); in free_gtt_mem()
237 amdgpu_bo_kunmap(mem->bo); in free_gtt_mem()
238 amdgpu_bo_unpin(mem->bo); in free_gtt_mem()
239 amdgpu_bo_unreserve(mem->bo); in free_gtt_mem()
240 amdgpu_bo_unref(&(mem->bo)); in free_gtt_mem()