Searched refs:iommu_prot (Results 1 – 11 of 11) sorted by relevance
/linux-6.6.21/drivers/iommu/iommufd/ |
D | io_pagetable.c | 192 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 …]
|
D | ioas.c | 191 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()
|
D | vfio_compat.c | 165 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()
|
D | iommufd_private.h | 64 unsigned long length, int iommu_prot, 68 int iommu_prot, unsigned int flags);
|
D | io_pagetable.h | 48 int iommu_prot; member
|
D | device.c | 960 return area->iommu_prot & IOMMU_WRITE; in check_area_prot() 961 return area->iommu_prot & IOMMU_READ; in check_area_prot()
|
D | pages.c | 500 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/ |
D | io-pgtable-dart.c | 238 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()
|
D | io-pgtable-arm.c | 466 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/ |
D | iommu.c | 2248 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/ |
D | iommu.c | 4128 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()
|