/openbmc/linux/arch/powerpc/boot/ |
H A D | main.c | 103 unsigned long initrd_size) in prep_initrd() argument 111 initrd_size = _initrd_end - _initrd_start; in prep_initrd() 112 } else if (initrd_size > 0) { in prep_initrd() 114 initrd_addr, initrd_addr + initrd_size); in prep_initrd() 118 if (! initrd_size) in prep_initrd() 130 initrd_size); in prep_initrd() 131 initrd_addr = (unsigned long)malloc(initrd_size); in prep_initrd() 136 initrd_addr, old_addr, initrd_size); in prep_initrd() 137 memmove((void *)initrd_addr, old_addr, initrd_size); in prep_initrd() 146 return (struct addr_range){(void *)initrd_addr, initrd_size}; in prep_initrd() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | qfw.c | 19 uint32_t setup_size, kernel_size, cmdline_size, initrd_size; in qemu_fwcfg_setup_kernel() local 39 qemu_fwcfg_read_entry(FW_CFG_INITRD_SIZE, 4, &initrd_size); in qemu_fwcfg_setup_kernel() 40 if (initrd_size == 0) { in qemu_fwcfg_setup_kernel() 44 le32_to_cpu(initrd_size), data_addr); in qemu_fwcfg_setup_kernel() 45 data_addr += le32_to_cpu(initrd_size); in qemu_fwcfg_setup_kernel() 64 if (initrd_size) in qemu_fwcfg_setup_kernel() 67 le32_to_cpu(initrd_size)); in qemu_fwcfg_setup_kernel()
|
/openbmc/qemu/pc-bios/optionrom/ |
H A D | pvh_main.c | 76 uint32_t cmdline_size, initrd_size, fw_cfg_version = bios_cfg_version(); in pvh_load_kernel() local 115 bios_cfg_read_entry(&initrd_size, FW_CFG_INITRD_SIZE, 4, fw_cfg_version); in pvh_load_kernel() 116 if (initrd_size) { in pvh_load_kernel() 119 bios_cfg_read_entry(initrd_addr, FW_CFG_INITRD_DATA, initrd_size, in pvh_load_kernel() 123 ramdisk_mod.size = initrd_size; in pvh_load_kernel()
|
H A D | linuxboot_dma.c | 144 uint32_t initrd_size; in load_kernel() local 163 bios_cfg_read_entry_dma(&initrd_size, FW_CFG_INITRD_SIZE, 4); in load_kernel() 165 initrd_end_page = ((uint32_t)(initrd_addr + initrd_size) & -4096); in load_kernel() 173 initrd_addr = (void *)((get_e801_addr() - initrd_size) & -4096); in load_kernel() 178 bios_cfg_read_entry_dma(initrd_addr, FW_CFG_INITRD_DATA, initrd_size); in load_kernel()
|
/openbmc/qemu/hw/microblaze/ |
H A D | boot.c | 177 int initrd_size; in microblaze_load_kernel() local 184 initrd_size = load_ramdisk(initrd_filename, in microblaze_load_kernel() 187 if (initrd_size < 0) { in microblaze_load_kernel() 188 initrd_size = load_image_targphys(initrd_filename, in microblaze_load_kernel() 192 if (initrd_size < 0) { in microblaze_load_kernel() 197 boot_info.initrd_end = boot_info.initrd_start + initrd_size; in microblaze_load_kernel() 198 high = ROUND_UP(high + initrd_size, 4); in microblaze_load_kernel()
|
/openbmc/qemu/hw/mips/ |
H A D | fuloong2e.c | 97 uint64_t kernel_entry, kernel_high, initrd_size; in load_kernel() local 117 initrd_size = 0; in load_kernel() 120 initrd_size = get_image_size(loaderparams.initrd_filename); in load_kernel() 121 if (initrd_size > 0) { in load_kernel() 123 if (initrd_offset + initrd_size > loaderparams.ram_size) { in load_kernel() 128 initrd_size = load_image_targphys(loaderparams.initrd_filename, in load_kernel() 132 if (initrd_size == (target_ulong) -1) { in load_kernel() 144 if (initrd_size > 0) { in load_kernel() 148 initrd_size, loaderparams.kernel_cmdline); in load_kernel()
|
H A D | mipssim.c | 69 uint64_t entry, kernel_high, initrd_size; in load_kernel() local 86 initrd_size = 0; in load_kernel() 89 initrd_size = get_image_size(loaderparams.initrd_filename); in load_kernel() 90 if (initrd_size > 0) { in load_kernel() 92 if (initrd_offset + initrd_size > loaderparams.ram_size) { in load_kernel() 97 initrd_size = load_image_targphys(loaderparams.initrd_filename, in load_kernel() 100 if (initrd_size == (target_ulong) -1) { in load_kernel()
|
H A D | loongson3_virt.c | 302 static int set_prom_cmdline(ram_addr_t initrd_offset, long initrd_size) in set_prom_cmdline() argument 327 if (initrd_size > 0) in set_prom_cmdline() 331 initrd_size, loaderparams.kernel_cmdline)); in set_prom_cmdline() 355 uint64_t kernel_entry, kernel_low, kernel_high, initrd_size; in load_kernel() local 370 initrd_size = 0; in load_kernel() 373 initrd_size = get_image_size(loaderparams.initrd_filename); in load_kernel() 374 if (initrd_size > 0) { in load_kernel() 378 if (initrd_offset + initrd_size > loaderparams.ram_size) { in load_kernel() 384 initrd_size = load_image_targphys(loaderparams.initrd_filename, in load_kernel() 389 if (initrd_size == (target_ulong) -1) { in load_kernel() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/ |
H A D | 140-mips_disable_devicetree_support.patch | 66 - initrd_buf = slurp_file(arch_options.initrd_file, &initrd_size); 70 - dtb_set_initrd(&dtb_buf, &dtb_length, initrd_buf, initrd_buf + initrd_size); 72 - initrd_base = add_buffer(info, initrd_buf, initrd_size, 73 - initrd_size, sizeof(void *), 79 - dtb_set_initrd(&dtb_buf, &dtb_length, initrd_base, initrd_base + initrd_size); 94 + initrd_buf = slurp_file(arch_options.initrd_file, &initrd_size); 98 + dtb_set_initrd(&dtb_buf, &dtb_length, (off_t)initrd_buf, (off_t)initrd_buf + initrd_size); 100 + initrd_base = add_buffer(info, initrd_buf, initrd_size, 101 + initrd_size, sizeof(void *), 107 + dtb_set_initrd(&dtb_buf, &dtb_length, initrd_base, initrd_base + initrd_size);
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_vof.c | 79 if (spapr->initrd_size && in spapr_vof_reset() 80 vof_claim(vof, spapr->initrd_base, spapr->initrd_size, 0) == -1) { in spapr_vof_reset() 89 spapr->initrd_size); in spapr_vof_reset() 152 spapr->initrd_size = ldl_be_p(val) - spapr->initrd_base; in spapr_vof_setprop() 156 spapr->initrd_size = ldq_be_p(val) - spapr->initrd_base; in spapr_vof_setprop()
|
H A D | virtex_ml507.c | 130 hwaddr initrd_size) in xilinx_load_device_tree() argument 167 (initrd_base + initrd_size)); in xilinx_load_device_tree() 188 int initrd_size = 0; in virtex_init() local 264 initrd_size = load_image_targphys(machine->initrd_filename, in virtex_init() 267 if (initrd_size < 0) { in virtex_init() 272 high = ROUND_UP(high + initrd_size, 4); in virtex_init() 280 initrd_base, initrd_size); in virtex_init()
|
H A D | ppc440_bamboo.c | 57 hwaddr initrd_size) in bamboo_load_device_tree() argument 90 (initrd_base + initrd_size)); in bamboo_load_device_tree() 139 target_long initrd_size = 0; in bamboo_init() local 243 initrd_size = load_image_targphys(initrd_filename, RAMDISK_ADDR, in bamboo_init() 246 if (initrd_size < 0) { in bamboo_init() 256 RAMDISK_ADDR, initrd_size) < 0) { in bamboo_init()
|
H A D | ppc405_boards.c | 73 uint32_t initrd_size; member 92 env->gpr[5] = bi->initrd_base + bi->initrd_size; in main_cpu_reset() 226 int initrd_size; in boot_from_kernel() local 246 initrd_size = load_image_targphys(machine->initrd_filename, initrd_base, in boot_from_kernel() 248 if (initrd_size < 0) { in boot_from_kernel() 255 boot_info.initrd_size = initrd_size; in boot_from_kernel() 315 long kernel_size, initrd_size; in ppc405_init() local 328 initrd_size = load_image_targphys(machine->initrd_filename, in ppc405_init() 331 if (initrd_size < 0) { in ppc405_init()
|
H A D | prep.c | 174 uint32_t initrd_image, uint32_t initrd_size, in PPC_NVRAM_set_params() argument 200 NVRAM_set_lword(nvram, 0x4C, initrd_size); in PPC_NVRAM_set_params() 244 long kernel_size = 0, initrd_size = 0; in ibm_40p_init() local 370 initrd_size = load_image_targphys(machine->initrd_filename, in ibm_40p_init() 373 if (initrd_size < 0) { in ibm_40p_init() 379 fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_SIZE, initrd_size); in ibm_40p_init() 413 initrd_base, initrd_size, in ibm_40p_init()
|
H A D | sam460ex.c | 135 hwaddr initrd_size) in sam460ex_load_device_tree() argument 169 (initrd_base + initrd_size)); in sam460ex_load_device_tree() 259 target_long initrd_size = 0; in sam460ex_init() local 495 initrd_size = load_image_targphys(machine->initrd_filename, in sam460ex_init() 498 if (initrd_size < 0) { in sam460ex_init() 510 RAMDISK_ADDR, initrd_size); in sam460ex_init()
|
/openbmc/qemu/hw/loongarch/ |
H A D | boot.c | 22 uint64_t initrd_size; variable 116 initrd_table->size = initrd_size; in init_efi_initrd_table() 193 initrd_size = get_image_size(info->initrd_filename); in load_kernel_info() 194 if (initrd_size > 0) { in load_kernel_info() 197 if (initrd_offset + initrd_size > info->ram_size) { in load_kernel_info() 203 initrd_size = load_image_targphys(info->initrd_filename, initrd_offset, in load_kernel_info() 207 if (initrd_size == (target_ulong)-1) { in load_kernel_info() 213 initrd_size = 0; in load_kernel_info()
|
/openbmc/qemu/hw/alpha/ |
H A D | dp264.c | 182 int64_t initrd_size; in clipper_init() local 184 initrd_size = get_image_size(initrd_filename); in clipper_init() 185 if (initrd_size < 0) { in clipper_init() 192 initrd_base = (ram_size - initrd_size) & TARGET_PAGE_MASK; in clipper_init() 201 initrd_size, MEMTXATTRS_UNSPECIFIED, NULL); in clipper_init()
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | zimage.c | 240 unsigned long initrd_addr, unsigned long initrd_size) in setup_zimage() argument 258 initrd_addr, initrd_size); in setup_zimage() 261 hdr->ramdisk_size = initrd_size; in setup_zimage() 315 ulong initrd_size = 0; in do_zboot() local 340 initrd_size = simple_strtoul(argv[4], NULL, 16); in do_zboot() 350 0, initrd_addr, initrd_size)) { in do_zboot()
|
/openbmc/qemu/hw/arm/ |
H A D | boot.c | 281 int initrd_size = info->initrd_size; in set_kernel_args() local 298 if (initrd_size) { in set_kernel_args() 303 WRITE_WORD(p, initrd_size); in set_kernel_args() 339 int initrd_size = info->initrd_size; in set_kernel_args_old() local 380 if (initrd_size) { in set_kernel_args_old() 386 WRITE_WORD(p, initrd_size); in set_kernel_args_old() 640 if (binfo->initrd_size) { in arm_load_dtb() 937 int initrd_size; in arm_setup_direct_kernel_boot() local 1057 if (initrd_size < 0) { in arm_setup_direct_kernel_boot() 1076 initrd_size = 0; in arm_setup_direct_kernel_boot() [all …]
|
/openbmc/qemu/hw/i386/ |
H A D | x86-common.c | 709 gsize initrd_size; in x86_load_linux() local 724 if (initrd_size >= initrd_max) { in x86_load_linux() 727 initrd_max, (uint64_t)initrd_size); in x86_load_linux() 736 initrd_size); in x86_load_linux() 850 gsize initrd_size; in x86_load_linux() local 868 initrd_size = g_mapped_file_get_length(mapped_file); in x86_load_linux() 869 if (initrd_size >= initrd_max) { in x86_load_linux() 872 initrd_max, (uint64_t)initrd_size); in x86_load_linux() 876 initrd_addr = (initrd_max - initrd_size) & ~4095; in x86_load_linux() 882 sev_load_ctx.initrd_size = initrd_size; in x86_load_linux() [all …]
|
/openbmc/linux/arch/mips/sibyte/common/ |
H A D | cfe.c | 155 unsigned long initrd_size; in initrd_setup() local 180 initrd_size = simple_strtoul(str, &endptr, 16); in initrd_setup() 190 initrd_end = initrd_start + initrd_size; in initrd_setup() 191 printk("Found initrd of %lx@%lx\n", initrd_size, initrd_start); in initrd_setup()
|
/openbmc/qemu/hw/sh4/ |
H A D | r2d.c | 223 int initrd_size; member 344 int initrd_size; in r2d_init() local 346 initrd_size = load_image_targphys(initrd_filename, in r2d_init() 350 if (initrd_size < 0) { in r2d_init() 358 boot_params.initrd_size = tswap32(initrd_size); in r2d_init()
|
/openbmc/qemu/hw/sparc64/ |
H A D | sun4u.c | 128 uint32_t initrd_image, uint32_t initrd_size, in sun4u_NVRAM_set_params() argument 157 ram_addr_t RAM_size, uint64_t *initrd_size, in sun4u_load_kernel() argument 198 *initrd_size = 0; in sun4u_load_kernel() 202 *initrd_size = load_image_targphys(initrd_filename, in sun4u_load_kernel() 205 if ((int)*initrd_size < 0) { in sun4u_load_kernel() 211 if (*initrd_size > 0) { in sun4u_load_kernel() 216 stl_p(ptr + 28, *initrd_size); in sun4u_load_kernel() 563 uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry; in sun4uv_init() local 681 initrd_size = 0; in sun4uv_init() 692 initrd_addr, initrd_size, in sun4uv_init() [all …]
|
/openbmc/linux/tools/bootconfig/ |
H A D | test-bootconfig.sh | 53 initrd_size=$(stat -c %s $INITRD) 63 total_size=$(expr $bconf_size + $initrd_size + 9 + 12 + $ALIGN - 1 ) 79 xpass test $new_size -eq $initrd_size
|
/openbmc/qemu/hw/m68k/ |
H A D | virt.c | 119 int32_t initrd_size; in virt_init() local 285 initrd_size = get_image_size(initrd_filename); in virt_init() 286 if (initrd_size < 0) { in virt_init() 292 initrd_base = (ram_size - initrd_size) & TARGET_PAGE_MASK; in virt_init() 296 initrd_size); in virt_init() 299 initrd_size = 0; in virt_init()
|