Lines Matching refs:xe_assert

163 	xe_assert(xe, mem_type == XE_PL_STOLEN || mem_type_is_vram(mem_type));  in mem_type_to_migrate()
174 xe_assert(xe, resource_is_vram(res)); in res_to_mem_region()
185 xe_assert(xe, *c < ARRAY_SIZE(bo->placements)); in try_add_system()
222 xe_assert(xe, *c < ARRAY_SIZE(bo->placements)); in add_vram()
225 xe_assert(xe, vram && vram->usable_size); in add_vram()
256 xe_assert(xe, *c < ARRAY_SIZE(bo->placements)); in try_add_stolen()
495 xe_assert(xe, bo->cpu_caching == 0); in xe_ttm_tt_create()
697 xe_assert(xe, attach); in xe_bo_move_dmabuf()
698 xe_assert(xe, ttm_bo->ttm); in xe_bo_move_dmabuf()
916 xe_assert(xe, migrate); in xe_bo_move()
1128 xe_assert(xe, !bo->backup_obj); in xe_bo_notifier_prepare_pinned()
1441 xe_assert(xe, !kref_read(&ttm_bo->kref)); in xe_ttm_bo_lock_in_destructor()
1452 xe_assert(xe, locked); in xe_ttm_bo_lock_in_destructor()
1468 xe_assert(xe_bo_device(bo), !(bo->created && kref_read(&ttm_bo->base.refcount))); in xe_ttm_bo_release_notify()
1632 xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list)); in xe_ttm_bo_destroy()
1682 xe_assert(xe_bo_device(bo), xe_bo_is_user(bo)); in xe_gem_object_close()
1842 xe_assert(xe, !tile || type == ttm_bo_type_kernel); in ___xe_bo_create_locked()
2049 xe_assert(xe, tile); in __xe_bo_create_locked()
2237 xe_assert(xe, IS_DGFX(xe)); in xe_managed_bo_reinit_in_vram()
2238 xe_assert(xe, !(*src)->vmap.is_iomem); in xe_managed_bo_reinit_in_vram()
2287 xe_assert(xe, !bo->vm); in xe_bo_pin_external()
2288 xe_assert(xe, xe_bo_is_user(bo)); in xe_bo_pin_external()
2322 xe_assert(xe, !xe_bo_is_user(bo)); in xe_bo_pin()
2325 xe_assert(xe, bo->flags & (XE_BO_FLAG_PINNED | in xe_bo_pin()
2332 xe_assert(xe, !bo->ttm.base.import_attach); in xe_bo_pin()
2335 xe_assert(xe, !xe_bo_is_pinned(bo)); in xe_bo_pin()
2377 xe_assert(xe, !bo->vm); in xe_bo_unpin_external()
2378 xe_assert(xe, xe_bo_is_pinned(bo)); in xe_bo_unpin_external()
2379 xe_assert(xe, xe_bo_is_user(bo)); in xe_bo_unpin_external()
2402 xe_assert(xe, !bo->ttm.base.import_attach); in xe_bo_unpin()
2403 xe_assert(xe, xe_bo_is_pinned(bo)); in xe_bo_unpin()
2407 xe_assert(xe, !list_empty(&bo->pinned_link)); in xe_bo_unpin()
2487 xe_assert(xe, page_size <= PAGE_SIZE); in __xe_bo_addr()
2492 xe_assert(xe, bo->ttm.ttm); in __xe_bo_addr()