Home
last modified time | relevance | path

Searched refs:pgshift (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/drivers/iommu/iommufd/
Diova_bitmap.c42 unsigned long pgshift; member
133 unsigned long pgsize = 1 << bitmap->mapped.pgshift; in iova_bitmap_offset_to_index()
144 unsigned long pgshift = bitmap->mapped.pgshift; in iova_bitmap_index_to_offset() local
146 return (index * BITS_PER_TYPE(*bitmap->bitmap)) << pgshift; in iova_bitmap_index_to_offset()
256 mapped->pgshift = __ffs(page_size); in iova_bitmap_alloc()
422 mapped->pgshift) + mapped->pgoff * BITS_PER_BYTE; in iova_bitmap_set()
424 mapped->pgshift) + mapped->pgoff * BITS_PER_BYTE; in iova_bitmap_set()
435 ((last_bit - cur_bit + 1) << mapped->pgshift); in iova_bitmap_set()
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dtegra.c134 tdev->iommu.pgshift = PAGE_SHIFT; in nvkm_device_tegra_probe_iommu()
136 tdev->iommu.pgshift = fls(pgsize_bitmap & ~PAGE_MASK); in nvkm_device_tegra_probe_iommu()
137 if (tdev->iommu.pgshift == 0) { in nvkm_device_tegra_probe_iommu()
141 tdev->iommu.pgshift -= 1; in nvkm_device_tegra_probe_iommu()
150 tdev->iommu.pgshift, 1); in nvkm_device_tegra_probe_iommu()
165 tdev->iommu.pgshift = 0; in nvkm_device_tegra_probe_iommu()
/linux-6.12.1/arch/arm64/kvm/
Dat.c23 unsigned int pgshift; member
191 wi->pgshift = 12; break; in setup_s1_walk()
193 wi->pgshift = 14; break; in setup_s1_walk()
196 wi->pgshift = 16; break; in setup_s1_walk()
204 wi->pgshift = 12; break; in setup_s1_walk()
206 wi->pgshift = 14; break; in setup_s1_walk()
209 wi->pgshift = 16; break; in setup_s1_walk()
218 if (wi->txsz > 48 || (BIT(wi->pgshift) == SZ_64K && wi->txsz > 47)) in setup_s1_walk()
223 switch (BIT(wi->pgshift)) { in setup_s1_walk()
258 stride = wi->pgshift - 3; in setup_s1_walk()
[all …]
Dnested.c99 unsigned int pgshift; member
132 switch (BIT(wi->pgshift)) { in check_base_s2_limits()
152 start_size = input_size - ((3 - level) * stride + wi->pgshift); in check_base_s2_limits()
187 switch (BIT(wi->pgshift)) { in walk_nested_s2_pgd()
200 stride = wi->pgshift - 3; in walk_nested_s2_pgd()
210 wi->pgshift); in walk_nested_s2_pgd()
223 addr_bottom = (3 - level) * stride + wi->pgshift; in walk_nested_s2_pgd()
258 base_addr = desc & GENMASK_ULL(47, wi->pgshift); in walk_nested_s2_pgd()
288 out->block_size = 1UL << ((3 - level) * stride + wi->pgshift); in walk_nested_s2_pgd()
309 wi->pgshift = 12; break; in vtcr_to_walk_info()
[all …]
/linux-6.12.1/drivers/vfio/
Dvfio_iommu_type1.c263 unsigned long pgshift = __ffs(pgsize); in vfio_dma_populate_bitmap() local
268 bitmap_set(dma->bitmap, (vpfn->iova - dma->iova) >> pgshift, 1); in vfio_dma_populate_bitmap()
275 unsigned long pgshift = __ffs(iommu->pgsize_bitmap); in vfio_iommu_populate_bitmap_full() local
280 bitmap_set(dma->bitmap, 0, dma->size >> pgshift); in vfio_iommu_populate_bitmap_full()
865 unsigned long pgshift = __ffs(iommu->pgsize_bitmap); in vfio_iommu_type1_pin_pages() local
872 (iova - dma->iova) >> pgshift, 1); in vfio_iommu_type1_pin_pages()
1146 unsigned long pgshift = __ffs(pgsize); in update_user_bitmap() local
1147 unsigned long nbits = dma->size >> pgshift; in update_user_bitmap()
1148 unsigned long bit_offset = (dma->iova - base_iova) >> pgshift; in update_user_bitmap()
1184 unsigned long pgshift = __ffs(pgsize); in vfio_iova_dirty_bitmap() local
[all …]
/linux-6.12.1/drivers/gpu/drm/nouveau/include/nvkm/core/
Dtegra.h27 unsigned long pgshift; member
/linux-6.12.1/drivers/iommu/arm/arm-smmu/
Darm-smmu.h293 unsigned int pgshift; member
479 return smmu->base + (n << smmu->pgshift); in arm_smmu_page()
Darm-smmu-nvidia.c52 return nvidia_smmu->bases[inst] + (page << smmu->pgshift); in nvidia_smmu_page()
Darm-smmu.c1854 smmu->pgshift = (id & ARM_SMMU_ID1_PAGESIZE) ? 16 : 12; in arm_smmu_device_cfg_probe()
1858 if (smmu->numpage != 2 * size << smmu->pgshift) in arm_smmu_device_cfg_probe()
1861 2 * size << smmu->pgshift, smmu->numpage); in arm_smmu_device_cfg_probe()
/linux-6.12.1/arch/arm64/include/asm/
Dkvm_nested.h216 switch (BIT((wi)->pgshift)) { \
/linux-6.12.1/drivers/mtd/nand/raw/
Dnandsim.c327 uint pgshift; /* bits number in page size */ member
663 ns->geom.pgshift = chip->page_shift; in ns_init()
753 printk("bits in page size: %u\n", ns->geom.pgshift); in ns_init()
1635 erase_block_no = ns->regs.row >> (ns->geom.secshift - ns->geom.pgshift); in ns_do_state_action()
/linux-6.12.1/mm/
Dgup.c3657 unsigned int i, pgshift = PAGE_SHIFT; in memfd_pin_folios() local
3678 pgshift = huge_page_shift(h); in memfd_pin_folios()
3684 start_idx = start >> pgshift; in memfd_pin_folios()
3685 end_idx = end >> pgshift; in memfd_pin_folios()
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dgk20a.c595 imem->iommu_pgshift = tdev->iommu.pgshift; in gk20a_instmem_new()
/linux-6.12.1/drivers/iommu/intel/
Diommu.c3685 unsigned long pgshift = __ffs(pgsize); in intel_iommu_map_pages() local
3686 size_t size = pgcount << pgshift; in intel_iommu_map_pages()
3742 unsigned long pgshift = __ffs(pgsize); in intel_iommu_unmap_pages() local
3743 size_t size = pgcount << pgshift; in intel_iommu_unmap_pages()