Lines Matching refs:xe_assert
137 xe_assert(xe, mem_type == XE_PL_STOLEN || mem_type_is_vram(mem_type)); in mem_type_to_migrate()
147 xe_assert(xe, resource_is_vram(res)); in res_to_mem_region()
156 xe_assert(xe, *c < ARRAY_SIZE(bo->placements)); in try_add_system()
172 xe_assert(xe, *c < ARRAY_SIZE(bo->placements)); in add_vram()
175 xe_assert(xe, vram && vram->usable_size); in add_vram()
211 xe_assert(xe, *c < ARRAY_SIZE(bo->placements)); in try_add_stolen()
395 xe_assert(xe, bo->cpu_caching == 0); in xe_ttm_tt_create()
562 xe_assert(xe, attach); in xe_bo_move_dmabuf()
563 xe_assert(xe, ttm_bo->ttm); in xe_bo_move_dmabuf()
759 xe_assert(xe, migrate); in xe_bo_move()
798 xe_assert(xe, new_mem->start == in xe_bo_move()
1009 xe_assert(xe, !kref_read(&ttm_bo->kref)); in xe_ttm_bo_lock_in_destructor()
1020 xe_assert(xe, locked); in xe_ttm_bo_lock_in_destructor()
1036 xe_assert(xe_bo_device(bo), !(bo->created && kref_read(&ttm_bo->base.refcount))); in xe_ttm_bo_release_notify()
1115 xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list)); in xe_ttm_bo_destroy()
1161 xe_assert(xe_bo_device(bo), xe_bo_is_user(bo)); in xe_gem_object_close()
1281 xe_assert(xe, !tile || type == ttm_bo_type_kernel); in ___xe_bo_create_locked()
1478 xe_assert(xe, tile); in __xe_bo_create_locked()
1657 xe_assert(xe, IS_DGFX(xe)); in xe_managed_bo_reinit_in_vram()
1658 xe_assert(xe, !(*src)->vmap.is_iomem); in xe_managed_bo_reinit_in_vram()
1700 xe_assert(xe, !bo->vm); in xe_bo_pin_external()
1701 xe_assert(xe, xe_bo_is_user(bo)); in xe_bo_pin_external()
1734 xe_assert(xe, !xe_bo_is_user(bo)); in xe_bo_pin()
1737 xe_assert(xe, bo->flags & (XE_BO_FLAG_PINNED | in xe_bo_pin()
1744 xe_assert(xe, !bo->ttm.base.import_attach); in xe_bo_pin()
1747 xe_assert(xe, !xe_bo_is_pinned(bo)); in xe_bo_pin()
1761 xe_assert(xe, place->flags & TTM_PL_FLAG_CONTIGUOUS); in xe_bo_pin()
1800 xe_assert(xe, !bo->vm); in xe_bo_unpin_external()
1801 xe_assert(xe, xe_bo_is_pinned(bo)); in xe_bo_unpin_external()
1802 xe_assert(xe, xe_bo_is_user(bo)); in xe_bo_unpin_external()
1823 xe_assert(xe, !bo->ttm.base.import_attach); in xe_bo_unpin()
1824 xe_assert(xe, xe_bo_is_pinned(bo)); in xe_bo_unpin()
1828 xe_assert(xe, !list_empty(&bo->pinned_link)); in xe_bo_unpin()
1889 xe_assert(xe, page_size <= PAGE_SIZE); in __xe_bo_addr()
1894 xe_assert(xe, bo->ttm.ttm); in __xe_bo_addr()