Lines Matching refs:urb_priv
1650 struct urb_priv *urb_priv; in xhci_urb_enqueue() local
1682 urb_priv = kzalloc(struct_size(urb_priv, td, num_tds), mem_flags); in xhci_urb_enqueue()
1683 if (!urb_priv) in xhci_urb_enqueue()
1686 urb_priv->num_tds = num_tds; in xhci_urb_enqueue()
1687 urb_priv->num_tds_done = 0; in xhci_urb_enqueue()
1688 urb->hcpriv = urb_priv; in xhci_urb_enqueue()
1700 xhci_urb_free_priv(urb_priv); in xhci_urb_enqueue()
1748 xhci_urb_free_priv(urb_priv); in xhci_urb_enqueue()
1792 struct urb_priv *urb_priv; in xhci_urb_dequeue() local
1812 urb_priv = urb->hcpriv; in xhci_urb_dequeue()
1813 if (!vdev || !urb_priv) in xhci_urb_dequeue()
1834 if (!td_on_ring(&urb_priv->td[0], ep_ring)) { in xhci_urb_dequeue()
1836 for (i = urb_priv->num_tds_done; i < urb_priv->num_tds; i++) { in xhci_urb_dequeue()
1837 td = &urb_priv->td[i]; in xhci_urb_dequeue()
1847 for (i = urb_priv->num_tds_done; in xhci_urb_dequeue()
1848 i < urb_priv->num_tds; in xhci_urb_dequeue()
1850 td = &urb_priv->td[i]; in xhci_urb_dequeue()
1859 i = urb_priv->num_tds_done; in xhci_urb_dequeue()
1860 if (i < urb_priv->num_tds) in xhci_urb_dequeue()
1867 urb_priv->td[i].start_seg, in xhci_urb_dequeue()
1868 urb_priv->td[i].first_trb)); in xhci_urb_dequeue()
1870 for (; i < urb_priv->num_tds; i++) { in xhci_urb_dequeue()
1871 td = &urb_priv->td[i]; in xhci_urb_dequeue()
1899 if (urb_priv) in xhci_urb_dequeue()
1900 xhci_urb_free_priv(urb_priv); in xhci_urb_dequeue()