Lines Matching full:states
65 /* bits in struct ua101::states */
90 unsigned long states; member
158 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) { in abort_usb_capture()
166 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states)) in abort_usb_playback()
185 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) { in playback_urb_complete()
205 set_bit(PLAYBACK_URB_COMPLETED, &ua->states); in first_playback_urb_complete()
258 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states))) in playback_work()
288 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) in playback_work()
369 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) in capture_urb_complete()
374 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) { in capture_urb_complete()
401 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) && in capture_urb_complete()
427 set_bit(CAPTURE_URB_COMPLETED, &ua->states); in first_capture_urb_complete()
484 if (err < 0 && !test_bit(DISCONNECTED, &ua->states)) in disable_iso_interface()
493 clear_bit(USB_CAPTURE_RUNNING, &ua->states); in stop_usb_capture()
504 if (test_bit(DISCONNECTED, &ua->states)) in start_usb_capture()
507 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) in start_usb_capture()
516 clear_bit(CAPTURE_URB_COMPLETED, &ua->states); in start_usb_capture()
521 set_bit(USB_CAPTURE_RUNNING, &ua->states); in start_usb_capture()
530 clear_bit(USB_PLAYBACK_RUNNING, &ua->states); in stop_usb_playback()
545 if (test_bit(DISCONNECTED, &ua->states)) in start_usb_playback()
548 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in start_usb_playback()
558 clear_bit(PLAYBACK_URB_COMPLETED, &ua->states); in start_usb_playback()
571 !test_bit(USB_CAPTURE_RUNNING, &ua->states) || in start_usb_playback()
572 test_bit(DISCONNECTED, &ua->states)); in start_usb_playback()
573 if (test_bit(DISCONNECTED, &ua->states)) { in start_usb_playback()
577 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) { in start_usb_playback()
596 set_bit(USB_PLAYBACK_RUNNING, &ua->states); in start_usb_playback()
605 if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) in abort_alsa_capture()
611 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) in abort_alsa_playback()
664 set_bit(ALSA_CAPTURE_OPEN, &ua->states); in capture_pcm_open()
688 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) in playback_pcm_open()
692 set_bit(ALSA_PLAYBACK_OPEN, &ua->states); in playback_pcm_open()
703 clear_bit(ALSA_CAPTURE_OPEN, &ua->states); in capture_pcm_close()
704 if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states)) in capture_pcm_close()
716 clear_bit(ALSA_PLAYBACK_OPEN, &ua->states); in playback_pcm_close()
717 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) in playback_pcm_close()
767 test_bit(CAPTURE_URB_COMPLETED, &ua->states) || in capture_pcm_prepare()
768 !test_bit(USB_CAPTURE_RUNNING, &ua->states)); in capture_pcm_prepare()
769 if (test_bit(DISCONNECTED, &ua->states)) in capture_pcm_prepare()
771 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) in capture_pcm_prepare()
794 test_bit(PLAYBACK_URB_COMPLETED, &ua->states) || in playback_pcm_prepare()
795 !test_bit(USB_PLAYBACK_RUNNING, &ua->states)); in playback_pcm_prepare()
796 if (test_bit(DISCONNECTED, &ua->states)) in playback_pcm_prepare()
798 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in playback_pcm_prepare()
813 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) in capture_pcm_trigger()
815 set_bit(ALSA_CAPTURE_RUNNING, &ua->states); in capture_pcm_trigger()
818 clear_bit(ALSA_CAPTURE_RUNNING, &ua->states); in capture_pcm_trigger()
831 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in playback_pcm_trigger()
833 set_bit(ALSA_PLAYBACK_RUNNING, &ua->states); in playback_pcm_trigger()
836 clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states); in playback_pcm_trigger()
1313 set_bit(DISCONNECTED, &ua->states); in ua101_disconnect()