Lines Matching refs:alt

504  * configuration or interface alt setting is selected.
1026 struct usb_host_interface *alt = intf->cur_altsetting;
1032 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1033 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev);
1040 struct usb_host_interface *alt = intf->cur_altsetting;
1046 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1047 usb_remove_ep_devs(&alt->endpoint[i]);
1125 struct usb_host_interface *alt = intf->cur_altsetting;
1128 for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
1130 alt->endpoint[i].desc.bEndpointAddress,
1249 struct usb_host_interface *alt = intf->cur_altsetting;
1252 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1253 usb_enable_endpoint(dev, &alt->endpoint[i], reset_eps);
1292 struct usb_host_interface *alt;
1310 alt = usb_altnum_to_altsetting(iface, alternate);
1311 if (!alt) {
1318 * Remove the current alt setting and add the new alt setting.
1321 /* Disable LPM, and re-enable it once the new alt setting is installed,
1329 /* Changing alt-setting also frees any allocated streams */
1333 ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt);
1354 "manual set_interface for iface %d, alt %d\n",
1358 /* Re-instate the old alt setting */
1359 usb_hcd_alloc_bandwidth(dev, NULL, alt, iface->cur_altsetting);
1373 if (iface->cur_altsetting != alt) {
1379 iface->cur_altsetting = alt;
1392 for (i = 0; i < alt->desc.bNumEndpoints; i++) {
1393 epaddr = alt->endpoint[i].desc.bEndpointAddress;
1478 struct usb_host_interface *alt;
1480 alt = usb_altnum_to_altsetting(intf, 0);
1481 if (!alt)
1482 alt = &intf->altsetting[0];
1483 if (alt != intf->cur_altsetting)
1485 intf->cur_altsetting, alt);
1494 struct usb_host_interface *alt;
1496 alt = usb_altnum_to_altsetting(intf, 0);
1497 if (!alt)
1498 alt = &intf->altsetting[0];
1499 if (alt != intf->cur_altsetting)
1501 alt, intf->cur_altsetting);
1518 struct usb_host_interface *alt;
1520 alt = usb_altnum_to_altsetting(intf, 0);
1527 if (!alt)
1528 alt = &intf->altsetting[0];
1530 if (alt != intf->cur_altsetting) {
1534 intf->cur_altsetting = alt;
1561 struct usb_host_interface *alt;
1565 alt = intf->cur_altsetting;
1568 alt->desc.bInterfaceClass,
1569 alt->desc.bInterfaceSubClass,
1570 alt->desc.bInterfaceProtocol))
1582 alt->desc.bInterfaceClass,
1583 alt->desc.bInterfaceSubClass,
1584 alt->desc.bInterfaceProtocol,
1585 alt->desc.bInterfaceNumber))
1822 struct usb_host_interface *alt;
1830 alt = usb_altnum_to_altsetting(intf, 0);
1837 if (!alt)
1838 alt = &intf->altsetting[0];
1841 find_iad(dev, cp, alt->desc.bInterfaceNumber);
1842 intf->cur_altsetting = alt;
1856 configuration, alt->desc.bInterfaceNumber);