Lines Matching full:rom
53 struct pci_setup_rom *rom = NULL; in preserve_pci_rom_image() local
72 size = romsize + sizeof(*rom); in preserve_pci_rom_image()
74 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, size, &rom); in preserve_pci_rom_image()
76 efi_printk(sys_table, "Failed to allocate memory for 'rom'\n"); in preserve_pci_rom_image()
80 memset(rom, 0, sizeof(*rom)); in preserve_pci_rom_image()
82 rom->data.type = SETUP_PCI; in preserve_pci_rom_image()
83 rom->data.len = size - sizeof(struct setup_data); in preserve_pci_rom_image()
84 rom->data.next = 0; in preserve_pci_rom_image()
85 rom->pcilen = pci->romsize; in preserve_pci_rom_image()
86 *__rom = rom; in preserve_pci_rom_image()
90 &rom->vendor); in preserve_pci_rom_image()
93 efi_printk(sys_table, "Failed to read rom->vendor\n"); in preserve_pci_rom_image()
99 &rom->devid); in preserve_pci_rom_image()
102 efi_printk(sys_table, "Failed to read rom->devid\n"); in preserve_pci_rom_image()
107 &rom->segment, &rom->bus, &rom->device, in preserve_pci_rom_image()
108 &rom->function); in preserve_pci_rom_image()
113 memcpy(rom->romdata, romimage, romsize); in preserve_pci_rom_image()
117 efi_call_early(free_pool, rom); in preserve_pci_rom_image()
170 struct pci_setup_rom *rom; in setup_efi_pci() local
179 status = preserve_pci_rom_image(pci, &rom); in setup_efi_pci()
184 data->next = (unsigned long)rom; in setup_efi_pci()
186 params->hdr.setup_data = (unsigned long)rom; in setup_efi_pci()
188 data = (struct setup_data *)rom; in setup_efi_pci()