Home
last modified time | relevance | path

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

/linux/drivers/iommu/iommufd/
H A 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
300 elm->start_byte, elm->length, iommu_prot); in iopt_alloc_area_pages()
362 int iommu_prot, unsigned int flags) in iopt_map_pages() argument
368 iommu_prot, flags); in iopt_map_pages()
397 int iommu_prot, unsigned int flags) in iopt_map_common() argument
411 rc = iopt_map_pages(iopt, &pages_list, length, iova, iommu_prot, flags); in iopt_map_common()
443 unsigned long length, int iommu_prot, in iopt_map_user_pages() argument
[all …]
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 Dioas.c195 int iommu_prot = IOMMU_CACHE; in conv_iommu_prot() local
198 iommu_prot |= IOMMU_WRITE; in conv_iommu_prot()
200 iommu_prot |= IOMMU_READ; in conv_iommu_prot()
201 return iommu_prot; in conv_iommu_prot()
H A Dio_pagetable.h48 int iommu_prot; member
H A Ddevice.c1011 return area->iommu_prot & IOMMU_WRITE; in check_area_prot()
1012 return area->iommu_prot & IOMMU_READ; in check_area_prot()
H A Dpages.c515 next_iova - iova, area->iommu_prot); in batch_to_domain()
519 next_iova - iova, area->iommu_prot, in batch_to_domain()
/linux/drivers/iommu/
H A 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()
/linux/drivers/iommu/amd/
H A Diommu.c2697 int iommu_prot, gfp_t gfp, size_t *mapped) in amd_iommu_map_pages() argument
2708 if (iommu_prot & IOMMU_READ) in amd_iommu_map_pages()
2710 if (iommu_prot & IOMMU_WRITE) in amd_iommu_map_pages()
/linux/drivers/iommu/intel/
H A Diommu.c3461 size_t size, int iommu_prot, gfp_t gfp) in intel_iommu_map() argument
3467 if (iommu_prot & IOMMU_READ) in intel_iommu_map()
3469 if (iommu_prot & IOMMU_WRITE) in intel_iommu_map()