Home
last modified time | relevance | path

Searched refs:urb_priv (Results 1 – 19 of 19) sorted by relevance

/drivers/usb/host/
Dimx21-hcd.c403 struct urb_priv *urb_priv = etd->urb->hcpriv; in activate_queued_etd() local
414 urb_priv->active = 1; in activate_queued_etd()
521 struct urb_priv *urb_priv = urb->hcpriv; in urb_done() local
526 kfree(urb_priv->isoc_td); in urb_done()
565 struct urb_priv *urb_priv; in schedule_isoc_etds() local
587 urb_priv = td->urb->hcpriv; in schedule_isoc_etds()
593 urb_priv->isoc_status = -EXDEV; in schedule_isoc_etds()
597 if (--urb_priv->isoc_remaining == 0) in schedule_isoc_etds()
598 urb_done(hcd, td->urb, urb_priv->isoc_status); in schedule_isoc_etds()
602 urb_priv->active = 1; in schedule_isoc_etds()
[all …]
Dfhci-q.c168 struct urb_priv *urb_priv = urb->hcpriv; in free_urb_priv() local
169 struct ed *ed = urb_priv->ed; in free_urb_priv()
171 for (i = 0; i < urb_priv->num_of_tds; i++) { in free_urb_priv()
172 list_del_init(&urb_priv->tds[i]->node); in free_urb_priv()
173 fhci_recycle_empty_td(fhci, urb_priv->tds[i]); in free_urb_priv()
182 kfree(urb_priv->tds); in free_urb_priv()
183 kfree(urb_priv); in free_urb_priv()
273 struct urb_priv *urb_priv = urb->hcpriv; in fhci_del_ed_list() local
275 if (urb_priv->state == URB_DEL) { in fhci_del_ed_list()
282 if (++(urb_priv->tds_cnt) == urb_priv->num_of_tds) in fhci_del_ed_list()
Dohci-q.c13 static void urb_free_priv (struct ohci_hcd *hc, urb_priv_t *urb_priv) in urb_free_priv() argument
15 int last = urb_priv->length - 1; in urb_free_priv()
22 td = urb_priv->td [i]; in urb_free_priv()
28 list_del (&urb_priv->pending); in urb_free_priv()
29 kfree (urb_priv); in urb_free_priv()
506 struct urb_priv *urb_priv = urb->hcpriv; in td_fill() local
523 if (index != (urb_priv->length - 1) in td_fill()
528 td_pt = urb_priv->td [index]; in td_fill()
531 td = urb_priv->td [index] = urb_priv->ed->dummy; in td_fill()
532 urb_priv->ed->dummy = td_pt; in td_fill()
[all …]
Dfhci-hcd.c396 struct urb_priv *urb_priv; in fhci_urb_enqueue() local
432 urb_priv = kzalloc(sizeof(*urb_priv), mem_flags); in fhci_urb_enqueue()
433 if (!urb_priv) in fhci_urb_enqueue()
437 urb_priv->tds = kcalloc(size, sizeof(*urb_priv->tds), mem_flags); in fhci_urb_enqueue()
438 if (!urb_priv->tds) { in fhci_urb_enqueue()
439 kfree(urb_priv); in fhci_urb_enqueue()
450 urb_priv->num_of_tds = size; in fhci_urb_enqueue()
455 urb->hcpriv = urb_priv; in fhci_urb_enqueue()
460 kfree(urb_priv->tds); in fhci_urb_enqueue()
461 kfree(urb_priv); in fhci_urb_enqueue()
[all …]
Dfhci-sched.c641 struct urb_priv *urb_priv; in process_done_list() local
651 urb_priv = urb->hcpriv; in process_done_list()
656 urb_priv->tds_cnt++; in process_done_list()
664 if (urb_priv->tds_cnt == urb_priv->num_of_tds) { in process_done_list()
666 } else if (urb_priv->state == URB_DEL && in process_done_list()
671 urb_priv->state = URB_DEL; in process_done_list()
705 struct urb_priv *urb_priv = urb->hcpriv; in fhci_queue_urb() local
760 urb_priv->tds_cnt = 0; in fhci_queue_urb()
761 urb_priv->ed = ed; in fhci_queue_urb()
776 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, in fhci_queue_urb()
[all …]
Duhci-q.c73 struct urb_priv *urbp = urb->hcpriv; in uhci_add_fsbr()
79 static void uhci_urbp_wants_fsbr(struct uhci_hcd *uhci, struct urb_priv *urbp) in uhci_urbp_wants_fsbr()
142 static void uhci_add_td_to_urbp(struct uhci_td *td, struct urb_priv *urbp) in uhci_add_td_to_urbp()
238 struct urb_priv *urbp = (struct urb_priv *) urb->hcpriv; in uhci_unlink_isochronous_tds()
318 struct urb_priv *urbp = urb->hcpriv; in uhci_cleanup_queue()
336 struct urb_priv *purbp; in uhci_cleanup_queue()
339 purbp = list_entry(urbp->node.prev, struct urb_priv, node); in uhci_cleanup_queue()
376 struct urb_priv *urbp = NULL; in uhci_fixup_toggles()
384 urbp = list_entry(qh->queue.next, struct urb_priv, node); in uhci_fixup_toggles()
416 pipe = list_entry(qh->queue.next, struct urb_priv, node)->urb->pipe; in uhci_fixup_toggles()
[all …]
Dohci-hcd.c139 urb_priv_t *urb_priv; in ohci_urb_enqueue() local
186 urb_priv = kzalloc (sizeof (urb_priv_t) + size * sizeof (struct td *), in ohci_urb_enqueue()
188 if (!urb_priv) in ohci_urb_enqueue()
190 INIT_LIST_HEAD (&urb_priv->pending); in ohci_urb_enqueue()
191 urb_priv->length = size; in ohci_urb_enqueue()
192 urb_priv->ed = ed; in ohci_urb_enqueue()
196 urb_priv->td [i] = td_alloc (ohci, mem_flags); in ohci_urb_enqueue()
197 if (!urb_priv->td [i]) { in ohci_urb_enqueue()
198 urb_priv->length = i; in ohci_urb_enqueue()
199 urb_free_priv (ohci, urb_priv); in ohci_urb_enqueue()
[all …]
Dxhci-ring.c722 struct urb_priv *urb_priv; in xhci_giveback_urb_in_irq() local
725 urb_priv = urb->hcpriv; in xhci_giveback_urb_in_irq()
726 urb_priv->td_cnt++; in xhci_giveback_urb_in_irq()
730 if (urb_priv->td_cnt == urb_priv->length) { in xhci_giveback_urb_in_irq()
742 xhci_urb_free_priv(xhci, urb_priv); in xhci_giveback_urb_in_irq()
1896 struct urb_priv *urb_priv; in finish_td() local
1950 urb_priv = urb->hcpriv; in finish_td()
1975 urb_priv->td_cnt++; in finish_td()
1977 if (urb_priv->td_cnt == urb_priv->length) { in finish_td()
2101 struct urb_priv *urb_priv; in process_isoc_td() local
[all …]
Dfhci-mem.c90 struct urb_priv *urb_priv, struct ed *ed, u16 index, in fhci_td_fill() argument
111 urb_priv->tds[index] = td; in fhci_td_fill()
Dimx21-dbg.c292 struct urb_priv *urb_priv; in debug_etd_show() local
294 urb_priv = etd->urb->hcpriv; in debug_etd_show()
295 if (urb_priv) in debug_etd_show()
296 state = urb_priv->state; in debug_etd_show()
Dxhci.c1267 struct urb_priv *urb_priv; in xhci_urb_enqueue() local
1289 urb_priv = kzalloc(sizeof(struct urb_priv) + in xhci_urb_enqueue()
1291 if (!urb_priv) in xhci_urb_enqueue()
1296 kfree(urb_priv); in xhci_urb_enqueue()
1301 urb_priv->td[i] = buffer; in xhci_urb_enqueue()
1305 urb_priv->length = size; in xhci_urb_enqueue()
1306 urb_priv->td_cnt = 0; in xhci_urb_enqueue()
1307 urb->hcpriv = urb_priv; in xhci_urb_enqueue()
1317 xhci_urb_free_priv(xhci, urb_priv); in xhci_urb_enqueue()
1383 xhci_urb_free_priv(xhci, urb_priv); in xhci_urb_enqueue()
[all …]
Dfhci.h409 struct urb_priv { struct
542 struct urb_priv *urb_priv, struct ed *ed, u16 index,
Duhci-debug.c96 static int uhci_show_urbp(struct uhci_hcd *uhci, struct urb_priv *urbp, in uhci_show_urbp()
204 struct urb_priv *urbp = list_entry(qh->queue.next, in uhci_show_qh()
205 struct urb_priv, node); in uhci_show_qh()
Dimx21-hcd.h326 struct urb_priv { struct
Dxhci.h1333 struct urb_priv { struct
1692 void xhci_urb_free_priv(struct xhci_hcd *xhci, struct urb_priv *urb_priv);
Dxhci-mem.c1766 void xhci_urb_free_priv(struct xhci_hcd *xhci, struct urb_priv *urb_priv) in xhci_urb_free_priv() argument
1768 if (urb_priv) { in xhci_urb_free_priv()
1769 kfree(urb_priv->td[0]); in xhci_urb_free_priv()
1770 kfree(urb_priv); in xhci_urb_free_priv()
Duhci-hcd.h480 struct urb_priv { struct
Dohci.h326 typedef struct urb_priv { struct
Duhci-hcd.c877 sizeof(struct urb_priv), 0, 0, NULL); in uhci_hcd_init()