| /linux-6.15/drivers/gpu/drm/msm/ |
| H A D | msm_iommu.c | 23 struct io_pgtable_ops *pgtbl_ops; member 95 struct io_pgtable_ops *ops = pagetable->pgtbl_ops; in msm_iommu_pagetable_unmap() 119 struct io_pgtable_ops *ops = pagetable->pgtbl_ops; in msm_iommu_pagetable_map() 168 free_io_pgtable_ops(pagetable->pgtbl_ops); in msm_iommu_pagetable_destroy() 209 if (!pagetable->pgtbl_ops->pgtable_walk) in msm_iommu_pagetable_walk() 212 pagetable->pgtbl_ops->pgtable_walk(pagetable->pgtbl_ops, iova, &wd); in msm_iommu_pagetable_walk() 305 pagetable->pgtbl_ops = alloc_io_pgtable_ops(ARM_64_LPAE_S1, in msm_iommu_pagetable_create() 308 if (!pagetable->pgtbl_ops) { in msm_iommu_pagetable_create() 320 free_io_pgtable_ops(pagetable->pgtbl_ops); in msm_iommu_pagetable_create()
|
| /linux-6.15/drivers/iommu/arm/arm-smmu/ |
| H A D | qcom_iommu.c | 67 struct io_pgtable_ops *pgtbl_ops; member 222 struct io_pgtable_ops *pgtbl_ops; in qcom_iommu_init_domain() local 242 pgtbl_ops = alloc_io_pgtable_ops(ARM_32_LPAE_S1, &pgtbl_cfg, qcom_domain); in qcom_iommu_init_domain() 243 if (!pgtbl_ops) { in qcom_iommu_init_domain() 314 qcom_domain->pgtbl_ops = pgtbl_ops; in qcom_iommu_init_domain() 356 free_io_pgtable_ops(qcom_domain->pgtbl_ops); in qcom_iommu_domain_free() 436 struct io_pgtable_ops *ops = qcom_domain->pgtbl_ops; in qcom_iommu_map() 454 struct io_pgtable_ops *ops = qcom_domain->pgtbl_ops; in qcom_iommu_unmap() 476 struct io_pgtable *pgtable = container_of(qcom_domain->pgtbl_ops, in qcom_iommu_flush_iotlb_all() 478 if (!qcom_domain->pgtbl_ops) in qcom_iommu_flush_iotlb_all() [all …]
|
| H A D | arm-smmu.c | 675 struct io_pgtable_ops *pgtbl_ops; in arm_smmu_init_domain_context() local 819 pgtbl_ops = alloc_io_pgtable_ops(fmt, &pgtbl_cfg, smmu_domain); in arm_smmu_init_domain_context() 820 if (!pgtbl_ops) { in arm_smmu_init_domain_context() 871 smmu_domain->pgtbl_ops = pgtbl_ops; in arm_smmu_init_domain_context() 907 free_io_pgtable_ops(smmu_domain->pgtbl_ops); in arm_smmu_destroy_domain_context() 1261 struct io_pgtable_ops *ops = to_smmu_domain(domain)->pgtbl_ops; in arm_smmu_map_pages() 1279 struct io_pgtable_ops *ops = to_smmu_domain(domain)->pgtbl_ops; in arm_smmu_unmap_pages() 1329 struct io_pgtable_ops *ops= smmu_domain->pgtbl_ops; in arm_smmu_iova_to_phys_hard() 1379 struct io_pgtable_ops *ops = smmu_domain->pgtbl_ops; in arm_smmu_iova_to_phys()
|
| H A D | arm-smmu-qcom-debug.c | 363 struct io_pgtable *iop = io_pgtable_ops_to_pgtable(smmu_domain->pgtbl_ops); in qcom_smmu_verify_fault() 384 struct io_pgtable_ops *ops = smmu_domain->pgtbl_ops; in qcom_smmu_context_fault()
|
| H A D | arm-smmu-qcom.c | 203 io_pgtable_ops_to_pgtable(smmu_domain->pgtbl_ops); in qcom_adreno_smmu_get_ttbr1_cfg() 217 struct io_pgtable *pgtable = io_pgtable_ops_to_pgtable(smmu_domain->pgtbl_ops); in qcom_adreno_smmu_set_ttbr0_cfg()
|
| H A D | arm-smmu.h | 380 struct io_pgtable_ops *pgtbl_ops; member
|
| /linux-6.15/drivers/iommu/ |
| H A D | apple-dart.c | 262 struct io_pgtable_ops *pgtbl_ops; member 524 struct io_pgtable_ops *ops = dart_domain->pgtbl_ops; in apple_dart_iova_to_phys() 538 struct io_pgtable_ops *ops = dart_domain->pgtbl_ops; in apple_dart_map_pages() 553 struct io_pgtable_ops *ops = dart_domain->pgtbl_ops; in apple_dart_unmap_pages() 564 &io_pgtable_ops_to_pgtable(domain->pgtbl_ops)->cfg; in apple_dart_setup_translation() 607 dart_domain->pgtbl_ops = alloc_io_pgtable_ops(dart->hw->fmt, &pgtbl_cfg, in apple_dart_finalize_domain() 609 if (!dart_domain->pgtbl_ops) { in apple_dart_finalize_domain() 779 if (dart_domain->pgtbl_ops) in apple_dart_domain_free() 780 free_io_pgtable_ops(dart_domain->pgtbl_ops); in apple_dart_domain_free()
|
| /linux-6.15/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_mmu.c | 295 struct io_pgtable_ops *ops = mmu->pgtbl_ops; in mmu_map_sg() 354 struct io_pgtable_ops *ops = mapping->mmu->pgtbl_ops; in panfrost_mmu_unmap() 573 free_io_pgtable_ops(mmu->pgtbl_ops); in panfrost_mmu_release_ctx() 643 mmu->pgtbl_ops = alloc_io_pgtable_ops(ARM_MALI_LPAE, &mmu->pgtbl_cfg, in panfrost_mmu_ctx_create() 645 if (!mmu->pgtbl_ops) { in panfrost_mmu_ctx_create()
|
| H A D | panfrost_device.h | 159 struct io_pgtable_ops *pgtbl_ops; member
|
| /linux-6.15/drivers/gpu/drm/panthor/ |
| H A D | panthor_mmu.c | 268 struct io_pgtable_ops *pgtbl_ops; member 711 struct io_pgtable_cfg *cfg = &io_pgtable_ops_to_pgtable(vm->pgtbl_ops)->cfg; in panthor_vm_active() 832 const struct io_pgtable *pgt = io_pgtable_ops_to_pgtable(vm->pgtbl_ops); in panthor_vm_page_size() 912 struct io_pgtable_ops *ops = vm->pgtbl_ops; in panthor_vm_unmap_pages() 944 struct io_pgtable_ops *ops = vm->pgtbl_ops; in panthor_vm_map_pages() 1881 free_io_pgtable_ops(vm->pgtbl_ops); in panthor_vm_free() 2369 vm->pgtbl_ops = alloc_io_pgtable_ops(ARM_64_LPAE_S1, &pgtbl_cfg, vm); in panthor_vm_create() 2370 if (!vm->pgtbl_ops) { in panthor_vm_create() 2384 mair = io_pgtable_ops_to_pgtable(vm->pgtbl_ops)->cfg.arm_lpae_s1_cfg.mair; in panthor_vm_create() 2408 free_io_pgtable_ops(vm->pgtbl_ops); in panthor_vm_create()
|
| /linux-6.15/drivers/iommu/arm/arm-smmu-v3/ |
| H A D | arm-smmu-v3-test.c | 307 .pgtbl_ops = &io_pgtable.ops, in arm_smmu_test_make_s2_ste() 459 .pgtbl_ops = &io_pgtable.ops, in arm_smmu_test_make_s1_cd()
|
| H A D | arm-smmu-v3.c | 1380 &io_pgtable_ops_to_pgtable(smmu_domain->pgtbl_ops)->cfg; in arm_smmu_make_s1_cd() 1664 &io_pgtable_ops_to_pgtable(smmu_domain->pgtbl_ops)->cfg; in arm_smmu_make_s2_domain_ste() 2481 free_io_pgtable_ops(smmu_domain->pgtbl_ops); in arm_smmu_domain_free_paging() 2536 struct io_pgtable_ops *pgtbl_ops; in arm_smmu_domain_finalise() local 2576 pgtbl_ops = alloc_io_pgtable_ops(fmt, &pgtbl_cfg, smmu_domain); in arm_smmu_domain_finalise() 2577 if (!pgtbl_ops) in arm_smmu_domain_finalise() 2588 free_io_pgtable_ops(pgtbl_ops); in arm_smmu_domain_finalise() 2592 smmu_domain->pgtbl_ops = pgtbl_ops; in arm_smmu_domain_finalise() 3291 struct io_pgtable_ops *ops = to_smmu_domain(domain)->pgtbl_ops; in arm_smmu_map_pages() 3304 struct io_pgtable_ops *ops = smmu_domain->pgtbl_ops; in arm_smmu_unmap_pages() [all …]
|
| H A D | arm-smmu-v3.h | 854 struct io_pgtable_ops *pgtbl_ops; member
|
| /linux-6.15/drivers/iommu/amd/ |
| H A D | iommu.c | 2473 struct io_pgtable_ops *pgtbl_ops; in pdom_setup_pgtable() local 2486 pgtbl_ops = alloc_io_pgtable_ops(fmt, &domain->iop.pgtbl.cfg, domain); in pdom_setup_pgtable() 2487 if (!pgtbl_ops) in pdom_setup_pgtable()
|