Home
last modified time | relevance | path

Searched refs:PAGE_SHIFT (Results 1 – 25 of 602) sorted by relevance

12345678910>>...25

/arch/sparc/mm/
Dinit_32.c63 get_nr_swap_pages() << (PAGE_SHIFT-10)); in show_mem()
77 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_highpages()
78 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages()
95 unsigned long tmp = pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT); in calc_max_low_pfn()
98 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
100 curr_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_max_low_pfn()
108 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
151 start_pfn >>= PAGE_SHIFT; in bootmem_init()
155 max_pfn = end_of_phys_memory >> PAGE_SHIFT; in bootmem_init()
160 if (max_low_pfn > pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT)) { in bootmem_init()
[all …]
/arch/hexagon/include/asm/
Dpage.h29 #define PAGE_SHIFT 12 macro
34 #define PAGE_SHIFT 14 macro
39 #define PAGE_SHIFT 16 macro
44 #define PAGE_SHIFT 18 macro
49 #define PAGE_SHIFT 20 macro
62 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)
66 #define PAGE_SIZE (1UL << PAGE_SHIFT)
67 #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
113 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
141 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
[all …]
/arch/arc/include/uapi/asm/
Dpage.h14 #define PAGE_SHIFT 14 macro
16 #define PAGE_SHIFT 12 macro
25 #define PAGE_SHIFT 13 macro
29 #define PAGE_SIZE (1 << PAGE_SHIFT)
32 #define PAGE_SIZE (1UL << PAGE_SHIFT) /* Default 8K */
/arch/xtensa/include/asm/
Dpage.h32 #define PAGE_SHIFT 12 macro
33 #define PAGE_SIZE (__XTENSA_UL_CONST(1) << PAGE_SHIFT)
75 # define DCACHE_ALIAS_ORDER (DCACHE_WAY_SHIFT - PAGE_SHIFT)
77 # define DCACHE_ALIAS(a) (((a) & DCACHE_ALIAS_MASK) >> PAGE_SHIFT)
86 # define ICACHE_ALIAS_ORDER (ICACHE_WAY_SHIFT - PAGE_SHIFT)
88 # define ICACHE_ALIAS(a) (((a) & ICACHE_ALIAS_MASK) >> PAGE_SHIFT)
128 asm ("nsau %0, %1" : "=r" (lz) : "r" ((size - 1) >> PAGE_SHIFT)); in get_order()
170 #define ARCH_PFN_OFFSET (PLATFORM_DEFAULT_MEM_START >> PAGE_SHIFT)
181 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
182 #define page_to_virt(page) __va(page_to_pfn(page) << PAGE_SHIFT)
[all …]
/arch/mn10300/include/asm/
Dpage.h15 #define PAGE_SHIFT 12 macro
18 #define PAGE_SIZE (1UL << PAGE_SHIFT)
21 #define PAGE_SIZE +(1 << PAGE_SHIFT) /* unary plus marks an
49 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
82 size = (size - 1) >> (PAGE_SHIFT - 1); in get_order()
103 #define __pfn_disp (CONFIG_KERNEL_RAM_BASE_ADDRESS >> PAGE_SHIFT)
107 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
117 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
118 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
119 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
/arch/avr32/include/asm/
Dpage.h14 #define PAGE_SHIFT 12 macro
15 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
53 size = (size - 1) >> PAGE_SHIFT; in get_order()
79 #define MAP_NR(addr) (((unsigned long)(addr) - PAGE_OFFSET) >> PAGE_SHIFT)
81 #define phys_to_page(phys) (pfn_to_page(phys >> PAGE_SHIFT))
82 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
86 #define PHYS_PFN_OFFSET (CONFIG_PHYS_OFFSET >> PAGE_SHIFT)
93 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
94 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
/arch/tile/include/asm/
Dpage.h24 #define PAGE_SHIFT 14 macro
27 #define PAGE_SHIFT 16 macro
30 #define PAGE_SHIFT HV_LOG2_DEFAULT_PAGE_SIZE_SMALL macro
35 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
47 #define CONFIG_FORCE_MAX_ZONEORDER (HPAGE_SHIFT - PAGE_SHIFT + 1)
132 return BITS_PER_LONG - __builtin_clzl((size - 1) >> PAGE_SHIFT); in get_order()
137 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
153 #define __pfn_to_highbits(pfn) ((pfn) >> (NR_PA_HIGHBIT_SHIFT - PAGE_SHIFT))
250 ((kaddr & (HPAGE_SIZE - 1)) >> PAGE_SHIFT); in kaddr_to_pfn()
255 return vbase_map[__pfn_to_highbits(pfn)] + (pfn << PAGE_SHIFT); in pfn_to_kaddr()
[all …]
/arch/metag/include/asm/
Dpage.h10 #define PAGE_SHIFT 12 macro
12 #define PAGE_SHIFT 13 macro
14 #define PAGE_SHIFT 14 macro
17 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
45 # define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)
108 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
109 #define page_to_virt(page) __va(page_to_pfn(page) << PAGE_SHIFT)
110 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
111 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
118 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
/arch/openrisc/include/asm/
Dpage.h25 #define PAGE_SHIFT 13 macro
27 #define PAGE_SIZE (1 << PAGE_SHIFT)
29 #define PAGE_SIZE (1UL << PAGE_SHIFT)
82 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT)
83 #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT)
86 (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
88 ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
90 #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
/arch/mips/include/asm/
Dpage.h21 #define PAGE_SHIFT 12 macro
24 #define PAGE_SHIFT 13 macro
27 #define PAGE_SHIFT 14 macro
30 #define PAGE_SHIFT 15 macro
33 #define PAGE_SHIFT 16 macro
35 #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
36 #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
54 return (PAGE_SHIFT - 10) / 2; in page_size_ftlb()
62 #define HPAGE_SHIFT (PAGE_SHIFT + PAGE_SHIFT - 3)
65 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
[all …]
/arch/x86/mm/
Dinit.c55 order = get_order((unsigned long)num << PAGE_SHIFT); in alloc_low_pages()
64 ret = memblock_find_in_range(min_pfn_mapped << PAGE_SHIFT, in alloc_low_pages()
65 max_pfn_mapped << PAGE_SHIFT, in alloc_low_pages()
70 pfn = ret >> PAGE_SHIFT; in alloc_low_pages()
75 pfn << PAGE_SHIFT, (pgt_buf_end << PAGE_SHIFT) - 1); in alloc_low_pages()
81 adr = __va((pfn + i) << PAGE_SHIFT); in alloc_low_pages()
85 return __va(pfn << PAGE_SHIFT); in alloc_low_pages()
98 pgt_buf_start = base >> PAGE_SHIFT; in early_alloc_pgt_buf()
100 pgt_buf_top = pgt_buf_start + (tables >> PAGE_SHIFT); in early_alloc_pgt_buf()
169 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr()
[all …]
Dinit_32.c77 paravirt_alloc_pmd(&init_mm, __pa(pmd_table) >> PAGE_SHIFT); in one_md_table_init()
100 paravirt_alloc_pte(&init_mm, __pa(page_table) >> PAGE_SHIFT); in one_page_table_init()
182 paravirt_alloc_pte(&init_mm, __pa(newpte) >> PAGE_SHIFT); in page_table_kmap_check()
187 paravirt_release_pte(__pa(pte) >> PAGE_SHIFT); in page_table_kmap_check()
268 start_pfn = start >> PAGE_SHIFT; in kernel_physical_mapping_init()
269 end_pfn = end >> PAGE_SHIFT; in kernel_physical_mapping_init()
293 pgd_idx = pgd_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()
301 pmd_idx = pmd_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()
325 pfn &= PMD_MASK >> PAGE_SHIFT; in kernel_physical_mapping_init()
344 pte_ofs = pte_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()
[all …]
/arch/cris/include/asm/
Dpage.h8 #define PAGE_SHIFT 13 macro
9 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
42 #define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT)
43 #define pfn_valid(pfn) (((pfn) - (PAGE_OFFSET >> PAGE_SHIFT)) < max_mapnr)
53 #define virt_to_page(kaddr) (mem_map + (((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT))
54 #define virt_addr_valid(kaddr) pfn_valid((unsigned)(kaddr) >> PAGE_SHIFT)
60 #define page_to_phys(page) __pa((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
/arch/parisc/include/asm/
Dmmzone.h28 #define PFNNID_SHIFT (30 - PAGE_SHIFT)
33 #define pfn_is_io(pfn) ((pfn & (0xf0000000UL >> PAGE_SHIFT)) == (0xf0000000UL >> PAGE_SHIFT))
36 …ne pfn_is_io(pfn) ((pfn & (0xf000000000000000UL >> PAGE_SHIFT)) == (0xf000000000000000UL >> PAGE_S…
/arch/alpha/include/asm/
Dmmzone.h38 (((p) >> PAGE_SHIFT) - PLAT_NODE_DATA(n)->gendata.node_start_pfn)
44 temp = p >> PAGE_SHIFT; in PLAT_NODE_DATA_LOCALNR()
67 << PAGE_SHIFT))
72 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
94 kvirt = (unsigned long)__va(pte_val(x) >> (32-PAGE_SHIFT)); \
101 (page_to_pfn(page) << PAGE_SHIFT)
103 #define pfn_to_nid(pfn) pa_to_nid(((u64)(pfn) << PAGE_SHIFT))
108 #define virt_addr_valid(kaddr) pfn_valid((__pa(kaddr) >> PAGE_SHIFT))
/arch/sh/mm/
Dnuma.c36 start_pfn = start >> PAGE_SHIFT; in setup_bootmem_node()
37 end_pfn = end >> PAGE_SHIFT; in setup_bootmem_node()
57 bootmem_paddr = memblock_alloc_base(bootmap_pages << PAGE_SHIFT, in setup_bootmem_node()
59 init_bootmem_node(NODE_DATA(nid), bootmem_paddr >> PAGE_SHIFT, in setup_bootmem_node()
65 reserve_bootmem_node(NODE_DATA(nid), start_pfn << PAGE_SHIFT, in setup_bootmem_node()
68 bootmap_pages << PAGE_SHIFT, BOOTMEM_DEFAULT); in setup_bootmem_node()
/arch/sh/include/asm/
Dpage.h12 # define PAGE_SHIFT 12 macro
14 # define PAGE_SHIFT 13 macro
16 # define PAGE_SHIFT 14 macro
18 # define PAGE_SHIFT 16 macro
23 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
44 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)
166 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
167 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
175 #define PFN_START (__MEMORY_START >> PAGE_SHIFT)
177 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
[all …]
/arch/ia64/include/asm/
Dpage.h30 # define PAGE_SHIFT 12 macro
32 # define PAGE_SHIFT 13 macro
34 # define PAGE_SHIFT 14 macro
36 # define PAGE_SHIFT 16 macro
41 #define PAGE_SIZE (__IA64_UL_CONST(1) << PAGE_SHIFT)
95 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
123 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
124 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
125 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
150 | (REGION_OFFSET(x) >> (HPAGE_SHIFT-PAGE_SHIFT)))
[all …]
/arch/powerpc/include/asm/
Dpage.h28 #define PAGE_SHIFT 18 macro
30 #define PAGE_SHIFT 16 macro
32 #define PAGE_SHIFT 14 macro
34 #define PAGE_SHIFT 12 macro
37 #define PAGE_SIZE (ASM_CONST(1) << PAGE_SHIFT)
43 #define HPAGE_SHIFT PAGE_SHIFT
47 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
56 #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
126 #define ARCH_PFN_OFFSET ((unsigned long)(MEMORY_START >> PAGE_SHIFT))
130 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
[all …]
/arch/sparc/include/asm/
Dio-unit.h44 unsigned long bmap[(IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 3)) / sizeof(unsigned long)];
52 #define IOUNIT_BMAP1_END (IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 1))
54 #define IOUNIT_BMAP2_END IOUNIT_BMAP2_START + (IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 2))
56 #define IOUNIT_BMAPM_END ((IOUNIT_DMA_SIZE - IOUNIT_DVMA_SIZE) >> PAGE_SHIFT)
/arch/arm/mm/
Dtlb-v7.S39 mov r0, r0, lsr #PAGE_SHIFT @ align address
40 mov r1, r1, lsr #PAGE_SHIFT
46 orr r0, r3, r0, lsl #PAGE_SHIFT @ Create initial MVA
47 mov r1, r1, lsl #PAGE_SHIFT
73 mov r0, r0, lsr #PAGE_SHIFT @ align address
74 mov r1, r1, lsr #PAGE_SHIFT
75 mov r0, r0, lsl #PAGE_SHIFT
76 mov r1, r1, lsl #PAGE_SHIFT
Dtlb-v6.S41 mov r0, r0, lsr #PAGE_SHIFT @ align address
42 mov r1, r1, lsr #PAGE_SHIFT
44 orr r0, r3, r0, lsl #PAGE_SHIFT @ Create initial MVA
45 mov r1, r1, lsl #PAGE_SHIFT
72 mov r0, r0, lsr #PAGE_SHIFT @ align address
73 mov r1, r1, lsr #PAGE_SHIFT
74 mov r0, r0, lsl #PAGE_SHIFT
75 mov r1, r1, lsl #PAGE_SHIFT
/arch/powerpc/kvm/
Dbook3s_hv_builtin.c31 #define HPT_ALIGN_PAGES ((1 << 18) >> PAGE_SHIFT) /* 256k */
45 unsigned long kvm_rma_pages = (1 << 27) >> PAGE_SHIFT; /* 128MB */
91 kvm_rma_pages = kvm_rma_size >> PAGE_SHIFT; in early_parse_rma_size()
138 VM_BUG_ON(order_base_2(nr_pages) < KVM_CMA_CHUNK_ORDER - PAGE_SHIFT); in kvm_alloc_hpt()
180 selected_size = (selected_size * kvm_cma_resv_ratio / 100) << PAGE_SHIFT; in kvm_cma_reserve()
191 align_size = HPT_ALIGN_PAGES << PAGE_SHIFT; in kvm_cma_reserve()
193 align_size = max(kvm_rma_pages << PAGE_SHIFT, align_size); in kvm_cma_reserve()
195 KVM_CMA_CHUNK_ORDER - PAGE_SHIFT, false, &kvm_cma); in kvm_cma_reserve()
/arch/microblaze/include/asm/
Dpage.h27 #define PAGE_SHIFT 16 macro
29 #define PAGE_SHIFT 14 macro
31 #define PAGE_SHIFT 12 macro
33 #define PAGE_SIZE (ASM_CONST(1) << PAGE_SHIFT)
38 #define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */
152 # define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT))
153 # define page_to_virt(page) __va(page_to_pfn(page) << PAGE_SHIFT)
154 # define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
167 # define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT)
169 # define ARCH_PFN_OFFSET (memory_start >> PAGE_SHIFT)
/arch/x86/kernel/cpu/mtrr/
Damd.c19 *base = (low & 0xFFFE0000) >> PAGE_SHIFT; in amd_get_mtrr()
45 *size = (low + 4) << (15 - PAGE_SHIFT); in amd_get_mtrr()
82 regs[reg] = (-size >> (15 - PAGE_SHIFT) & 0x0001FFFC) in amd_set_mtrr()
83 | (base << PAGE_SHIFT) | (type + 1); in amd_set_mtrr()
105 if (type > MTRR_TYPE_WRCOMB || size < (1 << (17 - PAGE_SHIFT)) in amd_validate_add_page()

12345678910>>...25