Lines Matching refs:PAGE_SHIFT

122 		order = get_order((unsigned long)num << PAGE_SHIFT);  in alloc_low_pages()
132 min_pfn_mapped << PAGE_SHIFT, in alloc_low_pages()
133 max_pfn_mapped << PAGE_SHIFT); in alloc_low_pages()
141 pfn = ret >> PAGE_SHIFT; in alloc_low_pages()
150 adr = __va((pfn + i) << PAGE_SHIFT); in alloc_low_pages()
154 return __va(pfn << PAGE_SHIFT); in alloc_low_pages()
186 pgt_buf_start = base >> PAGE_SHIFT; in early_alloc_pgt_buf()
188 pgt_buf_top = pgt_buf_start + (tables >> PAGE_SHIFT); in early_alloc_pgt_buf()
309 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr()
310 mr[nr_range].end = end_pfn<<PAGE_SHIFT; in save_mr()
334 if ((end >> PAGE_SHIFT) > max_low_pfn) in adjust_range_page_size_mask()
488 if (start_pfn < (1UL<<(32-PAGE_SHIFT))) in add_pfn_range_mapped()
490 min(end_pfn, 1UL<<(32-PAGE_SHIFT))); in add_pfn_range_mapped()
528 add_pfn_range_mapped(start >> PAGE_SHIFT, ret >> PAGE_SHIFT); in init_memory_mapping()
530 return ret >> PAGE_SHIFT; in init_memory_mapping()
564 can_use_brk_pgt = max(start, (u64)pgt_buf_end<<PAGE_SHIFT) >= in init_range_memory_mapping()
565 min(end, (u64)pgt_buf_top<<PAGE_SHIFT); in init_range_memory_mapping()
590 return step_size << (PMD_SHIFT - PAGE_SHIFT - 1); in get_new_step_size()
627 min_pfn_mapped = real_end >> PAGE_SHIFT; in memory_map_top_down()
648 min_pfn_mapped = last_start >> PAGE_SHIFT; in memory_map_top_down()
677 min_pfn_mapped = start >> PAGE_SHIFT; in memory_map_bottom_up()
733 end = max_pfn << PAGE_SHIFT; in init_mem_mapping()
735 end = max_low_pfn << PAGE_SHIFT; in init_mem_mapping()
778 early_memtest(0, max_pfn_mapped << PAGE_SHIFT); in init_mem_mapping()
847 if (iomem_is_exclusive(pagenr << PAGE_SHIFT)) { in devmem_is_allowed()
887 set_memory_np(begin, (end - begin) >> PAGE_SHIFT); in free_init_pages()
894 set_memory_nx(begin, (end - begin) >> PAGE_SHIFT); in free_init_pages()
895 set_memory_rw(begin, (end - begin) >> PAGE_SHIFT); in free_init_pages()
911 unsigned long len_pages = (end_ul - begin_ul) >> PAGE_SHIFT; in free_kernel_image_pages()
1057 l1tf_limit <<= PAGE_SHIFT - SWP_OFFSET_FIRST_BIT; in max_swapfile_size()