Lines Matching refs:ep

38 	struct usb_ep		 ep;  member
100 #define usbhsg_ep_to_uep(e) container_of(e, struct usbhsg_uep, ep)
139 usb_gadget_giveback_request(&uep->ep, &ureq->req); in __usbhsg_queue_pop()
309 static void __usbhsg_recip_send_complete(struct usb_ep *ep, in __usbhsg_recip_send_complete() argument
316 usb_ep_free_request(ep, req); in __usbhsg_recip_send_complete()
329 req = usb_ep_alloc_request(&dcp->ep, GFP_ATOMIC); in __usbhsg_recip_send_status()
338 usb_ep_free_request(&dcp->ep, req); in __usbhsg_recip_send_status()
581 static int usbhsg_ep_enable(struct usb_ep *ep, in usbhsg_ep_enable() argument
584 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in usbhsg_ep_enable()
628 static int usbhsg_ep_disable(struct usb_ep *ep) in usbhsg_ep_disable() argument
630 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in usbhsg_ep_disable()
645 static struct usb_request *usbhsg_ep_alloc_request(struct usb_ep *ep, in usbhsg_ep_alloc_request() argument
659 static void usbhsg_ep_free_request(struct usb_ep *ep, in usbhsg_ep_free_request() argument
668 static int usbhsg_ep_queue(struct usb_ep *ep, struct usb_request *req, in usbhsg_ep_queue() argument
671 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in usbhsg_ep_queue()
687 static int usbhsg_ep_dequeue(struct usb_ep *ep, struct usb_request *req) in usbhsg_ep_dequeue() argument
689 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in usbhsg_ep_dequeue()
705 static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge) in __usbhsg_ep_set_halt_wedge() argument
707 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); in __usbhsg_ep_set_halt_wedge()
738 static int usbhsg_ep_set_halt(struct usb_ep *ep, int value) in usbhsg_ep_set_halt() argument
740 return __usbhsg_ep_set_halt_wedge(ep, value, 0); in usbhsg_ep_set_halt()
743 static int usbhsg_ep_set_wedge(struct usb_ep *ep) in usbhsg_ep_set_wedge() argument
745 return __usbhsg_ep_set_halt_wedge(ep, 1, 1); in usbhsg_ep_set_wedge()
882 usbhsg_ep_disable(&dcp->ep); in usbhsg_try_stop()
1109 uep->ep.name = uep->ep_name; in usbhs_mod_gadget_probe()
1110 uep->ep.ops = &usbhsg_ep_ops; in usbhs_mod_gadget_probe()
1111 INIT_LIST_HEAD(&uep->ep.ep_list); in usbhs_mod_gadget_probe()
1115 gpriv->gadget.ep0 = &uep->ep; in usbhs_mod_gadget_probe()
1116 usb_ep_set_maxpacket_limit(&uep->ep, 64); in usbhs_mod_gadget_probe()
1117 uep->ep.caps.type_control = true; in usbhs_mod_gadget_probe()
1121 usb_ep_set_maxpacket_limit(&uep->ep, 512); in usbhs_mod_gadget_probe()
1122 uep->ep.caps.type_iso = true; in usbhs_mod_gadget_probe()
1123 uep->ep.caps.type_bulk = true; in usbhs_mod_gadget_probe()
1124 uep->ep.caps.type_int = true; in usbhs_mod_gadget_probe()
1125 list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list); in usbhs_mod_gadget_probe()
1127 uep->ep.caps.dir_in = true; in usbhs_mod_gadget_probe()
1128 uep->ep.caps.dir_out = true; in usbhs_mod_gadget_probe()