Lines Matching refs:tbo
135 p->uf_entry.tv.bo = &bo->tbo; in amdgpu_cs_p1_user_fence()
147 if (amdgpu_ttm_tt_get_usermm(bo->tbo.ttm)) { in amdgpu_cs_p1_user_fence()
764 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_cs_bo_validate()
769 .resv = bo->tbo.base.resv in amdgpu_cs_bo_validate()
774 if (bo->tbo.pin_count) in amdgpu_cs_bo_validate()
781 (!bo->tbo.base.dma_buf || in amdgpu_cs_bo_validate()
782 list_empty(&bo->tbo.base.dma_buf->attachments))) { in amdgpu_cs_bo_validate()
802 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_cs_bo_validate()
828 usermm = amdgpu_ttm_tt_get_usermm(bo->tbo.ttm); in amdgpu_cs_list_validate()
832 if (amdgpu_ttm_tt_is_userptr(bo->tbo.ttm) && in amdgpu_cs_list_validate()
836 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_cs_list_validate()
840 amdgpu_ttm_tt_set_user_pages(bo->tbo.ttm, in amdgpu_cs_list_validate()
906 e->user_pages = kvmalloc_array(bo->tbo.ttm->num_pages, in amdgpu_cs_parser_bos()
922 for (i = 0; i < bo->tbo.ttm->num_pages; i++) { in amdgpu_cs_parser_bos()
923 if (bo->tbo.ttm->pages[i] != e->user_pages[i]) { in amdgpu_cs_parser_bos()
968 r = amdgpu_ttm_alloc_gart(&uf->tbo); in amdgpu_cs_parser_bos()
993 amdgpu_ttm_tt_get_user_pages_done(bo->tbo.ttm, e->range); in amdgpu_cs_parser_bos()
1198 struct dma_resv *resv = bo->tbo.base.resv; in amdgpu_cs_sync_rings()
1301 r |= !amdgpu_ttm_tt_get_user_pages_done(bo->tbo.ttm, e->range); in amdgpu_cs_submit()
1789 if (dma_resv_locking_ctx((*bo)->tbo.base.resv) != &parser->ticket) in amdgpu_cs_find_mapping()
1795 r = ttm_bo_validate(&(*bo)->tbo, &(*bo)->placement, &ctx); in amdgpu_cs_find_mapping()
1800 return amdgpu_ttm_alloc_gart(&(*bo)->tbo); in amdgpu_cs_find_mapping()