Lines Matching refs:rom_header
69 struct pci_rom_header *rom_header; in pci_rom_probe() local
97 rom_header = (struct pci_rom_header *)(unsigned long)rom_address; in pci_rom_probe()
100 le16_to_cpu(rom_header->signature), in pci_rom_probe()
101 rom_header->size * 512, le16_to_cpu(rom_header->data)); in pci_rom_probe()
103 if (le16_to_cpu(rom_header->signature) != PCI_ROM_HDR) { in pci_rom_probe()
105 le16_to_cpu(rom_header->signature)); in pci_rom_probe()
113 rom_data = (((void *)rom_header) + le16_to_cpu(rom_header->data)); in pci_rom_probe()
136 *hdrp = rom_header; in pci_rom_probe()
152 static int pci_rom_load(struct pci_rom_header *rom_header, in pci_rom_load() argument
163 rom_header = (struct pci_rom_header *)((void *)rom_header + in pci_rom_load()
166 rom_data = (struct pci_rom_data *)((void *)rom_header + in pci_rom_load()
167 le16_to_cpu(rom_header->data)); in pci_rom_load()
175 rom_size = rom_header->size * 512; in pci_rom_load()
185 if (target != rom_header) { in pci_rom_load()
189 rom_header, target, rom_size); in pci_rom_load()
190 memcpy(target, rom_header, rom_size); in pci_rom_load()
191 if (memcmp(target, rom_header, rom_size)) { in pci_rom_load()