Lines Matching refs:alt

649  * configuration or interface alt setting is selected.
1245 struct usb_host_interface *alt = intf->cur_altsetting;
1251 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1252 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev);
1259 struct usb_host_interface *alt = intf->cur_altsetting;
1265 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1266 usb_remove_ep_devs(&alt->endpoint[i]);
1344 struct usb_host_interface *alt = intf->cur_altsetting;
1347 for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
1349 alt->endpoint[i].desc.bEndpointAddress,
1480 struct usb_host_interface *alt = intf->cur_altsetting;
1483 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1484 usb_enable_endpoint(dev, &alt->endpoint[i], reset_eps);
1530 struct usb_host_interface *alt;
1548 alt = usb_altnum_to_altsetting(iface, alternate);
1549 if (!alt) {
1562 * Remove the current alt setting and add the new alt setting.
1565 /* Disable LPM, and re-enable it once the new alt setting is installed,
1573 /* Changing alt-setting also frees any allocated streams */
1577 ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt);
1600 "manual set_interface for iface %d, alt %d\n",
1604 /* Re-instate the old alt setting */
1605 usb_hcd_alloc_bandwidth(dev, NULL, alt, iface->cur_altsetting);
1619 if (iface->cur_altsetting != alt) {
1625 iface->cur_altsetting = alt;
1636 for (i = 0; i < alt->desc.bNumEndpoints; i++) {
1637 epaddr = alt->endpoint[i].desc.bEndpointAddress;
1742 struct usb_host_interface *alt;
1744 alt = usb_altnum_to_altsetting(intf, 0);
1751 if (!alt)
1752 alt = &intf->altsetting[0];
1754 if (alt != intf->cur_altsetting) {
1758 intf->cur_altsetting = alt;
1825 const struct usb_host_interface *alt;
1829 alt = intf->cur_altsetting;
1832 alt->desc.bInterfaceClass,
1833 alt->desc.bInterfaceSubClass,
1834 alt->desc.bInterfaceProtocol))
1846 alt->desc.bInterfaceClass,
1847 alt->desc.bInterfaceSubClass,
1848 alt->desc.bInterfaceProtocol,
1849 alt->desc.bInterfaceNumber))
2104 struct usb_host_interface *alt;
2114 alt = usb_altnum_to_altsetting(intf, 0);
2121 if (!alt)
2122 alt = &intf->altsetting[0];
2124 ifnum = alt->desc.bInterfaceNumber;
2126 intf->cur_altsetting = alt;