Lines Matching refs:id
152 uart_pci_match(device_t dev, const struct pci_id *id) in uart_pci_match() argument
158 while (id->vendor != 0xffff && in uart_pci_match()
159 (id->vendor != vendor || id->device != device)) in uart_pci_match()
160 id++; in uart_pci_match()
161 if (id->vendor == 0xffff) in uart_pci_match()
163 if (id->subven == 0xffff) in uart_pci_match()
164 return (id); in uart_pci_match()
167 while (id->vendor == vendor && id->device == device && in uart_pci_match()
168 (id->subven != subven || id->subdev != subdev)) in uart_pci_match()
169 id++; in uart_pci_match()
170 return ((id->vendor == vendor && id->device == device) ? id : NULL); in uart_pci_match()
177 const struct pci_id *id; in uart_pci_probe() local
182 id = uart_pci_match(dev, pci_ns8250_ids); in uart_pci_probe()
183 if (id != NULL) { in uart_pci_probe()
191 result = uart_bus_probe(dev, 0, id->rclk, id->rid, 0); in uart_pci_probe()
196 if (id->desc) in uart_pci_probe()
197 device_set_desc(dev, id->desc); in uart_pci_probe()