Home
last modified time | relevance | path

Searched refs:PTRS_PER_PTE (Results 1 – 25 of 111) sorted by relevance

12345

/Linux-v6.6/arch/xtensa/mm/
Dkasan_init.c24 for (i = 0; i < PTRS_PER_PTE; ++i) in kasan_early_init()
38 unsigned long n_pmds = n_pages / PTRS_PER_PTE; in populate()
53 for (k = 0; k < PTRS_PER_PTE; ++k, ++j) { in populate()
66 for (i = 0; i < n_pmds ; ++i, pte += PTRS_PER_PTE) in populate()
91 for (i = 0; i < PTRS_PER_PTE; ++i) in kasan_init()
Dmmu.c30 n_pages = ALIGN(n_pages, PTRS_PER_PTE); in init_pmd()
43 for (i = 0; i < n_pages; i += PTRS_PER_PTE, ++pmd) { in init_pmd()
/Linux-v6.6/arch/s390/mm/
Dpgalloc.c149 memset64(table, _PAGE_INVALID, PTRS_PER_PTE); in page_table_alloc_pgste()
150 memset64(table + PTRS_PER_PTE, 0, PTRS_PER_PTE); in page_table_alloc_pgste()
270 table += PTRS_PER_PTE; in page_table_alloc()
295 memset64((u64 *)table, _PAGE_INVALID, PTRS_PER_PTE); in page_table_alloc()
296 memset64((u64 *)table + PTRS_PER_PTE, 0, PTRS_PER_PTE); in page_table_alloc()
300 memset64((u64 *)table, _PAGE_INVALID, 2 * PTRS_PER_PTE); in page_table_alloc()
339 bit = ((unsigned long) table & ~PAGE_MASK)/(PTRS_PER_PTE*sizeof(pte_t)); in page_table_free()
392 bit = ((unsigned long) table & ~PAGE_MASK) / (PTRS_PER_PTE*sizeof(pte_t)); in page_table_free_rcu()
477 memset64((u64 *)table, _PAGE_INVALID, PTRS_PER_PTE); in base_pgt_alloc()
Dpageattr.c74 mask = ~(PTRS_PER_PTE * sizeof(pte_t) - 1); in pgt_set()
139 for (i = 0; i < PTRS_PER_PTE; i++) { in split_pmd_page()
146 update_page_count(PG_DIRECT_MAP_4K, PTRS_PER_PTE); in split_pmd_page()
436 nr = PTRS_PER_PTE - (nr & (PTRS_PER_PTE - 1)); in __kernel_map_pages()
/Linux-v6.6/arch/hexagon/include/asm/
Dpgtable.h80 #define PTRS_PER_PTE 1024 macro
84 #define PTRS_PER_PTE 256 macro
88 #define PTRS_PER_PTE 64 macro
92 #define PTRS_PER_PTE 16 macro
96 #define PTRS_PER_PTE 4 macro
/Linux-v6.6/arch/m68k/include/asm/
Dpgtable_mm.h58 #define PTRS_PER_PTE 16 macro
63 #define PTRS_PER_PTE 512 macro
68 #define PTRS_PER_PTE 64 macro
/Linux-v6.6/arch/arm/include/asm/
Dpgtable-2level.h70 #define PTRS_PER_PTE 512 macro
74 #define PTE_HWTABLE_PTRS (PTRS_PER_PTE)
76 #define PTE_HWTABLE_SIZE (PTRS_PER_PTE * sizeof(u32))
/Linux-v6.6/arch/arc/mm/
Dhighmem.c68 BUILD_BUG_ON(LAST_PKMAP > PTRS_PER_PTE); in kmap_init()
69 BUILD_BUG_ON(FIX_KMAP_SLOTS > PTRS_PER_PTE); in kmap_init()
/Linux-v6.6/arch/powerpc/mm/book3s64/
Dsubpage_prot.c122 i = (addr >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); in subpage_prot_clear()
123 nw = PTRS_PER_PTE - i; in subpage_prot_clear()
261 i = (addr >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); in SYSCALL_DEFINE3()
262 nw = PTRS_PER_PTE - i; in SYSCALL_DEFINE3()
Dhash_64k.c91 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K()
218 new_pte |= pte_set_hidx(ptep, rpte, subpg_index, slot, PTRS_PER_PTE); in __hash_page_4K()
269 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_64K()
334 new_pte |= pte_set_hidx(ptep, rpte, 0, slot, PTRS_PER_PTE); in __hash_page_64K()
Dhash_4k.c60 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K()
122 new_pte |= pte_set_hidx(ptep, rpte, 0, slot, PTRS_PER_PTE); in __hash_page_4K()
Dhash_tlb.c83 offset = PTRS_PER_PTE; in hpte_need_flush()
244 for (pte = start_pte; pte < start_pte + PTRS_PER_PTE; pte++) { in flush_hash_table_pmd_range()
/Linux-v6.6/arch/csky/mm/
Dinit.c34 ((PTRS_PER_PGD - USER_PTRS_PER_PGD) * PTRS_PER_PTE)
37 pte_t invalid_pte_table[PTRS_PER_PTE] __page_aligned_bss;
137 __pa(kernel_pte_tables + (PTRS_PER_PTE * (i - USER_PTRS_PER_PGD))); in mmu_init()
/Linux-v6.6/arch/powerpc/mm/kasan/
Dinit_book3s_64.c67 for (i = 0; i < PTRS_PER_PTE; i++) in kasan_init()
84 for (i = 0; i < PTRS_PER_PTE; i++) in kasan_init()
Dinit_book3e_64.c92 for (i = 0; i < PTRS_PER_PTE; i++) in kasan_early_init()
120 for (i = 0; i < PTRS_PER_PTE; i++) in kasan_init()
/Linux-v6.6/arch/mips/include/asm/
Dpgtable-32.h89 # define PTRS_PER_PTE (PAGE_SIZE / sizeof(pte_t) / 2) macro
91 # define PTRS_PER_PTE (PAGE_SIZE / sizeof(pte_t)) macro
119 extern pte_t invalid_pte_table[PTRS_PER_PTE];
Dpgtable-64.h132 #define PTRS_PER_PTE (PAGE_SIZE / sizeof(pte_t)) macro
144 min(PTRS_PER_PGD * PTRS_PER_PUD * PTRS_PER_PMD * PTRS_PER_PTE * PAGE_SIZE, \
167 extern pte_t invalid_pte_table[PTRS_PER_PTE];
/Linux-v6.6/arch/m68k/mm/
Dsun3mmu.c71 next_pgtable += PTRS_PER_PTE * sizeof (pte_t); in paging_init()
77 for (i=0; i<PTRS_PER_PTE; ++i, ++pg_table) { in paging_init()
/Linux-v6.6/arch/riscv/kvm/
Dtlb.c26 if (PTRS_PER_PTE < (gpsz >> order)) { in kvm_riscv_local_hfence_gvma_vmid_gpa()
54 if (PTRS_PER_PTE < (gpsz >> order)) { in kvm_riscv_local_hfence_gvma_gpa()
85 if (PTRS_PER_PTE < (gvsz >> order)) { in kvm_riscv_local_hfence_vvma_asid_gva()
125 if (PTRS_PER_PTE < (gvsz >> order)) { in kvm_riscv_local_hfence_vvma_gva()
/Linux-v6.6/arch/x86/power/
Dhibernate_32.c111 pfn += PTRS_PER_PTE; in resume_physical_mapping_init()
119 max_pte = pte + PTRS_PER_PTE; in resume_physical_mapping_init()
/Linux-v6.6/arch/x86/mm/
Dinit_32.c177 for (i = 0; i < PTRS_PER_PTE; i++) in page_table_kmap_check()
189 && lastpte && lastpte + PTRS_PER_PTE != pte); in page_table_kmap_check()
324 addr2 = (pfn + PTRS_PER_PTE-1) * PAGE_SIZE + in kernel_physical_mapping_init()
337 pfn += PTRS_PER_PTE; in kernel_physical_mapping_init()
344 for (; pte_ofs < PTRS_PER_PTE && pfn < end_pfn; in kernel_physical_mapping_init()
/Linux-v6.6/arch/x86/include/asm/
Dpgtable-2level_types.h38 #define PTRS_PER_PTE 1024 macro
Dpgtable-3level_types.h50 #define PTRS_PER_PTE 512 macro
/Linux-v6.6/Documentation/arch/xtensa/
Dmmu.rst93 | KMAP area | PKMAP_BASE PTRS_PER_PTE *
136 | KMAP area | PKMAP_BASE PTRS_PER_PTE *
180 | KMAP area | PKMAP_BASE PTRS_PER_PTE *
/Linux-v6.6/mm/
Dpage_table_check.c239 for (i = 0; i < PTRS_PER_PTE; i++) { in __page_table_check_pte_clear_range()
244 pte_unmap(ptep - PTRS_PER_PTE); in __page_table_check_pte_clear_range()

12345