Lines Matching refs:region_size
632 int region_size; in inject_region() local
650 region_fd = open_for_read(region_fname, ®ion_size); in inject_region()
654 if ((region_size > region.size) || in inject_region()
655 ((region_type != 1) && (region_size > region.size))) { in inject_region()
658 region.size, region_size, region_size); in inject_region()
662 if ((region_type == 1) && (region_size < region.size)) { in inject_region()
665 region.size, region_size, region_size); in inject_region()
666 offset = region.size - region_size; in inject_region()
670 if (size < region.base + offset + region_size) { in inject_region()
672 size, region.base + offset + region_size); in inject_region()
676 if (read(region_fd, image + region.base + offset, region_size) in inject_region()
677 != region_size) { in inject_region()