Lines Matching refs:urb_priv
154 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()
196 INIT_LIST_HEAD (&urb_priv->pending); in ohci_urb_enqueue()
197 urb_priv->length = size; in ohci_urb_enqueue()
198 urb_priv->ed = ed; in ohci_urb_enqueue()
202 urb_priv->td [i] = td_alloc (ohci, mem_flags); in ohci_urb_enqueue()
203 if (!urb_priv->td [i]) { in ohci_urb_enqueue()
204 urb_priv->length = i; in ohci_urb_enqueue()
205 urb_free_priv (ohci, urb_priv); in ohci_urb_enqueue()
278 urb_priv->td_cnt = DIV_ROUND_UP( in ohci_urb_enqueue()
281 if (urb_priv->td_cnt >= urb_priv->length) { in ohci_urb_enqueue()
282 ++urb_priv->td_cnt; /* Mark it */ in ohci_urb_enqueue()
297 urb->hcpriv = urb_priv; in ohci_urb_enqueue()
302 urb_free_priv (ohci, 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()
329 if (urb_priv->ed->state == ED_OPER) in ohci_urb_dequeue()
330 start_ed_unlink(ohci, urb_priv->ed); in ohci_urb_dequeue()
1034 struct urb_priv *priv; in ohci_restart()