Lines Matching defs:rom
45 struct pci_setup_rom *rom = NULL;
63 size = romsize + sizeof(*rom);
66 (void **)&rom);
68 efi_err("Failed to allocate memory for 'rom'\n");
72 memset(rom, 0, sizeof(*rom));
74 rom->data.type = SETUP_PCI;
75 rom->data.len = size - sizeof(struct setup_data);
76 rom->data.next = 0;
77 rom->pcilen = romsize;
78 *__rom = rom;
81 PCI_VENDOR_ID, 1, &rom->vendor);
84 efi_err("Failed to read rom->vendor\n");
89 PCI_DEVICE_ID, 1, &rom->devid);
92 efi_err("Failed to read rom->devid\n");
96 status = efi_call_proto(pci, get_location, &rom->segment, &rom->bus,
97 &rom->device, &rom->function);
102 memcpy(rom->romdata, romimage, romsize);
106 efi_bs_call(free_pool, rom);
155 struct pci_setup_rom *rom;
162 status = preserve_pci_rom_image(pci, &rom);
167 data->next = (unsigned long)rom;
169 params->hdr.setup_data = (unsigned long)rom;
171 data = (struct setup_data *)rom;