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()
220 xe_assert(xe, *c < ARRAY_SIZE(bo->placements)); in add_vram()
223 xe_assert(xe, vram && vram->usable_size); in add_vram()
254 xe_assert(xe, *c < ARRAY_SIZE(bo->placements)); in try_add_stolen()
493 xe_assert(xe, bo->cpu_caching == 0); in xe_ttm_tt_create()
695 xe_assert(xe, attach); in xe_bo_move_dmabuf()
696 xe_assert(xe, ttm_bo->ttm); in xe_bo_move_dmabuf()
914 xe_assert(xe, migrate); in xe_bo_move()
1126 xe_assert(xe, !bo->backup_obj); in xe_bo_notifier_prepare_pinned()
1439 xe_assert(xe, !kref_read(&ttm_bo->kref)); in xe_ttm_bo_lock_in_destructor()
1450 xe_assert(xe, locked); in xe_ttm_bo_lock_in_destructor()
1466 xe_assert(xe_bo_device(bo), !(bo->created && kref_read(&ttm_bo->base.refcount))); in xe_ttm_bo_release_notify()
1630 xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list)); in xe_ttm_bo_destroy()
1680 xe_assert(xe_bo_device(bo), xe_bo_is_user(bo)); in xe_gem_object_close()
1840 xe_assert(xe, !tile || type == ttm_bo_type_kernel); in ___xe_bo_create_locked()
2047 xe_assert(xe, tile); in __xe_bo_create_locked()
2235 xe_assert(xe, IS_DGFX(xe)); in xe_managed_bo_reinit_in_vram()
2236 xe_assert(xe, !(*src)->vmap.is_iomem); in xe_managed_bo_reinit_in_vram()
2284 xe_assert(xe, !bo->vm); in xe_bo_pin_external()
2285 xe_assert(xe, xe_bo_is_user(bo)); in xe_bo_pin_external()
2317 xe_assert(xe, !xe_bo_is_user(bo)); in xe_bo_pin()
2320 xe_assert(xe, bo->flags & (XE_BO_FLAG_PINNED | in xe_bo_pin()
2327 xe_assert(xe, !bo->ttm.base.import_attach); in xe_bo_pin()
2330 xe_assert(xe, !xe_bo_is_pinned(bo)); in xe_bo_pin()
2372 xe_assert(xe, !bo->vm); in xe_bo_unpin_external()
2373 xe_assert(xe, xe_bo_is_pinned(bo)); in xe_bo_unpin_external()
2374 xe_assert(xe, xe_bo_is_user(bo)); in xe_bo_unpin_external()
2397 xe_assert(xe, !bo->ttm.base.import_attach); in xe_bo_unpin()
2398 xe_assert(xe, xe_bo_is_pinned(bo)); in xe_bo_unpin()
2402 xe_assert(xe, !list_empty(&bo->pinned_link)); in xe_bo_unpin()
2480 xe_assert(xe, page_size <= PAGE_SIZE); in __xe_bo_addr()
2485 xe_assert(xe, bo->ttm.ttm); in __xe_bo_addr()