Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iommu/iommufd/
Dio_pagetable.c192 int iommu_prot) in iopt_insert_area() argument
196 if ((iommu_prot & IOMMU_WRITE) && !pages->writable) in iopt_insert_area()
199 area->iommu_prot = iommu_prot; in iopt_insert_area()
239 int iommu_prot, unsigned int flags) in iopt_alloc_area_pages() argument
284 elm->start_byte, elm->length, iommu_prot); in iopt_alloc_area_pages()
346 int iommu_prot, unsigned int flags) in iopt_map_pages() argument
352 iommu_prot, flags); in iopt_map_pages()
399 unsigned long length, int iommu_prot, in iopt_map_user_pages() argument
406 elm.pages = iopt_alloc_pages(uptr, length, iommu_prot & IOMMU_WRITE); in iopt_map_user_pages()
416 rc = iopt_map_pages(iopt, &pages_list, length, iova, iommu_prot, flags); in iopt_map_user_pages()
[all …]
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()
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()
Diommufd_private.h64 unsigned long length, int iommu_prot,
68 int iommu_prot, unsigned int flags);
Dio_pagetable.h48 int iommu_prot; member
Ddevice.c960 return area->iommu_prot & IOMMU_WRITE; in check_area_prot()
961 return area->iommu_prot & IOMMU_READ; in check_area_prot()
Dpages.c500 next_iova - iova, area->iommu_prot); in batch_to_domain()
504 next_iova - iova, area->iommu_prot, in batch_to_domain()
/linux-6.6.21/drivers/iommu/
Dio-pgtable-dart.c238 int iommu_prot, gfp_t gfp, size_t *mapped) in dart_map_pages() argument
254 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in dart_map_pages()
280 prot = dart_prot_to_pte(data, iommu_prot); in dart_map_pages()
Dio-pgtable-arm.c466 int iommu_prot, gfp_t gfp, size_t *mapped) in arm_lpae_map_pages() argument
484 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in arm_lpae_map_pages()
487 prot = arm_lpae_prot_to_pte(data, iommu_prot); in arm_lpae_map_pages()
/linux-6.6.21/drivers/iommu/amd/
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()
/linux-6.6.21/drivers/iommu/intel/
Diommu.c4128 size_t size, int iommu_prot, gfp_t gfp) in intel_iommu_map() argument
4134 if (iommu_prot & IOMMU_READ) in intel_iommu_map()
4136 if (iommu_prot & IOMMU_WRITE) in intel_iommu_map()