Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/iommu/
Dio-pgtable-arm.c395 if (size == block_size && (size & cfg->pgsize_bitmap)) in __arm_lpae_map()
712 if (cfg->pgsize_bitmap & PAGE_SIZE) in arm_lpae_restrict_pgsizes()
714 else if (cfg->pgsize_bitmap & ~PAGE_MASK) in arm_lpae_restrict_pgsizes()
715 granule = 1UL << __fls(cfg->pgsize_bitmap & ~PAGE_MASK); in arm_lpae_restrict_pgsizes()
716 else if (cfg->pgsize_bitmap & PAGE_MASK) in arm_lpae_restrict_pgsizes()
717 granule = 1UL << __ffs(cfg->pgsize_bitmap & PAGE_MASK); in arm_lpae_restrict_pgsizes()
738 cfg->pgsize_bitmap &= page_sizes; in arm_lpae_restrict_pgsizes()
751 if (!(cfg->pgsize_bitmap & (SZ_4K | SZ_16K | SZ_64K))) in arm_lpae_alloc_pgtable()
769 data->pg_shift = __ffs(cfg->pgsize_bitmap); in arm_lpae_alloc_pgtable()
992 cfg->pgsize_bitmap &= (SZ_4K | SZ_2M | SZ_1G); in arm_32_lpae_alloc_pgtable_s1()
[all …]
Dvirtio-iommu.c49 u64 pgsize_bitmap; member
620 domain->pgsize_bitmap = viommu->pgsize_bitmap; in viommu_domain_finalise()
1033 &viommu->pgsize_bitmap); in viommu_probe()
1035 if (!viommu->pgsize_bitmap) { in viommu_probe()
1073 viommu_ops.pgsize_bitmap = viommu->pgsize_bitmap; in viommu_probe()
1117 dev_info(dev, "page mask: %#llx\n", viommu->pgsize_bitmap); in viommu_probe()
Darm-smmu.c769 .pgsize_bitmap = smmu->pgsize_bitmap, in arm_smmu_init_domain_context()
787 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; in arm_smmu_init_domain_context()
1573 .pgsize_bitmap = -1UL, /* Restricted during device attach */
1825 smmu->pgsize_bitmap |= SZ_4K | SZ_64K | SZ_1M | SZ_16M; in arm_smmu_device_cfg_probe()
1828 smmu->pgsize_bitmap |= SZ_4K | SZ_2M | SZ_1G; in arm_smmu_device_cfg_probe()
1830 smmu->pgsize_bitmap |= SZ_16K | SZ_32M; in arm_smmu_device_cfg_probe()
1832 smmu->pgsize_bitmap |= SZ_64K | SZ_512M; in arm_smmu_device_cfg_probe()
1834 if (arm_smmu_ops.pgsize_bitmap == -1UL) in arm_smmu_device_cfg_probe()
1835 arm_smmu_ops.pgsize_bitmap = smmu->pgsize_bitmap; in arm_smmu_device_cfg_probe()
1837 arm_smmu_ops.pgsize_bitmap |= smmu->pgsize_bitmap; in arm_smmu_device_cfg_probe()
[all …]
Dio-pgtable-arm-v7s.c799 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()
891 .pgsize_bitmap = SZ_4K | SZ_64K | SZ_1M | SZ_16M, in arm_v7s_do_selftests()
923 for_each_set_bit(i, &cfg.pgsize_bitmap, BITS_PER_LONG) { in arm_v7s_do_selftests()
945 size = 1UL << __ffs(cfg.pgsize_bitmap); in arm_v7s_do_selftests()
963 for_each_set_bit(i, &cfg.pgsize_bitmap, BITS_PER_LONG) { in arm_v7s_do_selftests()
Dqcom_iommu.c238 .pgsize_bitmap = qcom_iommu_ops.pgsize_bitmap, in qcom_iommu_init_domain()
254 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; in qcom_iommu_init_domain()
620 .pgsize_bitmap = SZ_4K | SZ_64K | SZ_1M | SZ_16M,
Dmtk_iommu.c326 .pgsize_bitmap = mtk_iommu_ops.pgsize_bitmap, in mtk_iommu_domain_finalise()
340 dom->domain.pgsize_bitmap = dom->cfg.pgsize_bitmap; in mtk_iommu_domain_finalise()
567 .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()
714 .pgsize_bitmap = MSM_IOMMU_PGSIZES,
Diommu.c635 BUG_ON(!domain->pgsize_bitmap); in iommu_group_create_direct_mappings()
637 pg_size = 1UL << __ffs(domain->pgsize_bitmap); in iommu_group_create_direct_mappings()
1606 domain->pgsize_bitmap = bus->iommu_ops->pgsize_bitmap; in __iommu_domain_alloc()
1845 pgsize &= domain->pgsize_bitmap; in iommu_pgsize()
1868 domain->pgsize_bitmap == 0UL)) in iommu_map()
1875 min_pagesz = 1 << __ffs(domain->pgsize_bitmap); in iommu_map()
1928 domain->pgsize_bitmap == 0UL)) in __iommu_unmap()
1935 min_pagesz = 1 << __ffs(domain->pgsize_bitmap); in __iommu_unmap()
2125 *paging = (domain->pgsize_bitmap != 0UL); in iommu_domain_get_attr()
Darm-smmu-v3.c613 unsigned long pgsize_bitmap; member
2243 .pgsize_bitmap = smmu->pgsize_bitmap, in arm_smmu_domain_finalise()
2258 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; in arm_smmu_domain_finalise()
2347 stu = __ffs(smmu->pgsize_bitmap); in arm_smmu_enable_ats()
2740 .pgsize_bitmap = -1UL, /* Restricted during device attach */
3445 smmu->pgsize_bitmap |= SZ_64K | SZ_512M; in arm_smmu_device_hw_probe()
3447 smmu->pgsize_bitmap |= SZ_16K | SZ_32M; in arm_smmu_device_hw_probe()
3449 smmu->pgsize_bitmap |= SZ_4K | SZ_2M | SZ_1G; in arm_smmu_device_hw_probe()
3474 smmu->pgsize_bitmap |= 1ULL << 42; /* 4TB */ in arm_smmu_device_hw_probe()
3484 if (arm_smmu_ops.pgsize_bitmap == -1UL) in arm_smmu_device_hw_probe()
[all …]
Ddma-iommu.c316 order = __ffs(domain->pgsize_bitmap); in iommu_dma_init_domain()
574 unsigned int count, min_size, alloc_sizes = domain->pgsize_bitmap; in iommu_dma_alloc_remap()
1091 return (1UL << __ffs(domain->pgsize_bitmap)) - 1; in iommu_dma_get_merge_boundary()
Dtegra-gart.c299 .pgsize_bitmap = GART_IOMMU_PGSIZES,
Ds390-iommu.c379 .pgsize_bitmap = S390_IOMMU_PGSIZES,
Darm-smmu.h267 unsigned long pgsize_bitmap; member
Dipmmu-vmsa.c482 domain->cfg.pgsize_bitmap = SZ_1G | SZ_2M | SZ_4K; in ipmmu_domain_init_context()
974 .pgsize_bitmap = SZ_1G | SZ_2M | SZ_4K,
Dmtk_iommu_v1.c539 .pgsize_bitmap = ~0UL << MT2701_IOMMU_PAGE_SHIFT,
Dtegra-smmu.c899 .pgsize_bitmap = SZ_4K,
Drockchip-iommu.c1130 .pgsize_bitmap = RK_IOMMU_PGSIZE_BITMAP,
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/include/linux/
Dio-pgtable.h93 unsigned long pgsize_bitmap; member
Diommu.h92 unsigned long pgsize_bitmap; /* Bitmap of page sizes in use */ member
310 unsigned long pgsize_bitmap; member
/Linux-v5.4/drivers/staging/media/tegra-vde/
Diommu.c91 order = __ffs(vde->domain->pgsize_bitmap); in tegra_vde_iommu_init()
/Linux-v5.4/drivers/gpu/host1x/
Ddev.c310 order = __ffs(host->domain->pgsize_bitmap); in host1x_probe()
/Linux-v5.4/drivers/gpu/drm/panfrost/
Dpanfrost_mmu.c361 .pgsize_bitmap = SZ_4K | SZ_2M, in panfrost_mmu_pgtable_alloc()
/Linux-v5.4/drivers/gpu/drm/tegra/
Ddrm.c156 order = __ffs(tegra->domain->pgsize_bitmap); in tegra_drm_load()

12