Lines Matching refs:ep
159 struct usb_endpoint_descriptor *ep; in open() local
166 ep = (struct usb_endpoint_descriptor *)usb_descriptor_iter_next(&iter); in open()
167 if (ep && ep->bDescriptorType == USB_DT_SS_ENDPOINT_COMP) { in open()
169 ep_ss_ep_comp_desc = (usb_ss_ep_comp_descriptor*)ep; in open()
170 ep = (struct usb_endpoint_descriptor *)usb_descriptor_iter_next(&iter); in open()
173 if (!ep || ep->bDescriptorType != USB_DT_ENDPOINT) { in open()
179 if (ep->bmAttributes == USB_ENDPOINT_XFER_BULK) { in open()
180 if (ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) in open()
181 ep_in_desc = ep; in open()
183 ep_out_desc = ep; in open()
184 } else if (ep->bmAttributes == USB_ENDPOINT_XFER_INT && in open()
185 ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) { in open()
186 ep_intr_desc = ep; in open()