/openbmc/linux/drivers/accel/ivpu/ |
H A D | ivpu_mmu_context.c | 42 static int ivpu_mmu_pgtable_init(struct ivpu_device *vdev, struct ivpu_mmu_pgtable *pgtable) in ivpu_mmu_pgtable_init() argument 46 pgtable->pgd_dma_ptr = dma_alloc_coherent(vdev->drm.dev, IVPU_MMU_PGTABLE_SIZE, &pgd_dma, in ivpu_mmu_pgtable_init() 48 if (!pgtable->pgd_dma_ptr) in ivpu_mmu_pgtable_init() 51 pgtable->pgd_dma = pgd_dma; in ivpu_mmu_pgtable_init() 63 static void ivpu_mmu_pgtables_free(struct ivpu_device *vdev, struct ivpu_mmu_pgtable *pgtable) in ivpu_mmu_pgtables_free() argument 70 pud_dma_ptr = pgtable->pud_ptrs[pgd_idx]; in ivpu_mmu_pgtables_free() 71 pud_dma = pgtable->pgd_dma_ptr[pgd_idx]; in ivpu_mmu_pgtables_free() 77 pmd_dma_ptr = pgtable->pmd_ptrs[pgd_idx][pud_idx]; in ivpu_mmu_pgtables_free() 78 pmd_dma = pgtable->pud_ptrs[pgd_idx][pud_idx]; in ivpu_mmu_pgtables_free() 84 pte_dma_ptr = pgtable->pte_ptrs[pgd_idx][pud_idx][pmd_idx]; in ivpu_mmu_pgtables_free() [all …]
|
/openbmc/linux/drivers/iommu/amd/ |
H A D | io_pgtable_v2.c | 198 static u64 *fetch_pte(struct amd_io_pgtable *pgtable, in fetch_pte() argument 205 pte = &pgtable->pgd[PM_LEVEL_INDEX(level, iova)]; in fetch_pte() 293 struct amd_io_pgtable *pgtable = io_pgtable_ops_to_data(ops); in iommu_v2_unmap_pages() local 294 struct io_pgtable_cfg *cfg = &pgtable->iop.cfg; in iommu_v2_unmap_pages() 304 pte = fetch_pte(pgtable, iova, &unmap_size); in iommu_v2_unmap_pages() 319 struct amd_io_pgtable *pgtable = io_pgtable_ops_to_data(ops); in iommu_v2_iova_to_phys() local 323 pte = fetch_pte(pgtable, iova, &pte_pgsize); in iommu_v2_iova_to_phys() 360 struct amd_io_pgtable *pgtable = container_of(iop, struct amd_io_pgtable, iop); in v2_free_pgtable() local 362 pdom = container_of(pgtable, struct protection_domain, iop); in v2_free_pgtable() 373 free_pgtable(pgtable->pgd, get_pgtable_level()); in v2_free_pgtable() [all …]
|
H A D | io_pgtable.c | 290 static u64 *fetch_pte(struct amd_io_pgtable *pgtable, in fetch_pte() argument 299 if (address > PM_LEVEL_SIZE(pgtable->mode)) in fetch_pte() 302 level = pgtable->mode - 1; in fetch_pte() 303 pte = &pgtable->root[PM_LEVEL_INDEX(level, address)]; in fetch_pte() 443 struct amd_io_pgtable *pgtable = io_pgtable_ops_to_data(ops); in iommu_v1_unmap_pages() local 454 pte = fetch_pte(pgtable, iova, &unmap_size); in iommu_v1_unmap_pages() 474 struct amd_io_pgtable *pgtable = io_pgtable_ops_to_data(ops); in iommu_v1_iova_to_phys() local 478 pte = fetch_pte(pgtable, iova, &pte_pgsize); in iommu_v1_iova_to_phys() 494 struct amd_io_pgtable *pgtable = container_of(iop, struct amd_io_pgtable, iop); in v1_free_pgtable() local 498 if (pgtable->mode == PAGE_MODE_NONE) in v1_free_pgtable() [all …]
|
/openbmc/u-boot/arch/x86/cpu/i386/ |
H A D | cpu.c | 473 static void build_pagetable(uint32_t *pgtable) in build_pagetable() argument 477 memset(pgtable, '\0', PAGETABLE_SIZE); in build_pagetable() 480 pgtable[0] = (ulong)&pgtable[1024] + 7; in build_pagetable() 484 pgtable[1024 + i * 2] = (ulong)&pgtable[2048] + 0x1000 * i + 7; in build_pagetable() 488 pgtable[2048 + i * 2] = 0x183 + (i << 21UL); in build_pagetable() 493 uint32_t *pgtable; in cpu_jump_to_64bit() local 495 pgtable = memalign(4096, PAGETABLE_SIZE); in cpu_jump_to_64bit() 496 if (!pgtable) in cpu_jump_to_64bit() 499 build_pagetable(pgtable); in cpu_jump_to_64bit() 500 cpu_call64((ulong)pgtable, setup_base, target); in cpu_jump_to_64bit() [all …]
|
/openbmc/linux/mm/ |
H A D | pgtable-generic.c | 166 pgtable_t pgtable) in pgtable_trans_huge_deposit() argument 172 INIT_LIST_HEAD(&pgtable->lru); in pgtable_trans_huge_deposit() 174 list_add(&pgtable->lru, &pmd_huge_pte(mm, pmdp)->lru); in pgtable_trans_huge_deposit() 175 pmd_huge_pte(mm, pmdp) = pgtable; in pgtable_trans_huge_deposit() 183 pgtable_t pgtable; in pgtable_trans_huge_withdraw() local 188 pgtable = pmd_huge_pte(mm, pmdp); in pgtable_trans_huge_withdraw() 189 pmd_huge_pte(mm, pmdp) = list_first_entry_or_null(&pgtable->lru, in pgtable_trans_huge_withdraw() 192 list_del(&pgtable->lru); in pgtable_trans_huge_withdraw() 193 return pgtable; in pgtable_trans_huge_withdraw() 247 void pte_free_defer(struct mm_struct *mm, pgtable_t pgtable) in pte_free_defer() argument [all …]
|
H A D | huge_memory.c | 644 pgtable_t pgtable; in __do_huge_pmd_anonymous_page() local 658 pgtable = pte_alloc_one(vma->vm_mm); in __do_huge_pmd_anonymous_page() 659 if (unlikely(!pgtable)) { in __do_huge_pmd_anonymous_page() 686 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page() 696 pgtable_trans_huge_deposit(vma->vm_mm, vmf->pmd, pgtable); in __do_huge_pmd_anonymous_page() 710 if (pgtable) in __do_huge_pmd_anonymous_page() 711 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page() 753 static void set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm, in set_huge_zero_page() argument 762 pgtable_trans_huge_deposit(mm, pmd, pgtable); in set_huge_zero_page() 783 pgtable_t pgtable; in do_huge_pmd_anonymous_page() local [all …]
|
H A D | hugetlb_vmemmap.c | 45 pte_t *pgtable; in split_vmemmap_huge_pmd() local 54 pgtable = pte_alloc_one_kernel(&init_mm); in split_vmemmap_huge_pmd() 55 if (!pgtable) in split_vmemmap_huge_pmd() 58 pmd_populate_kernel(&init_mm, &__pmd, pgtable); in split_vmemmap_huge_pmd() 81 pmd_populate_kernel(&init_mm, pmd, pgtable); in split_vmemmap_huge_pmd() 84 pte_free_kernel(&init_mm, pgtable); in split_vmemmap_huge_pmd()
|
/openbmc/linux/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_iommu.c | 93 u32 pgtable; in etnaviv_iommuv1_restore() local 107 pgtable = (u32)v1_context->pgtable_dma; in etnaviv_iommuv1_restore() 109 gpu_write(gpu, VIVS_MC_MMU_FE_PAGE_TABLE, pgtable); in etnaviv_iommuv1_restore() 110 gpu_write(gpu, VIVS_MC_MMU_TX_PAGE_TABLE, pgtable); in etnaviv_iommuv1_restore() 111 gpu_write(gpu, VIVS_MC_MMU_PE_PAGE_TABLE, pgtable); in etnaviv_iommuv1_restore() 112 gpu_write(gpu, VIVS_MC_MMU_PEZ_PAGE_TABLE, pgtable); in etnaviv_iommuv1_restore() 113 gpu_write(gpu, VIVS_MC_MMU_RA_PAGE_TABLE, pgtable); in etnaviv_iommuv1_restore()
|
/openbmc/linux/arch/sparc/mm/ |
H A D | tlb.c | 270 pgtable_t pgtable) in pgtable_trans_huge_deposit() argument 272 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() 281 pmd_huge_pte(mm, pmdp) = pgtable; in pgtable_trans_huge_deposit() 287 pgtable_t pgtable; in pgtable_trans_huge_withdraw() local 292 pgtable = pmd_huge_pte(mm, pmdp); in pgtable_trans_huge_withdraw() 293 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw() 300 pte_val(pgtable[0]) = 0; in pgtable_trans_huge_withdraw() 301 pte_val(pgtable[1]) = 0; in pgtable_trans_huge_withdraw() 303 return pgtable; in pgtable_trans_huge_withdraw()
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | hash_pgtable.c | 268 pgtable_t pgtable) in hash__pgtable_trans_huge_deposit() argument 277 *pgtable_slot = pgtable; in hash__pgtable_trans_huge_deposit() 289 pgtable_t pgtable; in hash__pgtable_trans_huge_withdraw() local 295 pgtable = *pgtable_slot; in hash__pgtable_trans_huge_withdraw() 304 memset(pgtable, 0, PTE_FRAG_SIZE); in hash__pgtable_trans_huge_withdraw() 305 return pgtable; in hash__pgtable_trans_huge_withdraw() 349 pgtable_t pgtable; in hash__pmdp_huge_get_and_clear() local 361 pgtable = *pgtable_slot; in hash__pmdp_huge_get_and_clear() 366 memset(pgtable, 0, PTE_FRAG_SIZE); in hash__pmdp_huge_get_and_clear()
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | motorola_pgalloc.h | 42 static inline void pte_free(struct mm_struct *mm, pgtable_t pgtable) in pte_free() argument 44 free_pointer_table(pgtable, TABLE_PTE); in pte_free() 47 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pgtable, in __pte_free_tlb() argument 50 free_pointer_table(pgtable, TABLE_PTE); in __pte_free_tlb()
|
H A D | mcf_pgalloc.h | 35 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pgtable, in __pte_free_tlb() argument 38 struct ptdesc *ptdesc = virt_to_ptdesc(pgtable); in __pte_free_tlb() 60 static inline void pte_free(struct mm_struct *mm, pgtable_t pgtable) in pte_free() argument 62 struct ptdesc *ptdesc = virt_to_ptdesc(pgtable); in pte_free()
|
/openbmc/linux/drivers/iommu/ |
H A D | exynos-iommu.c | 177 static sysmmu_pte_t *section_entry(sysmmu_pte_t *pgtable, sysmmu_iova_t iova) in section_entry() argument 179 return pgtable + lv1ent_offset(iova); in section_entry() 247 sysmmu_pte_t *pgtable; /* lv1 page table, 16KB */ member 297 phys_addr_t pgtable; /* assigned page table structure */ member 554 dev_dbg(data->sysmmu, "Page table base: %pa\n", &data->pgtable); in show_fault_information() 555 ent = section_entry(phys_to_virt(data->pgtable), fault->addr); in show_fault_information() 653 __sysmmu_set_ptbase(data, data->pgtable); in __sysmmu_enable() 905 domain->pgtable = (sysmmu_pte_t *)__get_free_pages(GFP_KERNEL, 2); in exynos_iommu_domain_alloc() 906 if (!domain->pgtable) in exynos_iommu_domain_alloc() 915 domain->pgtable[i] = ZERO_LV2LINK; in exynos_iommu_domain_alloc() [all …]
|
H A D | Makefile | 8 obj-$(CONFIG_IOMMU_IO_PGTABLE) += io-pgtable.o 9 obj-$(CONFIG_IOMMU_IO_PGTABLE_ARMV7S) += io-pgtable-arm-v7s.o 10 obj-$(CONFIG_IOMMU_IO_PGTABLE_LPAE) += io-pgtable-arm.o 11 obj-$(CONFIG_IOMMU_IO_PGTABLE_DART) += io-pgtable-dart.o
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | pgtable_64.c | 104 asmlinkage void configure_5level_paging(struct boot_params *bp, void *pgtable) in configure_5level_paging() argument 198 memcpy(pgtable, trampoline_32bit, PAGE_SIZE); in configure_5level_paging() 199 native_write_cr3((unsigned long)pgtable); in configure_5level_paging()
|
H A D | head_64.S | 201 leal rva(pgtable)(%ebx), %edi 207 leal rva(pgtable + 0)(%ebx), %edi 213 leal rva(pgtable + 0x1000)(%ebx), %edi 224 leal rva(pgtable + 0x2000)(%ebx), %edi 235 leal rva(pgtable)(%ebx), %eax 644 SYM_DATA_LOCAL(pgtable, .fill BOOT_PGT_SIZE, 1, 0)
|
H A D | vmlinux.lds.S | 66 .pgtable : { 68 *(.pgtable) argument
|
/openbmc/linux/arch/mips/mm/ |
H A D | Makefile | 14 obj-y += pgtable.o 29 obj-$(CONFIG_32BIT) += ioremap.o pgtable-32.o 30 obj-$(CONFIG_64BIT) += ioremap64.o pgtable-64.o
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | pgtable-frag.c | 137 void pte_free_defer(struct mm_struct *mm, pgtable_t pgtable) in pte_free_defer() argument 141 page = virt_to_page(pgtable); in pte_free_defer() 143 pte_fragment_free((unsigned long *)pgtable, 0); in pte_free_defer()
|
H A D | Makefile | 8 obj-y := fault.o mem.o pgtable.o maccess.o pageattr.o \ 10 pgtable-frag.o ioremap.o ioremap_$(BITS).o \
|
/openbmc/linux/Documentation/features/debug/debug-vm-pgtable/ |
H A D | arch-support.txt | 2 # Feature name: debug-vm-pgtable 4 # description: arch supports pgtable tests for semantics compliance
|
/openbmc/linux/arch/arm64/kvm/hyp/ |
H A D | pgtable.c | 206 struct kvm_pgtable_mm_ops *mm_ops, kvm_pteref_t pgtable, u32 level); 275 struct kvm_pgtable_mm_ops *mm_ops, kvm_pteref_t pgtable, u32 level) in __kvm_pgtable_walk() argument 284 kvm_pteref_t pteref = &pgtable[idx]; in __kvm_pgtable_walk() 1387 kvm_pte_t *pgtable; in kvm_pgtable_stage2_create_unlinked() local 1397 pgtable = mm_ops->zalloc_page(mc); in kvm_pgtable_stage2_create_unlinked() 1398 if (!pgtable) in kvm_pgtable_stage2_create_unlinked() 1401 ret = __kvm_pgtable_walk(&data, mm_ops, (kvm_pteref_t)pgtable, in kvm_pgtable_stage2_create_unlinked() 1404 kvm_pgtable_stage2_free_unlinked(mm_ops, pgtable, level); in kvm_pgtable_stage2_create_unlinked() 1405 mm_ops->put_page(pgtable); in kvm_pgtable_stage2_create_unlinked() 1409 return pgtable; in kvm_pgtable_stage2_create_unlinked() [all …]
|
H A D | Makefile | 10 obj-$(CONFIG_KVM) += vhe/ nvhe/ pgtable.o
|
/openbmc/linux/arch/microblaze/mm/ |
H A D | Makefile | 6 obj-y := consistent.o init.o pgtable.o mmu_context.o fault.o
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s_64_mmu_radix.c | 561 if (kvm->arch.pgtable) { in kvmppc_free_radix() 562 kvmppc_free_pgtable_radix(kvm, kvm->arch.pgtable, in kvmppc_free_radix() 564 pgd_free(kvm->mm, kvm->arch.pgtable); in kvmppc_free_radix() 565 kvm->arch.pgtable = NULL; in kvmppc_free_radix() 610 int kvmppc_create_pte(struct kvm *kvm, pgd_t *pgtable, pte_t pte, in kvmppc_create_pte() argument 623 pgd = pgtable + pgd_index(gpa); in kvmppc_create_pte() 916 ret = kvmppc_create_pte(kvm, kvm->arch.pgtable, pte, gpa, level, in kvmppc_book3s_instantiate_page() 1243 kvm->arch.pgtable = pgd_alloc(kvm->mm); in kvmppc_init_vm_radix() 1244 if (!kvm->arch.pgtable) in kvmppc_init_vm_radix() 1358 pgt = kvm->arch.pgtable; in debugfs_radix_read()
|