Lines Matching refs:test_bit
197 if (!test_bit(WDM_OVERFLOW, &desc->flags)) { in wdm_in_callback()
274 && !test_bit(WDM_DISCONNECTING, &desc->flags) in wdm_int_callback()
275 && !test_bit(WDM_SUSPENDING, &desc->flags)) { in wdm_int_callback()
364 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { in wdm_write()
376 r = wait_event_interruptible(desc->wait, !test_bit(WDM_IN_USE, in wdm_write()
379 if (test_bit(WDM_IN_USE, &desc->flags)) in wdm_write()
382 if (test_bit(WDM_RESETTING, &desc->flags)) in wdm_write()
486 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { in wdm_read()
490 if (test_bit(WDM_OVERFLOW, &desc->flags)) { in wdm_read()
497 if (!test_bit(WDM_READ, &desc->flags)) { in wdm_read()
504 test_bit(WDM_READ, &desc->flags)); in wdm_read()
508 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { in wdm_read()
512 if (test_bit(WDM_RESETTING, &desc->flags)) { in wdm_read()
534 if (!test_bit(WDM_READ, &desc->flags)) { /* lost race */ in wdm_read()
580 wait_event(desc->wait, !test_bit(WDM_IN_USE, &desc->flags)); in wdm_flush()
583 if (desc->werr < 0 && !test_bit(WDM_DISCONNECTING, &desc->flags)) in wdm_flush()
597 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { in wdm_poll()
602 if (test_bit(WDM_READ, &desc->flags)) in wdm_poll()
606 if (!test_bit(WDM_IN_USE, &desc->flags)) in wdm_poll()
629 if (test_bit(WDM_DISCONNECTING, &desc->flags)) in wdm_open()
675 if (!test_bit(WDM_DISCONNECTING, &desc->flags)) { in wdm_release()
736 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { in wdm_rxwork()
746 if (!test_bit(WDM_DISCONNECTING, &desc->flags)) in wdm_rxwork()
1010 (test_bit(WDM_IN_USE, &desc->flags) in wdm_suspend()
1011 || test_bit(WDM_RESPONDING, &desc->flags))) { in wdm_suspend()