Lines Matching full:matches

99 	u_int32_t		num_matches;	/* number of matches returned */
100 u_int32_t matches; /* struct pci_conf ptr */ member
148 * structures. The first argument, 'matches', is an array of num_matches
150 * structure that will be compared to every entry in the matches array.
154 pci_conf_match_native(struct pci_match_conf *matches, int num_matches, in pci_conf_match_native() argument
159 if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0)) in pci_conf_match_native()
166 if (matches[i].flags == PCI_GETCONF_NO_MATCH) in pci_conf_match_native()
174 if (((matches[i].flags & PCI_GETCONF_MATCH_DOMAIN) != 0) in pci_conf_match_native()
176 matches[i].pc_sel.pc_domain)) in pci_conf_match_native()
179 if (((matches[i].flags & PCI_GETCONF_MATCH_BUS) != 0) in pci_conf_match_native()
180 && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) in pci_conf_match_native()
183 if (((matches[i].flags & PCI_GETCONF_MATCH_DEV) != 0) in pci_conf_match_native()
184 && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) in pci_conf_match_native()
187 if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC) != 0) in pci_conf_match_native()
188 && (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func)) in pci_conf_match_native()
191 if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR) != 0) in pci_conf_match_native()
192 && (match_buf->pc_vendor != matches[i].pc_vendor)) in pci_conf_match_native()
195 if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE) != 0) in pci_conf_match_native()
196 && (match_buf->pc_device != matches[i].pc_device)) in pci_conf_match_native()
199 if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS) != 0) in pci_conf_match_native()
200 && (match_buf->pc_class != matches[i].pc_class)) in pci_conf_match_native()
203 if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT) != 0) in pci_conf_match_native()
204 && (match_buf->pd_unit != matches[i].pd_unit)) in pci_conf_match_native()
207 if (((matches[i].flags & PCI_GETCONF_MATCH_NAME) != 0) in pci_conf_match_native()
208 && (strncmp(matches[i].pd_name, match_buf->pd_name, in pci_conf_match_native()
220 pci_conf_match32(struct pci_match_conf32 *matches, int num_matches, in pci_conf_match32() argument
225 if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0)) in pci_conf_match32()
232 if (matches[i].flags == PCI_GETCONF_NO_MATCH) in pci_conf_match32()
240 if (((matches[i].flags & PCI_GETCONF_MATCH_DOMAIN) != 0) in pci_conf_match32()
242 matches[i].pc_sel.pc_domain)) in pci_conf_match32()
245 if (((matches[i].flags & PCI_GETCONF_MATCH_BUS) != 0) in pci_conf_match32()
246 && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) in pci_conf_match32()
249 if (((matches[i].flags & PCI_GETCONF_MATCH_DEV) != 0) in pci_conf_match32()
250 && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) in pci_conf_match32()
253 if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC) != 0) in pci_conf_match32()
254 && (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func)) in pci_conf_match32()
257 if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR) != 0) in pci_conf_match32()
258 && (match_buf->pc_vendor != matches[i].pc_vendor)) in pci_conf_match32()
261 if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE) != 0) in pci_conf_match32()
262 && (match_buf->pc_device != matches[i].pc_device)) in pci_conf_match32()
265 if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS) != 0) in pci_conf_match32()
266 && (match_buf->pc_class != matches[i].pc_class)) in pci_conf_match32()
269 if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT) != 0) in pci_conf_match32()
270 && (match_buf->pd_unit != matches[i].pd_unit)) in pci_conf_match32()
273 if (((matches[i].flags & PCI_GETCONF_MATCH_NAME) != 0) in pci_conf_match32()
274 && (strncmp(matches[i].pd_name, match_buf->pd_name, in pci_conf_match32()
377 pci_conf_match_freebsd6(struct pci_match_conf_freebsd6 *matches, int num_matches, in pci_conf_match_freebsd6() argument
382 if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0)) in pci_conf_match_freebsd6()
392 if (matches[i].flags == PCI_GETCONF_NO_MATCH_FREEBSD6) in pci_conf_match_freebsd6()
400 if (((matches[i].flags & PCI_GETCONF_MATCH_BUS_FREEBSD6) != 0) in pci_conf_match_freebsd6()
401 && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) in pci_conf_match_freebsd6()
404 if (((matches[i].flags & PCI_GETCONF_MATCH_DEV_FREEBSD6) != 0) in pci_conf_match_freebsd6()
405 && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) in pci_conf_match_freebsd6()
408 if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC_FREEBSD6) != 0) in pci_conf_match_freebsd6()
409 && (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func)) in pci_conf_match_freebsd6()
412 if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR_FREEBSD6) != 0) in pci_conf_match_freebsd6()
413 && (match_buf->pc_vendor != matches[i].pc_vendor)) in pci_conf_match_freebsd6()
416 if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE_FREEBSD6) != 0) in pci_conf_match_freebsd6()
417 && (match_buf->pc_device != matches[i].pc_device)) in pci_conf_match_freebsd6()
420 if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS_FREEBSD6) != 0) in pci_conf_match_freebsd6()
421 && (match_buf->pc_class != matches[i].pc_class)) in pci_conf_match_freebsd6()
424 if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT_FREEBSD6) != 0) in pci_conf_match_freebsd6()
425 && (match_buf->pd_unit != matches[i].pd_unit)) in pci_conf_match_freebsd6()
428 if (((matches[i].flags & PCI_GETCONF_MATCH_NAME_FREEBSD6) != 0) in pci_conf_match_freebsd6()
429 && (strncmp(matches[i].pd_name, match_buf->pd_name, in pci_conf_match_freebsd6()
441 pci_conf_match_freebsd6_32(struct pci_match_conf_freebsd6_32 *matches, int num_matches, in pci_conf_match_freebsd6_32() argument
446 if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0)) in pci_conf_match_freebsd6_32()
456 if (matches[i].flags == PCI_GETCONF_NO_MATCH_FREEBSD6) in pci_conf_match_freebsd6_32()
464 if (((matches[i].flags & PCI_GETCONF_MATCH_BUS_FREEBSD6) != 0) && in pci_conf_match_freebsd6_32()
465 (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) in pci_conf_match_freebsd6_32()
468 if (((matches[i].flags & PCI_GETCONF_MATCH_DEV_FREEBSD6) != 0) && in pci_conf_match_freebsd6_32()
469 (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) in pci_conf_match_freebsd6_32()
472 if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC_FREEBSD6) != 0) && in pci_conf_match_freebsd6_32()
473 (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func)) in pci_conf_match_freebsd6_32()
476 if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR_FREEBSD6) != 0) && in pci_conf_match_freebsd6_32()
477 (match_buf->pc_vendor != matches[i].pc_vendor)) in pci_conf_match_freebsd6_32()
480 if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE_FREEBSD6) != 0) && in pci_conf_match_freebsd6_32()
481 (match_buf->pc_device != matches[i].pc_device)) in pci_conf_match_freebsd6_32()
484 if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS_FREEBSD6) != 0) && in pci_conf_match_freebsd6_32()
485 (match_buf->pc_class != matches[i].pc_class)) in pci_conf_match_freebsd6_32()
488 if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT_FREEBSD6) != 0) && in pci_conf_match_freebsd6_32()
489 ((u_int32_t)match_buf->pd_unit != matches[i].pd_unit)) in pci_conf_match_freebsd6_32()
492 if (((matches[i].flags & PCI_GETCONF_MATCH_NAME_FREEBSD6) != 0) && in pci_conf_match_freebsd6_32()
493 (strncmp(matches[i].pd_name, match_buf->pd_name, in pci_conf_match_freebsd6_32()
519 pci_conf_match(u_long cmd, struct pci_match_conf *matches, int num_matches, in pci_conf_match() argument
526 (struct pci_match_conf *)matches, num_matches, match_buf)); in pci_conf_match()
529 return (pci_conf_match32((struct pci_match_conf32 *)matches, in pci_conf_match()
535 (struct pci_match_conf_freebsd6 *)matches, num_matches, in pci_conf_match()
540 (struct pci_match_conf_freebsd6_32 *)matches, num_matches, in pci_conf_match()
718 cio->matches = (void *)(uintptr_t)cio32->matches; in pci_conf_io_init()
1140 * matches correctly, it is far more likely that in pci_ioctl()
1212 * tell the user that there are more matches in pci_ioctl()
1222 (caddr_t)cio->matches + in pci_ioctl()
1245 * know that there are more matches in the list because of in pci_ioctl()