Lines Matching refs:states

66 /* bits in struct ua101::states */
91 unsigned long states;
159 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) {
167 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states))
186 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) {
206 set_bit(PLAYBACK_URB_COMPLETED, &ua->states);
259 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states)))
289 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
370 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
375 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
402 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) &&
428 set_bit(CAPTURE_URB_COMPLETED, &ua->states);
485 if (err < 0 && !test_bit(DISCONNECTED, &ua->states))
494 clear_bit(USB_CAPTURE_RUNNING, &ua->states);
505 if (test_bit(DISCONNECTED, &ua->states))
508 if (test_bit(USB_CAPTURE_RUNNING, &ua->states))
517 clear_bit(CAPTURE_URB_COMPLETED, &ua->states);
522 set_bit(USB_CAPTURE_RUNNING, &ua->states);
531 clear_bit(USB_PLAYBACK_RUNNING, &ua->states);
546 if (test_bit(DISCONNECTED, &ua->states))
549 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states))
559 clear_bit(PLAYBACK_URB_COMPLETED, &ua->states);
572 !test_bit(USB_CAPTURE_RUNNING, &ua->states) ||
573 test_bit(DISCONNECTED, &ua->states));
574 if (test_bit(DISCONNECTED, &ua->states)) {
578 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
597 set_bit(USB_PLAYBACK_RUNNING, &ua->states);
606 if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
612 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
665 set_bit(ALSA_CAPTURE_OPEN, &ua->states);
689 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
693 set_bit(ALSA_PLAYBACK_OPEN, &ua->states);
704 clear_bit(ALSA_CAPTURE_OPEN, &ua->states);
705 if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states))
717 clear_bit(ALSA_PLAYBACK_OPEN, &ua->states);
718 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
768 test_bit(CAPTURE_URB_COMPLETED, &ua->states) ||
769 !test_bit(USB_CAPTURE_RUNNING, &ua->states));
770 if (test_bit(DISCONNECTED, &ua->states))
772 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
795 test_bit(PLAYBACK_URB_COMPLETED, &ua->states) ||
796 !test_bit(USB_PLAYBACK_RUNNING, &ua->states));
797 if (test_bit(DISCONNECTED, &ua->states))
799 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
814 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
816 set_bit(ALSA_CAPTURE_RUNNING, &ua->states);
819 clear_bit(ALSA_CAPTURE_RUNNING, &ua->states);
832 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
834 set_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
837 clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
1314 set_bit(DISCONNECTED, &ua->states);