Searched refs:pgshift (Results 1 – 10 of 10) sorted by relevance
39 unsigned long pgshift; member130 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() local143 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()
263 unsigned long pgshift = __ffs(pgsize); in vfio_dma_populate_bitmap() local268 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() local280 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() local888 (iova - dma->iova) >> pgshift, 1); in vfio_iommu_type1_pin_pages()1162 unsigned long pgshift = __ffs(pgsize); in update_user_bitmap() local1163 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 …]
134 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()
27 unsigned long pgshift; member
283 unsigned int pgshift; member469 return smmu->base + (n << smmu->pgshift); in arm_smmu_page()
52 return nvidia_smmu->bases[inst] + (page << smmu->pgshift); in nvidia_smmu_page()
1776 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()
327 uint pgshift; /* bits number in page size */ member663 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()
593 imem->iommu_pgshift = tdev->iommu.pgshift; in gk20a_instmem_new()
4167 unsigned long pgshift = __ffs(pgsize); in intel_iommu_map_pages() local4168 size_t size = pgcount << pgshift; in intel_iommu_map_pages()4224 unsigned long pgshift = __ffs(pgsize); in intel_iommu_unmap_pages() local4225 size_t size = pgcount << pgshift; in intel_iommu_unmap_pages()