Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/arch/riscv/mm/
Dkasan_init.c22 for (i = 0; i < PTRS_PER_PTE; ++i) in kasan_early_init()
59 ((n_pages + PTRS_PER_PTE) & -PTRS_PER_PTE) / PTRS_PER_PTE; in populate()
64 memblock_alloc(n_ptes * PTRS_PER_PTE * sizeof(pte_t), PAGE_SIZE); in populate()
74 for (i = 0, offset = 0; i < n_ptes; i++, offset += PTRS_PER_PTE) in populate()
116 for (i = 0; i < PTRS_PER_PTE; i++) in kasan_init()
/kernel/linux/linux-5.10/arch/xtensa/mm/
Dkasan_init.c25 for (i = 0; i < PTRS_PER_PTE; ++i) in kasan_early_init()
40 unsigned long n_pmds = n_pages / PTRS_PER_PTE; in populate()
55 for (k = 0; k < PTRS_PER_PTE; ++k, ++j) { in populate()
68 for (i = 0; i < n_pmds ; ++i, pte += PTRS_PER_PTE) in populate()
93 for (i = 0; i < PTRS_PER_PTE; ++i) in kasan_init()
Dmmu.c28 n_pages = ALIGN(n_pages, PTRS_PER_PTE); in init_pmd()
41 for (i = 0; i < n_pages; i += PTRS_PER_PTE, ++pmd) { in init_pmd()
/kernel/linux/linux-5.10/arch/s390/mm/
Dpgalloc.c174 memset64(table, _PAGE_INVALID, PTRS_PER_PTE); in page_table_alloc_pgste()
175 memset64(table + PTRS_PER_PTE, 0, PTRS_PER_PTE); in page_table_alloc_pgste()
209 table += PTRS_PER_PTE; in page_table_alloc()
233 memset64((u64 *)table, _PAGE_INVALID, PTRS_PER_PTE); in page_table_alloc()
234 memset64((u64 *)table + PTRS_PER_PTE, 0, PTRS_PER_PTE); in page_table_alloc()
238 memset64((u64 *)table, _PAGE_INVALID, 2 * PTRS_PER_PTE); in page_table_alloc()
254 bit = (__pa(table) & ~PAGE_MASK)/(PTRS_PER_PTE*sizeof(pte_t)); in page_table_free()
290 bit = (__pa(table) & ~PAGE_MASK) / (PTRS_PER_PTE*sizeof(pte_t)); in page_table_free_rcu()
342 memset64(table, _PAGE_INVALID, PTRS_PER_PTE); in base_pgt_alloc()
Dpageattr.c71 mask = ~(PTRS_PER_PTE * sizeof(pte_t) - 1); in pgt_set()
126 for (i = 0; i < PTRS_PER_PTE; i++) { in split_pmd_page()
133 update_page_count(PG_DIRECT_MAP_4K, PTRS_PER_PTE); in split_pmd_page()
346 nr = PTRS_PER_PTE - (nr & (PTRS_PER_PTE - 1)); in __kernel_map_pages()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dpgtable_mm.h60 #define PTRS_PER_PTE 16 macro
65 #define PTRS_PER_PTE 512 macro
70 #define PTRS_PER_PTE 64 macro
/kernel/linux/linux-5.10/arch/hexagon/include/asm/
Dpgtable.h77 #define PTRS_PER_PTE 1024 macro
81 #define PTRS_PER_PTE 256 macro
85 #define PTRS_PER_PTE 64 macro
89 #define PTRS_PER_PTE 16 macro
93 #define PTRS_PER_PTE 4 macro
/kernel/linux/linux-5.10/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))
Dhighmem.h8 #define LAST_PKMAP PTRS_PER_PTE
/kernel/linux/linux-5.10/arch/arc/mm/
Dhighmem.c112 BUILD_BUG_ON(KM_TYPE_NR > PTRS_PER_PTE); in kmap_init()
115 BUILD_BUG_ON(LAST_PKMAP > PTRS_PER_PTE); in kmap_init()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dsubpage_prot.c120 i = (addr >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); in subpage_prot_clear()
121 nw = PTRS_PER_PTE - i; in subpage_prot_clear()
267 i = (addr >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); in SYSCALL_DEFINE3()
268 nw = PTRS_PER_PTE - i; in SYSCALL_DEFINE3()
Dhash_64k.c89 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K()
216 new_pte |= pte_set_hidx(ptep, rpte, subpg_index, slot, PTRS_PER_PTE); in __hash_page_4K()
264 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_64K()
329 new_pte |= pte_set_hidx(ptep, rpte, 0, slot, PTRS_PER_PTE); in __hash_page_64K()
Dhash_4k.c58 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K()
120 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()
242 for (pte = start_pte; pte < start_pte + PTRS_PER_PTE; pte++) { in flush_tlb_pmd_range()
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dpgtable-32.h90 # define PTRS_PER_PTE ((PAGE_SIZE << PTE_ORDER) / sizeof(pte_t) / 2) macro
92 # define PTRS_PER_PTE ((PAGE_SIZE << PTE_ORDER) / sizeof(pte_t)) macro
121 extern pte_t invalid_pte_table[PTRS_PER_PTE];
Dpgtable-64.h137 #define PTRS_PER_PTE ((PAGE_SIZE << PTE_ORDER) / sizeof(pte_t)) macro
150 min(PTRS_PER_PGD * PTRS_PER_PUD * PTRS_PER_PMD * PTRS_PER_PTE * PAGE_SIZE, \
173 extern pte_t invalid_pte_table[PTRS_PER_PTE];
/kernel/linux/linux-5.10/arch/arc/include/asm/
Dpgalloc.h87 return get_order(PTRS_PER_PTE * sizeof(pte_t)); in __get_order_pte()
109 memzero((void *)pte_pg, PTRS_PER_PTE * sizeof(pte_t)); in pte_alloc_one()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dpgtable-hwdef.h43 #define PTRS_PER_PTE (1 << (PAGE_SHIFT - 3)) macro
52 #define PTRS_PER_PMD PTRS_PER_PTE
62 #define PTRS_PER_PUD PTRS_PER_PTE
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dpgtable-2level_types.h38 #define PTRS_PER_PTE 1024 macro
Dpgtable-3level_types.h43 #define PTRS_PER_PTE 512 macro
/kernel/linux/linux-5.10/arch/x86/mm/
Dinit_32.c180 for (i = 0; i < PTRS_PER_PTE; i++) in page_table_kmap_check()
194 && lastpte && lastpte + PTRS_PER_PTE != pte); in page_table_kmap_check()
333 addr2 = (pfn + PTRS_PER_PTE-1) * PAGE_SIZE + in kernel_physical_mapping_init()
346 pfn += PTRS_PER_PTE; in kernel_physical_mapping_init()
353 for (; pte_ofs < PTRS_PER_PTE && pfn < end_pfn; in kernel_physical_mapping_init()
/kernel/linux/linux-5.10/arch/nds32/include/asm/
Dhighmem.h30 #define LAST_PKMAP PTRS_PER_PTE
/kernel/linux/linux-5.10/Documentation/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 *

12345