Lines Matching refs:ep
37 struct usb_ep ep; member
97 #define usbhsg_ep_to_uep(e) container_of(e, struct usbhsg_uep, ep)
135 usb_gadget_giveback_request(&uep->ep, &ureq->req); in __usbhsg_queue_pop()
305 static void __usbhsg_recip_send_complete(struct usb_ep *ep, in __usbhsg_recip_send_complete() argument
312 usb_ep_free_request(ep, req); in __usbhsg_recip_send_complete()
325 req = usb_ep_alloc_request(&dcp->ep, GFP_ATOMIC); in __usbhsg_recip_send_status()
334 usb_ep_free_request(&dcp->ep, req); in __usbhsg_recip_send_status()
577 static int usbhsg_ep_enable(struct usb_ep *ep, in usbhsg_ep_enable() argument
580 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in usbhsg_ep_enable()
624 static int usbhsg_ep_disable(struct usb_ep *ep) in usbhsg_ep_disable() argument
626 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in usbhsg_ep_disable()
641 static struct usb_request *usbhsg_ep_alloc_request(struct usb_ep *ep, in usbhsg_ep_alloc_request() argument
655 static void usbhsg_ep_free_request(struct usb_ep *ep, in usbhsg_ep_free_request() argument
664 static int usbhsg_ep_queue(struct usb_ep *ep, struct usb_request *req, in usbhsg_ep_queue() argument
667 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in usbhsg_ep_queue()
683 static int usbhsg_ep_dequeue(struct usb_ep *ep, struct usb_request *req) in usbhsg_ep_dequeue() argument
685 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in usbhsg_ep_dequeue()
695 static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge) in __usbhsg_ep_set_halt_wedge() argument
697 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in __usbhsg_ep_set_halt_wedge()
728 static int usbhsg_ep_set_halt(struct usb_ep *ep, int value) in usbhsg_ep_set_halt() argument
730 return __usbhsg_ep_set_halt_wedge(ep, value, 0); in usbhsg_ep_set_halt()
733 static int usbhsg_ep_set_wedge(struct usb_ep *ep) in usbhsg_ep_set_wedge() argument
735 return __usbhsg_ep_set_halt_wedge(ep, 1, 1); in usbhsg_ep_set_wedge()
872 usbhsg_ep_disable(&dcp->ep); in usbhsg_try_stop()
1040 uep->ep.name = uep->ep_name; in usbhs_mod_gadget_probe()
1041 uep->ep.ops = &usbhsg_ep_ops; in usbhs_mod_gadget_probe()
1042 INIT_LIST_HEAD(&uep->ep.ep_list); in usbhs_mod_gadget_probe()
1046 gpriv->gadget.ep0 = &uep->ep; in usbhs_mod_gadget_probe()
1047 usb_ep_set_maxpacket_limit(&uep->ep, 64); in usbhs_mod_gadget_probe()
1051 usb_ep_set_maxpacket_limit(&uep->ep, 512); in usbhs_mod_gadget_probe()
1052 list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list); in usbhs_mod_gadget_probe()