Lines Matching refs:rom
123 const void *rom;
128 rom = isa_bus_to_virt(res->start);
129 if (get_kernel_nofault(offset, rom + 0x18) != 0)
132 if (get_kernel_nofault(vendor, rom + offset + 0x4) != 0)
135 if (get_kernel_nofault(device, rom + offset + 0x6) != 0)
143 if (get_kernel_nofault(list, rom + offset + 0x8) == 0 &&
144 get_kernel_nofault(rev, rom + offset + 0xc) == 0 &&
146 probe_list(pdev, vendor, rom + offset + list)) {
182 static int __init romsignature(const unsigned char *rom)
184 const unsigned short * const ptr = (const unsigned short *)rom;
190 static int __init romchecksum(const unsigned char *rom, unsigned long length)
194 for (sum = 0; length && get_kernel_nofault(c, rom++) == 0; length--)
202 const unsigned char *rom;
206 /* video rom */
209 rom = isa_bus_to_virt(start);
210 if (!romsignature(rom))
215 if (get_kernel_nofault(c, rom + 2) != 0)
222 if (length && romchecksum(rom, length))
233 /* system rom */
237 /* check for extension rom (ignore length byte!) */
238 rom = isa_bus_to_virt(extension_rom_resource.start);
239 if (romsignature(rom)) {
241 if (romchecksum(rom, length)) {
249 rom = isa_bus_to_virt(start);
250 if (!romsignature(rom))
253 if (get_kernel_nofault(c, rom + 2) != 0)
260 if (!length || start + length > upper || !romchecksum(rom, length))