Home
last modified time | relevance | path

Searched refs:IOMMU_WRITE (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.6.21/drivers/infiniband/hw/usnic/
Dusnic_uiom.c229 if (interval->flags & IOMMU_WRITE) in __usnic_uiom_reg_release()
254 flags |= (uiomr->writable) ? IOMMU_WRITE : 0; in usnic_uiom_map_sorted_intervals()
374 (writable) ? IOMMU_WRITE : 0, in usnic_uiom_reg_get()
375 IOMMU_WRITE, in usnic_uiom_reg_get()
393 (writable) ? IOMMU_WRITE : 0); in usnic_uiom_reg_get()
/linux-6.6.21/drivers/iommu/
Dio-pgtable-dart.c219 if (!(prot & IOMMU_WRITE)) in dart_prot_to_pte()
225 if (!(prot & IOMMU_WRITE)) in dart_prot_to_pte()
254 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in dart_map_pages()
Dio-pgtable-arm-v7s.c347 if (!(prot & IOMMU_WRITE)) in arm_v7s_prot_to_pte()
372 prot |= IOMMU_WRITE; in arm_v7s_pte_to_prot()
556 if (!(prot & (IOMMU_READ | IOMMU_WRITE))) in arm_v7s_map_pages()
974 IOMMU_READ | IOMMU_WRITE | in arm_v7s_do_selftests()
1023 if (ops->map_pages(ops, iova, iova, size, 1, IOMMU_WRITE, in arm_v7s_do_selftests()
Dio-pgtable-arm.c408 if (!(prot & IOMMU_WRITE) && (prot & IOMMU_READ)) in arm_lpae_prot_to_pte()
416 if (prot & IOMMU_WRITE) in arm_lpae_prot_to_pte()
484 if (!(iommu_prot & (IOMMU_READ | IOMMU_WRITE))) in arm_lpae_map_pages()
1198 IOMMU_READ | IOMMU_WRITE | in arm_lpae_run_tests()
1241 IOMMU_WRITE, GFP_KERNEL, &mapped)) in arm_lpae_run_tests()
Dof_iommu.c257 int prot = IOMMU_READ | IOMMU_WRITE; in of_iommu_get_resv_regions()
Dsun50i-iommu.c276 if ((prot & (IOMMU_READ | IOMMU_WRITE)) == (IOMMU_READ | IOMMU_WRITE)) in sun50i_mk_pte()
280 else if (prot & IOMMU_WRITE) in sun50i_mk_pte()
Dvirtio-iommu.c473 unsigned long prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO; in viommu_add_resv_mem()
826 (prot & IOMMU_WRITE ? VIRTIO_IOMMU_MAP_F_WRITE : 0) | in viommu_map_pages()
919 int prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO; in viommu_get_resv_regions()
Ds390-iommu.c336 if (!(prot & IOMMU_WRITE)) in s390_iommu_map_pages()
Ddma-iommu.c649 return prot | IOMMU_READ | IOMMU_WRITE; in dma_info_to_prot()
653 return prot | IOMMU_WRITE; in dma_info_to_prot()
1663 int prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO; in iommu_dma_get_msi_page()
Drockchip-iommu.c272 flags |= (prot & IOMMU_WRITE) ? RK_PTE_PAGE_WRITABLE : 0; in rk_mk_pte()
293 flags |= (prot & IOMMU_WRITE) ? RK_PTE_PAGE_WRITABLE : 0; in rk_mk_pte_v2()
/linux-6.6.21/drivers/gpu/drm/msm/
Dmsm_gpummu.c36 if (prot & IOMMU_WRITE) in msm_gpummu_map()
/linux-6.6.21/drivers/media/platform/nvidia/tegra-vde/
Diommu.c40 IOMMU_READ | IOMMU_WRITE); in tegra_vde_iommu_map()
/linux-6.6.21/drivers/net/ipa/
Dipa_mem.c475 ret = iommu_map(domain, iova, phys, size, IOMMU_READ | IOMMU_WRITE, in ipa_imem_init()
584 ret = iommu_map(domain, iova, phys, size, IOMMU_READ | IOMMU_WRITE, in ipa_smem_init()
/linux-6.6.21/drivers/media/platform/qcom/venus/
Dfirmware.c163 IOMMU_READ | IOMMU_WRITE | IOMMU_PRIV, GFP_KERNEL); in venus_boot_no_tz()
/linux-6.6.21/drivers/gpu/drm/panfrost/
Dpanfrost_mmu.c328 int prot = IOMMU_READ | IOMMU_WRITE; in panfrost_mmu_map()
522 IOMMU_WRITE | IOMMU_READ | IOMMU_NOEXEC, sgt); in panfrost_mmu_map_fault_addr()
/linux-6.6.21/drivers/vfio/
Dvfio_iommu_type1.c467 unpin_user_pages_dirty_lock(&page, 1, prot & IOMMU_WRITE); in put_pfn()
563 if (prot & IOMMU_WRITE) in vaddr_get_pfns()
592 ret = follow_fault_pfn(vma, mm, vaddr, pfn, prot & IOMMU_WRITE); in vaddr_get_pfns()
1574 prot |= IOMMU_WRITE; in vfio_dma_do_map()
1848 IOMMU_READ | IOMMU_WRITE | IOMMU_CACHE, GFP_KERNEL); in vfio_test_domain_fgsp()
3071 if ((write && !(dma->prot & IOMMU_WRITE)) || in vfio_iommu_type1_dma_rw_chunk()
/linux-6.6.21/drivers/iommu/iommufd/
Dioas.c194 iommu_prot |= IOMMU_WRITE; in conv_iommu_prot()
Dvfio_compat.c179 iommu_prot |= IOMMU_WRITE; in iommufd_vfio_map_dma()
Dio_pagetable.c196 if ((iommu_prot & IOMMU_WRITE) && !pages->writable) in iopt_insert_area()
406 elm.pages = iopt_alloc_pages(uptr, length, iommu_prot & IOMMU_WRITE); in iopt_map_user_pages()
/linux-6.6.21/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c25 int prot = IOMMU_READ | IOMMU_WRITE; in rockchip_gem_iommu_map()
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dahb.c1013 IOMMU_READ | IOMMU_WRITE, GFP_KERNEL); in ath11k_ahb_fw_resources_init()
1021 IOMMU_READ | IOMMU_WRITE, GFP_KERNEL); in ath11k_ahb_fw_resources_init()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dgk20a.c478 PAGE_SIZE, IOMMU_READ | IOMMU_WRITE, in gk20a_instobj_ctor_iommu()
/linux-6.6.21/drivers/s390/cio/
Dvfio_ccw_cp.c148 IOMMU_READ | IOMMU_WRITE, in page_array_pin()
/linux-6.6.21/drivers/remoteproc/
Dqcom_q6v5_adsp.c370 adsp->mem_size, IOMMU_READ | IOMMU_WRITE, in adsp_map_carveout()
/linux-6.6.21/drivers/acpi/arm64/
Diort.c904 int prot = IOMMU_READ | IOMMU_WRITE; in iort_get_rmrs()
1147 int prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO; in iort_iommu_msi_get_resv_regions()

12