Lines Matching refs:alt
1246 struct usb_host_interface *alt = intf->cur_altsetting; in create_intf_ep_devs() local
1252 for (i = 0; i < alt->desc.bNumEndpoints; ++i) in create_intf_ep_devs()
1253 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev); in create_intf_ep_devs()
1260 struct usb_host_interface *alt = intf->cur_altsetting; in remove_intf_ep_devs() local
1266 for (i = 0; i < alt->desc.bNumEndpoints; ++i) in remove_intf_ep_devs()
1267 usb_remove_ep_devs(&alt->endpoint[i]); in remove_intf_ep_devs()
1345 struct usb_host_interface *alt = intf->cur_altsetting; in usb_disable_interface() local
1348 for (i = 0; i < alt->desc.bNumEndpoints; ++i) { in usb_disable_interface()
1350 alt->endpoint[i].desc.bEndpointAddress, in usb_disable_interface()
1481 struct usb_host_interface *alt = intf->cur_altsetting; in usb_enable_interface() local
1484 for (i = 0; i < alt->desc.bNumEndpoints; ++i) in usb_enable_interface()
1485 usb_enable_endpoint(dev, &alt->endpoint[i], reset_eps); in usb_enable_interface()
1530 struct usb_host_interface *alt; in usb_set_interface() local
1548 alt = usb_altnum_to_altsetting(iface, alternate); in usb_set_interface()
1549 if (!alt) { in usb_set_interface()
1577 ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt); in usb_set_interface()
1605 usb_hcd_alloc_bandwidth(dev, NULL, alt, iface->cur_altsetting); in usb_set_interface()
1619 if (iface->cur_altsetting != alt) { in usb_set_interface()
1625 iface->cur_altsetting = alt; in usb_set_interface()
1636 for (i = 0; i < alt->desc.bNumEndpoints; i++) { in usb_set_interface()
1637 epaddr = alt->endpoint[i].desc.bEndpointAddress; in usb_set_interface()
1742 struct usb_host_interface *alt; in usb_reset_configuration() local
1744 alt = usb_altnum_to_altsetting(intf, 0); in usb_reset_configuration()
1751 if (!alt) in usb_reset_configuration()
1752 alt = &intf->altsetting[0]; in usb_reset_configuration()
1754 if (alt != intf->cur_altsetting) { in usb_reset_configuration()
1758 intf->cur_altsetting = alt; in usb_reset_configuration()
1825 struct usb_host_interface *alt; in usb_if_uevent() local
1829 alt = intf->cur_altsetting; in usb_if_uevent()
1832 alt->desc.bInterfaceClass, in usb_if_uevent()
1833 alt->desc.bInterfaceSubClass, in usb_if_uevent()
1834 alt->desc.bInterfaceProtocol)) in usb_if_uevent()
1846 alt->desc.bInterfaceClass, in usb_if_uevent()
1847 alt->desc.bInterfaceSubClass, in usb_if_uevent()
1848 alt->desc.bInterfaceProtocol, in usb_if_uevent()
1849 alt->desc.bInterfaceNumber)) in usb_if_uevent()
2065 struct usb_host_interface *alt; in usb_set_configuration() local
2075 alt = usb_altnum_to_altsetting(intf, 0); in usb_set_configuration()
2082 if (!alt) in usb_set_configuration()
2083 alt = &intf->altsetting[0]; in usb_set_configuration()
2085 ifnum = alt->desc.bInterfaceNumber; in usb_set_configuration()
2087 intf->cur_altsetting = alt; in usb_set_configuration()