Lines Matching refs:iface_index
170 usbd_get_endpoint(struct usb_device *udev, uint8_t iface_index, in usbd_get_endpoint() argument
183 udev, iface_index, setup->endpoint, in usbd_get_endpoint()
247 (ep->iface_index != iface_index)) { in usbd_get_endpoint()
308 usb_init_endpoint(struct usb_device *udev, uint8_t iface_index, in usb_init_endpoint() argument
323 ep->iface_index = iface_index; in usb_init_endpoint()
627 usb_config_parse(struct usb_device *udev, uint8_t iface_index, uint8_t cmd) in usb_config_parse() argument
641 if (iface_index != USB_IFACE_INDEX_ANY) { in usb_config_parse()
653 iface_index, cmd); in usb_config_parse()
667 if ((iface_index == USB_IFACE_INDEX_ANY) || in usb_config_parse()
668 (iface_index == ep->iface_index)) { in usb_config_parse()
679 ep->iface_index = USB_IFACE_INDEX_ANY; in usb_config_parse()
695 iface = udev->ifaces + ips.iface_index; in usb_config_parse()
700 if ((iface_index != USB_IFACE_INDEX_ANY) && in usb_config_parse()
701 (iface_index != ips.iface_index)) { in usb_config_parse()
727 if (iface_index == USB_IFACE_INDEX_ANY) { in usb_config_parse()
757 ips.iface_index, ed, ecomp, ep); in usb_config_parse()
771 udev->ifaces_max = ips.iface_index; in usb_config_parse()
843 uint8_t iface_index, uint8_t alt_index) in usbd_set_alt_interface_index() argument
845 struct usb_interface *iface = usbd_get_iface(udev, iface_index); in usbd_set_alt_interface_index()
869 usb_fifo_free_wrap(udev, iface_index, 0); in usbd_set_alt_interface_index()
872 err = usb_config_parse(udev, iface_index, alt_index); in usbd_set_alt_interface_index()
882 err = usbd_req_set_alt_interface_no(udev, NULL, iface_index, in usbd_set_alt_interface_index()
986 usb_reset_iface_endpoints(struct usb_device *udev, uint8_t iface_index) in usb_reset_iface_endpoints() argument
996 (ep->iface_index != iface_index)) { in usb_reset_iface_endpoints()
1073 usb_detach_device(struct usb_device *udev, uint8_t iface_index, in usb_detach_device() argument
1093 if (iface_index != USB_IFACE_INDEX_ANY) { in usb_detach_device()
1094 i = iface_index; in usb_detach_device()
1095 iface_index = i + 1; in usb_detach_device()
1098 iface_index = USB_IFACE_MAX; in usb_detach_device()
1103 for (; i != iface_index; i++) { in usb_detach_device()
1204 usbd_set_parent_iface(struct usb_device *udev, uint8_t iface_index, in usbd_set_parent_iface() argument
1213 iface = usbd_get_iface(udev, iface_index); in usbd_set_parent_iface()
1254 usb_probe_and_attach(struct usb_device *udev, uint8_t iface_index) in usb_probe_and_attach() argument
1281 if (iface_index == USB_IFACE_INDEX_ANY) { in usb_probe_and_attach()
1292 if (iface_index != USB_IFACE_INDEX_ANY) { in usb_probe_and_attach()
1293 i = iface_index; in usb_probe_and_attach()
2116 usbd_get_iface(struct usb_device *udev, uint8_t iface_index) in usbd_get_iface() argument
2118 struct usb_interface *iface = udev->ifaces + iface_index; in usbd_get_iface()
2120 if (iface_index >= udev->ifaces_max) in usbd_get_iface()
2141 usbd_find_descriptor(struct usb_device *udev, void *id, uint8_t iface_index, in usbd_find_descriptor() argument
2154 iface = usbd_get_iface(udev, iface_index); in usbd_find_descriptor()
2528 uint8_t iface_index, uint8_t flag) in usb_fifo_free_wrap() argument
2542 if (iface_index == f->iface_index) { in usb_fifo_free_wrap()
2555 } else if (iface_index == USB_IFACE_INDEX_ANY) { in usb_fifo_free_wrap()
2738 usbd_set_pnpinfo(struct usb_device *udev, uint8_t iface_index, const char *pnpinfo) in usbd_set_pnpinfo() argument
2742 iface = usbd_get_iface(udev, iface_index); in usbd_set_pnpinfo()