Lines Matching defs:ep

30 	struct usb_ep		 ep;
93 #define usbhsg_ep_to_uep(e) container_of(e, struct usbhsg_uep, ep)
132 usb_gadget_giveback_request(&uep->ep, &ureq->req);
301 static void __usbhsg_recip_send_complete(struct usb_ep *ep,
308 usb_ep_free_request(ep, req);
321 req = usb_ep_alloc_request(&dcp->ep, GFP_ATOMIC);
330 usb_ep_free_request(&dcp->ep, req);
579 static int usbhsg_ep_enable(struct usb_ep *ep,
582 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep);
636 static int usbhsg_ep_disable(struct usb_ep *ep)
638 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep);
659 static struct usb_request *usbhsg_ep_alloc_request(struct usb_ep *ep,
673 static void usbhsg_ep_free_request(struct usb_ep *ep,
682 static int usbhsg_ep_queue(struct usb_ep *ep, struct usb_request *req,
685 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep);
701 static int usbhsg_ep_dequeue(struct usb_ep *ep, struct usb_request *req)
703 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep);
723 static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge)
725 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep);
768 static int usbhsg_ep_set_halt(struct usb_ep *ep, int value)
770 return __usbhsg_ep_set_halt_wedge(ep, value, 0);
773 static int usbhsg_ep_set_wedge(struct usb_ep *ep)
775 return __usbhsg_ep_set_halt_wedge(ep, 1, 1);
914 usbhsg_ep_disable(&uep->ep);
1140 snprintf(uep->ep_name, EP_NAME_SIZE, "ep%d", i);
1142 uep->ep.name = uep->ep_name;
1143 uep->ep.ops = &usbhsg_ep_ops;
1144 INIT_LIST_HEAD(&uep->ep.ep_list);
1149 gpriv->gadget.ep0 = &uep->ep;
1150 usb_ep_set_maxpacket_limit(&uep->ep, 64);
1151 uep->ep.caps.type_control = true;
1155 uep->ep.caps.type_iso = true;
1157 uep->ep.caps.type_bulk = true;
1159 uep->ep.caps.type_int = true;
1160 usb_ep_set_maxpacket_limit(&uep->ep,
1162 list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list);
1164 uep->ep.caps.dir_in = true;
1165 uep->ep.caps.dir_out = true;