Home
last modified time | relevance | path

Searched refs:pgsize_bitmap (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/iommu/
Dio-pgtable-arm.c458 if (WARN_ON(!size || (size & cfg->pgsize_bitmap) != size)) in arm_lpae_map()
631 if (WARN_ON(!size || (size & cfg->pgsize_bitmap) != size)) in arm_lpae_unmap()
690 if (cfg->pgsize_bitmap & PAGE_SIZE) in arm_lpae_restrict_pgsizes()
692 else if (cfg->pgsize_bitmap & ~PAGE_MASK) in arm_lpae_restrict_pgsizes()
693 granule = 1UL << __fls(cfg->pgsize_bitmap & ~PAGE_MASK); in arm_lpae_restrict_pgsizes()
694 else if (cfg->pgsize_bitmap & PAGE_MASK) in arm_lpae_restrict_pgsizes()
695 granule = 1UL << __ffs(cfg->pgsize_bitmap & PAGE_MASK); in arm_lpae_restrict_pgsizes()
716 cfg->pgsize_bitmap &= page_sizes; in arm_lpae_restrict_pgsizes()
729 if (!(cfg->pgsize_bitmap & (SZ_4K | SZ_16K | SZ_64K))) in arm_lpae_alloc_pgtable()
742 pg_shift = __ffs(cfg->pgsize_bitmap); in arm_lpae_alloc_pgtable()
[all …]
Dvirtio-iommu.c49 u64 pgsize_bitmap; member
618 viommu_page_size = 1UL << __ffs(viommu->pgsize_bitmap); in viommu_domain_finalise()
633 domain->pgsize_bitmap = viommu->pgsize_bitmap; in viommu_domain_finalise()
1014 &viommu->pgsize_bitmap); in viommu_probe()
1016 if (!viommu->pgsize_bitmap) { in viommu_probe()
1054 viommu_ops.pgsize_bitmap = viommu->pgsize_bitmap; in viommu_probe()
1097 dev_info(dev, "page mask: %#llx\n", viommu->pgsize_bitmap); in viommu_probe()
Dio-pgtable-arm-v7s.c801 cfg->pgsize_bitmap &= SZ_4K | SZ_64K | SZ_1M | SZ_16M; in arm_v7s_alloc_pgtable()
860 WARN_ON(!(size & cfg_cookie->pgsize_bitmap)); in dummy_tlb_flush()
892 .pgsize_bitmap = SZ_4K | SZ_64K | SZ_1M | SZ_16M, in arm_v7s_do_selftests()
924 for_each_set_bit(i, &cfg.pgsize_bitmap, BITS_PER_LONG) { in arm_v7s_do_selftests()
946 size = 1UL << __ffs(cfg.pgsize_bitmap); in arm_v7s_do_selftests()
964 for_each_set_bit(i, &cfg.pgsize_bitmap, BITS_PER_LONG) { in arm_v7s_do_selftests()
Dmtk_iommu.c328 .pgsize_bitmap = mtk_iommu_ops.pgsize_bitmap, in mtk_iommu_domain_finalise()
342 dom->domain.pgsize_bitmap = dom->cfg.pgsize_bitmap; in mtk_iommu_domain_finalise()
548 .pgsize_bitmap = SZ_4K | SZ_64K | SZ_1M | SZ_16M,
Dmsm_iommu.c354 .pgsize_bitmap = msm_iommu_ops.pgsize_bitmap, in msm_iommu_domain_config()
367 msm_iommu_ops.pgsize_bitmap = priv->cfg.pgsize_bitmap; in msm_iommu_domain_config()
697 .pgsize_bitmap = MSM_IOMMU_PGSIZES,
Diommu.c737 BUG_ON(!domain->pgsize_bitmap); in iommu_create_device_direct_mappings()
739 pg_size = 1UL << __ffs(domain->pgsize_bitmap); in iommu_create_device_direct_mappings()
1915 domain->pgsize_bitmap = bus->iommu_ops->pgsize_bitmap; in __iommu_domain_alloc()
2360 pgsize &= domain->pgsize_bitmap; in iommu_pgsize()
2383 domain->pgsize_bitmap == 0UL)) in __iommu_map()
2390 min_pagesz = 1 << __ffs(domain->pgsize_bitmap); in __iommu_map()
2467 domain->pgsize_bitmap == 0UL)) in __iommu_unmap()
2474 min_pagesz = 1 << __ffs(domain->pgsize_bitmap); in __iommu_unmap()
2684 *paging = (domain->pgsize_bitmap != 0UL); in iommu_domain_get_attr()
Dtegra-gart.c287 .pgsize_bitmap = GART_IOMMU_PGSIZES,
Ds390-iommu.c369 .pgsize_bitmap = S390_IOMMU_PGSIZES,
Ddma-iommu.c317 order = __ffs(domain->pgsize_bitmap); in iommu_dma_init_domain()
593 unsigned int count, min_size, alloc_sizes = domain->pgsize_bitmap; in iommu_dma_alloc_remap()
1149 return (1UL << __ffs(domain->pgsize_bitmap)) - 1; in iommu_dma_get_merge_boundary()
Dipmmu-vmsa.c437 domain->cfg.pgsize_bitmap = SZ_1G | SZ_2M | SZ_4K; in ipmmu_domain_init_context()
911 .pgsize_bitmap = SZ_1G | SZ_2M | SZ_4K,
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dtegra.c109 unsigned long pgsize_bitmap; in nvkm_device_tegra_probe_iommu() local
136 pgsize_bitmap = tdev->iommu.domain->ops->pgsize_bitmap; in nvkm_device_tegra_probe_iommu()
137 if (pgsize_bitmap & PAGE_SIZE) { in nvkm_device_tegra_probe_iommu()
140 tdev->iommu.pgshift = fls(pgsize_bitmap & ~PAGE_MASK); in nvkm_device_tegra_probe_iommu()
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/
Dmalidp_planes.c313 u32 pgsize_bitmap = 0; in malidp_get_pgsize_bitmap() local
320 pgsize_bitmap = mmu_dom->pgsize_bitmap; in malidp_get_pgsize_bitmap()
323 return pgsize_bitmap; in malidp_get_pgsize_bitmap()
436 (struct malidp_plane_state *ms, u32 *pgsize_bitmap) in malidp_mmu_prefetch_select_mode() argument
441 pgsizes = *pgsize_bitmap & MALIDP_MMU_PREFETCH_FULL_PGSIZES; in malidp_mmu_prefetch_select_mode()
447 *pgsize_bitmap = largest_pgsize; in malidp_mmu_prefetch_select_mode()
455 pgsizes = *pgsize_bitmap & MALIDP_MMU_PREFETCH_PARTIAL_PGSIZES; in malidp_mmu_prefetch_select_mode()
461 *pgsize_bitmap = 1 << __ffs(pgsizes); in malidp_mmu_prefetch_select_mode()
464 *pgsize_bitmap = 0; in malidp_mmu_prefetch_select_mode()
/kernel/linux/linux-5.10/drivers/iommu/arm/arm-smmu/
Darm-smmu.c772 .pgsize_bitmap = smmu->pgsize_bitmap, in arm_smmu_init_domain_context()
796 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; in arm_smmu_init_domain_context()
1637 .pgsize_bitmap = -1UL, /* Restricted during device attach */
1897 smmu->pgsize_bitmap |= SZ_4K | SZ_64K | SZ_1M | SZ_16M; in arm_smmu_device_cfg_probe()
1900 smmu->pgsize_bitmap |= SZ_4K | SZ_2M | SZ_1G; in arm_smmu_device_cfg_probe()
1902 smmu->pgsize_bitmap |= SZ_16K | SZ_32M; in arm_smmu_device_cfg_probe()
1904 smmu->pgsize_bitmap |= SZ_64K | SZ_512M; in arm_smmu_device_cfg_probe()
1906 if (arm_smmu_ops.pgsize_bitmap == -1UL) in arm_smmu_device_cfg_probe()
1907 arm_smmu_ops.pgsize_bitmap = smmu->pgsize_bitmap; in arm_smmu_device_cfg_probe()
1909 arm_smmu_ops.pgsize_bitmap |= smmu->pgsize_bitmap; in arm_smmu_device_cfg_probe()
[all …]
Dqcom_iommu.c252 .pgsize_bitmap = qcom_iommu_ops.pgsize_bitmap, in qcom_iommu_init_domain()
270 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; in qcom_iommu_init_domain()
623 .pgsize_bitmap = SZ_4K | SZ_64K | SZ_1M | SZ_16M,
Darm-smmu.h316 unsigned long pgsize_bitmap; member
/kernel/linux/linux-5.10/drivers/vfio/
Dvfio_iommu_type1.c73 uint64_t pgsize_bitmap; member
249 unsigned long pgshift = __ffs(iommu->pgsize_bitmap); in vfio_iommu_populate_bitmap_full()
784 unsigned long pgshift = __ffs(iommu->pgsize_bitmap); in vfio_iommu_type1_pin_pages()
1043 iommu->pgsize_bitmap = ULONG_MAX; in vfio_update_pgsize_bitmap()
1046 iommu->pgsize_bitmap &= domain->domain->pgsize_bitmap; in vfio_update_pgsize_bitmap()
1056 if (iommu->pgsize_bitmap & ~PAGE_MASK) { in vfio_update_pgsize_bitmap()
1057 iommu->pgsize_bitmap &= PAGE_MASK; in vfio_update_pgsize_bitmap()
1058 iommu->pgsize_bitmap |= PAGE_SIZE; in vfio_update_pgsize_bitmap()
1165 pgshift = __ffs(iommu->pgsize_bitmap); in vfio_dma_do_unmap()
1409 pgsize = (size_t)1 << __ffs(iommu->pgsize_bitmap); in vfio_dma_do_map()
[all …]
/kernel/linux/linux-5.10/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3.c1679 tg = __ffs(smmu_domain->domain.pgsize_bitmap); in arm_smmu_tlb_inv_range()
1975 .pgsize_bitmap = smmu->pgsize_bitmap, in arm_smmu_domain_finalise()
1990 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; in arm_smmu_domain_finalise()
2073 stu = __ffs(smmu->pgsize_bitmap); in arm_smmu_enable_ats()
2593 .pgsize_bitmap = -1UL, /* Restricted during device attach */
3306 smmu->pgsize_bitmap |= SZ_64K | SZ_512M; in arm_smmu_device_hw_probe()
3308 smmu->pgsize_bitmap |= SZ_16K | SZ_32M; in arm_smmu_device_hw_probe()
3310 smmu->pgsize_bitmap |= SZ_4K | SZ_2M | SZ_1G; in arm_smmu_device_hw_probe()
3335 smmu->pgsize_bitmap |= 1ULL << 42; /* 4TB */ in arm_smmu_device_hw_probe()
3345 if (arm_smmu_ops.pgsize_bitmap == -1UL) in arm_smmu_device_hw_probe()
[all …]
Darm-smmu-v3-sva.c171 if (!(smmu->pgsize_bitmap & PAGE_SIZE)) in arm_smmu_sva_supported()
Darm-smmu-v3.h623 unsigned long pgsize_bitmap; member
/kernel/linux/linux-5.10/include/linux/
Dio-pgtable.h97 unsigned long pgsize_bitmap; member
Diommu.h85 unsigned long pgsize_bitmap; /* Bitmap of page sizes in use */ member
303 unsigned long pgsize_bitmap; member
/kernel/linux/linux-5.10/drivers/staging/media/tegra-vde/
Diommu.c91 order = __ffs(vde->domain->pgsize_bitmap); in tegra_vde_iommu_init()
/kernel/linux/linux-5.10/include/uapi/linux/
Dvfio.h1050 __u64 pgsize_bitmap; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dvfio.h308 __u64 pgsize_bitmap; member
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Ddev.c293 order = __ffs(host->domain->pgsize_bitmap); in host1x_iommu_attach()

12