Lines Matching refs:ep

517 static struct usb_request *alloc_ep_req(struct usb_ep *ep, unsigned length)  in alloc_ep_req()  argument
521 req = usb_ep_alloc_request(ep, 0); in alloc_ep_req()
528 usb_ep_free_request(ep, req); in alloc_ep_req()
595 static void thor_rx_tx_complete(struct usb_ep *ep, struct usb_request *req) in thor_rx_tx_complete() argument
600 debug("%s: ep_ptr:%p, req_ptr:%p\n", __func__, ep, req); in thor_rx_tx_complete()
603 if (ep == dev->out_ep) in thor_rx_tx_complete()
620 debug("%s complete --> %d, %d/%d\n", ep->name, in thor_rx_tx_complete()
624 static void thor_setup_complete(struct usb_ep *ep, struct usb_request *req) in thor_setup_complete() argument
740 static void free_ep_req(struct usb_ep *ep, struct usb_request *req) in free_ep_req() argument
744 usb_ep_free_request(ep, req); in free_ep_req()
752 struct usb_ep *ep; in thor_func_bind() local
802 ep = usb_ep_autoconfig(gadget, &fs_in_desc); in thor_func_bind()
803 if (!ep) { in thor_func_bind()
813 dev->in_ep = ep; /* Store IN EP for enabling @ setup */ in thor_func_bind()
814 ep->driver_data = dev; in thor_func_bind()
816 ep = usb_ep_autoconfig(gadget, &fs_out_desc); in thor_func_bind()
817 if (!ep) { in thor_func_bind()
826 dev->out_ep = ep; /* Store OUT EP for enabling @ setup */ in thor_func_bind()
827 ep->driver_data = dev; in thor_func_bind()
829 ep = usb_ep_autoconfig(gadget, &fs_int_desc); in thor_func_bind()
830 if (!ep) { in thor_func_bind()
835 dev->int_ep = ep; in thor_func_bind()
836 ep->driver_data = dev; in thor_func_bind()
905 struct usb_ep *ep; in thor_eps_setup() local
908 ep = dev->in_ep; in thor_eps_setup()
912 result = usb_ep_enable(ep, d); in thor_eps_setup()
916 ep->driver_data = cdev; /* claim */ in thor_eps_setup()
917 req = alloc_ep_req(ep, THOR_PACKET_SIZE); in thor_eps_setup()
926 ep = dev->out_ep; in thor_eps_setup()
930 result = usb_ep_enable(ep, d); in thor_eps_setup()
934 ep->driver_data = cdev; /* claim */ in thor_eps_setup()
935 req = usb_ep_alloc_request(ep, 0); in thor_eps_setup()
944 ep = dev->int_ep; in thor_eps_setup()
948 result = usb_ep_enable(ep, d); in thor_eps_setup()
952 ep->driver_data = cdev; /* claim */ in thor_eps_setup()