Searched refs:pgsizes (Results 1 – 7 of 7) sorted by relevance
39 unsigned long pgsizes; in calc_pgsize() local44 pgsizes = pagetable->pgsize_bitmap & GENMASK(__fls(size), 0); in calc_pgsize()48 pgsizes &= GENMASK(__ffs(addr_merge), 0); in calc_pgsize()51 BUG_ON(!pgsizes); in calc_pgsize()54 pgsize_idx = __fls(pgsizes); in calc_pgsize()60 pgsizes = pagetable->pgsize_bitmap & ~GENMASK(pgsize_idx, 0); in calc_pgsize()61 if (!pgsizes) in calc_pgsize()64 pgsize_idx_next = __ffs(pgsizes); in calc_pgsize()
435 u32 pgsizes; in malidp_mmu_prefetch_select_mode() local438 pgsizes = *pgsize_bitmap & MALIDP_MMU_PREFETCH_FULL_PGSIZES; in malidp_mmu_prefetch_select_mode()440 while (pgsizes) { in malidp_mmu_prefetch_select_mode()441 u32 largest_pgsize = 1 << __fls(pgsizes); in malidp_mmu_prefetch_select_mode()448 pgsizes -= largest_pgsize; in malidp_mmu_prefetch_select_mode()452 pgsizes = *pgsize_bitmap & MALIDP_MMU_PREFETCH_PARTIAL_PGSIZES; in malidp_mmu_prefetch_select_mode()458 *pgsize_bitmap = 1 << __ffs(pgsizes); in malidp_mmu_prefetch_select_mode()
2162 unsigned long pgsizes; in iommu_pgsize() local2167 pgsizes = domain->pgsize_bitmap & GENMASK(__fls(size), 0); in iommu_pgsize()2171 pgsizes &= GENMASK(__ffs(addr_merge), 0); in iommu_pgsize()2174 BUG_ON(!pgsizes); in iommu_pgsize()2177 pgsize_idx = __fls(pgsizes); in iommu_pgsize()2183 pgsizes = domain->pgsize_bitmap & ~GENMASK(pgsize_idx, 0); in iommu_pgsize()2184 if (!pgsizes) in iommu_pgsize()2187 pgsize_idx_next = __ffs(pgsizes); in iommu_pgsize()
193 __u64 pgsizes; /* Bitmap of supported page sizes */ member
663 if (!(table_group->pgsizes & (1ULL << page_shift))) in tce_iommu_create_window()839 info.ddw.pgsizes = table_group->pgsizes; in tce_iommu_ioctl()
1359 __u64 pgsizes; /* Bitmap of supported page sizes */ member
1945 pe->table_group.pgsizes = pnv_ioda_parse_tce_sizes(phb); in pnv_pci_ioda2_setup_dma_pe()