Lines Matching +full:vendor +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0
17 #include <asm/pci-direct.h>
81 static bool match_id(struct pci_dev *pdev, unsigned short vendor, unsigned short device) in match_id() argument
83 struct pci_driver *drv = pdev->driver; in match_id()
84 const struct pci_device_id *id; in match_id() local
86 if (pdev->vendor == vendor && pdev->device == device) in match_id()
89 for (id = drv ? drv->id_table : NULL; id && id->vendor; id++) in match_id()
90 if (id->vendor == vendor && id->device == device) in match_id()
93 return id && id->vendor; in match_id()
96 static bool probe_list(struct pci_dev *pdev, unsigned short vendor, in probe_list() argument
105 if (device && match_id(pdev, vendor, device)) in probe_list()
121 unsigned short offset, vendor, device, list, rev; in find_oprom() local
124 if (res->end == 0) in find_oprom()
127 rom = isa_bus_to_virt(res->start); in find_oprom()
131 if (get_kernel_nofault(vendor, rom + offset + 0x4) != 0) in find_oprom()
137 if (match_id(pdev, vendor, device)) { in find_oprom()
145 probe_list(pdev, vendor, rom + offset + list)) { in find_oprom()
161 return ioremap(oprom->start, resource_size(oprom)); in pci_map_biosrom()
193 for (sum = 0; length && get_kernel_nofault(c, rom++) == 0; length--) in romchecksum()
222 video_rom_resource.end = start + length - 1; in probe_roms()
263 adapter_rom_resources[i].end = start + length - 1; in probe_roms()