Lines Matching refs:urb

114 static int number_of_tds(struct urb *urb)  in number_of_tds()  argument
119 len = urb->transfer_buffer_length; in number_of_tds()
120 i = urb->num_mapped_sgs; in number_of_tds()
124 sg = urb->sg; in number_of_tds()
146 struct urb *urb, in ohci_urb_enqueue() argument
152 unsigned int pipe = urb->pipe; in ohci_urb_enqueue()
158 ed = ed_get(ohci, urb->ep, urb->dev, pipe, urb->interval); in ohci_urb_enqueue()
166 if (urb->transfer_buffer_length > 4096) in ohci_urb_enqueue()
175 size += number_of_tds(urb); in ohci_urb_enqueue()
179 else if ((urb->transfer_flags & URB_ZERO_PACKET) != 0 in ohci_urb_enqueue()
180 && (urb->transfer_buffer_length in ohci_urb_enqueue()
181 % usb_maxpacket (urb->dev, pipe, in ohci_urb_enqueue()
186 size = urb->number_of_packets; in ohci_urb_enqueue()
220 retval = usb_hcd_link_urb_to_ep(hcd, urb); in ohci_urb_enqueue()
228 usb_hcd_unlink_urb_from_ep(hcd, urb); in ohci_urb_enqueue()
248 urb->start_frame = frame; in ohci_urb_enqueue()
260 if (urb->transfer_flags & URB_ISO_ASAP) { in ohci_urb_enqueue()
282 urb, frame, length, in ohci_urb_enqueue()
287 urb->start_frame = frame; in ohci_urb_enqueue()
295 urb->hcpriv = urb_priv; in ohci_urb_enqueue()
296 td_submit_urb (ohci, urb); in ohci_urb_enqueue()
311 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() argument
319 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ohci_urb_dequeue()
326 urb_priv = urb->hcpriv; in ohci_urb_dequeue()
1015 struct urb *urb = priv->td[0]->urb; in ohci_restart() local
1035 if (!urb->unlinked) in ohci_restart()
1036 urb->unlinked = -ESHUTDOWN; in ohci_restart()