/openbmc/qemu/hw/pci-host/ |
H A D | raven.c | 343 int bios_size = -1; in raven_realize() local 359 bios_size = load_elf(filename, NULL, NULL, NULL, NULL, in raven_realize() 363 if (bios_size < 0) { in raven_realize() 364 bios_size = get_image_size(filename); in raven_realize() 365 if (bios_size > 0 && bios_size <= BIOS_SIZE) { in raven_realize() 367 bios_size = (bios_size + 0xfff) & ~0xfff; in raven_realize() 369 bios_size = load_image_targphys(filename, bios_addr, in raven_realize() 370 bios_size); in raven_realize() 375 if (bios_size < 0 || bios_size > BIOS_SIZE) { in raven_realize()
|
/openbmc/qemu/hw/mips/ |
H A D | mipssim.c | 153 int bios_size; in mips_mipssim_init() local 183 bios_size = load_image_targphys(filename, 0x1fc00000LL, BIOS_SIZE); in mips_mipssim_init() 186 bios_size = -1; in mips_mipssim_init() 188 if ((bios_size < 0 || bios_size > BIOS_SIZE) && in mips_mipssim_init()
|
H A D | fuloong2e.c | 217 long bios_size; in mips_fuloong2e_init() local 265 bios_size = load_image_targphys(filename, 0x1fc00000LL, in mips_fuloong2e_init() 269 bios_size = -1; in mips_fuloong2e_init() 272 if ((bios_size < 0 || bios_size > BIOS_SIZE) && in mips_fuloong2e_init()
|
H A D | jazz.c | 173 int bios_size, n; in mips_jazz_init() local 250 bios_size = load_image_targphys(filename, 0xfff00000LL, in mips_jazz_init() 254 bios_size = -1; in mips_jazz_init() 256 if ((bios_size < 0 || bios_size > MAGNUM_BIOS_SIZE) in mips_jazz_init()
|
H A D | loongson3_virt.c | 486 long bios_size; in mips_loongson3_virt_init() local 643 bios_size = load_image_targphys(filename, in mips_loongson3_virt_init() 648 bios_size = -1; in mips_loongson3_virt_init() 651 if ((bios_size < 0 || bios_size > virt_memmap[VIRT_BIOS_ROM].size) && in mips_loongson3_virt_init()
|
H A D | malta.c | 1175 target_long bios_size = FLASH_SIZE; in mips_malta_init() local 1182 bios_size = load_image_targphys(filename, FLASH_ADDRESS, in mips_malta_init() 1186 bios_size = -1; in mips_malta_init() 1188 if ((bios_size < 0 || bios_size > BIOS_SIZE) && in mips_malta_init() 1201 const size_t swapsize = MIN(bios_size, 0x3e0000); in mips_malta_init()
|
/openbmc/qemu/hw/i386/ |
H A D | x86-common.c | 979 uint64_t bios_size = memory_region_size(bios); in x86_isa_bios_init() local 980 uint64_t isa_bios_size = MIN(bios_size, 128 * KiB); in x86_isa_bios_init() 983 bios_size - isa_bios_size, isa_bios_size); in x86_isa_bios_init() 994 int bios_size; in x86_bios_rom_init() local 1001 bios_size = get_image_size(filename); in x86_bios_rom_init() 1003 bios_size = -1; in x86_bios_rom_init() 1005 if (bios_size <= 0 || in x86_bios_rom_init() 1006 (bios_size % 65536) != 0) { in x86_bios_rom_init() 1011 bios_size, &error_fatal); in x86_bios_rom_init() 1014 bios_size, &error_fatal); in x86_bios_rom_init() [all …]
|
/openbmc/qemu/hw/xen/ |
H A D | xen_pt_graphics.c | 171 int bios_size; in xen_pt_setup_vga() local 182 bios = get_vgabios(s, &bios_size, dev); in xen_pt_setup_vga() 188 if (bios_size < sizeof(struct rom_header)) { in xen_pt_setup_vga() 196 if (rom->pcioffset + sizeof(struct pci_data) > bios_size) { in xen_pt_setup_vga() 208 if (len > bios_size) { in xen_pt_setup_vga() 225 cpu_physical_memory_write(0xc0000, bios, bios_size); in xen_pt_setup_vga()
|
/openbmc/qemu/hw/sparc/ |
H A D | leon3.c | 268 int bios_size; in leon3_generic_hw_init() local 352 bios_size = get_image_size(filename); in leon3_generic_hw_init() 354 bios_size = -1; in leon3_generic_hw_init() 357 if (bios_size > prom_size) { in leon3_generic_hw_init() 362 if (bios_size > 0) { in leon3_generic_hw_init() 363 ret = load_image_targphys(filename, LEON3_PROM_OFFSET, bios_size); in leon3_generic_hw_init() 392 if (bios_size <= 0) { in leon3_generic_hw_init()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_bios.c | 116 adev->bios_size = size; in igp_read_bios_from_vram() 144 adev->bios_size = size; in amdgpu_read_bios() 183 adev->bios_size = len; in amdgpu_read_bios_from_rom() 221 adev->bios_size = romlen; in amdgpu_read_platform_bios() 344 adev->bios_size = size; in amdgpu_atrm_get_bios() 412 adev->bios_size = vhdr->ImageLength; in amdgpu_acpi_vfct_bios()
|
H A D | amdgpu_kms.c | 938 uint32_t bios_size = adev->bios_size; in amdgpu_info_ioctl() local 942 return copy_to_user(out, &bios_size, in amdgpu_info_ioctl() 943 min((size_t)size, sizeof(bios_size))) in amdgpu_info_ioctl() 949 if (bios_offset >= bios_size) in amdgpu_info_ioctl() 954 min((size_t)size, (size_t)(bios_size - bios_offset))) in amdgpu_info_ioctl()
|
H A D | amdgpu.h | 804 uint32_t bios_size; member
|
H A D | amdgpu_debugfs.c | 2193 adev->debugfs_vbios_blob.size = adev->bios_size; in amdgpu_debugfs_init()
|
/openbmc/qemu/hw/ppc/ |
H A D | mac_oldworld.c | 95 int i, bios_size = -1; in ppc_heathrow_init() local 138 bios_size = load_elf(filename, NULL, NULL, NULL, NULL, &bios_addr, in ppc_heathrow_init() 143 if (bios_size <= 0) { in ppc_heathrow_init() 145 bios_size = load_image_targphys(filename, PROM_BASE, PROM_SIZE); in ppc_heathrow_init() 150 if (bios_size < 0 || bios_addr - PROM_BASE + bios_size > PROM_SIZE) { in ppc_heathrow_init()
|
H A D | ppc405_boards.c | 290 long bios_size; in ppc405_init() local 300 bios_size = load_image_size(filename, in ppc405_init() 303 if (bios_size < 0) { in ppc405_init() 308 bios_size = (bios_size + 0xfff) & ~0xfff; in ppc405_init() 309 memory_region_add_subregion(sysmem, (uint32_t)(-bios_size), bios); in ppc405_init()
|
H A D | mac_newworld.c | 140 int i, j, k, ppc_boot_device, machine_arch, bios_size = -1; in ppc_core99_init() local 184 bios_size = load_elf(filename, NULL, NULL, NULL, NULL, in ppc_core99_init() 187 if (bios_size <= 0) { in ppc_core99_init() 189 bios_size = load_image_targphys(filename, PROM_BASE, PROM_SIZE); in ppc_core99_init() 193 if (bios_size < 0 || bios_size > PROM_SIZE) { in ppc_core99_init()
|
/openbmc/qemu/hw/m68k/ |
H A D | q800.c | 254 int bios_size; in q800_machine_init() local 672 bios_size = load_image_targphys(filename, MACROM_ADDR, MACROM_SIZE); in q800_machine_init() 675 bios_size = -1; in q800_machine_init() 680 if (bios_size <= 0 || bios_size > MACROM_SIZE) { in q800_machine_init() 685 ptr = rom_ptr(MACROM_ADDR, bios_size); in q800_machine_init()
|
/openbmc/qemu/hw/s390x/ |
H A D | ipl.c | 148 int bios_size; in s390_ipl_realize() local 171 bios_size = load_elf(bios_filename, NULL, in s390_ipl_realize() 175 if (bios_size > 0) { in s390_ipl_realize() 180 bios_size = load_image_targphys(bios_filename, ZIPL_IMAGE_START, in s390_ipl_realize() 186 if (bios_size == -1) { in s390_ipl_realize()
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | bootinfo.h | 19 int bios_size; member
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/bios/ |
H A D | bios_parser_helper.c | 40 if (bp->bios && offset + size < bp->bios_size) in bios_get_image()
|
H A D | bios_parser.c | 2880 bp->base.bios_size = bp->base.bios[BIOS_IMAGE_SIZE_OFFSET] * BIOS_IMAGE_SIZE_UNIT; in bios_parser_construct()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | env.c | 63 b_info.bios_size, b_info.bios_release_date, in boardinfo_show()
|
H A D | setup.c | 142 b_info.bios_size = (*(dmi_data + SMBIOS_BIOSSIZE_OFFSET) + 1) << 6; in parse_bios_table()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/ |
H A D | dc_bios_types.h | 176 uint32_t bios_size; member
|
/openbmc/qemu/hw/loongarch/ |
H A D | virt.c | 943 int bios_size, i; in virt_firmware_init() local 977 bios_size = load_image_mr(bios_name, mr); in virt_firmware_init() 978 if (bios_size < 0) { in virt_firmware_init()
|