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 if (! (ed = ed_get (ohci, urb->ep, urb->dev, pipe, urb->interval))) in ohci_urb_enqueue()
165 if (urb->transfer_buffer_length > 4096) in ohci_urb_enqueue()
174 size += number_of_tds(urb); in ohci_urb_enqueue()
178 else if ((urb->transfer_flags & URB_ZERO_PACKET) != 0 in ohci_urb_enqueue()
179 && (urb->transfer_buffer_length in ohci_urb_enqueue()
180 % usb_maxpacket (urb->dev, pipe, in ohci_urb_enqueue()
185 size = urb->number_of_packets; in ohci_urb_enqueue()
219 retval = usb_hcd_link_urb_to_ep(hcd, urb); in ohci_urb_enqueue()
227 usb_hcd_unlink_urb_from_ep(hcd, urb); in ohci_urb_enqueue()
247 urb->start_frame = frame; in ohci_urb_enqueue()
259 if (urb->transfer_flags & URB_ISO_ASAP) { in ohci_urb_enqueue()
281 urb, frame, length, in ohci_urb_enqueue()
286 urb->start_frame = frame; in ohci_urb_enqueue()
294 urb->hcpriv = urb_priv; in ohci_urb_enqueue()
295 td_submit_urb (ohci, urb); in ohci_urb_enqueue()
310 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() argument
318 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ohci_urb_dequeue()
325 urb_priv = urb->hcpriv; in ohci_urb_dequeue()
1014 struct urb *urb = priv->td[0]->urb; in ohci_restart() local
1034 if (!urb->unlinked) in ohci_restart()
1035 urb->unlinked = -ESHUTDOWN; in ohci_restart()