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