• Home
  • Raw
  • Download

Lines Matching refs:usb_ep

668 static int imx_ep_enable(struct usb_ep *usb_ep,  in imx_ep_enable()  argument
671 struct imx_ep_struct *imx_ep = container_of(usb_ep, in imx_ep_enable()
676 if (!usb_ep in imx_ep_enable()
688 "<%s> %s type mismatch\n", __func__, usb_ep->name); in imx_ep_enable()
694 "<%s> bad %s maxpacket\n", __func__, usb_ep->name); in imx_ep_enable()
711 D_EPX(imx_usb->dev, "<%s> ENABLED %s\n", __func__, usb_ep->name); in imx_ep_enable()
715 static int imx_ep_disable(struct usb_ep *usb_ep) in imx_ep_disable() argument
717 struct imx_ep_struct *imx_ep = container_of(usb_ep, in imx_ep_disable()
721 if (!usb_ep || !EP_NO(imx_ep) || !list_empty(&imx_ep->queue)) { in imx_ep_disable()
723 __func__, usb_ep ? imx_ep->ep.name : NULL); in imx_ep_disable()
737 "<%s> DISABLED %s\n", __func__, usb_ep->name); in imx_ep_disable()
742 (struct usb_ep *usb_ep, gfp_t gfp_flags) in imx_ep_alloc_request() argument
746 if (!usb_ep) in imx_ep_alloc_request()
760 (struct usb_ep *usb_ep, struct usb_request *usb_req) in imx_ep_free_request() argument
770 (struct usb_ep *usb_ep, struct usb_request *usb_req, gfp_t gfp_flags) in imx_ep_queue() argument
778 imx_ep = container_of(usb_ep, struct imx_ep_struct, ep); in imx_ep_queue()
800 if (unlikely(!usb_ep || !imx_ep)) { in imx_ep_queue()
847 static int imx_ep_dequeue(struct usb_ep *usb_ep, struct usb_request *usb_req) in imx_ep_dequeue() argument
851 (usb_ep, struct imx_ep_struct, ep); in imx_ep_dequeue()
855 if (unlikely(!usb_ep || !EP_NO(imx_ep))) { in imx_ep_dequeue()
878 static int imx_ep_set_halt(struct usb_ep *usb_ep, int value) in imx_ep_set_halt() argument
881 (usb_ep, struct imx_ep_struct, ep); in imx_ep_set_halt()
884 if (unlikely(!usb_ep || !EP_NO(imx_ep))) { in imx_ep_set_halt()
901 D_EPX(imx_ep->imx_usb->dev, "<%s> %s halt\n", __func__, usb_ep->name); in imx_ep_set_halt()
905 static int imx_ep_fifo_status(struct usb_ep *usb_ep) in imx_ep_fifo_status() argument
908 (usb_ep, struct imx_ep_struct, ep); in imx_ep_fifo_status()
910 if (!usb_ep) { in imx_ep_fifo_status()
921 static void imx_ep_fifo_flush(struct usb_ep *usb_ep) in imx_ep_fifo_flush() argument
924 (usb_ep, struct imx_ep_struct, ep); in imx_ep_fifo_flush()
929 if (!usb_ep || !EP_NO(imx_ep) || !list_empty(&imx_ep->queue)) { in imx_ep_fifo_flush()