| /linux/drivers/iommu/ |
| H A D | io-pgtable-arm-selftests.c | 92 IOMMU_READ | IOMMU_WRITE | in arm_lpae_run_tests() 122 IOMMU_WRITE, GFP_KERNEL, &mapped)) in arm_lpae_run_tests() 139 IOMMU_READ | IOMMU_WRITE | in arm_lpae_run_tests()
|
| H A D | io-pgtable-dart.c | 209 if (!(prot & IOMMU_WRITE)) in dart_prot_to_pte() 215 if (!(prot & IOMMU_WRITE)) in dart_prot_to_pte() 244 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in dart_map_pages()
|
| H A D | io-pgtable-arm-v7s.c | 346 if (!(prot & IOMMU_WRITE)) in arm_v7s_prot_to_pte() 518 if (!(prot & (IOMMU_READ | IOMMU_WRITE))) in arm_v7s_map_pages() 862 IOMMU_READ | IOMMU_WRITE | in arm_v7s_do_selftests() 891 if (ops->map_pages(ops, iova, iova, size, 1, IOMMU_WRITE, in arm_v7s_do_selftests()
|
| H A D | sun50i-iommu.c | 277 if ((prot & (IOMMU_READ | IOMMU_WRITE)) == (IOMMU_READ | IOMMU_WRITE)) in sun50i_mk_pte() 281 else if (prot & IOMMU_WRITE) in sun50i_mk_pte()
|
| H A D | virtio-iommu.c | 490 unsigned long prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO; in viommu_add_resv_mem() 854 (prot & IOMMU_WRITE ? VIRTIO_IOMMU_MAP_F_WRITE : 0) | in viommu_map_pages() 974 int prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO; in viommu_get_resv_regions()
|
| H A D | dma-iommu.c | 750 return prot | IOMMU_READ | IOMMU_WRITE; in dma_info_to_prot() 754 return prot | IOMMU_WRITE; in dma_info_to_prot() 2200 int prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO; in iommu_dma_get_msi_page()
|
| H A D | s390-iommu.c | 931 if (!(prot & IOMMU_WRITE)) in s390_iommu_map_pages()
|
| H A D | tegra-smmu.c | 748 if (prot & IOMMU_WRITE) in __tegra_smmu_map()
|
| H A D | exynos-iommu.c | 97 #define SYSMMU_SUPPORTED_PROT_BITS (IOMMU_READ | IOMMU_WRITE)
|
| /linux/drivers/iommu/generic_pt/fmt/ |
| H A D | vtdss.h | 225 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in vtdss_pt_iommu_set_prot() 230 if (iommu_prot & IOMMU_WRITE) in vtdss_pt_iommu_set_prot() 236 !(iommu_prot & IOMMU_WRITE)) { in vtdss_pt_iommu_set_prot()
|
| /linux/drivers/accel/amdxdna/ |
| H A D | amdxdna_iommu.c | 75 IOMMU_READ | IOMMU_WRITE); in amdxdna_dma_map_bo() 136 IOMMU_READ | IOMMU_WRITE, GFP_KERNEL); in amdxdna_iommu_alloc()
|
| /linux/drivers/gpu/drm/msm/adreno/ |
| H A D | a2xx_gpummu.c | 42 if (prot & IOMMU_WRITE) in a2xx_gpummu_map()
|
| /linux/drivers/accel/rocket/ |
| H A D | rocket_gem.c | 99 IOMMU_READ | IOMMU_WRITE); in rocket_ioctl_create_bo()
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_mmu.c | 468 int prot = IOMMU_READ | IOMMU_WRITE | IOMMU_CACHE; in panfrost_mmu_map() 690 IOMMU_WRITE | IOMMU_READ | IOMMU_CACHE | IOMMU_NOEXEC, sgt); in panfrost_mmu_map_fault_addr()
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | ahb.c | 1068 IOMMU_READ | IOMMU_WRITE, GFP_KERNEL); in ath11k_ahb_fw_resources_init() 1076 IOMMU_READ | IOMMU_WRITE, GFP_KERNEL); in ath11k_ahb_fw_resources_init()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
| H A D | gk20a.c | 478 PAGE_SIZE, IOMMU_READ | IOMMU_WRITE, in gk20a_instobj_ctor_iommu()
|
| /linux/drivers/s390/cio/ |
| H A D | vfio_ccw_cp.c | 148 IOMMU_READ | IOMMU_WRITE, in page_array_pin()
|
| /linux/arch/arm/mm/ |
| H A D | dma-mapping.c | 740 return prot | IOMMU_READ | IOMMU_WRITE; in __dma_info_to_prot() 744 return prot | IOMMU_WRITE; in __dma_info_to_prot()
|
| /linux/sound/usb/qcom/ |
| H A D | qc_audio_offload.c | 543 int prot = IOMMU_READ | IOMMU_WRITE; in uaudio_iommu_map_prot() 621 prot = IOMMU_READ | IOMMU_WRITE; in uaudio_iommu_map_xfer_buf()
|
| /linux/drivers/vhost/ |
| H A D | vdpa.c | 983 flags |= IOMMU_WRITE; in perm_to_iommu_flags() 989 flags |= (IOMMU_WRITE | IOMMU_READ); in perm_to_iommu_flags()
|
| /linux/include/linux/ |
| H A D | iommu.h | 20 #define IOMMU_WRITE (1 << 1) macro
|
| /linux/drivers/vfio/ |
| H A D | vfio_main.c | 1746 (prot & IOMMU_WRITE) ? IOMMUFD_ACCESS_RW_WRITE : 0); in vfio_pin_pages()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | device.c | 1462 return area->iommu_prot & IOMMU_WRITE; in check_area_prot()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | snoc.c | 1675 IOMMU_READ | IOMMU_WRITE, GFP_KERNEL); in ath10k_fw_init()
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | kvmgt.c | 154 IOMMU_READ | IOMMU_WRITE, &cur_page); in gvt_pin_guest_page()
|