Lines Matching refs:usbep
1644 static int pch_udc_pcd_ep_enable(struct usb_ep *usbep, in pch_udc_pcd_ep_enable() argument
1651 if (!usbep || (usbep->name == ep0_string) || !desc || in pch_udc_pcd_ep_enable()
1655 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_pcd_ep_enable()
1678 static int pch_udc_pcd_ep_disable(struct usb_ep *usbep) in pch_udc_pcd_ep_disable() argument
1683 if (!usbep) in pch_udc_pcd_ep_disable()
1686 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_pcd_ep_disable()
1687 if ((usbep->name == ep0_string) || !ep->ep.desc) in pch_udc_pcd_ep_disable()
1711 static struct usb_request *pch_udc_alloc_request(struct usb_ep *usbep, in pch_udc_alloc_request() argument
1718 if (!usbep) in pch_udc_alloc_request()
1720 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_alloc_request()
1750 static void pch_udc_free_request(struct usb_ep *usbep, in pch_udc_free_request() argument
1757 if (!usbep || !usbreq) in pch_udc_free_request()
1759 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_free_request()
1764 __func__, usbep->name, req); in pch_udc_free_request()
1785 static int pch_udc_pcd_queue(struct usb_ep *usbep, struct usb_request *usbreq, in pch_udc_pcd_queue() argument
1794 if (!usbep || !usbreq || !usbreq->complete || !usbreq->buf) in pch_udc_pcd_queue()
1796 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_pcd_queue()
1857 static int pch_udc_pcd_dequeue(struct usb_ep *usbep, in pch_udc_pcd_dequeue() argument
1865 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_pcd_dequeue()
1866 if (!usbep || !usbreq || (!ep->ep.desc && ep->num)) in pch_udc_pcd_dequeue()
1894 static int pch_udc_pcd_set_halt(struct usb_ep *usbep, int halt) in pch_udc_pcd_set_halt() argument
1900 if (!usbep) in pch_udc_pcd_set_halt()
1902 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_pcd_set_halt()
1935 static int pch_udc_pcd_set_wedge(struct usb_ep *usbep) in pch_udc_pcd_set_wedge() argument
1941 if (!usbep) in pch_udc_pcd_set_wedge()
1943 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_pcd_set_wedge()
1968 static void pch_udc_pcd_fifo_flush(struct usb_ep *usbep) in pch_udc_pcd_fifo_flush() argument
1972 if (!usbep) in pch_udc_pcd_fifo_flush()
1975 ep = container_of(usbep, struct pch_udc_ep, ep); in pch_udc_pcd_fifo_flush()