Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/vfio/
Diova_bitmap.c39 unsigned long pgshift; member
130 unsigned long pgsize = 1 << bitmap->mapped.pgshift; in iova_bitmap_offset_to_index()
141 unsigned long pgshift = bitmap->mapped.pgshift; in iova_bitmap_index_to_offset() local
143 return (index * BITS_PER_TYPE(*bitmap->bitmap)) << pgshift; in iova_bitmap_index_to_offset()
250 mapped->pgshift = __ffs(page_size); in iova_bitmap_alloc()
407 mapped->pgshift) + mapped->pgoff * BITS_PER_BYTE; in iova_bitmap_set()
409 mapped->pgshift) + mapped->pgoff * BITS_PER_BYTE; in iova_bitmap_set()
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()
881 unsigned long pgshift = __ffs(iommu->pgsize_bitmap); in vfio_iommu_type1_pin_pages() local
888 (iova - dma->iova) >> pgshift, 1); in vfio_iommu_type1_pin_pages()
1162 unsigned long pgshift = __ffs(pgsize); in update_user_bitmap() local
1163 unsigned long nbits = dma->size >> pgshift; in update_user_bitmap()
1164 unsigned long bit_offset = (dma->iova - base_iova) >> pgshift; in update_user_bitmap()
1200 unsigned long pgshift = __ffs(pgsize); in vfio_iova_dirty_bitmap() local
[all …]
/linux-6.6.21/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.6.21/drivers/gpu/drm/nouveau/include/nvkm/core/
Dtegra.h27 unsigned long pgshift; member
/linux-6.6.21/drivers/iommu/arm/arm-smmu/
Darm-smmu.h283 unsigned int pgshift; member
469 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.c1776 smmu->pgshift = (id & ARM_SMMU_ID1_PAGESIZE) ? 16 : 12; in arm_smmu_device_cfg_probe()
1780 if (smmu->numpage != 2 * size << smmu->pgshift) in arm_smmu_device_cfg_probe()
1783 2 * size << smmu->pgshift, smmu->numpage); in arm_smmu_device_cfg_probe()
/linux-6.6.21/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.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dgk20a.c593 imem->iommu_pgshift = tdev->iommu.pgshift; in gk20a_instmem_new()
/linux-6.6.21/drivers/iommu/intel/
Diommu.c4167 unsigned long pgshift = __ffs(pgsize); in intel_iommu_map_pages() local
4168 size_t size = pgcount << pgshift; in intel_iommu_map_pages()
4224 unsigned long pgshift = __ffs(pgsize); in intel_iommu_unmap_pages() local
4225 size_t size = pgcount << pgshift; in intel_iommu_unmap_pages()