Home | History | Annotate | Download | only in src

Lines Matching defs:ep

112 static int usb_clear_stall_feature(PTP_USB* ptp_usb, int ep);
113 static int usb_get_endpoint_status(PTP_USB* ptp_usb, int ep, uint16_t* status);
1732 struct usb_endpoint_descriptor *ep;
1742 ep = dev->config[i].interface[j].altsetting->endpoint;
1746 if (ep[k].bmAttributes==USB_ENDPOINT_TYPE_BULK) {
1747 if ((ep[k].bEndpointAddress&USB_ENDPOINT_DIR_MASK)==
1750 *inep=ep[k].bEndpointAddress;
1751 *inep_maxpacket=ep[k].wMaxPacketSize;
1753 if ((ep[k].bEndpointAddress&USB_ENDPOINT_DIR_MASK)==0)
1755 *outep=ep[k].bEndpointAddress;
1756 *outep_maxpacket=ep[k].wMaxPacketSize;
1758 } else if (ep[k].bmAttributes==USB_ENDPOINT_TYPE_INTERRUPT){
1759 if ((ep[k].bEndpointAddress&USB_ENDPOINT_DIR_MASK)==
1762 *intep=ep[k].bEndpointAddress;
1905 static int usb_clear_stall_feature(PTP_USB* ptp_usb, int ep)
1910 ep, NULL, 0, ptp_usb->timeout));
1913 static int usb_get_endpoint_status(PTP_USB* ptp_usb, int ep, uint16_t* status)
1917 USB_FEATURE_HALT, ep, (char *)status, 2, ptp_usb->timeout));