Home
last modified time | relevance | path

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

12345678910>>...26

/arch/sparc/mm/
Dinit_32.c67 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_highpages()
68 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages()
85 unsigned long tmp = pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT); in calc_max_low_pfn()
88 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
90 curr_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_max_low_pfn()
98 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
141 start_pfn >>= PAGE_SHIFT; in bootmem_init()
145 max_pfn = end_of_phys_memory >> PAGE_SHIFT; in bootmem_init()
150 if (max_low_pfn > pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT)) { in bootmem_init()
151 highstart_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/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)
83 size = (size - 1) >> (PAGE_SHIFT - 1); in get_order()
104 #define __pfn_disp (CONFIG_KERNEL_RAM_BASE_ADDRESS >> PAGE_SHIFT)
108 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
119 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
120 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
121 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
/arch/tile/include/asm/
Dpage.h24 #define PAGE_SHIFT 12 macro
27 #define PAGE_SHIFT 14 macro
30 #define PAGE_SHIFT 16 macro
37 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
49 #define CONFIG_FORCE_MAX_ZONEORDER (HPAGE_SHIFT - PAGE_SHIFT + 1)
134 return BITS_PER_LONG - __builtin_clzl((size - 1) >> PAGE_SHIFT); in get_order()
139 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
155 #define __pfn_to_highbits(pfn) ((pfn) >> (NR_PA_HIGHBIT_SHIFT - PAGE_SHIFT))
252 ((kaddr & (HPAGE_SIZE - 1)) >> PAGE_SHIFT); in kaddr_to_pfn()
257 return vbase_map[__pfn_to_highbits(pfn)] + (pfn << PAGE_SHIFT); in pfn_to_kaddr()
[all …]
/arch/xtensa/include/asm/
Dpage.h24 #define PAGE_SHIFT 12 macro
25 #define PAGE_SIZE (__XTENSA_UL_CONST(1) << PAGE_SHIFT)
70 # define DCACHE_ALIAS_ORDER (DCACHE_WAY_SHIFT - PAGE_SHIFT)
72 # define DCACHE_ALIAS(a) (((a) & DCACHE_ALIAS_MASK) >> PAGE_SHIFT)
81 # define ICACHE_ALIAS_ORDER (ICACHE_WAY_SHIFT - PAGE_SHIFT)
83 # define ICACHE_ALIAS(a) (((a) & ICACHE_ALIAS_MASK) >> PAGE_SHIFT)
123 asm ("nsau %0, %1" : "=r" (lz) : "r" ((size - 1) >> PAGE_SHIFT)); in get_order()
165 #define ARCH_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)
191 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
192 #define page_to_virt(page) __va(page_to_pfn(page) << PAGE_SHIFT)
[all …]
/arch/metag/include/asm/
Dpage.h11 #define PAGE_SHIFT 12 macro
13 #define PAGE_SHIFT 13 macro
15 #define PAGE_SHIFT 14 macro
18 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
46 # define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)
109 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
110 #define page_to_virt(page) __va(page_to_pfn(page) << PAGE_SHIFT)
111 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
112 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
119 #define pfn_to_kaddr(pfn) __va((pfn) << 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/powerpc/include/asm/
Dpage.h29 #define PAGE_SHIFT 18 macro
31 #define PAGE_SHIFT 16 macro
33 #define PAGE_SHIFT 14 macro
35 #define PAGE_SHIFT 12 macro
38 #define PAGE_SIZE (ASM_CONST(1) << PAGE_SHIFT)
44 #define HPAGE_SHIFT PAGE_SHIFT
48 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
57 #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
128 #define ARCH_PFN_OFFSET ((unsigned long)(MEMORY_START >> PAGE_SHIFT))
132 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT)
[all …]
/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)
79 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT)
80 #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT)
83 (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
85 #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
/arch/cris/include/asm/
Dpage.h9 #define PAGE_SHIFT 13 macro
10 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
43 #define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT)
44 #define pfn_valid(pfn) (((pfn) - (PAGE_OFFSET >> PAGE_SHIFT)) < max_mapnr)
54 #define virt_to_page(kaddr) (mem_map + (((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT))
55 #define virt_addr_valid(kaddr) pfn_valid((unsigned)(kaddr) >> PAGE_SHIFT)
61 #define page_to_phys(page) __pa((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
/arch/arc/include/uapi/asm/
Dpage.h17 #define PAGE_SHIFT 14 macro
19 #define PAGE_SHIFT 12 macro
28 #define PAGE_SHIFT 13 macro
31 #define PAGE_SIZE _BITUL(PAGE_SHIFT) /* Default 8K */
/arch/alpha/include/asm/
Dmmzone.h39 (((p) >> PAGE_SHIFT) - PLAT_NODE_DATA(n)->gendata.node_start_pfn)
45 temp = p >> PAGE_SHIFT; in PLAT_NODE_DATA_LOCALNR()
68 << PAGE_SHIFT))
73 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
95 kvirt = (unsigned long)__va(pte_val(x) >> (32-PAGE_SHIFT)); \
102 (page_to_pfn(page) << PAGE_SHIFT)
104 #define pfn_to_nid(pfn) pa_to_nid(((u64)(pfn) << PAGE_SHIFT))
109 #define virt_addr_valid(kaddr) pfn_valid((__pa(kaddr) >> PAGE_SHIFT))
Dpgtable.h32 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3))
37 #define PGDIR_SHIFT (PAGE_SHIFT + 2*(PAGE_SHIFT-3))
45 #define PTRS_PER_PTE (1UL << (PAGE_SHIFT-3))
46 #define PTRS_PER_PMD (1UL << (PAGE_SHIFT-3))
47 #define PTRS_PER_PGD (1UL << (PAGE_SHIFT-3))
52 #define PTRS_PER_PAGE (1UL << (PAGE_SHIFT-3))
171 ((unsigned long)(address)>>(PAGE_SHIFT-SIZEOF_PTR_LOG2)&PTR_MASK&~PAGE_MASK)
194 #define KSEG_PFN (0xc0000000000UL >> PAGE_SHIFT)
196 ((((pfn) & KSEG_PFN) == (0x40000000000UL >> PAGE_SHIFT)) \
207 #define page_to_pa(page) (((page) - mem_map) << PAGE_SHIFT)
[all …]
/arch/parisc/include/asm/
Dmmzone.h29 #define PFNNID_SHIFT (30 - PAGE_SHIFT)
34 #define pfn_is_io(pfn) ((pfn & (0xf0000000UL >> PAGE_SHIFT)) == (0xf0000000UL >> PAGE_SHIFT))
37 …ne pfn_is_io(pfn) ((pfn & (0xf000000000000000UL >> PAGE_SHIFT)) == (0xf000000000000000UL >> PAGE_S…
/arch/x86/mm/
Dinit.c97 order = get_order((unsigned long)num << PAGE_SHIFT); in alloc_low_pages()
105 ret = memblock_find_in_range(min_pfn_mapped << PAGE_SHIFT, in alloc_low_pages()
106 max_pfn_mapped << PAGE_SHIFT, in alloc_low_pages()
111 pfn = ret >> PAGE_SHIFT; in alloc_low_pages()
116 pfn << PAGE_SHIFT, (pgt_buf_end << PAGE_SHIFT) - 1); in alloc_low_pages()
122 adr = __va((pfn + i) << PAGE_SHIFT); in alloc_low_pages()
126 return __va(pfn << PAGE_SHIFT); in alloc_low_pages()
149 pgt_buf_start = base >> PAGE_SHIFT; in early_alloc_pgt_buf()
151 pgt_buf_top = pgt_buf_start + (tables >> PAGE_SHIFT); in early_alloc_pgt_buf()
259 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr()
[all …]
Dinit_32.c76 paravirt_alloc_pmd(&init_mm, __pa(pmd_table) >> PAGE_SHIFT); in one_md_table_init()
101 paravirt_alloc_pte(&init_mm, __pa(page_table) >> PAGE_SHIFT); in one_page_table_init()
183 paravirt_alloc_pte(&init_mm, __pa(newpte) >> PAGE_SHIFT); in page_table_kmap_check()
188 paravirt_release_pte(__pa(pte) >> PAGE_SHIFT); in page_table_kmap_check()
269 start_pfn = start >> PAGE_SHIFT; in kernel_physical_mapping_init()
270 end_pfn = end >> PAGE_SHIFT; in kernel_physical_mapping_init()
294 pgd_idx = pgd_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()
302 pmd_idx = pmd_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()
326 pfn &= PMD_MASK >> PAGE_SHIFT; in kernel_physical_mapping_init()
345 pte_ofs = pte_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()
[all …]
/arch/sh/include/asm/
Dpage.h13 # define PAGE_SHIFT 12 macro
15 # define PAGE_SHIFT 13 macro
17 # define PAGE_SHIFT 14 macro
19 # define PAGE_SHIFT 16 macro
24 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
45 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)
168 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
169 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
177 #define PFN_START (__MEMORY_START >> PAGE_SHIFT)
179 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
[all …]
/arch/nios2/mm/
Dtlb.c24 << PAGE_SHIFT)
63 WRCTL(CTL_PTEADDR, (addr >> PAGE_SHIFT) << 2); in flush_tlb_one_pid()
75 if (((((pteaddr >> 2) & 0xfffff)) == (addr >> PAGE_SHIFT)) && in flush_tlb_one_pid()
87 WRCTL(CTL_TLBACC, (MAX_PHYS_ADDR >> PAGE_SHIFT)); in flush_tlb_one_pid()
127 WRCTL(CTL_PTEADDR, (addr >> PAGE_SHIFT) << 2); in flush_tlb_one()
138 if ((((pteaddr >> 2) & 0xfffff)) == (addr >> PAGE_SHIFT)) { in flush_tlb_one()
150 WRCTL(CTL_TLBACC, (MAX_PHYS_ADDR >> PAGE_SHIFT)); in flush_tlb_one()
163 line << (PAGE_SHIFT + cpuinfo.tlb_num_ways_log2)); in dump_tlb_line()
180 if ((tlbacc << PAGE_SHIFT) != (MAX_PHYS_ADDR & PAGE_MASK)) { in dump_tlb_line()
183 (pteaddr << (PAGE_SHIFT-2)), in dump_tlb_line()
[all …]
/arch/ia64/include/asm/
Dpage.h31 # define PAGE_SHIFT 12 macro
33 # define PAGE_SHIFT 13 macro
35 # define PAGE_SHIFT 14 macro
37 # define PAGE_SHIFT 16 macro
42 #define PAGE_SIZE (__IA64_UL_CONST(1) << PAGE_SHIFT)
96 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
125 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
126 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
127 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
152 | (REGION_OFFSET(x) >> (HPAGE_SHIFT-PAGE_SHIFT)))
[all …]
/arch/arc/include/asm/
Dhighmem.h21 #define KM_TYPE_NR ((FIXMAP_SIZE >> PAGE_SHIFT)/NR_CPUS)
22 #define FIXMAP_ADDR(nr) (FIXMAP_BASE + ((nr) << PAGE_SHIFT))
27 #define LAST_PKMAP (PKMAP_SIZE >> PAGE_SHIFT)
29 #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
30 #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> 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/mm/
Dmmu_context_iommu.c49 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in mm_iommu_adjust_locked_vm()
63 npages << PAGE_SHIFT, in mm_iommu_adjust_locked_vm()
64 mm->locked_vm << PAGE_SHIFT, in mm_iommu_adjust_locked_vm()
147 if ((mem->ua < (ua + (entries << PAGE_SHIFT))) && in mm_iommu_get()
149 (mem->entries << PAGE_SHIFT)))) { in mm_iommu_get()
173 mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT)); in mm_iommu_get()
182 cur_ua = ua + (i << PAGE_SHIFT); in mm_iommu_get()
188 PAGE_SHIFT)); in mm_iommu_get()
208 PAGE_SHIFT)); in mm_iommu_get()
215 pageshift = PAGE_SHIFT; in mm_iommu_get()
[all …]
/arch/sparc/include/asm/
Dio-unit.h45 unsigned long bmap[(IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 3)) / sizeof(unsigned long)];
53 #define IOUNIT_BMAP1_END (IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 1))
55 #define IOUNIT_BMAP2_END IOUNIT_BMAP2_START + (IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 2))
57 #define IOUNIT_BMAPM_END ((IOUNIT_DMA_SIZE - IOUNIT_DVMA_SIZE) >> PAGE_SHIFT)
/arch/arm64/include/asm/
Dmemory.h56 #define VMEMMAP_SIZE (UL(1) << (VA_BITS - PAGE_SHIFT - 1 + STRUCT_PAGE_MAX_SHIFT))
101 #if defined(CONFIG_VMAP_STACK) && (MIN_THREAD_SHIFT < PAGE_SHIFT)
102 #define THREAD_SHIFT PAGE_SHIFT
107 #if THREAD_SHIFT >= PAGE_SHIFT
108 #define THREAD_SIZE_ORDER (THREAD_SHIFT - PAGE_SHIFT)
211 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)
279 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
290 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
291 #define _virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
300 + PHYS_OFFSET) >> PAGE_SHIFT)

12345678910>>...26