Lines Matching refs:states

101 	unsigned long states;  member
169 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) { in abort_usb_capture()
177 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states)) in abort_usb_playback()
196 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) { in playback_urb_complete()
216 set_bit(PLAYBACK_URB_COMPLETED, &ua->states); in first_playback_urb_complete()
269 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states))) in playback_tasklet()
299 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) in playback_tasklet()
380 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) in capture_urb_complete()
385 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) { in capture_urb_complete()
412 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) && in capture_urb_complete()
438 set_bit(CAPTURE_URB_COMPLETED, &ua->states); in first_capture_urb_complete()
495 if (err < 0 && !test_bit(DISCONNECTED, &ua->states)) in disable_iso_interface()
504 clear_bit(USB_CAPTURE_RUNNING, &ua->states); in stop_usb_capture()
515 if (test_bit(DISCONNECTED, &ua->states)) in start_usb_capture()
518 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) in start_usb_capture()
527 clear_bit(CAPTURE_URB_COMPLETED, &ua->states); in start_usb_capture()
532 set_bit(USB_CAPTURE_RUNNING, &ua->states); in start_usb_capture()
541 clear_bit(USB_PLAYBACK_RUNNING, &ua->states); in stop_usb_playback()
556 if (test_bit(DISCONNECTED, &ua->states)) in start_usb_playback()
559 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in start_usb_playback()
569 clear_bit(PLAYBACK_URB_COMPLETED, &ua->states); in start_usb_playback()
582 !test_bit(USB_CAPTURE_RUNNING, &ua->states) || in start_usb_playback()
583 test_bit(DISCONNECTED, &ua->states)); in start_usb_playback()
584 if (test_bit(DISCONNECTED, &ua->states)) { in start_usb_playback()
588 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) { in start_usb_playback()
607 set_bit(USB_PLAYBACK_RUNNING, &ua->states); in start_usb_playback()
616 if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) in abort_alsa_capture()
622 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) in abort_alsa_playback()
675 set_bit(ALSA_CAPTURE_OPEN, &ua->states); in capture_pcm_open()
699 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) in playback_pcm_open()
703 set_bit(ALSA_PLAYBACK_OPEN, &ua->states); in playback_pcm_open()
714 clear_bit(ALSA_CAPTURE_OPEN, &ua->states); in capture_pcm_close()
715 if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states)) in capture_pcm_close()
727 clear_bit(ALSA_PLAYBACK_OPEN, &ua->states); in playback_pcm_close()
728 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) in playback_pcm_close()
791 test_bit(CAPTURE_URB_COMPLETED, &ua->states) || in capture_pcm_prepare()
792 !test_bit(USB_CAPTURE_RUNNING, &ua->states)); in capture_pcm_prepare()
793 if (test_bit(DISCONNECTED, &ua->states)) in capture_pcm_prepare()
795 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) in capture_pcm_prepare()
818 test_bit(PLAYBACK_URB_COMPLETED, &ua->states) || in playback_pcm_prepare()
819 !test_bit(USB_PLAYBACK_RUNNING, &ua->states)); in playback_pcm_prepare()
820 if (test_bit(DISCONNECTED, &ua->states)) in playback_pcm_prepare()
822 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in playback_pcm_prepare()
837 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) in capture_pcm_trigger()
839 set_bit(ALSA_CAPTURE_RUNNING, &ua->states); in capture_pcm_trigger()
842 clear_bit(ALSA_CAPTURE_RUNNING, &ua->states); in capture_pcm_trigger()
855 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in playback_pcm_trigger()
857 set_bit(ALSA_PLAYBACK_RUNNING, &ua->states); in playback_pcm_trigger()
860 clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states); in playback_pcm_trigger()
1344 set_bit(DISCONNECTED, &ua->states); in ua101_disconnect()