Lines Matching refs:_ep

182 net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)  in net2280_enable()  argument
193 ep = container_of(_ep, struct net2280_ep, ep); in net2280_enable()
194 if (!_ep || !desc || ep->desc || _ep->name == ep0name || in net2280_enable()
231 _ep->maxpacket = max; in net2280_enable()
348 _ep->name, tmp & 0x0f, DIR_STRING(tmp), in net2280_enable()
512 static int net2280_disable(struct usb_ep *_ep) in net2280_disable() argument
517 ep = container_of(_ep, struct net2280_ep, ep); in net2280_disable()
518 if (!_ep || _ep->name == ep0name) { in net2280_disable()
519 pr_err("%s: Invalid ep=%p\n", __func__, _ep); in net2280_disable()
531 ep->dma ? "dma" : "pio", _ep->name); in net2280_disable()
546 *net2280_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in net2280_alloc_request() argument
551 if (!_ep) { in net2280_alloc_request()
555 ep = container_of(_ep, struct net2280_ep, ep); in net2280_alloc_request()
580 static void net2280_free_request(struct usb_ep *_ep, struct usb_request *_req) in net2280_free_request() argument
585 ep = container_of(_ep, struct net2280_ep, ep); in net2280_free_request()
586 if (!_ep || !_req) { in net2280_free_request()
588 __func__, _ep, _req); in net2280_free_request()
977 net2280_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2280_queue() argument
988 ep = container_of(_ep, struct net2280_ep, ep); in net2280_queue()
989 if (!_ep || (!ep->desc && ep->num != 0)) { in net2280_queue()
990 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_queue()
1024 _ep->name, _req, _req->length, _req->buf); in net2280_queue()
1232 static int net2280_dequeue(struct usb_ep *_ep, struct usb_request *_req) in net2280_dequeue() argument
1241 ep = container_of(_ep, struct net2280_ep, ep); in net2280_dequeue()
1242 if (!_ep || (!ep->desc && ep->num != 0) || !_req) { in net2280_dequeue()
1244 __func__, _ep, _req); in net2280_dequeue()
1278 ep_dbg(ep->dev, "unlink (%s) dma\n", _ep->name); in net2280_dequeue()
1289 ep_dbg(ep->dev, "unlink (%s) pio\n", _ep->name); in net2280_dequeue()
1319 static int net2280_fifo_status(struct usb_ep *_ep);
1322 net2280_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedged) in net2280_set_halt_and_wedge() argument
1328 ep = container_of(_ep, struct net2280_ep, ep); in net2280_set_halt_and_wedge()
1329 if (!_ep || (!ep->desc && ep->num != 0)) { in net2280_set_halt_and_wedge()
1330 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_set_halt_and_wedge()
1347 } else if (ep->is_in && value && net2280_fifo_status(_ep) != 0) { in net2280_set_halt_and_wedge()
1351 ep_vdbg(ep->dev, "%s %s %s\n", _ep->name, in net2280_set_halt_and_wedge()
1382 static int net2280_set_halt(struct usb_ep *_ep, int value) in net2280_set_halt() argument
1384 return net2280_set_halt_and_wedge(_ep, value, 0); in net2280_set_halt()
1387 static int net2280_set_wedge(struct usb_ep *_ep) in net2280_set_wedge() argument
1389 if (!_ep || _ep->name == ep0name) { in net2280_set_wedge()
1390 pr_err("%s: Invalid ep=%p or ep0\n", __func__, _ep); in net2280_set_wedge()
1393 return net2280_set_halt_and_wedge(_ep, 1, 1); in net2280_set_wedge()
1396 static int net2280_fifo_status(struct usb_ep *_ep) in net2280_fifo_status() argument
1401 ep = container_of(_ep, struct net2280_ep, ep); in net2280_fifo_status()
1402 if (!_ep || (!ep->desc && ep->num != 0)) { in net2280_fifo_status()
1403 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_fifo_status()
1423 static void net2280_fifo_flush(struct usb_ep *_ep) in net2280_fifo_flush() argument
1427 ep = container_of(_ep, struct net2280_ep, ep); in net2280_fifo_flush()
1428 if (!_ep || (!ep->desc && ep->num != 0)) { in net2280_fifo_flush()
1429 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_fifo_flush()