Lines Matching defs:alt
707 * configuration or interface alt setting is selected.
1305 struct usb_host_interface *alt = intf->cur_altsetting;
1311 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1312 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev);
1319 struct usb_host_interface *alt = intf->cur_altsetting;
1325 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1326 usb_remove_ep_devs(&alt->endpoint[i]);
1410 struct usb_host_interface *alt = intf->cur_altsetting;
1413 for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
1415 alt->endpoint[i].desc.bEndpointAddress,
1546 struct usb_host_interface *alt = intf->cur_altsetting;
1549 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1550 usb_enable_endpoint(dev, &alt->endpoint[i], reset_eps);
1596 struct usb_host_interface *alt;
1614 alt = usb_altnum_to_altsetting(iface, alternate);
1615 if (!alt) {
1628 * Remove the current alt setting and add the new alt setting.
1631 /* Disable LPM, and re-enable it once the new alt setting is installed,
1639 /* Changing alt-setting also frees any allocated streams */
1643 ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt);
1666 "manual set_interface for iface %d, alt %d\n",
1670 /* Re-instate the old alt setting */
1671 usb_hcd_alloc_bandwidth(dev, NULL, alt, iface->cur_altsetting);
1685 if (iface->cur_altsetting != alt) {
1691 iface->cur_altsetting = alt;
1702 for (i = 0; i < alt->desc.bNumEndpoints; i++) {
1703 epaddr = alt->endpoint[i].desc.bEndpointAddress;
1808 struct usb_host_interface *alt;
1810 alt = usb_altnum_to_altsetting(intf, 0);
1817 if (!alt)
1818 alt = &intf->altsetting[0];
1820 if (alt != intf->cur_altsetting) {
1824 intf->cur_altsetting = alt;
1891 const struct usb_host_interface *alt;
1895 alt = intf->cur_altsetting;
1898 alt->desc.bInterfaceClass,
1899 alt->desc.bInterfaceSubClass,
1900 alt->desc.bInterfaceProtocol))
1912 alt->desc.bInterfaceClass,
1913 alt->desc.bInterfaceSubClass,
1914 alt->desc.bInterfaceProtocol,
1915 alt->desc.bInterfaceNumber))
2168 struct usb_host_interface *alt;
2178 alt = usb_altnum_to_altsetting(intf, 0);
2185 if (!alt)
2186 alt = &intf->altsetting[0];
2188 ifnum = alt->desc.bInterfaceNumber;
2190 intf->cur_altsetting = alt;