Home
last modified time | relevance | path

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

12345678910>>...16

/linux-2.4.37.9/arch/sparc/mm/
Dinit.c83 nr_swap_pages << (PAGE_SHIFT-10)); in show_mem()
126 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_highpages()
127 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages()
144 unsigned long tmp = (SRMMU_MAXMEM >> PAGE_SHIFT); in calc_max_low_pfn()
147 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
149 curr_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_max_low_pfn()
157 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
206 start_pfn >>= PAGE_SHIFT; in bootmem_init()
210 max_pfn = end_of_phys_memory >> PAGE_SHIFT; in bootmem_init()
215 if (max_low_pfn > (SRMMU_MAXMEM >> PAGE_SHIFT)) { in bootmem_init()
[all …]
/linux-2.4.37.9/arch/x86_64/mm/
Dnuma.c23 #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT))
41 start_pfn = start >> PAGE_SHIFT; in setup_node_bootmem()
42 end_pfn = end >> PAGE_SHIFT; in setup_node_bootmem()
57 bootmap_start = find_e820_area(bootmap_start, end, bootmap_pages<<PAGE_SHIFT); in setup_node_bootmem()
63 bootmap_start >> PAGE_SHIFT, in setup_node_bootmem()
69 reserve_bootmem_node(NODE_DATA(nodeid), bootmap_start, bootmap_pages<<PAGE_SHIFT); in setup_node_bootmem()
95 dma_end_pfn = __pa(MAX_DMA_ADDRESS) >> PAGE_SHIFT; in setup_node_zones()
104 start_pfn<<PAGE_SHIFT, NULL); in setup_node_zones()
115 if (!numa_off && !k8_scan_nodes(start_pfn<<PAGE_SHIFT, end_pfn<<PAGE_SHIFT)) in numa_initmem_init()
122 start_pfn << PAGE_SHIFT, in numa_initmem_init()
[all …]
Dinit.c80 printk("Free swap: %6dkB\n",nr_swap_pages<<(PAGE_SHIFT-10)); in show_mem()
199 paddr = (pfn << PAGE_SHIFT) & PMD_MASK; in alloc_low_page()
203 adr = ti->address + ((pfn << PAGE_SHIFT) & ~PMD_MASK); in alloc_low_page()
268 end = end_pfn_map << PAGE_SHIFT; in init_memory_mapping()
289 table_start >>= PAGE_SHIFT; in init_memory_mapping()
310 table_start<<PAGE_SHIFT, in init_memory_mapping()
311 table_end<<PAGE_SHIFT); in init_memory_mapping()
331 max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; in paging_init()
355 addr = (e820.map[i].addr+PAGE_SIZE-1) >> PAGE_SHIFT; in page_is_ram()
356 end = (e820.map[i].addr+e820.map[i].size) >> PAGE_SHIFT; in page_is_ram()
[all …]
/linux-2.4.37.9/include/asm-sparc64/
Dpgtable.h54 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3))
60 #define PGDIR_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3) + PMD_BITS)
73 #define PTRS_PER_PTE (1UL << (PAGE_SHIFT-3))
80 (1UL << (32 - (PAGE_SHIFT-3) - PAGE_SHIFT)) : (REAL_PTRS_PER_PMD)))
88 #define PTRS_PER_PGD (((1UL << VA_BITS) - VPTE_SIZE + (1UL << (PAGE_SHIFT + \
89 (PAGE_SHIFT-3) + PMD_BITS)) - 1) / (1UL << (PAGE_SHIFT + \
90 (PAGE_SHIFT-3) + PMD_BITS)))
135 #if PAGE_SHIFT == 13
137 #elif PAGE_SHIFT == 16
139 #elif PAGE_SHIFT == 19
[all …]
/linux-2.4.37.9/include/asm-alpha/
Dpgtable.h25 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3))
30 #define PGDIR_SHIFT (PAGE_SHIFT + 2*(PAGE_SHIFT-3))
38 #define PTRS_PER_PTE (1UL << (PAGE_SHIFT-3))
39 #define PTRS_PER_PMD (1UL << (PAGE_SHIFT-3))
40 #define PTRS_PER_PGD (1UL << (PAGE_SHIFT-3))
45 #define PTRS_PER_PAGE (1UL << (PAGE_SHIFT-3))
159 ((unsigned long)(address)>>(PAGE_SHIFT-SIZEOF_PTR_LOG2)&PTR_MASK&~PAGE_MASK)
194 #define PAGE_TO_PA(page) ((page - mem_map) << PAGE_SHIFT)
197 ((((page)-page_zone(page)->zone_mem_map) << PAGE_SHIFT) \
217 pfn += page_zone(page)->zone_start_paddr << (32-PAGE_SHIFT); \
[all …]
/linux-2.4.37.9/arch/mips/sgi-ip27/
Dip27-memory.c34 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
125 return(size >> PAGE_SHIFT); in slot_psize_compute()
132 return(size >> PAGE_SHIFT); in slot_psize_compute()
155 if ((nodebytes >> PAGE_SHIFT) * (sizeof(struct page)) > in szmem()
156 (slot0sz << PAGE_SHIFT)) in szmem()
206 << PAGE_SHIFT)); in prom_meminit()
211 free_bootmem_node(NODE_DATA(node), slot_firstpfn << PAGE_SHIFT, in prom_meminit()
212 (slot_lastpfn - slot_firstpfn) << PAGE_SHIFT); in prom_meminit()
213 reserve_bootmem_node(NODE_DATA(node), slot_firstpfn << PAGE_SHIFT, in prom_meminit()
214 ((slot_freepfn - slot_firstpfn) << PAGE_SHIFT) + bootmap_size); in prom_meminit()
[all …]
/linux-2.4.37.9/include/asm-ia64/
Dpage.h18 # define PAGE_SHIFT 12 macro
20 # define PAGE_SHIFT 13 macro
22 # define PAGE_SHIFT 14 macro
24 # define PAGE_SHIFT 16 macro
29 #define PAGE_SIZE (__IA64_UL_CONST(1) << PAGE_SHIFT)
60 #define RGN_MAP_LIMIT ((1UL << (4*PAGE_SHIFT - 12)) - PAGE_SIZE) /* per region addr limit */
82 #define MAP_NR_DENSE(addr) (((unsigned long) (addr) - PAGE_OFFSET) >> PAGE_SHIFT)
85 #define page_to_phys(page) ((page - mem_map) << PAGE_SHIFT)
116 …ine htlbpage_to_page(x) ((REGION_NUMBER(x) << 61) | (REGION_OFFSET(x) >> (HPAGE_SHIFT-PAGE_SHIFT)))
117 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
[all …]
Dpgtable.h86 #define PGDIR_SHIFT (PAGE_SHIFT + 2*(PAGE_SHIFT-3))
89 #define PTRS_PER_PGD (__IA64_UL(1) << (PAGE_SHIFT-3))
99 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3))
102 #define PTRS_PER_PMD (__IA64_UL(1) << (PAGE_SHIFT-3))
107 #define PTRS_PER_PTE (__IA64_UL(1) << (PAGE_SHIFT-3))
199 #define VMALLOC_END_INIT (0xa000000000000000 + (1UL << (4*PAGE_SHIFT - 9)))
211 pte_val(__pte) = ((page - mem_map) << PAGE_SHIFT) | pgprot_val(pgprot); \
229 #define pte_page(pte) (mem_map + (unsigned long) ((pte_val(pte) & _PFN_MASK) >> PAGE_SHIFT))
311 return (region << (PAGE_SHIFT - 6)) | l1index; in pgd_index()
333 ((pte_t *) pmd_page(*(dir)) + (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)))
[all …]
/linux-2.4.37.9/arch/alpha/mm/
Dnuma.c32 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
33 #define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
34 #define PFN_PHYS(x) ((x) << PAGE_SHIFT)
73 node_pfn_start = (NODE_MEM_START(nid)) >> PAGE_SHIFT; in setup_memory_node()
74 node_pfn_end = node_pfn_start + (NODE_MEM_SIZE(nid) >> PAGE_SHIFT); in setup_memory_node()
120 mem_size_limit << (PAGE_SHIFT - 10), in setup_memory_node()
121 node_max_pfn << (PAGE_SHIFT - 10)); in setup_memory_node()
138 PLAT_NODE_DATA(nid) = (plat_pg_data_t *)(__va(node_min_pfn << PAGE_SHIFT)); in setup_memory_node()
301 dma_local_pfn = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; in paging_init()
304 unsigned long start_pfn = plat_node_bdata[nid].node_boot_start >> PAGE_SHIFT; in paging_init()
[all …]
/linux-2.4.37.9/include/asm-arm/
Dmemory.h26 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)
74 #define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT))
89 + (page_zone(page)->zone_start_paddr >> PAGE_SHIFT))
92 (PFN_TO_MAPBASE(pfn) + LOCAL_MAP_NR((pfn) << PAGE_SHIFT))
99 ((pfn - (nd->node_start_paddr >> PAGE_SHIFT)) < nd->node_size));\
111 #define PHYS_TO_NID(addr) PFN_TO_NID((addr) >> PAGE_SHIFT)
131 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
/linux-2.4.37.9/arch/parisc/mm/
Dinit.c104 #define MAX_GAP (0x40000000UL >> PAGE_SHIFT)
189 size = (pmem_ranges[i].pages << PAGE_SHIFT); in setup_bootmem()
190 start = (pmem_ranges[i].start_pfn << PAGE_SHIFT); in setup_bootmem()
207 res->start = pmem_ranges[i].start_pfn << PAGE_SHIFT; in setup_bootmem()
208 res->end = res->start + (pmem_ranges[i].pages << PAGE_SHIFT)-1; in setup_bootmem()
228 rsize = pmem_ranges[i].pages << PAGE_SHIFT; in setup_bootmem()
234 pmem_ranges[i].pages = (mem_limit >> PAGE_SHIFT) in setup_bootmem()
235 - (mem_max >> PAGE_SHIFT); in setup_bootmem()
276 bootmap_start_pfn = PAGE_ALIGN(__pa((unsigned long) &_end)) >> PAGE_SHIFT; in setup_bootmem()
303 (start_pfn << PAGE_SHIFT), in setup_bootmem()
[all …]
/linux-2.4.37.9/include/asm-m68k/
Dpage.h8 #define PAGE_SHIFT (12) macro
10 #define PAGE_SHIFT (13) macro
13 #define PAGE_SIZE (1 << PAGE_SHIFT)
15 #define PAGE_SIZE (1UL << PAGE_SHIFT)
23 #if PAGE_SHIFT < 13
111 size = (size-1) >> (PAGE_SHIFT-1); in get_order()
166 #define MAP_NR(addr) (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)
167 #define virt_to_page(kaddr) (mem_map + (((unsigned long)(kaddr)-PAGE_OFFSET) >> PAGE_SHIFT))
/linux-2.4.37.9/include/asm-ppc/
Dpage.h5 #define PAGE_SHIFT 12 macro
6 #define PAGE_SIZE (1UL << PAGE_SHIFT)
11 #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
26 #define PTE_SHIFT (PAGE_SHIFT - 3) /* 512 ptes per page */
30 #define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */
150 #define virt_to_page(kaddr) (mem_map + (((unsigned long)(kaddr)-PAGE_OFFSET) >> PAGE_SHIFT))
160 size = (size-1) >> (PAGE_SHIFT-1); in get_order()
/linux-2.4.37.9/include/asm-sh64/
Dpage.h23 #define PAGE_SHIFT 12 macro
27 #define PAGE_SIZE (1UL << PAGE_SHIFT)
84 #define MAP_NR(addr) ((__pa(addr)-__MEMORY_START) >> PAGE_SHIFT)
87 #define phys_to_page(phys) (mem_map + (((phys)-__MEMORY_START) >> PAGE_SHIFT))
89 #define page_to_phys(page) (((page - mem_map) << PAGE_SHIFT) + __MEMORY_START)
112 size = (size-1) >> (PAGE_SHIFT-1); in get_order()
/linux-2.4.37.9/include/asm-x86_64/
Dpage.h7 #define PAGE_SHIFT 12 macro
9 #define PAGE_SIZE (0x1 << PAGE_SHIFT)
11 #define PAGE_SIZE (1UL << PAGE_SHIFT)
105 size = (size-1) >> (PAGE_SHIFT-1); in get_order()
134 #define virt_to_page(kaddr) (mem_map + (__pa(kaddr) >> PAGE_SHIFT))
137 #define page_to_phys(page) (((page) - mem_map) << PAGE_SHIFT)
141 #define phys_to_pfn(phys) ((phys) >> PAGE_SHIFT)
/linux-2.4.37.9/include/asm-mips64/
Dpage.h21 #define PAGE_SHIFT 12 macro
24 #define PAGE_SHIFT 14 macro
27 #define PAGE_SHIFT 16 macro
29 #define PAGE_SIZE (1UL << PAGE_SHIFT)
97 size = (size-1) >> (PAGE_SHIFT-1); in get_order()
141 #define virt_to_page(kaddr) (mem_map + (__pa(kaddr) >> PAGE_SHIFT))
/linux-2.4.37.9/arch/i386/kernel/
Dmtrr.c539 mask_lo = size_or_mask | mask_hi << (32 - PAGE_SHIFT) in intel_get_mtrr()
540 | mask_lo >> PAGE_SHIFT; in intel_get_mtrr()
545 *base = base_hi << (32 - PAGE_SHIFT) | base_lo >> PAGE_SHIFT; in intel_get_mtrr()
571 *base >>= PAGE_SHIFT; in cyrix_get_arr()
614 *base = (low & 0xFFFE0000) >> PAGE_SHIFT; in amd_get_mtrr()
639 *size = (low + 4) << (15 - PAGE_SHIFT); in amd_get_mtrr()
665 *base = centaur_mcr[reg].high >> PAGE_SHIFT; in centaur_get_mcr()
666 *size = -(centaur_mcr[reg].low & 0xfffff000) >> PAGE_SHIFT; in centaur_get_mcr()
706 wrmsr (MTRRphysBase_MSR (reg), base << PAGE_SHIFT | type, in intel_set_mtrr_up()
707 (base & size_and_mask) >> (32 - PAGE_SHIFT)); in intel_set_mtrr_up()
[all …]
/linux-2.4.37.9/mm/
Dbootmem.c38 mapsize >>= PAGE_SHIFT; in bootmem_bootmap_pages()
56 bdata->node_bootmem_map = phys_to_virt(mapstart << PAGE_SHIFT); in init_bootmem_core()
57 bdata->node_boot_start = (start << PAGE_SHIFT); in init_bootmem_core()
94 if ((addr >> PAGE_SHIFT) >= bdata->node_low_pfn) in reserve_bootmem_core()
152 PAGE_SHIFT); in __alloc_bootmem_core()
163 offset >>= PAGE_SHIFT; in __alloc_bootmem_core()
170 ((goal >> PAGE_SHIFT) < bdata->node_low_pfn)) { in __alloc_bootmem_core()
175 preferred = ((preferred + align - 1) & ~(align - 1)) >> PAGE_SHIFT; in __alloc_bootmem_core()
178 incr = align >> PAGE_SHIFT ? : 1; in __alloc_bootmem_core()
255 idx = bdata->node_low_pfn - (bdata->node_boot_start >> PAGE_SHIFT); in free_all_bootmem_core()
[all …]
/linux-2.4.37.9/include/asm-ppc64/
Dpage.h16 #define PAGE_SHIFT 12 macro
18 #define PAGE_SIZE (1UL << PAGE_SHIFT)
20 # define PAGE_SIZE (1 << PAGE_SHIFT)
145 size = (size-1) >> (PAGE_SHIFT-1); in get_order()
211 #define __bpn_to_ba(x) ((((unsigned long)(x))<<PAGE_SHIFT) + KERNELBASE)
212 #define __ba_to_bpn(x) ((((unsigned long)(x)) & ~REGION_MASK) >> PAGE_SHIFT)
229 #define virt_to_page(kaddr) (mem_map+(__pa((unsigned long)kaddr) >> PAGE_SHIFT))
233 #define MAP_NR(addr) (__pa(addr) >> PAGE_SHIFT)
/linux-2.4.37.9/include/asm-mips/
Dpage.h22 #define PAGE_SHIFT 12 macro
25 #define PAGE_SHIFT 14 macro
28 #define PAGE_SHIFT 16 macro
30 #define PAGE_SIZE (1L << PAGE_SHIFT)
111 size = (size-1) >> (PAGE_SHIFT-1); in get_order()
134 #define virt_to_page(kaddr) (mem_map + (__pa(kaddr) >> PAGE_SHIFT))
/linux-2.4.37.9/arch/ppc/mm/
Dinit.c153 printk("Free swap: %6dkB\n",nr_swap_pages<<(PAGE_SHIFT-10)); in show_mem()
245 printk(" %ldk %s", cnt << (PAGE_SHIFT - 10), name); in free_sec()
423 min_low_pfn = start >> PAGE_SHIFT; in do_init_bootmem()
424 max_low_pfn = (PPC_MEMSTART + total_lowmem) >> PAGE_SHIFT; in do_init_bootmem()
426 PPC_MEMSTART >> PAGE_SHIFT, in do_init_bootmem()
458 zones_size[ZONE_DMA] = total_lowmem >> PAGE_SHIFT; in paging_init()
463 zones_size[ZONE_HIGHMEM] = (total_memory - total_lowmem) >> PAGE_SHIFT; in paging_init()
478 highmem_mapnr = total_lowmem >> PAGE_SHIFT; in mem_init()
481 max_mapnr = total_memory >> PAGE_SHIFT; in mem_init()
547 (unsigned long)nr_free_pages()<< (PAGE_SHIFT-10), in mem_init()
[all …]
/linux-2.4.37.9/include/asm-sparc/
Dio-unit.h44 unsigned int bmap[(IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 3)) / sizeof(unsigned int)];
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)
/linux-2.4.37.9/include/asm-parisc/
Dpgtable.h74 #define MAX_ADDRBITS (PAGE_SHIFT + (PT_NLEVELS)*(PAGE_SHIFT - PT_NLEVELS))
81 #define PGDIR_SHIFT (PAGE_SHIFT + (PT_NLEVELS - 1)*(PAGE_SHIFT - PT_NLEVELS))
84 #define PTRS_PER_PGD (1UL << (PAGE_SHIFT - PT_NLEVELS))
90 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - PT_NLEVELS))
94 #define PTRS_PER_PMD (1UL << (PAGE_SHIFT - PT_NLEVELS))
101 #define PTRS_PER_PTE (1UL << (PAGE_SHIFT - PT_NLEVELS))
291 ((((page)-(page)->zone->zone_mem_map) << PAGE_SHIFT) \
294 #define PAGE_TO_PA(page) ((page - mem_map) << PAGE_SHIFT)
319 #define pte_page(x) (mem_map+(pte_val(x) >> PAGE_SHIFT))
345 ((pte_t *) pmd_page(*(pmd)) + (((address)>>PAGE_SHIFT) & (PTRS_PER_PTE-1)))
/linux-2.4.37.9/arch/x86_64/kernel/
Dmtrr.c216 mask_lo = size_or_mask | mask_hi << (32 - PAGE_SHIFT) | in get_mtrr()
217 mask_lo >> PAGE_SHIFT; in get_mtrr()
222 *base = base_hi << (32 - PAGE_SHIFT) | base_lo >> PAGE_SHIFT; in get_mtrr()
250 wrmsr (MSR_MTRRphysBase(reg), base << PAGE_SHIFT | type, in set_mtrr_up()
251 (base & size_and_mask) >> (32 - PAGE_SHIFT)); in set_mtrr_up()
252 wrmsr(MSR_MTRRphysMask(reg), -size << PAGE_SHIFT | 0x800, in set_mtrr_up()
253 (-size & size_and_mask) >> (32 - PAGE_SHIFT)); in set_mtrr_up()
652 base<<PAGE_SHIFT >= info.aper_base && in mtrr_add_page()
653 (base<<PAGE_SHIFT)+(size<<PAGE_SHIFT) >= in mtrr_add_page()
787 return mtrr_add_page (base >> PAGE_SHIFT, size >> PAGE_SHIFT, type, in mtrr_add()
[all …]
/linux-2.4.37.9/arch/sh/mm/
Dinit.c61 printk("Free swap: %6dkB\n",nr_swap_pages<<(PAGE_SHIFT-10)); in show_mem()
87 #define START_PFN (NODE_DATA(0)->bdata->node_boot_start >> PAGE_SHIFT)
121 max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; in paging_init()
132 zones_size[ZONE_DMA] = __MEMORY_SIZE_2ND >> PAGE_SHIFT; in paging_init()
171 (unsigned long) nr_free_pages() << (PAGE_SHIFT-10), in mem_init()
172 max_mapnr << (PAGE_SHIFT-10), in mem_init()
173 reservedpages << (PAGE_SHIFT-10), in mem_init()

12345678910>>...16