Lines Matching +full:right +full:- +full:most
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
13 /* This is probably not the most graceful way to handle this. */
38 * in L1 PTE's. Right now, it's set up for 4MB.
43 #define HPAGE_MASK (~(HPAGE_SIZE-1))
44 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)
50 #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
56 * This is for PFN_DOWN, which mm.h needs. Seems the right place to pull it in.
61 * We implement a two-level architecture-specific page table structure.
63 * asm-generic/pagetable-nopmd.h and asm-generic/pagetable-nopud.h
77 /* Needed for PAGE_OFFSET used in the macro right below */
78 #include <asm/mem-layout.h>
85 #define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
86 #define __va(x) ((void *)((unsigned long)(x) - PHYS_OFFSET + PAGE_OFFSET))
94 /* Default vm area behavior is non-executable. */
122 * page_to_phys - convert page to physical address
123 * @page - pointer to page entry in mem_map
134 #include <asm/mem-layout.h>
135 #include <asm-generic/memory_model.h>
136 /* XXX Todo: implement assembly-optimized version of getorder. */
137 #include <asm-generic/getorder.h>