Lines Matching refs:_ep

175 net2272_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)  in net2272_enable()  argument
183 ep = container_of(_ep, struct net2272_ep, ep); in net2272_enable()
184 if (!_ep || !desc || ep->desc || _ep->name == ep0name in net2272_enable()
194 _ep->maxpacket = max; in net2272_enable()
240 _ep->name, tmp & 0x0f, PIPEDIR(tmp), in net2272_enable()
294 static int net2272_disable(struct usb_ep *_ep) in net2272_disable() argument
299 ep = container_of(_ep, struct net2272_ep, ep); in net2272_disable()
300 if (!_ep || !ep->desc || _ep->name == ep0name) in net2272_disable()
307 dev_vdbg(ep->dev->dev, "disabled %s\n", _ep->name); in net2272_disable()
316 net2272_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in net2272_alloc_request() argument
320 if (!_ep) in net2272_alloc_request()
333 net2272_free_request(struct usb_ep *_ep, struct usb_request *_req) in net2272_free_request() argument
337 if (!_ep || !_req) in net2272_free_request()
808 net2272_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2272_queue() argument
821 ep = container_of(_ep, struct net2272_ep, ep); in net2272_queue()
822 if (!_ep || (!ep->desc && ep->num != 0)) in net2272_queue()
837 _ep->name, _req, _req->length, _req->buf, in net2272_queue()
926 net2272_dequeue(struct usb_ep *_ep, struct usb_request *_req) in net2272_dequeue() argument
933 ep = container_of(_ep, struct net2272_ep, ep); in net2272_dequeue()
934 if (!_ep || (!ep->desc && ep->num != 0) || !_req) in net2272_dequeue()
956 dev_dbg(ep->dev->dev, "unlink (%s) pio\n", _ep->name); in net2272_dequeue()
968 net2272_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedged) in net2272_set_halt_and_wedge() argument
974 ep = container_of(_ep, struct net2272_ep, ep); in net2272_set_halt_and_wedge()
975 if (!_ep || (!ep->desc && ep->num != 0)) in net2272_set_halt_and_wedge()
985 else if (ep->is_in && value && net2272_fifo_status(_ep) != 0) in net2272_set_halt_and_wedge()
988 dev_vdbg(ep->dev->dev, "%s %s %s\n", _ep->name, in net2272_set_halt_and_wedge()
1010 net2272_set_halt(struct usb_ep *_ep, int value) in net2272_set_halt() argument
1012 return net2272_set_halt_and_wedge(_ep, value, 0); in net2272_set_halt()
1016 net2272_set_wedge(struct usb_ep *_ep) in net2272_set_wedge() argument
1018 if (!_ep || _ep->name == ep0name) in net2272_set_wedge()
1020 return net2272_set_halt_and_wedge(_ep, 1, 1); in net2272_set_wedge()
1024 net2272_fifo_status(struct usb_ep *_ep) in net2272_fifo_status() argument
1029 ep = container_of(_ep, struct net2272_ep, ep); in net2272_fifo_status()
1030 if (!_ep || (!ep->desc && ep->num != 0)) in net2272_fifo_status()
1045 net2272_fifo_flush(struct usb_ep *_ep) in net2272_fifo_flush() argument
1049 ep = container_of(_ep, struct net2272_ep, ep); in net2272_fifo_flush()
1050 if (!_ep || (!ep->desc && ep->num != 0)) in net2272_fifo_flush()