Lines Matching refs:inurb
92 sk->inurb[u] = usb_alloc_urb(sk->n_o_ps, GFP_KERNEL); in init_urbs()
93 if (!sk->inurb[u]) in init_urbs()
101 if (init_pipe_urbs(sk, use_packsize, sk->inurb, indata, dev, in_pipe) || in init_urbs()
133 usb_free_urb(sk->inurb[u]); in usb_stream_free()
134 sk->inurb[u] = NULL; in usb_stream_free()
281 struct urb *inurb) in usb_stream_prepare_playback() argument
304 s->sync_packet < inurb->number_of_packets && p < sk->n_o_ps; in usb_stream_prepare_playback()
306 l = inurb->iso_frame_desc[s->sync_packet].actual_length; in usb_stream_prepare_playback()
317 s->sync_packet -= inurb->number_of_packets; in usb_stream_prepare_playback()
322 s->sync_packet, p, inurb->number_of_packets, in usb_stream_prepare_playback()
359 struct urb *inurb, struct urb *outurb) in submit_urbs() argument
369 sk->completed_inurb = inurb; in submit_urbs()
445 struct urb *inurb, struct urb *outurb) in stream_idle() argument
457 for (p = 0; p < inurb->number_of_packets; ++p) { in stream_idle()
458 struct usb_iso_packet_descriptor *id = inurb->iso_frame_desc; in stream_idle()
472 id[p].offset + (inurb->transfer_buffer - (void *)s); in stream_idle()
494 if (usb_stream_prepare_playback(sk, inurb) < 0) in stream_idle()
501 if (submit_urbs(sk, inurb, outurb) < 0) in stream_idle()
530 struct urb *inurb, struct urb *outurb) in stream_start() argument
542 s->cfg.frame_size * inurb->number_of_packets; in stream_start()
551 for (p = 0; p < inurb->number_of_packets; ++p) { in stream_start()
554 l = inurb->iso_frame_desc[p].actual_length; in stream_start()
592 if (usb_stream_prepare_playback(sk, inurb) < 0) in stream_start()
598 if (submit_urbs(sk, inurb, outurb) < 0) in stream_start()
604 subs_set_complete(sk->inurb, i_capture_idle); in stream_start()
675 subs_set_complete(sk->inurb, i_capture_start); in usb_stream_start()
687 struct urb *inurb = sk->inurb[u]; in usb_stream_start() local
691 inurb->number_of_packets = outurb->number_of_packets; in usb_stream_start()
692 inurb->transfer_buffer_length = in usb_stream_start()
693 inurb->number_of_packets * in usb_stream_start()
694 inurb->iso_frame_desc[0].length; in usb_stream_start()
698 struct usb_device *dev = inurb->dev; in usb_stream_start()
705 err = usb_submit_urb(inurb, GFP_ATOMIC); in usb_stream_start()
720 if (inurb->start_frame != outurb->start_frame) { in usb_stream_start()
723 __func__, u, inurb->start_frame, outurb->start_frame); in usb_stream_start()
742 sk->idle_inurb = sk->inurb[USB_STREAM_NURBS - 2]; in usb_stream_start()
744 sk->completed_inurb = sk->inurb[USB_STREAM_NURBS - 1]; in usb_stream_start()
770 usb_kill_urb(sk->inurb[u]); in usb_stream_stop()