Home
last modified time | relevance | path

Searched refs:pgsizes (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/gpu/drm/msm/
H A Dmsm_iommu.c41 unsigned long pgsizes; in calc_pgsize() local
46 pgsizes = pagetable->pgsize_bitmap & GENMASK(__fls(size), 0); in calc_pgsize()
50 pgsizes &= GENMASK(__ffs(addr_merge), 0); in calc_pgsize()
53 BUG_ON(!pgsizes); in calc_pgsize()
56 pgsize_idx = __fls(pgsizes); in calc_pgsize()
62 pgsizes = pagetable->pgsize_bitmap & ~GENMASK(pgsize_idx, 0); in calc_pgsize()
63 if (!pgsizes) in calc_pgsize()
66 pgsize_idx_next = __ffs(pgsizes); in calc_pgsize()
/linux/drivers/gpu/drm/arm/
H A Dmalidp_planes.c426 u32 pgsizes; in malidp_mmu_prefetch_select_mode() local
429 pgsizes = *pgsize_bitmap & MALIDP_MMU_PREFETCH_FULL_PGSIZES; in malidp_mmu_prefetch_select_mode()
431 while (pgsizes) { in malidp_mmu_prefetch_select_mode()
432 u32 largest_pgsize = 1 << __fls(pgsizes); in malidp_mmu_prefetch_select_mode()
439 pgsizes -= largest_pgsize; in malidp_mmu_prefetch_select_mode()
443 pgsizes = *pgsize_bitmap & MALIDP_MMU_PREFETCH_PARTIAL_PGSIZES; in malidp_mmu_prefetch_select_mode()
449 *pgsize_bitmap = 1 << __ffs(pgsizes); in malidp_mmu_prefetch_select_mode()
/linux/drivers/iommu/
H A Diommu.c2392 unsigned long pgsizes; in iommu_pgsize() local
2397 pgsizes = domain->pgsize_bitmap & GENMASK(__fls(size), 0); in iommu_pgsize()
2401 pgsizes &= GENMASK(__ffs(addr_merge), 0); in iommu_pgsize()
2404 BUG_ON(!pgsizes); in iommu_pgsize()
2407 pgsize_idx = __fls(pgsizes); in iommu_pgsize()
2413 pgsizes = domain->pgsize_bitmap & ~GENMASK(pgsize_idx, 0); in iommu_pgsize()
2414 if (!pgsizes) in iommu_pgsize()
2417 pgsize_idx_next = __ffs(pgsizes); in iommu_pgsize()
/linux/arch/powerpc/include/asm/
H A Diommu.h201 __u64 pgsizes; /* Bitmap of supported page sizes */ member
/linux/drivers/vfio/
H A Dvfio_iommu_spapr_tce.c663 if (!(table_group->pgsizes & (1ULL << page_shift))) in tce_iommu_create_window()
889 info.ddw.pgsizes = table_group->pgsizes; in tce_iommu_ioctl()
/linux/include/uapi/linux/
H A Dvfio.h1689 __u64 pgsizes; /* Bitmap of supported page sizes */ member
/linux/arch/powerpc/platforms/pseries/
H A Diommu.c85 table_group->pgsizes = SZ_4K; in iommu_pseries_alloc_group()
1775 table_group->pgsizes |= query_page_size_to_mask(query.page_size); in spapr_tce_init_table_group()
/linux/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c1608 pe->table_group.pgsizes = pnv_ioda_parse_tce_sizes(phb); in pnv_pci_ioda2_setup_dma_pe()