Home
last modified time | relevance | path

Searched refs:granule (Results 1 – 16 of 16) sorted by relevance

/Linux-v4.19/include/linux/
Diova.h75 unsigned long granule; /* pfn granularity for this domain */ member
108 return __ffs(iovad->granule); in iova_shift()
113 return iovad->granule - 1; in iova_mask()
123 return ALIGN(size, iovad->granule); in iova_align()
157 void init_iova_domain(struct iova_domain *iovad, unsigned long granule,
234 unsigned long granule, in init_iova_domain() argument
/Linux-v4.19/drivers/iommu/
Dio-pgtable.h32 void (*tlb_add_flush)(unsigned long iova, size_t size, size_t granule,
180 unsigned long iova, size_t size, size_t granule, bool leaf) in io_pgtable_tlb_add_flush() argument
182 iop->cfg.tlb->tlb_add_flush(iova, size, granule, leaf, iop->cookie); in io_pgtable_tlb_add_flush()
Dio-pgtable-arm.c683 unsigned long granule, page_sizes; in arm_lpae_restrict_pgsizes() local
694 granule = PAGE_SIZE; in arm_lpae_restrict_pgsizes()
696 granule = 1UL << __fls(cfg->pgsize_bitmap & ~PAGE_MASK); in arm_lpae_restrict_pgsizes()
698 granule = 1UL << __ffs(cfg->pgsize_bitmap & PAGE_MASK); in arm_lpae_restrict_pgsizes()
700 granule = 0; in arm_lpae_restrict_pgsizes()
702 switch (granule) { in arm_lpae_restrict_pgsizes()
1020 size_t granule, bool leaf, void *cookie) in dummy_tlb_add_flush() argument
Diova.c42 init_iova_domain(struct iova_domain *iovad, unsigned long granule, in init_iova_domain() argument
50 BUG_ON((granule > PAGE_SIZE) || !is_power_of_2(granule)); in init_iova_domain()
56 iovad->granule = granule; in init_iova_domain()
Ddma-iommu.c63 return cookie->iovad.granule; in cookie_msi_granule()
152 if (cookie->type == IOMMU_DMA_IOVA_COOKIE && cookie->iovad.granule) in iommu_put_dma_cookie()
202 start += iovad->granule; in cookie_init_hw_msi_region()
301 if (1UL << order != iovad->granule || in iommu_dma_init_domain()
Darm-smmu.c465 size_t granule, bool leaf, void *cookie) in arm_smmu_tlb_inv_range_nosync() argument
480 iova += granule; in arm_smmu_tlb_inv_range_nosync()
481 } while (size -= granule); in arm_smmu_tlb_inv_range_nosync()
487 iova += granule >> 12; in arm_smmu_tlb_inv_range_nosync()
488 } while (size -= granule); in arm_smmu_tlb_inv_range_nosync()
496 iova += granule >> 12; in arm_smmu_tlb_inv_range_nosync()
497 } while (size -= granule); in arm_smmu_tlb_inv_range_nosync()
508 size_t granule, bool leaf, void *cookie) in arm_smmu_tlb_inv_vmid_nosync() argument
Dqcom_iommu.c158 size_t granule, bool leaf, void *cookie) in qcom_iommu_tlb_inv_range_nosync() argument
173 iova += granule; in qcom_iommu_tlb_inv_range_nosync()
174 } while (s -= granule); in qcom_iommu_tlb_inv_range_nosync()
Dmsm_iommu.c151 size_t granule, bool leaf, void *cookie) in __flush_iotlb_range() argument
171 iova += granule; in __flush_iotlb_range()
172 } while (temp_size -= granule); in __flush_iotlb_range()
Dmtk_iommu.c157 size_t granule, bool leaf, in mtk_iommu_tlb_add_flush_nosync() argument
Darm-smmu-v3.c1406 size_t granule, bool leaf, void *cookie) in arm_smmu_tlb_inv_range_nosync() argument
1427 cmd.tlbi.addr += granule; in arm_smmu_tlb_inv_range_nosync()
1428 } while (size -= granule); in arm_smmu_tlb_inv_range_nosync()
Dipmmu-vmsa.c359 size_t granule, bool leaf, void *cookie) in ipmmu_tlb_add_flush() argument
Dio-pgtable-arm-v7s.c803 size_t granule, bool leaf, void *cookie) in dummy_tlb_add_flush() argument
/Linux-v4.19/Documentation/ia64/
Daliasing.txt65 identity mapping only when the entire granule supports cacheable
68 Therefore, kern_memmap contains only full granule-sized regions that
148 If the EFI memory map reports that the entire granule supports
152 If the granule contains non-WB memory, but we can cover the
180 which uses a granule-sized UC mapping. This granule will cover some
212 at 0xA0000 prevents use of a WB granule. The UC mapping causes
/Linux-v4.19/arch/ia64/
DKconfig.debug12 Select "16MB" for a small granule size.
13 Select "64MB" for a large granule size. This is the current default.
/Linux-v4.19/Documentation/
Dnommu-mmap.txt118 granule but will only discard the excess if appropriately configured as
/Linux-v4.19/arch/arm64/
DKconfig607 Page size (translation granule) configuration.