Lines Matching refs:abo

125 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain)  in amdgpu_bo_placement_from_domain()  argument
127 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_bo_placement_from_domain()
128 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain()
129 struct ttm_place *places = abo->placements; in amdgpu_bo_placement_from_domain()
130 u64 flags = abo->flags; in amdgpu_bo_placement_from_domain()
1199 struct amdgpu_bo *abo; in amdgpu_bo_move_notify() local
1205 abo = ttm_to_amdgpu_bo(bo); in amdgpu_bo_move_notify()
1206 amdgpu_vm_bo_invalidate(adev, abo, evict); in amdgpu_bo_move_notify()
1208 amdgpu_bo_kunmap(abo); in amdgpu_bo_move_notify()
1219 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify()
1232 struct amdgpu_bo *abo; in amdgpu_bo_release_notify() local
1238 abo = ttm_to_amdgpu_bo(bo); in amdgpu_bo_release_notify()
1240 if (abo->kfd_bo) in amdgpu_bo_release_notify()
1241 amdgpu_amdkfd_unreserve_memory_limit(abo); in amdgpu_bo_release_notify()
1244 !(abo->flags & AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE)) in amdgpu_bo_release_notify()
1249 r = amdgpu_fill_buffer(abo, AMDGPU_POISON, bo->base.resv, &fence); in amdgpu_bo_release_notify()
1251 amdgpu_bo_fence(abo, fence, false); in amdgpu_bo_release_notify()
1273 struct amdgpu_bo *abo; in amdgpu_bo_fault_reserve_notify() local
1280 abo = ttm_to_amdgpu_bo(bo); in amdgpu_bo_fault_reserve_notify()
1283 abo->flags |= AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED; in amdgpu_bo_fault_reserve_notify()
1294 if (abo->pin_count > 0) in amdgpu_bo_fault_reserve_notify()
1299 amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_bo_fault_reserve_notify()
1303 abo->placement.num_busy_placement = 1; in amdgpu_bo_fault_reserve_notify()
1304 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_bo_fault_reserve_notify()
1306 r = ttm_bo_validate(bo, &abo->placement, &ctx); in amdgpu_bo_fault_reserve_notify()