usb_subr.c | 691 int i, ifcidx, nifc, len, selfpowered, power; local in function:usbd_set_config_index 704 nifc = dev->ud_cdesc->bNumInterface; 705 for (ifcidx = 0; ifcidx < nifc; ifcidx++) { 711 kmem_free(dev->ud_ifaces, nifc * sizeof(struct usbd_interface)); 876 nifc = cdp->bNumInterface; 877 if (nifc == 0) { 882 dev->ud_ifaces = kmem_alloc(nifc * sizeof(struct usbd_interface), 889 for (ifcidx = 0; ifcidx < nifc; ifcidx++) { 902 nifc * sizeof(struct usbd_interface)); 1841 int ifcidx, nifc; local in function:usb_free_device [all...] |