Lines Matching refs:resource

404 	ttm_resource_free(&(*bo_ptr)->tbo, &(*bo_ptr)->tbo.resource);  in amdgpu_bo_create_kernel_at()
411 &(*bo_ptr)->tbo.resource, &ctx); in amdgpu_bo_create_kernel_at()
632 amdgpu_res_cpu_visible(adev, bo->tbo.resource)) in amdgpu_bo_create()
639 bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_create()
928 uint32_t mem_type = bo->tbo.resource->mem_type; in amdgpu_bo_pin_restricted()
929 uint32_t mem_flags = bo->tbo.resource->placement; in amdgpu_bo_pin_restricted()
986 domain = amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type); in amdgpu_bo_pin_restricted()
1040 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_unpin()
1044 } else if (bo->tbo.resource->mem_type == TTM_PL_TT) { in amdgpu_bo_unpin()
1285 struct ttm_resource *old_mem = bo->resource; in amdgpu_bo_move_notify()
1311 struct ttm_resource *res = bo->tbo.resource; in amdgpu_bo_get_memory()
1328 if (amdgpu_res_cpu_visible(adev, bo->tbo.resource)) in amdgpu_bo_get_memory()
1389 if (!bo->resource || bo->resource->mem_type != TTM_PL_VRAM || in amdgpu_bo_release_notify()
1427 if (amdgpu_res_cpu_visible(adev, bo->resource)) in amdgpu_bo_fault_reserve_notify()
1450 if (bo->resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify()
1451 !amdgpu_res_cpu_visible(adev, bo->resource)) in amdgpu_bo_fault_reserve_notify()
1541 WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_SYSTEM); in amdgpu_bo_gpu_offset()
1544 WARN_ON_ONCE(bo->tbo.resource->start == AMDGPU_BO_INVALID_OFFSET); in amdgpu_bo_gpu_offset()
1545 WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_gpu_offset()
1563 offset = (bo->tbo.resource->start << PAGE_SHIFT) + in amdgpu_bo_gpu_offset_no_check()
1564 amdgpu_ttm_domain_start(adev, bo->tbo.resource->mem_type); in amdgpu_bo_gpu_offset_no_check()
1621 domain = amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type); in amdgpu_bo_print_info()
1624 if (amdgpu_res_cpu_visible(adev, bo->tbo.resource)) in amdgpu_bo_print_info()