Lines Matching refs:start
105 if (one->start + one->size <= two->start) in mem_overlaps()
108 if (one->start >= two->start + two->size) in mem_overlaps()
128 parse_memmap(char *p, u64 *start, u64 *size, enum parse_mode mode) in parse_memmap() argument
148 *start = memparse(p + 1, &p); in parse_memmap()
164 *start = memparse(p + 1, &p); in parse_memmap()
181 *start = 0; in parse_memmap()
197 u64 start, size; in mem_avoid_memmap() local
203 rc = parse_memmap(str, &start, &size, mode); in mem_avoid_memmap()
208 if (start == 0) { in mem_avoid_memmap()
216 mem_avoid[MEM_AVOID_MEMMAP_BEGIN + i].start = start; in mem_avoid_memmap()
394 mem_avoid[MEM_AVOID_ZO_RANGE].start = input; in mem_avoid_init()
402 mem_avoid[MEM_AVOID_INITRD].start = initrd_start; in mem_avoid_init()
411 mem_avoid[MEM_AVOID_CMDLINE].start = cmd_line; in mem_avoid_init()
416 mem_avoid[MEM_AVOID_BOOTPARAMS].start = (unsigned long)boot_params; in mem_avoid_init()
437 u64 earliest = img->start + img->size; in mem_avoid_overlap()
442 mem_avoid[i].start < earliest) { in mem_avoid_overlap()
444 earliest = overlap->start; in mem_avoid_overlap()
454 avoid.start = (unsigned long)ptr; in mem_avoid_overlap()
457 if (mem_overlaps(img, &avoid) && (avoid.start < earliest)) { in mem_avoid_overlap()
459 earliest = overlap->start; in mem_avoid_overlap()
465 avoid.start = ((struct setup_indirect *)ptr->data)->addr; in mem_avoid_overlap()
468 if (mem_overlaps(img, &avoid) && (avoid.start < earliest)) { in mem_avoid_overlap()
470 earliest = overlap->start; in mem_avoid_overlap()
499 slot_area.addr = region->start; in store_slot_info()
523 pud_start = ALIGN(region->start, PUD_SIZE); in process_gb_huge_pages()
524 pud_end = ALIGN_DOWN(region->start + region->size, PUD_SIZE); in process_gb_huge_pages()
533 if (pud_start >= region->start + image_size) { in process_gb_huge_pages()
534 tmp.start = region->start; in process_gb_huge_pages()
535 tmp.size = pud_start - region->start; in process_gb_huge_pages()
549 if (region->start + region->size >= pud_end + image_size) { in process_gb_huge_pages()
550 tmp.start = pud_end; in process_gb_huge_pages()
551 tmp.size = region->start + region->size - pud_end; in process_gb_huge_pages()
588 region.start = max_t(u64, entry->start, minimum); in __process_mem_region()
589 region_end = min(entry->start + entry->size, mem_limit); in __process_mem_region()
594 region.start = ALIGN(region.start, CONFIG_PHYSICAL_ALIGN); in __process_mem_region()
597 if (region.start > region_end) in __process_mem_region()
601 region.size = region_end - region.start; in __process_mem_region()
614 if (overlap.start >= region.start + image_size) { in __process_mem_region()
615 region.size = overlap.start - region.start; in __process_mem_region()
620 region.start = overlap.start + overlap.size; in __process_mem_region()
649 u64 start, end, entry_end, region_end; in process_mem_region() local
655 start = immovable_mem[i].start; in process_mem_region()
656 end = start + immovable_mem[i].size; in process_mem_region()
657 region_end = region->start + region->size; in process_mem_region()
659 entry.start = clamp(region->start, start, end); in process_mem_region()
660 entry_end = clamp(region_end, start, end); in process_mem_region()
661 entry.size = entry_end - entry.start; in process_mem_region()
757 region.start = md->phys_addr; in process_efi_entries()
785 region.start = entry->addr; in process_e820_entries()