Home
last modified time | relevance | path

Searched refs:iommu_prot (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/drivers/iommu/iommufd/
H A Dio_pagetable.c200 int iommu_prot) in iopt_insert_area() argument
204 if ((iommu_prot & IOMMU_WRITE) && !pages->writable) in iopt_insert_area()
207 area->iommu_prot = iommu_prot; in iopt_insert_area()
247 int iommu_prot, unsigned int flags) in iopt_alloc_area_pages() argument
292 elm->start_byte, elm->length, iommu_prot); in iopt_alloc_area_pages()
354 int iommu_prot, unsigned int flags) in iopt_map_pages() argument
360 iommu_prot, flags); in iopt_map_pages()
407 unsigned long length, int iommu_prot, in iopt_map_user_pages() argument
414 elm.pages = iopt_alloc_pages(uptr, length, iommu_prot & IOMMU_WRITE); in iopt_map_user_pages()
424 rc = iopt_map_pages(iopt, &pages_list, length, iova, iommu_prot, flags); in iopt_map_user_pages()
[all …]
H A Dioas.c191 int iommu_prot = IOMMU_CACHE; in conv_iommu_prot() local
194 iommu_prot |= IOMMU_WRITE; in conv_iommu_prot()
196 iommu_prot |= IOMMU_READ; in conv_iommu_prot()
197 return iommu_prot; in conv_iommu_prot()
H A Dvfio_compat.c165 int iommu_prot = IOMMU_CACHE; in iommufd_vfio_map_dma() local
177 iommu_prot |= IOMMU_READ; in iommufd_vfio_map_dma()
179 iommu_prot |= IOMMU_WRITE; in iommufd_vfio_map_dma()
192 map.size, iommu_prot, 0); in iommufd_vfio_map_dma()
H A Diommufd_private.h64 unsigned long length, int iommu_prot,
68 int iommu_prot, unsigned int flags);
H A Dio_pagetable.h48 int iommu_prot; member
H A Ddevice.c960 return area->iommu_prot & IOMMU_WRITE; in check_area_prot()
961 return area->iommu_prot & IOMMU_READ; in check_area_prot()
H A Dpages.c500 next_iova - iova, area->iommu_prot); in batch_to_domain()
504 next_iova - iova, area->iommu_prot, in batch_to_domain()
/openbmc/linux/drivers/iommu/
H A Dio-pgtable-dart.c238 int iommu_prot, gfp_t gfp, size_t *mapped) in dart_map_pages() argument
253 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in dart_map_pages()
279 prot = dart_prot_to_pte(data, iommu_prot); in dart_map_pages()
H A Dio-pgtable-arm.c478 int iommu_prot, gfp_t gfp, size_t *mapped) in arm_lpae_map_pages() argument
495 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in arm_lpae_map_pages()
498 prot = arm_lpae_prot_to_pte(data, iommu_prot); in arm_lpae_map_pages()
/openbmc/linux/drivers/iommu/amd/
H A Diommu.c2248 int iommu_prot, gfp_t gfp, size_t *mapped) in amd_iommu_map_pages() argument
2259 if (iommu_prot & IOMMU_READ) in amd_iommu_map_pages()
2261 if (iommu_prot & IOMMU_WRITE) in amd_iommu_map_pages()
/openbmc/linux/drivers/iommu/intel/
H A Diommu.c4142 size_t size, int iommu_prot, gfp_t gfp) in intel_iommu_map() argument
4148 if (iommu_prot & IOMMU_READ) in intel_iommu_map()
4150 if (iommu_prot & IOMMU_WRITE) in intel_iommu_map()