Lines Matching refs:ramdisk_image
237 u64 ramdisk_image = boot_params.hdr.ramdisk_image; in get_ramdisk_image() local
239 ramdisk_image |= (u64)boot_params.ext_ramdisk_image << 32; in get_ramdisk_image()
241 if (ramdisk_image == 0) in get_ramdisk_image()
242 ramdisk_image = phys_initrd_start; in get_ramdisk_image()
244 return ramdisk_image; in get_ramdisk_image()
261 u64 ramdisk_image = get_ramdisk_image(); in relocate_initrd() local
277 copy_from_early_mem((void *)initrd_start, ramdisk_image, ramdisk_size); in relocate_initrd()
281 ramdisk_image, ramdisk_image + ramdisk_size - 1, in relocate_initrd()
288 u64 ramdisk_image = get_ramdisk_image(); in early_reserve_initrd() local
290 u64 ramdisk_end = PAGE_ALIGN(ramdisk_image + ramdisk_size); in early_reserve_initrd()
293 !ramdisk_image || !ramdisk_size) in early_reserve_initrd()
296 memblock_reserve(ramdisk_image, ramdisk_end - ramdisk_image); in early_reserve_initrd()
302 u64 ramdisk_image = get_ramdisk_image(); in reserve_initrd() local
304 u64 ramdisk_end = PAGE_ALIGN(ramdisk_image + ramdisk_size); in reserve_initrd()
307 !ramdisk_image || !ramdisk_size) in reserve_initrd()
312 printk(KERN_INFO "RAMDISK: [mem %#010llx-%#010llx]\n", ramdisk_image, in reserve_initrd()
315 if (pfn_range_is_mapped(PFN_DOWN(ramdisk_image), in reserve_initrd()
318 initrd_start = ramdisk_image + PAGE_OFFSET; in reserve_initrd()
325 memblock_phys_free(ramdisk_image, ramdisk_end - ramdisk_image); in reserve_initrd()