Lines Matching refs:start_pfn

328 			     unsigned long start_pfn, unsigned long end_pfn,  in save_mr()  argument
331 if (start_pfn < end_pfn) { in save_mr()
334 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr()
406 unsigned long start_pfn, end_pfn, limit_pfn; in split_mem_range() local
413 pfn = start_pfn = PFN_DOWN(start); 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, 0); in split_mem_range()
436 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
445 if (start_pfn < end_pfn) { in split_mem_range()
446 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
453 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
455 if (start_pfn < end_pfn) { in split_mem_range()
456 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
463 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
465 if (start_pfn < end_pfn) { in split_mem_range()
466 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
473 start_pfn = pfn; in split_mem_range()
475 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in split_mem_range()
505 static void add_pfn_range_mapped(unsigned long start_pfn, unsigned long end_pfn) in add_pfn_range_mapped() argument
508 nr_pfn_mapped, start_pfn, end_pfn); in add_pfn_range_mapped()
513 if (start_pfn < (1UL<<(32-PAGE_SHIFT))) in add_pfn_range_mapped()
518 bool pfn_range_is_mapped(unsigned long start_pfn, unsigned long end_pfn) in pfn_range_is_mapped() argument
523 if ((start_pfn >= pfn_mapped[i].start) && in pfn_range_is_mapped()
575 unsigned long start_pfn, end_pfn; in init_range_memory_mapping() local
579 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) { in init_range_memory_mapping()
580 u64 start = clamp_val(PFN_PHYS(start_pfn), r_start, r_end); in init_range_memory_mapping()
1005 unsigned long start_pfn, end_pfn; in memblock_find_dma_reserve() local
1015 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) { in memblock_find_dma_reserve()
1016 start_pfn = min(start_pfn, MAX_DMA_PFN); in memblock_find_dma_reserve()
1019 nr_pages += end_pfn - start_pfn; in memblock_find_dma_reserve()
1029 start_pfn = min_t(unsigned long, PFN_UP(start_addr), MAX_DMA_PFN); in memblock_find_dma_reserve()
1032 if (start_pfn < end_pfn) in memblock_find_dma_reserve()
1033 nr_free_pages += end_pfn - start_pfn; in memblock_find_dma_reserve()