Searched refs:pgsizes (Results 1 – 14 of 14) sorted by relevance
41 unsigned long pgsizes; in calc_pgsize() local46 pgsizes = pagetable->pgsize_bitmap & GENMASK(__fls(size), 0); in calc_pgsize()50 pgsizes &= GENMASK(__ffs(addr_merge), 0); in calc_pgsize()53 BUG_ON(!pgsizes); in calc_pgsize()56 pgsize_idx = __fls(pgsizes); in calc_pgsize()62 pgsizes = pagetable->pgsize_bitmap & ~GENMASK(pgsize_idx, 0); in calc_pgsize()63 if (!pgsizes) in calc_pgsize()66 pgsize_idx_next = __ffs(pgsizes); in calc_pgsize()
254 pgmask = bcontainer->pgsizes & (pagesize | (pagesize - 1)); in vfio_spapr_create_window()260 bcontainer->pgsizes); in vfio_spapr_create_window()508 bcontainer->pgsizes = info.ddw.pgsizes; in vfio_spapr_container_setup()523 bcontainer->pgsizes = 0x1000; in vfio_spapr_container_setup()
421 g_assert(bcontainer->pgsizes && in vfio_register_ram_discard_listener()422 vrdl->granularity >= 1ULL << ctz64(bcontainer->pgsizes)); in vfio_register_ram_discard_listener()661 hwaddr pgmask = (1ULL << ctz64(bcontainer->pgsizes)) - 1; in vfio_listener_region_add()764 pgmask = (1ULL << ctz64(bcontainer->pgsizes)) - 1; in vfio_listener_region_del()
159 unmap.size -= 1ULL << ctz64(bcontainer->pgsizes); in vfio_legacy_dma_unmap()525 bcontainer->pgsizes = info->iova_pgsizes; in vfio_legacy_setup()527 bcontainer->pgsizes = qemu_real_host_page_size(); in vfio_legacy_setup()
453 bcontainer->pgsizes = info->out_iova_alignment; in iommufd_cdev_get_info_iova_range()556 bcontainer->pgsizes = qemu_real_host_page_size(); in iommufd_cdev_attach()
44 unsigned long pgsizes; member95 return bcontainer->pgsizes; in vfio_container_get_page_size_mask()
426 u32 pgsizes; in malidp_mmu_prefetch_select_mode() local429 pgsizes = *pgsize_bitmap & MALIDP_MMU_PREFETCH_FULL_PGSIZES; in malidp_mmu_prefetch_select_mode()431 while (pgsizes) { in malidp_mmu_prefetch_select_mode()432 u32 largest_pgsize = 1 << __fls(pgsizes); in malidp_mmu_prefetch_select_mode()439 pgsizes -= largest_pgsize; in malidp_mmu_prefetch_select_mode()443 pgsizes = *pgsize_bitmap & MALIDP_MMU_PREFETCH_PARTIAL_PGSIZES; in malidp_mmu_prefetch_select_mode()449 *pgsize_bitmap = 1 << __ffs(pgsizes); in malidp_mmu_prefetch_select_mode()
2371 unsigned long pgsizes; in iommu_pgsize() local2376 pgsizes = domain->pgsize_bitmap & GENMASK(__fls(size), 0); in iommu_pgsize()2380 pgsizes &= GENMASK(__ffs(addr_merge), 0); in iommu_pgsize()2383 BUG_ON(!pgsizes); in iommu_pgsize()2386 pgsize_idx = __fls(pgsizes); in iommu_pgsize()2392 pgsizes = domain->pgsize_bitmap & ~GENMASK(pgsize_idx, 0); in iommu_pgsize()2393 if (!pgsizes) in iommu_pgsize()2396 pgsize_idx_next = __ffs(pgsizes); in iommu_pgsize()
196 __u64 pgsizes; /* Bitmap of supported page sizes */ member
663 if (!(table_group->pgsizes & (1ULL << page_shift))) in tce_iommu_create_window()889 info.ddw.pgsizes = table_group->pgsizes; in tce_iommu_ioctl()
1665 __u64 pgsizes; /* Bitmap of supported page sizes */ member
1689 __u64 pgsizes; /* Bitmap of supported page sizes */ member
80 table_group->pgsizes = SZ_4K; in iommu_pseries_alloc_group()
1606 pe->table_group.pgsizes = pnv_ioda_parse_tce_sizes(phb); in pnv_pci_ioda2_setup_dma_pe()