Lines Matching refs:rom
31 struct pci_setup_rom *rom = NULL; in preserve_pci_rom_image() local
49 size = romsize + sizeof(*rom); in preserve_pci_rom_image()
52 (void **)&rom); in preserve_pci_rom_image()
58 memset(rom, 0, sizeof(*rom)); in preserve_pci_rom_image()
60 rom->data.type = SETUP_PCI; in preserve_pci_rom_image()
61 rom->data.len = size - sizeof(struct setup_data); in preserve_pci_rom_image()
62 rom->data.next = 0; in preserve_pci_rom_image()
63 rom->pcilen = pci->romsize; in preserve_pci_rom_image()
64 *__rom = rom; in preserve_pci_rom_image()
67 PCI_VENDOR_ID, 1, &rom->vendor); in preserve_pci_rom_image()
75 PCI_DEVICE_ID, 1, &rom->devid); in preserve_pci_rom_image()
82 status = efi_call_proto(pci, get_location, &rom->segment, &rom->bus, in preserve_pci_rom_image()
83 &rom->device, &rom->function); in preserve_pci_rom_image()
88 memcpy(rom->romdata, romimage, romsize); in preserve_pci_rom_image()
92 efi_bs_call(free_pool, rom); in preserve_pci_rom_image()
141 struct pci_setup_rom *rom; in setup_efi_pci() local
148 status = preserve_pci_rom_image(pci, &rom); in setup_efi_pci()
153 data->next = (unsigned long)rom; in setup_efi_pci()
155 params->hdr.setup_data = (unsigned long)rom; in setup_efi_pci()
157 data = (struct setup_data *)rom; in setup_efi_pci()