Lines Matching refs:states
65 /* bits in struct ua101::states */
90 unsigned long states;
158 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) {
166 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states))
185 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) {
205 set_bit(PLAYBACK_URB_COMPLETED, &ua->states);
258 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states)))
288 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
369 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
374 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
401 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) &&
427 set_bit(CAPTURE_URB_COMPLETED, &ua->states);
484 if (err < 0 && !test_bit(DISCONNECTED, &ua->states))
493 clear_bit(USB_CAPTURE_RUNNING, &ua->states);
504 if (test_bit(DISCONNECTED, &ua->states))
507 if (test_bit(USB_CAPTURE_RUNNING, &ua->states))
516 clear_bit(CAPTURE_URB_COMPLETED, &ua->states);
521 set_bit(USB_CAPTURE_RUNNING, &ua->states);
530 clear_bit(USB_PLAYBACK_RUNNING, &ua->states);
545 if (test_bit(DISCONNECTED, &ua->states))
548 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states))
558 clear_bit(PLAYBACK_URB_COMPLETED, &ua->states);
571 !test_bit(USB_CAPTURE_RUNNING, &ua->states) ||
572 test_bit(DISCONNECTED, &ua->states));
573 if (test_bit(DISCONNECTED, &ua->states)) {
577 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
596 set_bit(USB_PLAYBACK_RUNNING, &ua->states);
605 if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
611 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
664 set_bit(ALSA_CAPTURE_OPEN, &ua->states);
688 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
692 set_bit(ALSA_PLAYBACK_OPEN, &ua->states);
703 clear_bit(ALSA_CAPTURE_OPEN, &ua->states);
704 if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states))
716 clear_bit(ALSA_PLAYBACK_OPEN, &ua->states);
717 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
767 test_bit(CAPTURE_URB_COMPLETED, &ua->states) ||
768 !test_bit(USB_CAPTURE_RUNNING, &ua->states));
769 if (test_bit(DISCONNECTED, &ua->states))
771 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
794 test_bit(PLAYBACK_URB_COMPLETED, &ua->states) ||
795 !test_bit(USB_PLAYBACK_RUNNING, &ua->states));
796 if (test_bit(DISCONNECTED, &ua->states))
798 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
813 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
815 set_bit(ALSA_CAPTURE_RUNNING, &ua->states);
818 clear_bit(ALSA_CAPTURE_RUNNING, &ua->states);
831 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
833 set_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
836 clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
1313 set_bit(DISCONNECTED, &ua->states);