Lines Matching refs:states

76 /* bits in struct ua101::states */
101 unsigned long states;
169 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) {
177 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states))
196 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) {
216 set_bit(PLAYBACK_URB_COMPLETED, &ua->states);
269 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states)))
299 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
380 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
385 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
412 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) &&
438 set_bit(CAPTURE_URB_COMPLETED, &ua->states);
495 if (err < 0 && !test_bit(DISCONNECTED, &ua->states))
504 clear_bit(USB_CAPTURE_RUNNING, &ua->states);
515 if (test_bit(DISCONNECTED, &ua->states))
518 if (test_bit(USB_CAPTURE_RUNNING, &ua->states))
527 clear_bit(CAPTURE_URB_COMPLETED, &ua->states);
532 set_bit(USB_CAPTURE_RUNNING, &ua->states);
541 clear_bit(USB_PLAYBACK_RUNNING, &ua->states);
556 if (test_bit(DISCONNECTED, &ua->states))
559 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states))
569 clear_bit(PLAYBACK_URB_COMPLETED, &ua->states);
582 !test_bit(USB_CAPTURE_RUNNING, &ua->states) ||
583 test_bit(DISCONNECTED, &ua->states));
584 if (test_bit(DISCONNECTED, &ua->states)) {
588 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
607 set_bit(USB_PLAYBACK_RUNNING, &ua->states);
616 if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
622 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
675 set_bit(ALSA_CAPTURE_OPEN, &ua->states);
699 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
703 set_bit(ALSA_PLAYBACK_OPEN, &ua->states);
714 clear_bit(ALSA_CAPTURE_OPEN, &ua->states);
715 if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states))
727 clear_bit(ALSA_PLAYBACK_OPEN, &ua->states);
728 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
791 test_bit(CAPTURE_URB_COMPLETED, &ua->states) ||
792 !test_bit(USB_CAPTURE_RUNNING, &ua->states));
793 if (test_bit(DISCONNECTED, &ua->states))
795 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
818 test_bit(PLAYBACK_URB_COMPLETED, &ua->states) ||
819 !test_bit(USB_PLAYBACK_RUNNING, &ua->states));
820 if (test_bit(DISCONNECTED, &ua->states))
822 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
837 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
839 set_bit(ALSA_CAPTURE_RUNNING, &ua->states);
842 clear_bit(ALSA_CAPTURE_RUNNING, &ua->states);
855 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
857 set_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
860 clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
1346 set_bit(DISCONNECTED, &ua->states);