Lines Matching refs:_ep
102 static inline struct dummy_ep *usb_ep_to_dummy_ep(struct usb_ep *_ep) in usb_ep_to_dummy_ep() argument
104 return container_of(_ep, struct dummy_ep, ep); in usb_ep_to_dummy_ep()
502 static int dummy_enable(struct usb_ep *_ep, in dummy_enable() argument
511 ep = usb_ep_to_dummy_ep(_ep); in dummy_enable()
512 if (!_ep || !desc || ep->desc || _ep->name == ep0name in dummy_enable()
612 _ep->maxpacket = max; in dummy_enable()
613 if (usb_ss_max_streams(_ep->comp_desc)) { in dummy_enable()
616 "non-bulk ep %s\n", _ep->name); in dummy_enable()
624 _ep->name, in dummy_enable()
639 static int dummy_disable(struct usb_ep *_ep) in dummy_disable() argument
645 ep = usb_ep_to_dummy_ep(_ep); in dummy_disable()
646 if (!_ep || !ep->desc || _ep->name == ep0name) in dummy_disable()
656 dev_dbg(udc_dev(dum), "disabled %s\n", _ep->name); in dummy_disable()
660 static struct usb_request *dummy_alloc_request(struct usb_ep *_ep, in dummy_alloc_request() argument
665 if (!_ep) in dummy_alloc_request()
675 static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req) in dummy_free_request() argument
679 if (!_ep || !_req) { in dummy_free_request()
693 static int dummy_queue(struct usb_ep *_ep, struct usb_request *_req, in dummy_queue() argument
706 ep = usb_ep_to_dummy_ep(_ep); in dummy_queue()
707 if (!_ep || (!ep->desc && _ep->name != ep0name)) in dummy_queue()
717 ep, _req, _ep->name, _req->length, _req->buf); in dummy_queue()
739 usb_gadget_giveback_request(_ep, _req); in dummy_queue()
751 static int dummy_dequeue(struct usb_ep *_ep, struct usb_request *_req) in dummy_dequeue() argument
759 if (!_ep || !_req) in dummy_dequeue()
761 ep = usb_ep_to_dummy_ep(_ep); in dummy_dequeue()
783 req, _ep->name, _req->length, _req->buf); in dummy_dequeue()
784 usb_gadget_giveback_request(_ep, _req); in dummy_dequeue()
791 dummy_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedged) in dummy_set_halt_and_wedge() argument
796 if (!_ep) in dummy_set_halt_and_wedge()
798 ep = usb_ep_to_dummy_ep(_ep); in dummy_set_halt_and_wedge()
817 dummy_set_halt(struct usb_ep *_ep, int value) in dummy_set_halt() argument
819 return dummy_set_halt_and_wedge(_ep, value, 0); in dummy_set_halt()
822 static int dummy_set_wedge(struct usb_ep *_ep) in dummy_set_wedge() argument
824 if (!_ep || _ep->name == ep0name) in dummy_set_wedge()
826 return dummy_set_halt_and_wedge(_ep, 1, 1); in dummy_set_wedge()