Lines Matching refs:_ep
144 net2280_enable (struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in net2280_enable() argument
151 ep = container_of (_ep, struct net2280_ep, ep); in net2280_enable()
152 if (!_ep || !desc || ep->desc || _ep->name == ep0name in net2280_enable()
169 _ep->maxpacket = max & 0x7ff; in net2280_enable()
251 _ep->name, tmp & 0x0f, DIR_STRING (tmp), in net2280_enable()
342 static int net2280_disable (struct usb_ep *_ep) in net2280_disable() argument
347 ep = container_of (_ep, struct net2280_ep, ep); in net2280_disable()
348 if (!_ep || !ep->desc || _ep->name == ep0name) in net2280_disable()
356 ep->dma ? "dma" : "pio", _ep->name); in net2280_disable()
371 net2280_alloc_request (struct usb_ep *_ep, int gfp_flags) in net2280_alloc_request() argument
376 if (!_ep) in net2280_alloc_request()
378 ep = container_of (_ep, struct net2280_ep, ep); in net2280_alloc_request()
407 net2280_free_request (struct usb_ep *_ep, struct usb_request *_req) in net2280_free_request() argument
412 ep = container_of (_ep, struct net2280_ep, ep); in net2280_free_request()
413 if (!_ep || !_req) in net2280_free_request()
455 struct usb_ep *_ep, in net2280_alloc_buffer() argument
464 ep = container_of (_ep, struct net2280_ep, ep); in net2280_alloc_buffer()
465 if (!_ep) in net2280_alloc_buffer()
489 struct usb_ep *_ep, in net2280_free_buffer() argument
499 ep = container_of(_ep, struct net2280_ep, ep); in net2280_free_buffer()
500 if (!_ep) in net2280_free_buffer()
894 net2280_queue (struct usb_ep *_ep, struct usb_request *_req, int gfp_flags) in net2280_queue() argument
910 ep = container_of (_ep, struct net2280_ep, ep); in net2280_queue()
911 if (!_ep || (!ep->desc && ep->num != 0)) in net2280_queue()
930 _ep->name, _req, _req->length, _req->buf); in net2280_queue()
1174 static int net2280_dequeue (struct usb_ep *_ep, struct usb_request *_req) in net2280_dequeue() argument
1182 ep = container_of (_ep, struct net2280_ep, ep); in net2280_dequeue()
1183 if (!_ep || (!ep->desc && ep->num != 0) || !_req) in net2280_dequeue()
1212 DEBUG (ep->dev, "unlink (%s) dma\n", _ep->name); in net2280_dequeue()
1223 DEBUG (ep->dev, "unlink (%s) pio\n", _ep->name); in net2280_dequeue()
1272 static int net2280_fifo_status (struct usb_ep *_ep);
1275 net2280_set_halt (struct usb_ep *_ep, int value) in net2280_set_halt() argument
1281 ep = container_of (_ep, struct net2280_ep, ep); in net2280_set_halt()
1282 if (!_ep || (!ep->desc && ep->num != 0)) in net2280_set_halt()
1293 else if (ep->is_in && value && net2280_fifo_status (_ep) != 0) in net2280_set_halt()
1296 VDEBUG (ep->dev, "%s %s halt\n", _ep->name, in net2280_set_halt()
1314 net2280_fifo_status (struct usb_ep *_ep) in net2280_fifo_status() argument
1319 ep = container_of (_ep, struct net2280_ep, ep); in net2280_fifo_status()
1320 if (!_ep || (!ep->desc && ep->num != 0)) in net2280_fifo_status()
1334 net2280_fifo_flush (struct usb_ep *_ep) in net2280_fifo_flush() argument
1338 ep = container_of (_ep, struct net2280_ep, ep); in net2280_fifo_flush()
1339 if (!_ep || (!ep->desc && ep->num != 0)) in net2280_fifo_flush()