Lines Matching refs:ramdisk_size
251 u64 ramdisk_size = boot_params.hdr.ramdisk_size; in get_ramdisk_size() local
253 ramdisk_size |= (u64)boot_params.ext_ramdisk_size << 32; in get_ramdisk_size()
255 if (ramdisk_size == 0) in get_ramdisk_size()
256 ramdisk_size = phys_initrd_size; in get_ramdisk_size()
258 return ramdisk_size; in get_ramdisk_size()
265 u64 ramdisk_size = get_ramdisk_size(); in relocate_initrd() local
266 u64 area_size = PAGE_ALIGN(ramdisk_size); in relocate_initrd()
273 ramdisk_size); in relocate_initrd()
276 initrd_end = initrd_start + ramdisk_size; in relocate_initrd()
278 relocated_ramdisk, relocated_ramdisk + ramdisk_size - 1); in relocate_initrd()
280 copy_from_early_mem((void *)initrd_start, ramdisk_image, ramdisk_size); in relocate_initrd()
284 ramdisk_image, ramdisk_image + ramdisk_size - 1, in relocate_initrd()
285 relocated_ramdisk, relocated_ramdisk + ramdisk_size - 1); in relocate_initrd()
292 u64 ramdisk_size = get_ramdisk_size(); in early_reserve_initrd() local
293 u64 ramdisk_end = PAGE_ALIGN(ramdisk_image + ramdisk_size); in early_reserve_initrd()
296 !ramdisk_image || !ramdisk_size) in early_reserve_initrd()
306 u64 ramdisk_size = get_ramdisk_size(); in reserve_initrd() local
307 u64 ramdisk_end = PAGE_ALIGN(ramdisk_image + ramdisk_size); in reserve_initrd()
310 !ramdisk_image || !ramdisk_size) in reserve_initrd()
322 initrd_end = initrd_start + ramdisk_size; in reserve_initrd()