• Home
  • Raw
  • Download

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()
985 net2280_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2280_queue() argument
996 ep = container_of(_ep, struct net2280_ep, ep); in net2280_queue()
997 if (!_ep || (!ep->desc && ep->num != 0)) { in net2280_queue()
998 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_queue()
1032 _ep->name, _req, _req->length, _req->buf); in net2280_queue()
1240 static int net2280_dequeue(struct usb_ep *_ep, struct usb_request *_req) in net2280_dequeue() argument
1248 ep = container_of(_ep, struct net2280_ep, ep); in net2280_dequeue()
1249 if (!_ep || (!ep->desc && ep->num != 0) || !_req) { in net2280_dequeue()
1251 __func__, _ep, _req); in net2280_dequeue()
1283 ep_dbg(ep->dev, "unlink (%s) dma\n", _ep->name); in net2280_dequeue()
1294 ep_dbg(ep->dev, "unlink (%s) pio\n", _ep->name); in net2280_dequeue()
1324 static int net2280_fifo_status(struct usb_ep *_ep);
1327 net2280_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedged) in net2280_set_halt_and_wedge() argument
1333 ep = container_of(_ep, struct net2280_ep, ep); in net2280_set_halt_and_wedge()
1334 if (!_ep || (!ep->desc && ep->num != 0)) { in net2280_set_halt_and_wedge()
1335 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_set_halt_and_wedge()
1352 } else if (ep->is_in && value && net2280_fifo_status(_ep) != 0) { in net2280_set_halt_and_wedge()
1356 ep_vdbg(ep->dev, "%s %s %s\n", _ep->name, in net2280_set_halt_and_wedge()
1387 static int net2280_set_halt(struct usb_ep *_ep, int value) in net2280_set_halt() argument
1389 return net2280_set_halt_and_wedge(_ep, value, 0); in net2280_set_halt()
1392 static int net2280_set_wedge(struct usb_ep *_ep) in net2280_set_wedge() argument
1394 if (!_ep || _ep->name == ep0name) { in net2280_set_wedge()
1395 pr_err("%s: Invalid ep=%p or ep0\n", __func__, _ep); in net2280_set_wedge()
1398 return net2280_set_halt_and_wedge(_ep, 1, 1); in net2280_set_wedge()
1401 static int net2280_fifo_status(struct usb_ep *_ep) in net2280_fifo_status() argument
1406 ep = container_of(_ep, struct net2280_ep, ep); in net2280_fifo_status()
1407 if (!_ep || (!ep->desc && ep->num != 0)) { in net2280_fifo_status()
1408 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_fifo_status()
1428 static void net2280_fifo_flush(struct usb_ep *_ep) in net2280_fifo_flush() argument
1432 ep = container_of(_ep, struct net2280_ep, ep); in net2280_fifo_flush()
1433 if (!_ep || (!ep->desc && ep->num != 0)) { in net2280_fifo_flush()
1434 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_fifo_flush()