/linux-6.12.1/arch/powerpc/include/asm/nohash/32/ |
D | pgalloc.h | 21 *pmdp = __pmd((unsigned long)pte | _PMD_PRESENT); in pmd_populate_kernel() 23 *pmdp = __pmd(__pa(pte) | _PMD_PRESENT); in pmd_populate_kernel() 30 *pmdp = __pmd((unsigned long)pte_page | _PMD_PRESENT); in pmd_populate() 32 *pmdp = __pmd(__pa(pte_page) | _PMD_USER | _PMD_PRESENT); in pmd_populate()
|
/linux-6.12.1/arch/powerpc/mm/book3s64/ |
D | hash_hugepage.c | 52 } while (!pmd_xchg(pmdp, __pmd(old_pmd), __pmd(new_pmd))); in __hash_page_thp() 130 pa = pmd_pfn(__pmd(old_pmd)) << PAGE_SHIFT; in __hash_page_thp() 162 *pmdp = __pmd(old_pmd); in __hash_page_thp() 186 *pmdp = __pmd(new_pmd & ~H_PAGE_BUSY); in __hash_page_thp()
|
/linux-6.12.1/arch/hexagon/include/asm/ |
D | pgalloc.h | 51 set_pmd(pmd, __pmd(((unsigned long)page_to_pfn(pte) << PAGE_SHIFT) | in pmd_populate() 77 set_pmd(pmd, __pmd(((unsigned long)__pa(pte)) | HEXAGON_L1_PTE_SIZE)); in pmd_populate_kernel() 85 set_pmd(ppmd, __pmd(((unsigned long)__pa(pte)) | HEXAGON_L1_PTE_SIZE)); in pmd_populate_kernel()
|
/linux-6.12.1/arch/arc/include/asm/ |
D | hugepage.h | 27 return __pmd(pte_val(pte)); in pte_pmd() 47 #define pfn_pmd(pfn, prot) (__pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot))) 55 return __pmd((pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HW_SZ)) | pgprot_val(newprot)); in pmd_modify()
|
D | pgalloc.h | 46 set_pmd(pmd, __pmd((unsigned long)pte)); in pmd_populate_kernel() 51 set_pmd(pmd, __pmd((unsigned long)page_address(pte_page))); in pmd_populate()
|
/linux-6.12.1/arch/arm/include/asm/ |
D | pgtable-3level.h | 150 *pmdp = __pmd(0); \ 208 #define pmd_mkhuge(pmd) (__pmd(pmd_val(pmd) & ~PMD_TABLE_BIT)) 211 #define pfn_pmd(pfn,prot) (__pmd(((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(prot))) 220 return __pmd(pmd_val(pmd) & ~L_PMD_SECT_VALID); in pmd_mkinvalid() 245 *pmdp = __pmd(pmd_val(pmd) | PMD_SECT_nG); in set_pmd_at()
|
D | pgtable-2level-types.h | 32 #define __pmd(x) ((pmd_t) { (x) } ) macro 50 #define __pmd(x) (x) macro
|
D | pgtable-3level-types.h | 35 #define __pmd(x) ((pmd_t) { (x) } ) macro 52 #define __pmd(x) (x) macro
|
D | pgalloc.h | 111 pmdp[0] = __pmd(pmdval); in __pmd_populate() 113 pmdp[1] = __pmd(pmdval + 256 * sizeof(pte_t)); in __pmd_populate()
|
D | pgtable-2level.h | 229 pmdp[0] = __pmd(0); \ 230 pmdp[1] = __pmd(0); \
|
/linux-6.12.1/arch/nios2/include/asm/ |
D | pgalloc.h | 20 set_pmd(pmd, __pmd((unsigned long)pte)); in pmd_populate_kernel() 26 set_pmd(pmd, __pmd((unsigned long)page_address(pte))); in pmd_populate()
|
/linux-6.12.1/arch/arm/mm/ |
D | idmap.c | 50 *pmd = __pmd((addr & PMD_MASK) | prot); in idmap_add_pmd() 61 pmd[0] = __pmd(addr); in idmap_add_pmd() 63 pmd[1] = __pmd(addr); in idmap_add_pmd()
|
D | ioremap.c | 201 pmd[0] = __pmd(__pfn_to_phys(pfn) | type->prot_sect); in remap_area_sections() 203 pmd[1] = __pmd(__pfn_to_phys(pfn) | type->prot_sect); in remap_area_sections() 234 pmd[0] = __pmd(super_pmd_val); in remap_area_supersections() 235 pmd[1] = __pmd(super_pmd_val); in remap_area_supersections()
|
/linux-6.12.1/arch/um/include/asm/ |
D | pgalloc.h | 16 set_pmd(pmd, __pmd(_PAGE_TABLE + (unsigned long) __pa(pte))) 19 set_pmd(pmd, __pmd(_PAGE_TABLE + \
|
D | page.h | 51 #define __pmd(x) ((pmd_t) { (x) } ) macro 63 #define __pmd(x) ((pmd_t) { (x) } ) macro
|
/linux-6.12.1/arch/openrisc/include/asm/ |
D | pgalloc.h | 29 set_pmd(pmd, __pmd(_KERNPG_TABLE + __pa(pte))) 34 set_pmd(pmd, __pmd(_KERNPG_TABLE + in pmd_populate()
|
/linux-6.12.1/arch/sh/include/asm/ |
D | pgalloc.h | 26 set_pmd(pmd, __pmd((unsigned long)pte)); in pmd_populate_kernel() 32 set_pmd(pmd, __pmd((unsigned long)page_address(pte))); in pmd_populate()
|
/linux-6.12.1/arch/csky/include/asm/ |
D | pgalloc.h | 16 set_pmd(pmd, __pmd(__pa(pte))); in pmd_populate_kernel() 22 set_pmd(pmd, __pmd(__pa(page_address(pte)))); in pmd_populate()
|
/linux-6.12.1/arch/powerpc/include/asm/book3s/32/ |
D | pgalloc.h | 31 *pmdp = __pmd(__pa(pte) | _PMD_PRESENT); in pmd_populate_kernel() 37 *pmdp = __pmd(__pa(pte_page) | _PMD_PRESENT); in pmd_populate()
|
/linux-6.12.1/arch/sparc/include/asm/ |
D | pgtable_64.h | 235 return __pmd(pte_val(pte)); in pfn_pmd() 327 return __pmd(pte_val(pte)); in pmd_modify() 448 return __pmd(pte_val(pte)); in pmd_mkhuge() 738 return __pmd(pte_val(pte)); in pmd_mkold() 747 return __pmd(pte_val(pte)); in pmd_wrprotect() 756 return __pmd(pte_val(pte)); in pmd_mkdirty() 765 return __pmd(pte_val(pte)); in pmd_mkclean() 774 return __pmd(pte_val(pte)); in pmd_mkyoung() 783 return __pmd(pte_val(pte)); in pmd_mkwrite_novma() 921 set_pmd_at(mm, addr, pmdp, __pmd(0UL)); in pmdp_huge_get_and_clear()
|
/linux-6.12.1/arch/x86/include/asm/ |
D | pgalloc.h | 68 set_pmd(pmd, __pmd(__pa(pte) | _PAGE_TABLE)); in pmd_populate_kernel() 75 set_pmd_safe(pmd, __pmd(__pa(pte) | _PAGE_TABLE)); in pmd_populate_kernel_safe() 84 set_pmd(pmd, __pmd(((pteval_t)pfn << PAGE_SHIFT) | _PAGE_TABLE)); in pmd_populate()
|
D | pgtable-2level.h | 36 native_set_pmd(pmdp, __pmd(0)); in native_pmd_clear() 61 return __pmd(xchg((pmdval_t *)xp, 0)); in native_pmdp_get_and_clear()
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | pgalloc.h | 19 set_pmd(pmd, __pmd((unsigned long)pte)); in pmd_populate_kernel() 24 set_pmd(pmd, __pmd((unsigned long)page_address(pte))); in pmd_populate()
|
/linux-6.12.1/arch/mips/include/asm/ |
D | pgalloc.h | 24 set_pmd(pmd, __pmd((unsigned long)pte)); in pmd_populate_kernel() 30 set_pmd(pmd, __pmd((unsigned long)page_address(pte))); in pmd_populate()
|
/linux-6.12.1/arch/xtensa/mm/ |
D | kasan_init.c | 31 set_pmd(pmd, __pmd((unsigned long)kasan_early_shadow_pte)); in kasan_early_init() 67 set_pmd(pmd + i, __pmd((unsigned long)pte)); in populate()
|