Lines Matching refs:start_pfn
303 unsigned long start_pfn, unsigned long end_pfn, in save_mr() argument
306 if (start_pfn < end_pfn) { in save_mr()
309 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr()
381 unsigned long start_pfn, end_pfn, limit_pfn; in split_mem_range() local
388 pfn = start_pfn = PFN_DOWN(start); in split_mem_range()
405 if (start_pfn < end_pfn) { in split_mem_range()
406 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in split_mem_range()
411 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
420 if (start_pfn < end_pfn) { in split_mem_range()
421 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
428 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
430 if (start_pfn < end_pfn) { in split_mem_range()
431 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
438 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
440 if (start_pfn < end_pfn) { in split_mem_range()
441 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
448 start_pfn = pfn; in split_mem_range()
450 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in split_mem_range()
480 static void add_pfn_range_mapped(unsigned long start_pfn, unsigned long end_pfn) in add_pfn_range_mapped() argument
483 nr_pfn_mapped, start_pfn, end_pfn); in add_pfn_range_mapped()
488 if (start_pfn < (1UL<<(32-PAGE_SHIFT))) in add_pfn_range_mapped()
493 bool pfn_range_is_mapped(unsigned long start_pfn, unsigned long end_pfn) in pfn_range_is_mapped() argument
498 if ((start_pfn >= pfn_mapped[i].start) && in pfn_range_is_mapped()
550 unsigned long start_pfn, end_pfn; in init_range_memory_mapping() local
554 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) { in init_range_memory_mapping()
555 u64 start = clamp_val(PFN_PHYS(start_pfn), r_start, r_end); in init_range_memory_mapping()
972 unsigned long start_pfn, end_pfn; in memblock_find_dma_reserve() local
982 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) { in memblock_find_dma_reserve()
983 start_pfn = min(start_pfn, MAX_DMA_PFN); in memblock_find_dma_reserve()
986 nr_pages += end_pfn - start_pfn; in memblock_find_dma_reserve()
996 start_pfn = min_t(unsigned long, PFN_UP(start_addr), MAX_DMA_PFN); in memblock_find_dma_reserve()
999 if (start_pfn < end_pfn) in memblock_find_dma_reserve()
1000 nr_free_pages += end_pfn - start_pfn; in memblock_find_dma_reserve()