Lines Matching refs:pcms
99 struct line6_pcm_stream *pcms) in line6_unlink_audio_urbs() argument
104 if (test_bit(i, &pcms->active_urbs)) { in line6_unlink_audio_urbs()
105 if (!test_and_set_bit(i, &pcms->unlink_urbs)) in line6_unlink_audio_urbs()
106 usb_unlink_urb(pcms->urbs[i]); in line6_unlink_audio_urbs()
115 struct line6_pcm_stream *pcms) in line6_wait_clear_audio_urbs() argument
124 if (test_bit(i, &pcms->active_urbs)) in line6_wait_clear_audio_urbs()
451 static void cleanup_urbs(struct line6_pcm_stream *pcms, int iso_buffers) in cleanup_urbs() argument
456 if (pcms->urbs == NULL) in cleanup_urbs()
460 if (pcms->urbs[i]) { in cleanup_urbs()
461 usb_kill_urb(pcms->urbs[i]); in cleanup_urbs()
462 usb_free_urb(pcms->urbs[i]); in cleanup_urbs()
465 kfree(pcms->urbs); in cleanup_urbs()
466 pcms->urbs = NULL; in cleanup_urbs()