Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iommu/iommufd/
Dio_pagetable.c201 int iommu_prot) in iopt_insert_area() argument
205 if ((iommu_prot & IOMMU_WRITE) && !pages->writable) in iopt_insert_area()
208 area->iommu_prot = iommu_prot; in iopt_insert_area()
248 int iommu_prot, unsigned int flags) in iopt_alloc_area_pages() argument
293 elm->start_byte, elm->length, iommu_prot); in iopt_alloc_area_pages()
355 int iommu_prot, unsigned int flags) in iopt_map_pages() argument
361 iommu_prot, flags); in iopt_map_pages()
408 unsigned long length, int iommu_prot, in iopt_map_user_pages() argument
415 elm.pages = iopt_alloc_pages(uptr, length, iommu_prot & IOMMU_WRITE); in iopt_map_user_pages()
425 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.h70 unsigned long length, int iommu_prot,
74 int iommu_prot, unsigned int flags);
Dio_pagetable.h48 int iommu_prot; member
Ddevice.c1011 return area->iommu_prot & IOMMU_WRITE; in check_area_prot()
1012 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.12.1/drivers/iommu/
Dio-pgtable-dart.c233 int iommu_prot, gfp_t gfp, size_t *mapped) in dart_map_pages() argument
248 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in dart_map_pages()
274 prot = dart_prot_to_pte(data, iommu_prot); in dart_map_pages()
Dio-pgtable-arm.c501 int iommu_prot, gfp_t gfp, size_t *mapped) in arm_lpae_map_pages() argument
518 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in arm_lpae_map_pages()
521 prot = arm_lpae_prot_to_pte(data, iommu_prot); in arm_lpae_map_pages()
/linux-6.12.1/drivers/iommu/amd/
Diommu.c2520 int iommu_prot, gfp_t gfp, size_t *mapped) in amd_iommu_map_pages() argument
2531 if (iommu_prot & IOMMU_READ) in amd_iommu_map_pages()
2533 if (iommu_prot & IOMMU_WRITE) in amd_iommu_map_pages()
/linux-6.12.1/drivers/iommu/intel/
Diommu.c3646 size_t size, int iommu_prot, gfp_t gfp) in intel_iommu_map() argument
3652 if (iommu_prot & IOMMU_READ) in intel_iommu_map()
3654 if (iommu_prot & IOMMU_WRITE) in intel_iommu_map()