/* Disables all the endpoints for the interface's current altsetting.  */
void usb_disable_interface(struct usb_host_virt_dev *dev, struct usb_interface *intf)
/* Disables all the endpoints for the interface's current altsetting.  */
void usb_disable_interface(struct usb_host_virt_dev *dev, struct usb_interface *intf)
{
    struct usb_host_virt_interface *alt = intf->cur_altsetting;
    int i;
    for (i = 0; i < alt->desc.bNumEndpoints; ++i)
    {
        usb_disable_endpoint(dev, alt->endpoint[i].desc.bEndpointAddress);
    }
}