Home
last modified time | relevance | path

Searched refs:pgsz_bitmap (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/iommu/generic_pt/
H A Dkunit_generic_pt.h189 static unsigned int ref_best_pgsize(pt_vaddr_t pgsz_bitmap, pt_vaddr_t va, in ref_best_pgsize() argument
196 if ((pgsz_bitmap & log2_to_int(pgsz_lg2)) && in ref_best_pgsize()
218 pt_vaddr_t pgsz_bitmap = get_random_u64(); in test_best_pgsize() local
228 pt_compute_best_pgsize(pgsz_bitmap, va, in test_best_pgsize()
230 ref_best_pgsize(pgsz_bitmap, va, in test_best_pgsize()
238 pt_vaddr_t pgsz_bitmap = get_random_u64(); in test_best_pgsize() local
244 pt_compute_best_pgsize(pgsz_bitmap, va, last_va, in test_best_pgsize()
246 ref_best_pgsize(pgsz_bitmap, va, last_va, oa)); in test_best_pgsize()
253 pt_vaddr_t pgsz_bitmap = get_random_u64(); in test_best_pgsize() local
260 pt_compute_best_pgsize(pgsz_bitmap, va, in test_best_pgsize()
[all …]
H A Dpt_iter.h521 static inline unsigned int pt_compute_best_pgsize(pt_vaddr_t pgsz_bitmap, in pt_compute_best_pgsize() argument
555 pgsz_bitmap = log2_mod(pgsz_bitmap, best_pgsz_lg2 + 1); in pt_compute_best_pgsize()
557 pgsz_lg2 = vafls(pgsz_bitmap); in pt_compute_best_pgsize()
/linux/drivers/infiniband/core/
H A Dumem.c86 unsigned long pgsz_bitmap, in ib_umem_find_best_pgsz() argument
103 if (!(pgsz_bitmap & page_size)) in ib_umem_find_best_pgsz()
112 mask = pgsz_bitmap & in ib_umem_find_best_pgsz()
151 pgsz_bitmap &= GENMASK(count_trailing_zeros(mask), 0); in ib_umem_find_best_pgsz()
152 return pgsz_bitmap ? rounddown_pow_of_two(pgsz_bitmap) : 0; in ib_umem_find_best_pgsz()
/linux/drivers/infiniband/hw/mlx5/
H A Dmem.c58 struct ib_umem *umem, unsigned long pgsz_bitmap, in __mlx5_umem_find_best_quantized_pgoff() argument
66 page_size = ib_umem_find_best_pgoff(umem, pgsz_bitmap, pgoff_bitmask); in __mlx5_umem_find_best_quantized_pgoff()
87 if (!(pgsz_bitmap & page_size)) in __mlx5_umem_find_best_quantized_pgoff()
H A Ddevx.c2282 unsigned long pgsz_bitmap) in devx_umem_find_best_pgsize() argument
2289 pgsz_bitmap &= GENMASK_ULL(max_t(u64, order_base_2(umem->length), in devx_umem_find_best_pgsize()
2292 if (!pgsz_bitmap) in devx_umem_find_best_pgsize()
2295 page_size = ib_umem_find_best_pgoff(umem, pgsz_bitmap, U64_MAX); in devx_umem_find_best_pgsize()
2319 unsigned long pgsz_bitmap; in devx_umem_reg_cmd_alloc() local
2337 ret = uverbs_get_const_default(&pgsz_bitmap, attrs, in devx_umem_reg_cmd_alloc()
2344 page_size = devx_umem_find_best_pgsize(obj->umem, pgsz_bitmap); in devx_umem_reg_cmd_alloc()
/linux/drivers/infiniband/hw/irdma/
H A Dverbs.c3369 unsigned long pgsz_bitmap; in irdma_alloc_iwmr() local
3383 pgsz_bitmap = (reg_type == IRDMA_MEMREG_TYPE_MEM) ? in irdma_alloc_iwmr()
3386 iwmr->page_size = ib_umem_find_best_pgsz(region, pgsz_bitmap, virt); in irdma_alloc_iwmr()