• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/host/

Lines Matching defs:ep_priv

384 static void ep_idle(struct imx21 *imx21, struct ep_priv *ep_priv)
390 etd_num = ep_priv->etd[i];
394 ep_priv->etd[i] = -1;
402 ep_priv = list_first_entry(&imx21->queue_for_etd,
403 struct ep_priv, queue);
404 list_del(&ep_priv->queue);
406 ep_priv->waiting_etd = 0;
407 ep_priv->etd[i] = etd_num;
409 if (list_empty(&ep_priv->ep->urb_list)) {
414 &ep_priv->ep->urb_list, struct urb, urb_list));
423 struct ep_priv *ep_priv = urb->ep->hcpriv;
436 if (list_empty(&ep_priv->ep->urb_list))
437 ep_idle(imx21, ep_priv);
448 struct ep_priv *ep_priv = ep->hcpriv;
459 if (list_empty(&ep_priv->td_list))
462 etd_num = ep_priv->etd[i];
470 td = list_entry(ep_priv->td_list.next, struct td, list);
565 static struct ep_priv *alloc_isoc_ep(
568 struct ep_priv *ep_priv;
571 ep_priv = kzalloc(sizeof(struct ep_priv), GFP_ATOMIC);
572 if (ep_priv == NULL)
577 ep_priv->etd[i] = alloc_etd(imx21);
578 if (ep_priv->etd[i] < 0) {
582 free_etd(imx21, ep_priv->etd[j]);
585 imx21->etd[ep_priv->etd[i]].ep = ep;
588 INIT_LIST_HEAD(&ep_priv->td_list);
589 ep_priv->ep = ep;
590 ep->hcpriv = ep_priv;
591 return ep_priv;
594 kfree(ep_priv);
605 struct ep_priv *ep_priv;
626 ep_priv = alloc_isoc_ep(imx21, ep);
627 if (ep_priv == NULL) {
632 ep_priv = ep->hcpriv;
648 struct etd_priv *etd = &imx21->etd[ep_priv->etd[i]];
672 if (list_empty(&ep_priv->td_list))
676 ep_priv->td_list.prev,
697 list_add_tail(&td->list, &ep_priv->td_list);
724 struct urb *urb, struct ep_priv *ep_priv)
732 int etd_num = ep_priv->etd[i];
744 list_for_each_entry_safe(td, tmp, &ep_priv->td_list, list) {
760 struct ep_priv *ep_priv = urb_priv->ep->hcpriv;
762 int etd_num = ep_priv->etd[0];
985 static struct ep_priv *alloc_ep(void)
988 struct ep_priv *ep_priv;
990 ep_priv = kzalloc(sizeof(struct ep_priv), GFP_ATOMIC);
991 if (!ep_priv)
995 ep_priv->etd[i] = -1;
997 return ep_priv;
1006 struct ep_priv *ep_priv;
1029 ep_priv = ep->hcpriv;
1030 if (ep_priv == NULL) {
1031 ep_priv = alloc_ep();
1032 if (!ep_priv) {
1036 ep->hcpriv = ep_priv;
1037 ep_priv->ep = ep;
1061 if (ep_priv->etd[0] < 0) {
1062 if (ep_priv->waiting_etd) {
1065 ep_priv);
1069 ep_priv->etd[0] = alloc_etd(imx21);
1070 if (ep_priv->etd[0] < 0) {
1072 "no ETD available queueing %p\n", ep_priv);
1074 list_add_tail(&ep_priv->queue, &imx21->queue_for_etd);
1075 ep_priv->waiting_etd = 1;
1081 etd = &imx21->etd[ep_priv->etd[0]];
1104 struct ep_priv *ep_priv;
1117 ep_priv = ep->hcpriv;
1122 dequeue_isoc_urb(imx21, urb, ep_priv);
1125 int etd_num = ep_priv->etd[0];
1267 struct ep_priv *ep_priv;
1274 ep_priv = ep->hcpriv;
1275 dev_vdbg(imx21->dev, "disable ep=%p, ep->hcpriv=%p\n", ep, ep_priv);
1280 if (ep_priv != NULL) {
1282 if (ep_priv->etd[i] > -1)
1284 ep_priv->etd[i]);
1286 free_etd(imx21, ep_priv->etd[i]);
1288 kfree(ep_priv);