Searched refs:subdevs (Results 1 – 2 of 2) sorted by relevance
| /openbsd/src/sys/dev/usb/ |
| D | usb_subr.c | 872 dev->subdevs = mallocarray(2, sizeof dv, M_USB, M_NOWAIT); in usbd_probe_and_attach() 873 if (dev->subdevs == NULL) { in usbd_probe_and_attach() 878 dev->subdevs[dev->ndevs++] = dv; in usbd_probe_and_attach() 879 dev->subdevs[dev->ndevs] = 0; in usbd_probe_and_attach() 918 dev->subdevs = mallocarray(nifaces + 2, sizeof(dv), M_USB, in usbd_probe_and_attach() 920 if (dev->subdevs == NULL) { in usbd_probe_and_attach() 934 dev->subdevs[dev->ndevs++] = dv; in usbd_probe_and_attach() 951 free(dev->subdevs, M_USB, dev->nsubdev * sizeof(*dev->subdevs)); in usbd_probe_and_attach() 952 dev->subdevs = NULL; in usbd_probe_and_attach() 972 dev->subdevs = mallocarray(2, sizeof dv, M_USB, M_NOWAIT); in usbd_probe_and_attach() [all …]
|
| D | usbdivar.h | 164 struct device **subdevs; /* sub-devices, 0 terminated */ member
|