Home
last modified time | relevance | path

Searched refs:pgtable (Results 1 – 25 of 59) sorted by relevance

123

/OK3568_Linux_fs/u-boot/arch/x86/cpu/i386/
H A Dcpu.c473 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 …]
/OK3568_Linux_fs/kernel/mm/
H A Dpgtable-generic.c162 pgtable_t pgtable) in pgtable_trans_huge_deposit() argument
168 INIT_LIST_HEAD(&pgtable->lru); in pgtable_trans_huge_deposit()
170 list_add(&pgtable->lru, &pmd_huge_pte(mm, pmdp)->lru); in pgtable_trans_huge_deposit()
171 pmd_huge_pte(mm, pmdp) = pgtable; in pgtable_trans_huge_deposit()
179 pgtable_t pgtable; in pgtable_trans_huge_withdraw() local
184 pgtable = pmd_huge_pte(mm, pmdp); in pgtable_trans_huge_withdraw()
185 pmd_huge_pte(mm, pmdp) = list_first_entry_or_null(&pgtable->lru, in pgtable_trans_huge_withdraw()
188 list_del(&pgtable->lru); in pgtable_trans_huge_withdraw()
189 return pgtable; in pgtable_trans_huge_withdraw()
H A Dhuge_memory.c585 pgtable_t pgtable; in __do_huge_pmd_anonymous_page() local
599 pgtable = pte_alloc_one(vma->vm_mm); in __do_huge_pmd_anonymous_page()
600 if (unlikely(!pgtable)) { in __do_huge_pmd_anonymous_page()
629 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
639 pgtable_trans_huge_deposit(vma->vm_mm, vmf->pmd, pgtable); in __do_huge_pmd_anonymous_page()
652 if (pgtable) in __do_huge_pmd_anonymous_page()
653 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
695 static bool set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm, in set_huge_zero_page() argument
704 if (pgtable) in set_huge_zero_page()
705 pgtable_trans_huge_deposit(mm, pmd, pgtable); in set_huge_zero_page()
[all …]
/OK3568_Linux_fs/kernel/arch/sparc/mm/
H A Dtlb.c264 pgtable_t pgtable) in pgtable_trans_huge_deposit() argument
266 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit()
275 pmd_huge_pte(mm, pmdp) = pgtable; in pgtable_trans_huge_deposit()
281 pgtable_t pgtable; in pgtable_trans_huge_withdraw() local
286 pgtable = pmd_huge_pte(mm, pmdp); in pgtable_trans_huge_withdraw()
287 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw()
294 pte_val(pgtable[0]) = 0; in pgtable_trans_huge_withdraw()
295 pte_val(pgtable[1]) = 0; in pgtable_trans_huge_withdraw()
297 return pgtable; in pgtable_trans_huge_withdraw()
/OK3568_Linux_fs/kernel/arch/powerpc/mm/book3s64/
H A Dhash_pgtable.c267 pgtable_t pgtable) in hash__pgtable_trans_huge_deposit() argument
276 *pgtable_slot = pgtable; in hash__pgtable_trans_huge_deposit()
288 pgtable_t pgtable; in hash__pgtable_trans_huge_withdraw() local
294 pgtable = *pgtable_slot; in hash__pgtable_trans_huge_withdraw()
303 memset(pgtable, 0, PTE_FRAG_SIZE); in hash__pgtable_trans_huge_withdraw()
304 return pgtable; in hash__pgtable_trans_huge_withdraw()
348 pgtable_t pgtable; in hash__pmdp_huge_get_and_clear() local
360 pgtable = *pgtable_slot; in hash__pmdp_huge_get_and_clear()
365 memset(pgtable, 0, PTE_FRAG_SIZE); in hash__pmdp_huge_get_and_clear()
H A Dradix_pgtable.c1012 pgtable_t pgtable) in radix__pgtable_trans_huge_deposit() argument
1014 struct list_head *lh = (struct list_head *) pgtable; in radix__pgtable_trans_huge_deposit()
1023 pmd_huge_pte(mm, pmdp) = pgtable; in radix__pgtable_trans_huge_deposit()
1029 pgtable_t pgtable; in radix__pgtable_trans_huge_withdraw() local
1035 pgtable = pmd_huge_pte(mm, pmdp); in radix__pgtable_trans_huge_withdraw()
1036 lh = (struct list_head *) pgtable; in radix__pgtable_trans_huge_withdraw()
1043 ptep = (pte_t *) pgtable; in radix__pgtable_trans_huge_withdraw()
1047 return pgtable; in radix__pgtable_trans_huge_withdraw()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/etnaviv/
H A Detnaviv_iommu.c93 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()
/OK3568_Linux_fs/kernel/drivers/iommu/
H A Dexynos-iommu.c183 static sysmmu_pte_t *section_entry(sysmmu_pte_t *pgtable, sysmmu_iova_t iova) in section_entry() argument
185 return pgtable + lv1ent_offset(iova); in section_entry()
248 sysmmu_pte_t *pgtable; /* lv1 page table, 16KB */ member
275 phys_addr_t pgtable; /* assigned page table structure */ member
395 dev_dbg(data->sysmmu, "Page table base: %pa\n", &data->pgtable); in show_fault_information()
396 ent = section_entry(phys_to_virt(data->pgtable), fault_addr); in show_fault_information()
500 __sysmmu_set_ptbase(data, data->pgtable); in __sysmmu_enable()
757 domain->pgtable = (sysmmu_pte_t *)__get_free_pages(GFP_KERNEL, 2); in exynos_iommu_domain_alloc()
758 if (!domain->pgtable) in exynos_iommu_domain_alloc()
767 domain->pgtable[i] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
[all …]
H A DMakefile8 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
/OK3568_Linux_fs/kernel/drivers/iommu/amd/
H A Diommu.c103 struct domain_pgtable *pgtable);
156 struct domain_pgtable *pgtable) in amd_iommu_domain_get_pgtable() argument
160 pgtable->root = (u64 *)(pt_root & PAGE_MASK); in amd_iommu_domain_get_pgtable()
161 pgtable->mode = pt_root & 7; /* lowest 3 bits encode pgtable mode */ in amd_iommu_domain_get_pgtable()
1482 static void free_pagetable(struct domain_pgtable *pgtable) in free_pagetable() argument
1487 if (pgtable->mode == PAGE_MODE_NONE) in free_pagetable()
1490 BUG_ON(pgtable->mode < PAGE_MODE_NONE || in free_pagetable()
1491 pgtable->mode > PAGE_MODE_6_LEVEL); in free_pagetable()
1493 root = (unsigned long)pgtable->root; in free_pagetable()
1494 freelist = free_sub_pt(root, pgtable->mode, freelist); in free_pagetable()
[all …]
/OK3568_Linux_fs/kernel/sound/core/
H A Dsgbuf.c62 struct page **pgtable; in snd_malloc_sgbuf_pages() local
84 pgtable = kcalloc(sgbuf->tblsize, sizeof(*pgtable), GFP_KERNEL); in snd_malloc_sgbuf_pages()
85 if (!pgtable) in snd_malloc_sgbuf_pages()
87 sgbuf->page_table = pgtable; in snd_malloc_sgbuf_pages()
113 *pgtable++ = virt_to_page(tmpb.area); in snd_malloc_sgbuf_pages()
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A Dmcf_pgalloc.h37 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pgtable, in __pte_free_tlb() argument
40 struct page *page = virt_to_page(pgtable); in __pte_free_tlb()
64 static inline void pte_free(struct mm_struct *mm, pgtable_t pgtable) in pte_free() argument
66 struct page *page = virt_to_page(pgtable); in pte_free()
H A Dmotorola_pgalloc.h42 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()
/OK3568_Linux_fs/kernel/arch/arc/mm/
H A Dtlb.c643 pgtable_t pgtable) in pgtable_trans_huge_deposit() argument
645 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit()
654 pmd_huge_pte(mm, pmdp) = pgtable; in pgtable_trans_huge_deposit()
660 pgtable_t pgtable; in pgtable_trans_huge_withdraw() local
664 pgtable = pmd_huge_pte(mm, pmdp); in pgtable_trans_huge_withdraw()
665 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw()
673 pte_val(pgtable[0]) = 0; in pgtable_trans_huge_withdraw()
674 pte_val(pgtable[1]) = 0; in pgtable_trans_huge_withdraw()
676 return pgtable; in pgtable_trans_huge_withdraw()
/OK3568_Linux_fs/kernel/arch/mips/mm/
H A DMakefile14 obj-y += pgtable.o
25 obj-$(CONFIG_32BIT) += ioremap.o pgtable-32.o
26 obj-$(CONFIG_64BIT) += ioremap64.o pgtable-64.o
/OK3568_Linux_fs/kernel/arch/x86/boot/compressed/
H A Dpgtable_64.c191 void cleanup_trampoline(void *pgtable) in cleanup_trampoline() argument
202 memcpy(pgtable, trampoline_pgtable, PAGE_SIZE); in cleanup_trampoline()
203 native_write_cr3((unsigned long)pgtable); in cleanup_trampoline()
H A Dvmlinux.lds.S63 .pgtable : {
65 *(.pgtable) argument
H A Dhead_64.S192 leal rva(pgtable)(%ebx), %edi
198 leal rva(pgtable + 0)(%ebx), %edi
204 leal rva(pgtable + 0x1000)(%ebx), %edi
215 leal rva(pgtable + 0x2000)(%ebx), %edi
226 leal rva(pgtable)(%ebx), %eax
891 SYM_DATA_LOCAL(pgtable, .fill BOOT_PGT_SIZE, 1, 0)
/OK3568_Linux_fs/kernel/Documentation/features/debug/debug-vm-pgtable/
H A Darch-support.txt2 # Feature name: debug-vm-pgtable
4 # description: arch supports pgtable tests for semantics compliance
/OK3568_Linux_fs/kernel/arch/powerpc/mm/
H A DMakefile8 obj-y := fault.o mem.o pgtable.o mmap.o maccess.o \
10 pgtable-frag.o ioremap.o ioremap_$(BITS).o \
/OK3568_Linux_fs/kernel/drivers/iommu/arm/arm-smmu/
H A Darm-smmu-qcom.c81 struct io_pgtable *pgtable = in qcom_adreno_smmu_get_ttbr1_cfg() local
83 return &pgtable->cfg; in qcom_adreno_smmu_get_ttbr1_cfg()
96 struct io_pgtable *pgtable = io_pgtable_ops_to_pgtable(smmu_domain->pgtbl_ops); in qcom_adreno_smmu_set_ttbr0_cfg() local
111 cb->tcr[0] = arm_smmu_lpae_tcr(&pgtable->cfg); in qcom_adreno_smmu_set_ttbr0_cfg()
/OK3568_Linux_fs/kernel/arch/powerpc/kvm/
H A Dbook3s_64_mmu_radix.c537 if (kvm->arch.pgtable) { in kvmppc_free_radix()
538 kvmppc_free_pgtable_radix(kvm, kvm->arch.pgtable, in kvmppc_free_radix()
540 pgd_free(kvm->mm, kvm->arch.pgtable); in kvmppc_free_radix()
541 kvm->arch.pgtable = NULL; in kvmppc_free_radix()
586 int kvmppc_create_pte(struct kvm *kvm, pgd_t *pgtable, pte_t pte, in kvmppc_create_pte() argument
599 pgd = pgtable + pgd_index(gpa); in kvmppc_create_pte()
892 ret = kvmppc_create_pte(kvm, kvm->arch.pgtable, pte, gpa, level, in kvmppc_book3s_instantiate_page()
1214 kvm->arch.pgtable = pgd_alloc(kvm->mm); in kvmppc_init_vm_radix()
1215 if (!kvm->arch.pgtable) in kvmppc_init_vm_radix()
1329 pgt = kvm->arch.pgtable; in debugfs_radix_read()
/OK3568_Linux_fs/kernel/arch/s390/mm/
H A Dpgtable.c536 pgtable_t pgtable) in pgtable_trans_huge_deposit() argument
538 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit()
547 pmd_huge_pte(mm, pmdp) = pgtable; in pgtable_trans_huge_deposit()
553 pgtable_t pgtable; in pgtable_trans_huge_withdraw() local
559 pgtable = pmd_huge_pte(mm, pmdp); in pgtable_trans_huge_withdraw()
560 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw()
567 ptep = (pte_t *) pgtable; in pgtable_trans_huge_withdraw()
571 return pgtable; in pgtable_trans_huge_withdraw()
/OK3568_Linux_fs/kernel/arch/microblaze/mm/
H A DMakefile8 obj-$(CONFIG_MMU) += pgtable.o mmu_context.o fault.o
/OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/
H A DMakefile13 obj-$(CONFIG_KVM) += vhe/ nvhe/ pgtable.o reserved_mem.o

123