Lines Matching defs:id
189 uart_pci_match(device_t dev, const struct pci_id *id)
195 while (id->vendor != 0xffff &&
196 (id->vendor != vendor || id->device != device))
197 id++;
198 if (id->vendor == 0xffff)
200 if (id->subven == 0xffff)
201 return (id);
204 while (id->vendor == vendor && id->device == device &&
205 (id->subven != subven || id->subdev != subdev))
206 id++;
207 return ((id->vendor == vendor && id->device == device) ? id : NULL);
214 const struct pci_id *id;
219 id = uart_pci_match(dev, pci_ns8250_ids);
220 if (id != NULL) {
228 result = uart_bus_probe(dev, id->regshft, 0, id->rclk, id->rid, 0, 0);
233 if (id->desc)
234 device_set_desc(dev, id->desc);