Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/usb/host/
A 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()
A Dohci-q.c23 td = urb_priv->td [i]; in urb_free_priv()
30 kfree (urb_priv); in urb_free_priv()
47 struct urb_priv *urb_priv; in finish_urb() local
94 if (urb_priv->td_cnt > urb_priv->length) { in finish_urb()
521 struct urb_priv *urb_priv = urb->hcpriv; in td_fill() local
546 td = urb_priv->td [index] = urb_priv->ed->dummy; in td_fill()
595 struct urb_priv *urb_priv = urb->hcpriv; in td_submit_urb() local
870 urb_priv->td_cnt++; in ed_halted()
1073 if (urb_priv->td_cnt >= urb_priv->length) { in finish_unlinks()
1159 urb_priv->td_cnt++; in takeback_td()
[all …]
A 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()
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()
790 cnt < urb_priv->num_of_tds) { in fhci_queue_urb()
867 urb_priv->state = URB_INPROGRESS; in fhci_queue_urb()
[all …]
A Dfhci-hcd.c392 struct urb_priv *urb_priv; in fhci_urb_enqueue() local
428 urb_priv = kzalloc(sizeof(*urb_priv), mem_flags); in fhci_urb_enqueue()
429 if (!urb_priv) in fhci_urb_enqueue()
433 urb_priv->tds = kcalloc(size, sizeof(*urb_priv->tds), mem_flags); in fhci_urb_enqueue()
434 if (!urb_priv->tds) { in fhci_urb_enqueue()
435 kfree(urb_priv); in fhci_urb_enqueue()
451 urb->hcpriv = urb_priv; in fhci_urb_enqueue()
456 kfree(urb_priv->tds); in fhci_urb_enqueue()
457 kfree(urb_priv); in fhci_urb_enqueue()
481 struct urb_priv *urb_priv; in fhci_urb_dequeue() local
[all …]
A Dohci-hcd.c154 urb_priv_t *urb_priv; in ohci_urb_enqueue() local
193 urb_priv = kzalloc(struct_size(urb_priv, td, size), mem_flags); in ohci_urb_enqueue()
194 if (!urb_priv) in ohci_urb_enqueue()
197 urb_priv->length = size; in ohci_urb_enqueue()
198 urb_priv->ed = ed; in ohci_urb_enqueue()
204 urb_priv->length = i; in ohci_urb_enqueue()
281 if (urb_priv->td_cnt >= urb_priv->length) { in ohci_urb_enqueue()
297 urb->hcpriv = urb_priv; in ohci_urb_enqueue()
318 urb_priv_t *urb_priv; in ohci_urb_dequeue() local
328 urb_priv = urb->hcpriv; in ohci_urb_dequeue()
[all …]
A Duhci-q.c238 struct urb_priv *urbp = (struct urb_priv *) urb->hcpriv; in uhci_unlink_isochronous_tds()
335 struct urb_priv *purbp; in uhci_cleanup_queue()
375 struct urb_priv *urbp = NULL; in uhci_fixup_toggles()
488 struct urb_priv, node); in uhci_activate_qh()
725 struct urb_priv *urbp; in uhci_alloc_urb_priv()
741 struct urb_priv *urbp) in uhci_free_urb_priv()
1261 struct urb_priv *urbp = (struct urb_priv *) urb->hcpriv; in uhci_submit_isochronous()
1414 struct urb_priv *urbp; in uhci_urb_enqueue()
1521 struct urb_priv *urbp = (struct urb_priv *) urb->hcpriv; in uhci_giveback_urb()
1577 struct urb_priv *urbp; in uhci_scan_qh()
[all …]
A 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()
A Dxhci-ring.c111 struct urb_priv *urb_priv = td->urb->hcpriv; in last_td_in_urb() local
113 return urb_priv->num_tds_done == urb_priv->num_tds; in last_td_in_urb()
118 struct urb_priv *urb_priv = urb->hcpriv; in inc_td_cnt() local
120 urb_priv->num_tds_done++; in inc_td_cnt()
751 struct urb_priv *urb_priv = urb->hcpriv; in xhci_giveback_urb_in_irq() local
2338 struct urb_priv *urb_priv; in process_isoc_td() local
2419 struct urb_priv *urb_priv; in skip_isoc_td() local
3244 struct urb_priv *urb_priv; in prepare_transfer() local
3525 struct urb_priv *urb_priv; in xhci_queue_bulk_tx() local
3692 struct urb_priv *urb_priv; in xhci_queue_ctrl_tx() local
[all …]
A Dxen-hcd.c26 struct urb_priv { struct
554 static void xenhcd_free_urb_priv(struct urb_priv *urbp) in xenhcd_free_urb_priv()
765 struct urb_priv *urbp = (struct urb_priv *)urb->hcpriv; in xenhcd_giveback_urb()
780 static int xenhcd_do_request(struct xenhcd_info *info, struct urb_priv *urbp) in xenhcd_do_request()
822 struct urb_priv *urbp; in xenhcd_kick_pending_urbs()
831 struct urb_priv, list); in xenhcd_kick_pending_urbs()
845 struct urb_priv *urbp, *tmp; in xenhcd_cancel_all_enqueued_urbs()
874 struct urb_priv *urbp, *tmp; in xenhcd_giveback_unlinked_urbs()
1327 struct urb_priv *urbp; in xenhcd_urb_enqueue()
1364 struct urb_priv *urbp; in xenhcd_urb_dequeue()
[all …]
A Dxhci.c1682 struct urb_priv *urb_priv; in xhci_urb_enqueue() local
1714 urb_priv = kzalloc(struct_size(urb_priv, td, num_tds), mem_flags); in xhci_urb_enqueue()
1715 if (!urb_priv) in xhci_urb_enqueue()
1720 urb->hcpriv = urb_priv; in xhci_urb_enqueue()
1824 struct urb_priv *urb_priv; in xhci_urb_dequeue() local
1844 urb_priv = urb->hcpriv; in xhci_urb_dequeue()
1845 if (!vdev || !urb_priv) in xhci_urb_dequeue()
1868 for (i = urb_priv->num_tds_done; i < urb_priv->num_tds; i++) { in xhci_urb_dequeue()
1869 td = &urb_priv->td[i]; in xhci_urb_dequeue()
1903 td = &urb_priv->td[i]; in xhci_urb_dequeue()
[all …]
A Dfhci.h385 struct urb_priv { struct
518 struct urb_priv *urb_priv, struct ed *ed, u16 index,
A 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()
A Duhci-hcd.h479 struct urb_priv { struct
A Dohci.h335 typedef struct urb_priv { struct
A Dxhci.h1667 struct urb_priv { struct
2110 void xhci_urb_free_priv(struct urb_priv *urb_priv);
A Duhci-hcd.c880 sizeof(struct urb_priv), 0, 0, NULL); in uhci_hcd_init()
A Dxhci-mem.c1778 void xhci_urb_free_priv(struct urb_priv *urb_priv) in xhci_urb_free_priv() argument
1780 kfree(urb_priv); in xhci_urb_free_priv()

Completed in 78 milliseconds