/u-boot/drivers/usb/gadget/ |
A D | dwc2_udc_otg.c | 620 debug("%s: %p\n", __func__, _ep); in dwc2_ep_enable() 622 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_ep_enable() 623 if (!_ep || !desc || ep->desc || _ep->name == ep0name in dwc2_ep_enable() 665 dwc2_udc_set_halt(_ep, 0); in dwc2_ep_enable() 684 debug("%s: %p\n", __func__, _ep); in dwc2_ep_disable() 686 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_ep_disable() 687 if (!_ep || !ep->desc) { in dwc2_ep_disable() 689 _ep ? ep->ep.name : NULL); in dwc2_ep_disable() 742 debug("%s: %p\n", __func__, _ep); in dwc2_dequeue() 745 if (!_ep || ep->ep.name == ep0name) in dwc2_dequeue() [all …]
|
A D | pxa25x_udc.c | 304 if (!_ep || !desc || ep->desc || _ep->name == ep0name in pxa25x_ep_enable() 342 pxa25x_ep_fifo_flush(_ep); in pxa25x_ep_enable() 346 debug("enabled %s\n", _ep->name); in pxa25x_ep_enable() 356 if (!_ep || !ep->desc) { in pxa25x_ep_disable() 358 _ep ? ep->ep.name : NULL); in pxa25x_ep_disable() 366 pxa25x_ep_fifo_flush(_ep); in pxa25x_ep_disable() 372 debug("%s disabled\n", _ep->name); in pxa25x_ep_disable() 867 if (!_ep || ep->ep.name == ep0name) in pxa25x_ep_dequeue() 896 if (unlikely(!_ep in pxa25x_ep_set_halt() 942 debug("%s halt\n", _ep->name); in pxa25x_ep_set_halt() [all …]
|
A D | max3420_udc.c | 250 max3420_ep_enable(struct usb_ep *_ep, in max3420_ep_enable() argument 253 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_enable() 255 _ep->desc = desc; in max3420_ep_enable() 256 _ep->maxpacket = usb_endpoint_maxp(desc) & 0x7ff; in max3420_ep_enable() 290 static int max3420_ep_disable(struct usb_ep *_ep) in max3420_ep_disable() argument 292 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_disable() 294 _ep->desc = NULL; in max3420_ep_disable() 304 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_alloc_request() 326 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_queue() 345 static int max3420_ep_set_halt(struct usb_ep *_ep, int halt) in max3420_ep_set_halt() argument [all …]
|
A D | fotg210.c | 504 struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in fotg210_ep_enable() argument 506 struct fotg210_ep *ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_enable() 512 if (!_ep || !desc in fotg210_ep_enable() 548 static int fotg210_ep_disable(struct usb_ep *_ep) in fotg210_ep_disable() argument 550 struct fotg210_ep *ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_disable() 565 struct usb_ep *_ep, gfp_t gfp_flags) in fotg210_ep_alloc_request() argument 577 struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_free_request() argument 586 struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in fotg210_ep_queue() argument 588 struct fotg210_ep *ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_queue() 665 req->req.complete(_ep, &req->req); in fotg210_ep_dequeue() [all …]
|
A D | atmel_usba_udc.c | 171 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_enable() 271 static int usba_ep_disable(struct usb_ep *_ep) in usba_ep_disable() argument 273 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_disable() 330 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request() 339 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_queue() 380 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_dequeue() 402 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_set_halt() 445 static int usba_ep_fifo_status(struct usb_ep *_ep) in usba_ep_fifo_status() argument 447 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_fifo_status() 452 static void usba_ep_fifo_flush(struct usb_ep *_ep) in usba_ep_fifo_flush() argument [all …]
|
A D | at91_udc.c | 285 static int at91_ep_enable(struct usb_ep *_ep, in at91_ep_enable() argument 294 if (!_ep || !ep in at91_ep_enable() 295 || !desc || _ep->name == ep0name in at91_ep_enable() 363 static int at91_ep_disable (struct usb_ep * _ep) in at91_ep_disable() argument 397 at91_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in at91_ep_alloc_request() argument 418 static int at91_ep_queue(struct usb_ep *_ep, in at91_ep_queue() argument 428 ep = container_of(_ep, struct at91_ep, ep); in at91_ep_queue() 436 if (!_ep || (!ep->ep.desc && ep->ep.name != ep0name)) { in at91_ep_queue() 524 ep = container_of(_ep, struct at91_ep, ep); in at91_ep_dequeue() 525 if (!_ep || ep->ep.name == ep0name) in at91_ep_dequeue() [all …]
|
A D | dwc2_udc_otg_xfer_dma.c | 627 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_queue() 629 if (unlikely(!_ep || (!ep->desc && ep->ep.name != ep0name))) { in dwc2_queue() 632 ep->ep.name, !ep->desc, _ep); in dwc2_queue() 652 __func__, _ep->name, ep_is_in(ep) ? "in" : "out", in dwc2_queue() 1060 static int dwc2_udc_set_halt(struct usb_ep *_ep, int value) in dwc2_udc_set_halt() argument 1067 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_udc_set_halt() 1070 if (unlikely(!_ep || !ep->desc || ep_num == EP0_CON || in dwc2_udc_set_halt() 1154 static int dwc2_udc_clear_feature(struct usb_ep *_ep) in dwc2_udc_clear_feature() argument 1160 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_udc_clear_feature() 1218 static int dwc2_udc_set_feature(struct usb_ep *_ep) in dwc2_udc_set_feature() argument [all …]
|
A D | ci_udc.c | 537 static int ci_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in ci_ep_dequeue() argument 539 struct ci_ep *ci_ep = container_of(_ep, struct ci_ep, ep); in ci_ep_dequeue() 555 ci_req->req.complete(_ep, _req); in ci_ep_dequeue()
|