Lines Matching refs:urb_priv
396 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()
485 struct urb_priv *urb_priv; in fhci_urb_dequeue() local
491 urb_priv = urb->hcpriv; in fhci_urb_dequeue()
493 if (!urb_priv || (urb_priv->state == URB_DEL)) in fhci_urb_dequeue()
496 urb_priv->state = URB_DEL; in fhci_urb_dequeue()
499 urb_priv->ed->state = FHCI_ED_URB_DEL; in fhci_urb_dequeue()