Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/usb/host/
Dfhci-q.c164 struct urb_priv *urb_priv = urb->hcpriv; in free_urb_priv() local
165 struct ed *ed = urb_priv->ed; in free_urb_priv()
167 for (i = 0; i < urb_priv->num_of_tds; i++) { in free_urb_priv()
168 list_del_init(&urb_priv->tds[i]->node); in free_urb_priv()
169 fhci_recycle_empty_td(fhci, urb_priv->tds[i]); in free_urb_priv()
178 kfree(urb_priv->tds); in free_urb_priv()
179 kfree(urb_priv); in free_urb_priv()
269 struct urb_priv *urb_priv = urb->hcpriv; in fhci_del_ed_list() local
271 if (urb_priv->state == URB_DEL) { in fhci_del_ed_list()
278 if (++(urb_priv->tds_cnt) == urb_priv->num_of_tds) in fhci_del_ed_list()
Dimx21-hcd.c395 struct urb_priv *urb_priv = etd->urb->hcpriv; in activate_queued_etd() local
406 urb_priv->active = 1; in activate_queued_etd()
513 struct urb_priv *urb_priv = urb->hcpriv; in urb_done() local
518 kfree(urb_priv->isoc_td); in urb_done()
557 struct urb_priv *urb_priv; in schedule_isoc_etds() local
579 urb_priv = td->urb->hcpriv; in schedule_isoc_etds()
585 urb_priv->isoc_status = -EXDEV; in schedule_isoc_etds()
589 if (--urb_priv->isoc_remaining == 0) in schedule_isoc_etds()
590 urb_done(hcd, td->urb, urb_priv->isoc_status); in schedule_isoc_etds()
594 urb_priv->active = 1; in schedule_isoc_etds()
[all …]
Dohci-q.c14 static void urb_free_priv (struct ohci_hcd *hc, urb_priv_t *urb_priv) in urb_free_priv() argument
16 int last = urb_priv->length - 1; in urb_free_priv()
23 td = urb_priv->td [i]; in urb_free_priv()
29 list_del (&urb_priv->pending); in urb_free_priv()
30 kfree (urb_priv); in urb_free_priv()
47 struct urb_priv *urb_priv; in finish_urb() local
93 urb_priv = urb->hcpriv; in finish_urb()
94 if (urb_priv->td_cnt > urb_priv->length) { in finish_urb()
521 struct urb_priv *urb_priv = urb->hcpriv; in td_fill() local
538 if (index != (urb_priv->length - 1) in td_fill()
[all …]
Dfhci-sched.c636 struct urb_priv *urb_priv; in process_done_list() local
646 urb_priv = urb->hcpriv; in process_done_list()
651 urb_priv->tds_cnt++; in process_done_list()
659 if (urb_priv->tds_cnt == urb_priv->num_of_tds) { in process_done_list()
661 } else if (urb_priv->state == URB_DEL && in process_done_list()
666 urb_priv->state = URB_DEL; in process_done_list()
700 struct urb_priv *urb_priv = urb->hcpriv; in fhci_queue_urb() local
757 urb_priv->tds_cnt = 0; in fhci_queue_urb()
758 urb_priv->ed = ed; in fhci_queue_urb()
772 fhci_td_fill(fhci, urb, urb_priv, ed, cnt, in fhci_queue_urb()
[all …]
Dfhci-hcd.c392 struct urb_priv *urb_priv; in fhci_urb_enqueue() local
429 urb_priv = kzalloc(sizeof(*urb_priv), mem_flags); in fhci_urb_enqueue()
430 if (!urb_priv) in fhci_urb_enqueue()
434 urb_priv->tds = kcalloc(size, sizeof(*urb_priv->tds), mem_flags); in fhci_urb_enqueue()
435 if (!urb_priv->tds) { in fhci_urb_enqueue()
436 kfree(urb_priv); in fhci_urb_enqueue()
447 urb_priv->num_of_tds = size; in fhci_urb_enqueue()
452 urb->hcpriv = urb_priv; in fhci_urb_enqueue()
457 kfree(urb_priv->tds); in fhci_urb_enqueue()
458 kfree(urb_priv); in fhci_urb_enqueue()
[all …]
Duhci-q.c74 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()
317 struct urb_priv *urbp = urb->hcpriv; in uhci_cleanup_queue()
335 struct urb_priv *purbp; in uhci_cleanup_queue()
338 purbp = list_entry(urbp->node.prev, struct urb_priv, node); in uhci_cleanup_queue()
375 struct urb_priv *urbp = NULL; in uhci_fixup_toggles()
383 urbp = list_entry(qh->queue.next, struct urb_priv, node); in uhci_fixup_toggles()
415 pipe = list_entry(qh->queue.next, struct urb_priv, node)->urb->pipe; in uhci_fixup_toggles()
[all …]
Dohci-hcd.c154 urb_priv_t *urb_priv; in ohci_urb_enqueue() local
194 urb_priv = kzalloc (sizeof (urb_priv_t) + size * sizeof (struct td *), in ohci_urb_enqueue()
196 if (!urb_priv) in ohci_urb_enqueue()
198 INIT_LIST_HEAD (&urb_priv->pending); in ohci_urb_enqueue()
199 urb_priv->length = size; in ohci_urb_enqueue()
200 urb_priv->ed = ed; in ohci_urb_enqueue()
204 urb_priv->td [i] = td_alloc (ohci, mem_flags); in ohci_urb_enqueue()
205 if (!urb_priv->td [i]) { in ohci_urb_enqueue()
206 urb_priv->length = i; in ohci_urb_enqueue()
207 urb_free_priv (ohci, urb_priv); in ohci_urb_enqueue()
[all …]
Dfhci-mem.c86 struct urb_priv *urb_priv, struct ed *ed, u16 index, in fhci_td_fill() argument
107 urb_priv->tds[index] = td; in fhci_td_fill()
Dxhci-ring.c108 struct urb_priv *urb_priv = td->urb->hcpriv; in last_td_in_urb() local
110 return urb_priv->num_tds_done == urb_priv->num_tds; in last_td_in_urb()
115 struct urb_priv *urb_priv = urb->hcpriv; in inc_td_cnt() local
117 urb_priv->num_tds_done++; in inc_td_cnt()
726 struct urb_priv *urb_priv = urb->hcpriv; in xhci_giveback_urb_in_irq() local
736 xhci_urb_free_priv(urb_priv); in xhci_giveback_urb_in_irq()
2223 struct urb_priv *urb_priv; in process_isoc_td() local
2233 urb_priv = td->urb->hcpriv; in process_isoc_td()
2234 idx = urb_priv->num_tds_done; in process_isoc_td()
2307 struct urb_priv *urb_priv; in skip_isoc_td() local
[all …]
Dimx21-dbg.c285 struct urb_priv *urb_priv; in debug_etd_show() local
287 urb_priv = etd->urb->hcpriv; in debug_etd_show()
288 if (urb_priv) in debug_etd_show()
289 state = urb_priv->state; in debug_etd_show()
Dxhci.c1480 struct urb_priv *urb_priv; in xhci_urb_enqueue() local
1511 urb_priv = kzalloc(struct_size(urb_priv, td, num_tds), mem_flags); in xhci_urb_enqueue()
1512 if (!urb_priv) in xhci_urb_enqueue()
1515 urb_priv->num_tds = num_tds; in xhci_urb_enqueue()
1516 urb_priv->num_tds_done = 0; in xhci_urb_enqueue()
1517 urb->hcpriv = urb_priv; in xhci_urb_enqueue()
1529 xhci_urb_free_priv(urb_priv); in xhci_urb_enqueue()
1577 xhci_urb_free_priv(urb_priv); in xhci_urb_enqueue()
1621 struct urb_priv *urb_priv; in xhci_urb_dequeue() local
1641 urb_priv = urb->hcpriv; in xhci_urb_dequeue()
[all …]
Dfhci.h385 struct urb_priv { struct
518 struct urb_priv *urb_priv, struct ed *ed, u16 index,
Duhci-debug.c100 static int uhci_show_urbp(struct uhci_hcd *uhci, struct urb_priv *urbp, in uhci_show_urbp()
220 struct urb_priv *urbp = list_entry(qh->queue.next, in uhci_show_qh()
221 struct urb_priv, node); in uhci_show_qh()
Dimx21-hcd.h317 struct urb_priv { struct
Duhci-hcd.h483 struct urb_priv { struct
Dohci.h335 typedef struct urb_priv { struct
Dxhci.h1646 struct urb_priv { struct
2061 void xhci_urb_free_priv(struct urb_priv *urb_priv);
Duhci-hcd.c884 sizeof(struct urb_priv), 0, 0, NULL); in uhci_hcd_init()
Dxhci-mem.c1792 void xhci_urb_free_priv(struct urb_priv *urb_priv) in xhci_urb_free_priv() argument
1794 kfree(urb_priv); in xhci_urb_free_priv()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0034_linux_drivers_usb_vfio_wdt_tty_uio.patch6019 + struct urb_priv *urb_priv;
6023 + /* urb_priv will be free after transcation has completed */
6024 + urb_priv = kzalloc(sizeof(struct urb_priv) +
6026 + if (!urb_priv)
6029 + td = &urb_priv->td[0];
6030 + urb_priv->num_tds = 1;
6031 + urb_priv->num_tds_done = 0;
6032 + urb->hcpriv = urb_priv;
6115 + xhci_urb_free_priv(urb_priv);