| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | dwc2_udc_otg.c | 116 static int dwc2_udc_set_halt(struct usb_ep *_ep, int value); 616 static int dwc2_ep_enable(struct usb_ep *_ep, in dwc2_ep_enable() argument 623 debug("%s: %p\n", __func__, _ep); in dwc2_ep_enable() 625 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_ep_enable() 626 if (!_ep || !desc || ep->desc || _ep->name == ep0name in dwc2_ep_enable() 641 debug("%s: %s type mismatch\n", __func__, _ep->name); in dwc2_ep_enable() 650 debug("%s: bad %s maxpacket\n", __func__, _ep->name); in dwc2_ep_enable() 668 dwc2_udc_set_halt(_ep, 0); in dwc2_ep_enable() 675 __func__, _ep->name, ep->stopped, ep->ep.maxpacket); in dwc2_ep_enable() 682 static int dwc2_ep_disable(struct usb_ep *_ep) in dwc2_ep_disable() argument [all …]
|
| H A D | pxa25x_udc.c | 294 static int pxa25x_ep_enable(struct usb_ep *_ep, in pxa25x_ep_enable() argument 300 ep = container_of(_ep, struct pxa25x_ep, ep); in pxa25x_ep_enable() 301 if (!_ep || !desc || ep->desc || _ep->name == ep0name in pxa25x_ep_enable() 314 printf("%s, %s type mismatch\n", __func__, _ep->name); in pxa25x_ep_enable() 323 printf("%s, bad %s maxpacket\n", __func__, _ep->name); in pxa25x_ep_enable() 339 pxa25x_ep_fifo_flush(_ep); in pxa25x_ep_enable() 343 debug("enabled %s\n", _ep->name); in pxa25x_ep_enable() 347 static int pxa25x_ep_disable(struct usb_ep *_ep) in pxa25x_ep_disable() argument 352 ep = container_of(_ep, struct pxa25x_ep, ep); in pxa25x_ep_disable() 353 if (!_ep || !ep->desc) { in pxa25x_ep_disable() [all …]
|
| H A D | fotg210.c | 502 struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in fotg210_ep_enable() argument 504 struct fotg210_ep *ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_enable() 510 if (!_ep || !desc in fotg210_ep_enable() 546 static int fotg210_ep_disable(struct usb_ep *_ep) in fotg210_ep_disable() argument 548 struct fotg210_ep *ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_disable() 563 struct usb_ep *_ep, gfp_t gfp_flags) in fotg210_ep_alloc_request() argument 575 struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_free_request() argument 584 struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in fotg210_ep_queue() argument 586 struct fotg210_ep *ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_queue() 643 static int fotg210_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_dequeue() argument [all …]
|
| H A D | atmel_usba_udc.c | 169 usba_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in usba_ep_enable() argument 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() 310 usba_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in usba_ep_alloc_request() argument 314 DBG(DBG_GADGET, "ep_alloc_request: %p, 0x%x\n", _ep, gfp_flags); in usba_ep_alloc_request() 326 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument 330 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request() 336 usba_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in usba_ep_queue() argument 339 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_queue() [all …]
|
| H A D | at91_udc.c | 283 static int at91_ep_enable(struct usb_ep *_ep, in at91_ep_enable() argument 286 struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); in at91_ep_enable() 292 if (!_ep || !ep in at91_ep_enable() 293 || !desc || _ep->name == ep0name in at91_ep_enable() 361 static int at91_ep_disable (struct usb_ep * _ep) in at91_ep_disable() argument 363 struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); in at91_ep_disable() 395 at91_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in at91_ep_alloc_request() argument 407 static void at91_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_free_request() argument 416 static int at91_ep_queue(struct usb_ep *_ep, in at91_ep_queue() argument 426 ep = container_of(_ep, struct at91_ep, ep); in at91_ep_queue() [all …]
|
| H A D | dwc2_udc_otg_xfer_dma.c | 608 static int dwc2_queue(struct usb_ep *_ep, struct usb_request *_req, in dwc2_queue() argument 625 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_queue() 627 if (unlikely(!_ep || (!ep->desc && ep->ep.name != ep0name))) { in dwc2_queue() 630 ep->ep.name, !ep->desc, _ep); in dwc2_queue() 650 __func__, _ep->name, ep_is_in(ep) ? "in" : "out", in dwc2_queue() 1058 static int dwc2_udc_set_halt(struct usb_ep *_ep, int value) in dwc2_udc_set_halt() argument 1065 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_udc_set_halt() 1068 if (unlikely(!_ep || !ep->desc || ep_num == EP0_CON || in dwc2_udc_set_halt() 1152 static int dwc2_udc_clear_feature(struct usb_ep *_ep) in dwc2_udc_clear_feature() argument 1158 ep = container_of(_ep, struct dwc2_ep, ep); in dwc2_udc_clear_feature() [all …]
|
| H A D | ci_udc.c | 528 static int ci_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in ci_ep_dequeue() argument 530 struct ci_ep *ci_ep = container_of(_ep, struct ci_ep, ep); in ci_ep_dequeue() 546 ci_req->req.complete(_ep, _req); in ci_ep_dequeue()
|