Lines Matching refs:rom
123 const void *rom; in find_oprom() local
128 rom = isa_bus_to_virt(res->start); in find_oprom()
129 if (get_kernel_nofault(offset, rom + 0x18) != 0) in find_oprom()
132 if (get_kernel_nofault(vendor, rom + offset + 0x4) != 0) in find_oprom()
135 if (get_kernel_nofault(device, rom + offset + 0x6) != 0) in find_oprom()
143 if (get_kernel_nofault(list, rom + offset + 0x8) == 0 && in find_oprom()
144 get_kernel_nofault(rev, rom + offset + 0xc) == 0 && in find_oprom()
146 probe_list(pdev, vendor, rom + offset + list)) { in find_oprom()
182 static int __init romsignature(const unsigned char *rom) in romsignature() argument
184 const unsigned short * const ptr = (const unsigned short *)rom; in romsignature()
190 static int __init romchecksum(const unsigned char *rom, unsigned long length) in romchecksum() argument
194 for (sum = 0; length && get_kernel_nofault(c, rom++) == 0; length--) in romchecksum()
202 const unsigned char *rom; in probe_roms() local
219 rom = isa_bus_to_virt(start); in probe_roms()
220 if (!romsignature(rom)) in probe_roms()
225 if (get_kernel_nofault(c, rom + 2) != 0) in probe_roms()
232 if (length && romchecksum(rom, length)) in probe_roms()
248 rom = isa_bus_to_virt(extension_rom_resource.start); in probe_roms()
249 if (romsignature(rom)) { in probe_roms()
251 if (romchecksum(rom, length)) { in probe_roms()
259 rom = isa_bus_to_virt(start); in probe_roms()
260 if (!romsignature(rom)) in probe_roms()
263 if (get_kernel_nofault(c, rom + 2) != 0) in probe_roms()
270 if (!length || start + length > upper || !romchecksum(rom, length)) in probe_roms()