Lines Matching refs:lmtt_assert

33 #define lmtt_assert(lmtt, condition)	xe_tile_assert(lmtt_to_tile(lmtt), condition)  macro
80 lmtt_assert(lmtt, xe_bo_is_vram(bo)); in lmtt_pt_alloc()
102 lmtt_assert(lmtt, !lmtt->pd); in lmtt_init_pd()
103 lmtt_assert(lmtt, lmtt->ops->lmtt_root_pd_level()); in lmtt_init_pd()
121 lmtt_assert(lmtt, !pd->entries[n]); in lmtt_fini_pd()
131 lmtt_assert(lmtt, !(!!lmtt->ops ^ !!lmtt->pd)); in fini_lmtt()
164 lmtt_assert(lmtt, IS_SRIOV_PF(xe)); in xe_lmtt_init()
165 lmtt_assert(lmtt, !lmtt->ops); in xe_lmtt_init()
193 lmtt_assert(lmtt, xe_bo_is_vram(lmtt->pd->bo)); in lmtt_setup_dir_ptr()
194 lmtt_assert(lmtt, IS_ALIGNED(offset, SZ_64K)); in lmtt_setup_dir_ptr()
224 lmtt_assert(lmtt, idx <= lmtt->ops->lmtt_pte_num(level)); in lmtt_write_pte()
235 lmtt_assert(lmtt, !!!"invalid pte size"); in lmtt_write_pte()
269 lmtt_assert(lmtt, pd->level > 0); in lmtt_drop_pages()
270 lmtt_assert(lmtt, pt->level == pd->level - 1); in lmtt_drop_pages()
281 lmtt_assert(lmtt, pd->level > 0); in __lmtt_alloc_range()
324 lmtt_assert(lmtt, pd->level > 0); in lmtt_alloc_range()
325 lmtt_assert(lmtt, vfid <= lmtt->ops->lmtt_pte_num(pd->level)); in lmtt_alloc_range()
326 lmtt_assert(lmtt, IS_ALIGNED(start, lmtt_page_size(lmtt))); in lmtt_alloc_range()
327 lmtt_assert(lmtt, IS_ALIGNED(end, lmtt_page_size(lmtt))); in lmtt_alloc_range()
362 lmtt_assert(lmtt, vfid <= lmtt->ops->lmtt_pte_num(pd->level)); in lmtt_leaf_pt()
366 lmtt_assert(lmtt, lmtt->ops->lmtt_pte_index(addr, pt->level) <= in lmtt_leaf_pt()
374 lmtt_assert(lmtt, lmtt->ops->lmtt_pte_index(addr, pt->level) <= in lmtt_leaf_pt()
376 lmtt_assert(lmtt, pt->level != pd->level); in lmtt_leaf_pt()
377 lmtt_assert(lmtt, pt->level == 0); in lmtt_leaf_pt()
388 lmtt_assert(lmtt, IS_ALIGNED(start, page_size)); in lmtt_insert_bo()
389 lmtt_assert(lmtt, IS_ALIGNED(bo->size, page_size)); in lmtt_insert_bo()
390 lmtt_assert(lmtt, xe_bo_is_vram(bo)); in lmtt_insert_bo()
426 lmtt_assert(lmtt, lmtt->pd); in xe_lmtt_prepare_pages()
427 lmtt_assert(lmtt, vfid); in xe_lmtt_prepare_pages()
449 lmtt_assert(lmtt, lmtt->pd); in xe_lmtt_populate_pages()
450 lmtt_assert(lmtt, vfid); in xe_lmtt_populate_pages()
468 lmtt_assert(lmtt, lmtt->pd); in xe_lmtt_drop_pages()
469 lmtt_assert(lmtt, vfid); in xe_lmtt_drop_pages()
488 lmtt_assert(lmtt, IS_SRIOV_PF(lmtt_to_xe(lmtt))); in xe_lmtt_estimate_pt_size()
489 lmtt_assert(lmtt, IS_DGFX(lmtt_to_xe(lmtt))); in xe_lmtt_estimate_pt_size()
490 lmtt_assert(lmtt, lmtt->ops); in xe_lmtt_estimate_pt_size()