Lines Matching refs:temp_start
444 unsigned long temp_start, temp_end; in locate_mem_hole_top_down() local
447 temp_start = temp_end - kbuf->memsz + 1; in locate_mem_hole_top_down()
451 temp_start = ALIGN_DOWN(temp_start, kbuf->buf_align); in locate_mem_hole_top_down()
453 if (temp_start < start || temp_start < kbuf->buf_min) in locate_mem_hole_top_down()
456 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_top_down()
462 if (kimage_is_destination_range(image, temp_start, temp_end)) { in locate_mem_hole_top_down()
463 temp_start = temp_start - PAGE_SIZE; in locate_mem_hole_top_down()
468 if (arch_check_excluded_range(image, temp_start, temp_end)) { in locate_mem_hole_top_down()
469 temp_start = temp_start - PAGE_SIZE; in locate_mem_hole_top_down()
478 kbuf->mem = temp_start; in locate_mem_hole_top_down()
488 unsigned long temp_start, temp_end; in locate_mem_hole_bottom_up() local
490 temp_start = max(start, kbuf->buf_min); in locate_mem_hole_bottom_up()
493 temp_start = ALIGN(temp_start, kbuf->buf_align); in locate_mem_hole_bottom_up()
494 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_bottom_up()
502 if (kimage_is_destination_range(image, temp_start, temp_end)) { in locate_mem_hole_bottom_up()
503 temp_start = temp_start + PAGE_SIZE; in locate_mem_hole_bottom_up()
508 if (arch_check_excluded_range(image, temp_start, temp_end)) { in locate_mem_hole_bottom_up()
509 temp_start = temp_start + PAGE_SIZE; in locate_mem_hole_bottom_up()
518 kbuf->mem = temp_start; in locate_mem_hole_bottom_up()