Lines Matching refs:rom_header
73 struct pci_rom_header *rom_header; in pci_rom_probe() local
101 rom_header = (struct pci_rom_header *)(unsigned long)rom_address; in pci_rom_probe()
104 le16_to_cpu(rom_header->signature), in pci_rom_probe()
105 rom_header->size * 512, le16_to_cpu(rom_header->data)); in pci_rom_probe()
107 if (le16_to_cpu(rom_header->signature) != PCI_ROM_HDR) { in pci_rom_probe()
109 le16_to_cpu(rom_header->signature)); in pci_rom_probe()
117 rom_data = (((void *)rom_header) + le16_to_cpu(rom_header->data)); in pci_rom_probe()
140 *hdrp = rom_header; in pci_rom_probe()
156 static int pci_rom_load(struct pci_rom_header *rom_header, in pci_rom_load() argument
167 rom_header = (struct pci_rom_header *)((void *)rom_header + in pci_rom_load()
170 rom_data = (struct pci_rom_data *)((void *)rom_header + in pci_rom_load()
171 le16_to_cpu(rom_header->data)); in pci_rom_load()
179 rom_size = rom_header->size * 512; in pci_rom_load()
189 if (target != rom_header) { in pci_rom_load()
193 rom_header, target, rom_size); in pci_rom_load()
194 memcpy(target, rom_header, rom_size); in pci_rom_load()
195 if (memcmp(target, rom_header, rom_size)) { in pci_rom_load()