Lines Matching refs:iface_index
171 usbd_get_endpoint(struct usb_device *udev, uint8_t iface_index, in usbd_get_endpoint() argument
184 udev, iface_index, setup->endpoint, in usbd_get_endpoint()
249 (ep->iface_index != iface_index)) { in usbd_get_endpoint()
310 usb_init_endpoint(struct usb_device *udev, uint8_t iface_index, in usb_init_endpoint() argument
325 ep->iface_index = iface_index; in usb_init_endpoint()
629 usb_config_parse(struct usb_device *udev, uint8_t iface_index, uint8_t cmd) in usb_config_parse() argument
643 if (iface_index != USB_IFACE_INDEX_ANY) { in usb_config_parse()
655 iface_index, cmd); in usb_config_parse()
669 if ((iface_index == USB_IFACE_INDEX_ANY) || in usb_config_parse()
670 (iface_index == ep->iface_index)) { in usb_config_parse()
681 ep->iface_index = USB_IFACE_INDEX_ANY; in usb_config_parse()
698 iface = udev->ifaces + ips.iface_index; in usb_config_parse()
703 if ((iface_index != USB_IFACE_INDEX_ANY) && in usb_config_parse()
704 (iface_index != ips.iface_index)) { in usb_config_parse()
729 if (iface_index == USB_IFACE_INDEX_ANY) { in usb_config_parse()
760 ips.iface_index, ed, ecomp, ep); in usb_config_parse()
774 udev->ifaces_max = ips.iface_index; in usb_config_parse()
846 uint8_t iface_index, uint8_t alt_index) in usbd_set_alt_interface_index() argument
848 struct usb_interface *iface = usbd_get_iface(udev, iface_index); in usbd_set_alt_interface_index()
872 usb_fifo_free_wrap(udev, iface_index, 0); in usbd_set_alt_interface_index()
875 err = usb_config_parse(udev, iface_index, alt_index); in usbd_set_alt_interface_index()
885 err = usbd_req_set_alt_interface_no(udev, NULL, iface_index, in usbd_set_alt_interface_index()
989 usb_reset_iface_endpoints(struct usb_device *udev, uint8_t iface_index) in usb_reset_iface_endpoints() argument
1000 (ep->iface_index != iface_index)) { in usb_reset_iface_endpoints()
1077 usb_detach_device(struct usb_device *udev, uint8_t iface_index, in usb_detach_device() argument
1097 if (iface_index != USB_IFACE_INDEX_ANY) { in usb_detach_device()
1098 i = iface_index; in usb_detach_device()
1099 iface_index = i + 1; in usb_detach_device()
1102 iface_index = USB_IFACE_MAX; in usb_detach_device()
1107 for (; i != iface_index; i++) { in usb_detach_device()
1212 usbd_set_parent_iface(struct usb_device *udev, uint8_t iface_index, in usbd_set_parent_iface() argument
1221 iface = usbd_get_iface(udev, iface_index); in usbd_set_parent_iface()
1262 usb_probe_and_attach(struct usb_device *udev, uint8_t iface_index) in usb_probe_and_attach() argument
1289 if (iface_index == USB_IFACE_INDEX_ANY) { in usb_probe_and_attach()
1301 if (iface_index != USB_IFACE_INDEX_ANY) { in usb_probe_and_attach()
1302 i = iface_index; in usb_probe_and_attach()
2128 usbd_get_iface(struct usb_device *udev, uint8_t iface_index) in usbd_get_iface() argument
2130 struct usb_interface *iface = udev->ifaces + iface_index; in usbd_get_iface()
2132 if (iface_index >= udev->ifaces_max) in usbd_get_iface()
2153 usbd_find_descriptor(struct usb_device *udev, void *id, uint8_t iface_index, in usbd_find_descriptor() argument
2166 iface = usbd_get_iface(udev, iface_index); in usbd_find_descriptor()
2541 uint8_t iface_index, uint8_t flag) in usb_fifo_free_wrap() argument
2555 if (iface_index == f->iface_index) { in usb_fifo_free_wrap()
2568 } else if (iface_index == USB_IFACE_INDEX_ANY) { in usb_fifo_free_wrap()
2751 usbd_set_pnpinfo(struct usb_device *udev, uint8_t iface_index, const char *pnpinfo) in usbd_set_pnpinfo() argument
2755 iface = usbd_get_iface(udev, iface_index); in usbd_set_pnpinfo()