Lines Matching full:states

66 /* bits in struct ua101::states */
91 unsigned long states; member
159 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) { in abort_usb_capture()
167 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states)) in abort_usb_playback()
186 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) { in playback_urb_complete()
206 set_bit(PLAYBACK_URB_COMPLETED, &ua->states); in first_playback_urb_complete()
259 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states))) in playback_work()
289 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) in playback_work()
370 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) in capture_urb_complete()
375 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) { in capture_urb_complete()
402 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) && in capture_urb_complete()
428 set_bit(CAPTURE_URB_COMPLETED, &ua->states); in first_capture_urb_complete()
485 if (err < 0 && !test_bit(DISCONNECTED, &ua->states)) in disable_iso_interface()
494 clear_bit(USB_CAPTURE_RUNNING, &ua->states); in stop_usb_capture()
505 if (test_bit(DISCONNECTED, &ua->states)) in start_usb_capture()
508 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) in start_usb_capture()
517 clear_bit(CAPTURE_URB_COMPLETED, &ua->states); in start_usb_capture()
522 set_bit(USB_CAPTURE_RUNNING, &ua->states); in start_usb_capture()
531 clear_bit(USB_PLAYBACK_RUNNING, &ua->states); in stop_usb_playback()
546 if (test_bit(DISCONNECTED, &ua->states)) in start_usb_playback()
549 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in start_usb_playback()
559 clear_bit(PLAYBACK_URB_COMPLETED, &ua->states); in start_usb_playback()
572 !test_bit(USB_CAPTURE_RUNNING, &ua->states) || in start_usb_playback()
573 test_bit(DISCONNECTED, &ua->states)); in start_usb_playback()
574 if (test_bit(DISCONNECTED, &ua->states)) { in start_usb_playback()
578 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) { in start_usb_playback()
597 set_bit(USB_PLAYBACK_RUNNING, &ua->states); in start_usb_playback()
606 if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) in abort_alsa_capture()
612 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) in abort_alsa_playback()
665 set_bit(ALSA_CAPTURE_OPEN, &ua->states); in capture_pcm_open()
689 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) in playback_pcm_open()
693 set_bit(ALSA_PLAYBACK_OPEN, &ua->states); in playback_pcm_open()
704 clear_bit(ALSA_CAPTURE_OPEN, &ua->states); in capture_pcm_close()
705 if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states)) in capture_pcm_close()
717 clear_bit(ALSA_PLAYBACK_OPEN, &ua->states); in playback_pcm_close()
718 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) in playback_pcm_close()
768 test_bit(CAPTURE_URB_COMPLETED, &ua->states) || in capture_pcm_prepare()
769 !test_bit(USB_CAPTURE_RUNNING, &ua->states)); in capture_pcm_prepare()
770 if (test_bit(DISCONNECTED, &ua->states)) in capture_pcm_prepare()
772 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) in capture_pcm_prepare()
795 test_bit(PLAYBACK_URB_COMPLETED, &ua->states) || in playback_pcm_prepare()
796 !test_bit(USB_PLAYBACK_RUNNING, &ua->states)); in playback_pcm_prepare()
797 if (test_bit(DISCONNECTED, &ua->states)) in playback_pcm_prepare()
799 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in playback_pcm_prepare()
814 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) in capture_pcm_trigger()
816 set_bit(ALSA_CAPTURE_RUNNING, &ua->states); in capture_pcm_trigger()
819 clear_bit(ALSA_CAPTURE_RUNNING, &ua->states); in capture_pcm_trigger()
832 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) in playback_pcm_trigger()
834 set_bit(ALSA_PLAYBACK_RUNNING, &ua->states); in playback_pcm_trigger()
837 clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states); in playback_pcm_trigger()
1314 set_bit(DISCONNECTED, &ua->states); in ua101_disconnect()