/linux-4.1.27/arch/mn10300/lib/ |
H A D | bitops.c | 27 if (test_and_clear_bit(nr, addr)) change_bit() 46 if (test_and_clear_bit(nr, addr)) test_and_change_bit()
|
/linux-4.1.27/drivers/media/pci/cx23885/ |
H A D | cx23885-ir.c | 40 if (test_and_clear_bit(CX23885_IR_RX_SW_FIFO_OVERRUN, notifications)) cx23885_ir_rx_work_handler() 42 if (test_and_clear_bit(CX23885_IR_RX_HW_FIFO_OVERRUN, notifications)) cx23885_ir_rx_work_handler() 44 if (test_and_clear_bit(CX23885_IR_RX_END_OF_RX_DETECTED, notifications)) cx23885_ir_rx_work_handler() 46 if (test_and_clear_bit(CX23885_IR_RX_FIFO_SERVICE_REQ, notifications)) cx23885_ir_rx_work_handler() 63 if (test_and_clear_bit(CX23885_IR_TX_FIFO_SERVICE_REQ, notifications)) cx23885_ir_tx_work_handler()
|
/linux-4.1.27/drivers/isdn/mISDN/ |
H A D | hwchannel.c | 29 if (test_and_clear_bit(FLG_RECVQUEUE, &dch->Flags)) { dchannel_bh() 39 if (test_and_clear_bit(FLG_PHCHANGE, &dch->Flags)) { dchannel_bh() 52 if (test_and_clear_bit(FLG_RECVQUEUE, &bch->Flags)) { bchannel_bh() 140 test_and_clear_bit(FLG_TX_BUSY, &ch->Flags); mISDN_clear_bchannel() 141 test_and_clear_bit(FLG_TX_NEXT, &ch->Flags); mISDN_clear_bchannel() 142 test_and_clear_bit(FLG_ACTIVE, &ch->Flags); mISDN_clear_bchannel() 143 test_and_clear_bit(FLG_FILLEMPTY, &ch->Flags); mISDN_clear_bchannel() 144 test_and_clear_bit(FLG_TX_EMPTY, &ch->Flags); mISDN_clear_bchannel() 145 test_and_clear_bit(FLG_RX_OFF, &ch->Flags); mISDN_clear_bchannel() 179 test_and_clear_bit(FLG_FILLEMPTY, &bch->Flags); mISDN_ctrl_bchannel() 188 test_and_clear_bit(FLG_RX_OFF, &bch->Flags); mISDN_ctrl_bchannel() 341 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); get_next_dframe() 377 test_and_clear_bit(FLG_TX_NEXT, &bch->Flags); get_next_bframe() 382 test_and_clear_bit(FLG_TX_NEXT, &bch->Flags); get_next_bframe() 387 test_and_clear_bit(FLG_TX_BUSY, &bch->Flags); get_next_bframe()
|
H A D | layer1.c | 183 if (test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags)) l1_info4_ind() 186 if (test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags)) l1_info4_ind() 198 test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags); l1_timer3() 199 if (test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags)) { l1_timer3() 200 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) l1_timer3() 215 test_and_clear_bit(FLG_L1_ACTTIMER, &l1->Flags); l1_timer_act() 225 test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags); l1_timer_deact() 226 test_and_clear_bit(FLG_L1_ACTIVATED, &l1->Flags); l1_timer_deact() 227 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) l1_timer_deact() 251 test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags); l1_activate_no() 252 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) l1_activate_no()
|
H A D | stack.c | 224 test_and_clear_bit(mISDN_STACK_WORK, &st->status); mISDNStackd() 225 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); mISDNStackd() 231 test_and_clear_bit(mISDN_STACK_WORK, mISDNStackd() 257 test_and_clear_bit(mISDN_STACK_WORK, mISDNStackd() 259 test_and_clear_bit(mISDN_STACK_RUNNING, mISDNStackd() 266 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); mISDNStackd() 268 test_and_clear_bit(mISDN_STACK_CLEARING, &st->status); mISDNStackd() 271 if (test_and_clear_bit(mISDN_STACK_RESTART, &st->status)) { mISDNStackd() 272 test_and_clear_bit(mISDN_STACK_STOPPED, &st->status); mISDNStackd() 287 test_and_clear_bit(mISDN_STACK_ACTIVE, &st->status); mISDNStackd() 295 test_and_clear_bit(mISDN_STACK_WAKEUP, &st->status); mISDNStackd() 298 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); mISDNStackd() 320 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); mISDNStackd() 321 test_and_clear_bit(mISDN_STACK_ACTIVE, &st->status); mISDNStackd() 322 test_and_clear_bit(mISDN_STACK_ABORT, &st->status); mISDNStackd()
|
H A D | layer2.c | 266 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); ph_data_confirm() 278 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); ph_data_confirm() 281 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); ph_data_confirm() 340 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) clear_peer_busy() 341 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); clear_peer_busy() 393 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); clear_exception() 394 test_and_clear_bit(FLG_REJEXC, &l2->flag); clear_exception() 395 test_and_clear_bit(FLG_OWN_BUSY, &l2->flag); clear_exception() 681 if (test_and_clear_bit(FLG_T200_RUN, &l2->flag)) stop_t200() 690 if (test_and_clear_bit(FLG_PEND_REL, &l2->flag)) st5_dl_release_l2l3() 717 test_and_clear_bit(FLG_PEND_REL, &l2->flag); establishlink() 746 test_and_clear_bit(FLG_L3_INIT, &l2->flag); l2_mdl_error_dm() 761 test_and_clear_bit(FLG_L3_INIT, &l2->flag); l2_st8_mdl_error_dm() 863 test_and_clear_bit(FLG_PEND_REL, &l2->flag); l2_discard_i_setl3() 1019 if (test_and_clear_bit(FLG_PEND_REL, &l2->flag)) l2_connected() 1021 if (test_and_clear_bit(FLG_L3_INIT, &l2->flag)) { l2_connected() 1139 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); enquiry_response() 1149 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); transmit_enquiry() 1161 test_and_clear_bit(FLG_L3_INIT, &l2->flag); nrerrorrecovery() 1313 test_and_clear_bit(FLG_REJEXC, &l2->flag); l2_got_iframe() 1328 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); l2_got_iframe() 1349 if (test_and_clear_bit(FLG_ACK_PEND, &l2->flag)) l2_got_iframe() 1382 test_and_clear_bit(FLG_T200_RUN, &l2->flag); l2_st5_tout_200() 1409 test_and_clear_bit(FLG_T200_RUN, &l2->flag); l2_st6_tout_200() 1432 test_and_clear_bit(FLG_T200_RUN, &l2->flag); l2_st7_tout_200() 1449 test_and_clear_bit(FLG_T200_RUN, &l2->flag); l2_st8_tout_200() 1453 test_and_clear_bit(FLG_L3_INIT, &l2->flag); l2_st8_tout_200() 1532 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); l2_pull_iqueue() 1605 test_and_clear_bit(FLG_L3_INIT, &l2->flag); l2_got_FRMR() 1684 if (test_and_clear_bit(FLG_ESTAB_PEND, &l2->flag)) l2_st14_persistent_da() 1746 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); l2_set_own_busy() 1758 if (!test_and_clear_bit(FLG_OWN_BUSY, &l2->flag)) { l2_clear_own_busy() 1760 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); l2_clear_own_busy() 1781 test_and_clear_bit(FLG_L3_INIT, &l2->flag); l2_frame_error_reest() 1996 if (test_and_clear_bit(FLG_ESTAB_PEND, &l2->flag)) l2_send() 2001 test_and_clear_bit(FLG_L1_ACTIV, &l2->flag); l2_send()
|
H A D | tei.c | 347 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); do_send() 354 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); do_send() 377 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); do_ack() 1133 test_and_clear_bit(MGR_PH_ACTIVE, &mgr->options); mgr_send() 1152 test_and_clear_bit(OPTION_L1_HOLD, &mgr->options); free_teimanager() 1164 test_and_clear_bit(MGR_OPT_NETWORK, &mgr->options); free_teimanager() 1173 test_and_clear_bit(MGR_OPT_USER, &mgr->options); free_teimanager() 1191 test_and_clear_bit(OPTION_L2_CLEANUP, &mgr->options); ctrl_teimanager() 1197 test_and_clear_bit(OPTION_L1_HOLD, &mgr->options); ctrl_teimanager()
|
H A D | core.c | 277 test_and_clear_bit(dev->id, (u_long *)&device_ids); mISDN_unregister_device()
|
H A D | l1oip_core.c | 793 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); l1oip_socket_close() 867 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); l1oip_timeout() 1174 test_and_clear_bit(FLG_ACTIVE, &bch->Flags); handle_bmsg() 1223 test_and_clear_bit(FLG_OPEN, &bch->Flags); l1oip_bctrl() 1224 test_and_clear_bit(FLG_ACTIVE, &bch->Flags); l1oip_bctrl()
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | hscx.c | 129 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hscx_l2l1() 146 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); hscx_l2l1() 147 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hscx_l2l1() 159 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_hscxstate() 169 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_hscxstate() 181 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); open_hscxstate() 187 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); open_hscxstate() 196 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_hscxstate()
|
H A D | jade.c | 164 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); jade_l2l1() 181 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); jade_l2l1() 182 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); jade_l2l1() 194 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_jadestate() 204 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_jadestate() 216 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); open_jadestate() 222 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); open_jadestate() 231 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_jadestate()
|
H A D | arcofi.c | 82 if (test_and_clear_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { arcofi_fsm() 99 if (test_and_clear_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { arcofi_fsm() 121 if (test_and_clear_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { clear_arcofi()
|
H A D | isdnl2.c | 119 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) clear_peer_busy() 120 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); clear_peer_busy() 177 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); clear_exception() 178 test_and_clear_bit(FLG_REJEXC, &l2->flag); clear_exception() 179 test_and_clear_bit(FLG_OWN_BUSY, &l2->flag); clear_exception() 473 if (test_and_clear_bit(FLG_T200_RUN, &st->l2.flag)) stop_t200() 482 if (test_and_clear_bit(FLG_PEND_REL, &st->l2.flag)) st5_dl_release_l2l3() 510 test_and_clear_bit(FLG_PEND_REL, &st->l2.flag); establishlink() 538 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); l2_mdl_error_dm() 554 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); l2_st8_mdl_error_dm() 648 test_and_clear_bit(FLG_PEND_REL, &st->l2.flag); l2_discard_i_setl3() 793 if (test_and_clear_bit(FLG_PEND_REL, &st->l2.flag)) l2_connected() 796 if (test_and_clear_bit(FLG_L3_INIT, &st->l2.flag)) { l2_connected() 908 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); enquiry_response() 918 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); transmit_enquiry() 930 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); nrerrorrecovery() 1090 test_and_clear_bit(FLG_REJEXC, &l2->flag); l2_got_iframe() 1106 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); l2_got_iframe() 1127 if (test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag)) l2_got_iframe() 1157 test_and_clear_bit(FLG_T200_RUN, &st->l2.flag); l2_st5_tout_200() 1181 test_and_clear_bit(FLG_T200_RUN, &st->l2.flag); l2_st6_tout_200() 1202 test_and_clear_bit(FLG_T200_RUN, &st->l2.flag); l2_st7_tout_200() 1220 test_and_clear_bit(FLG_T200_RUN, &st->l2.flag); l2_st8_tout_200() 1224 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); l2_st8_tout_200() 1300 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); l2_pull_iqueue() 1377 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); l2_got_FRMR() 1451 if (test_and_clear_bit(FLG_ESTAB_PEND, &st->l2.flag)) l2_st14_persistent_da() 1500 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); l2_set_own_busy() 1509 if (!test_and_clear_bit(FLG_OWN_BUSY, &st->l2.flag)) { l2_clear_own_busy() 1511 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); l2_clear_own_busy() 1530 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); l2_frame_error_reest() 1688 test_and_clear_bit(FLG_DCHAN_BUSY, &st->l2.flag); isdnl2_l1l2() 1693 if (test_and_clear_bit(FLG_ESTAB_PEND, &st->l2.flag)) isdnl2_l1l2() 1698 test_and_clear_bit(FLG_L1_ACTIV, &st->l2.flag); isdnl2_l1l2()
|
H A D | amd7930_fn.c | 242 if (test_and_clear_bit(D_CLEARBUSY, &cs->event)) { Amd7930_bh() 251 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) { Amd7930_bh() 257 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) { Amd7930_bh() 263 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) { Amd7930_bh() 442 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) Amd7930_interrupt() 444 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) Amd7930_interrupt() 460 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) Amd7930_interrupt() 462 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) Amd7930_interrupt() 481 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) Amd7930_interrupt() 483 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) Amd7930_interrupt() 510 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) Amd7930_interrupt() 512 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) Amd7930_interrupt() 621 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); Amd7930_l1hw() 657 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) Amd7930_l1hw() 659 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) Amd7930_l1hw() 722 test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags); dbusy_timer_handler()
|
H A D | hfc_2bds0.c | 334 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfc_fill_fifo() 345 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfc_send_data() 398 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); main_rec_2bds0() 484 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hfc_l2l1() 501 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); hfc_l2l1() 502 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfc_l2l1() 514 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_2bs0() 520 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_2bs0() 533 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_hfcstate() 559 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) { hfcd_bh() 580 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) hfcd_bh() 582 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) hfcd_bh() 684 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); receive_dmsg() 817 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfc2bds0_interrupt() 824 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfc2bds0_interrupt() 841 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfc2bds0_interrupt() 848 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfc2bds0_interrupt() 861 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) hfc2bds0_interrupt() 863 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) hfc2bds0_interrupt() 869 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfc2bds0_interrupt() 884 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfc2bds0_interrupt() 931 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); HFCD_l1hw() 959 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); HFCD_l1hw() 970 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); HFCD_l1hw()
|
H A D | isdnl1.c | 162 if (test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) L1activated() 182 test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags); L1deactivated() 195 if (test_and_clear_bit(FLG_L1_PULL_REQ, &stptr->l1.Flags)) { DChannel_proc_xmt() 280 if (test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags)) BChannel_proc_xmt() 325 if (test_and_clear_bit(B_RCVBUFREADY, &bcs->event)) BChannel_bh() 327 if (test_and_clear_bit(B_XMTBUFREADY, &bcs->event)) BChannel_bh() 329 if (test_and_clear_bit(B_ACKPENDING, &bcs->event)) BChannel_bh() 535 if (test_and_clear_bit(FLG_L1_DEACTTIMER, &st->l1.Flags)) l1_info4_ind() 538 if (test_and_clear_bit(FLG_L1_T3RUN, &st->l1.Flags)) l1_info4_ind() 550 test_and_clear_bit(FLG_L1_T3RUN, &st->l1.Flags); l1_timer3() 551 if (test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) l1_timer3() 568 test_and_clear_bit(FLG_L1_ACTTIMER, &st->l1.Flags); l1_timer_act() 578 test_and_clear_bit(FLG_L1_DEACTTIMER, &st->l1.Flags); l1_timer_deact() 579 test_and_clear_bit(FLG_L1_ACTIVATED, &st->l1.Flags); l1_timer_deact() 598 test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags); l1_activate_no()
|
H A D | w6692.c | 109 if (test_and_clear_bit(D_CLEARBUSY, &cs->event)) { W6692_bh() 118 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) W6692_bh() 120 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) W6692_bh() 122 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) W6692_bh() 125 if (test_and_clear_bit(D_RX_MON1, &cs->event)) W6692_bh() 127 if (test_and_clear_bit(D_TX_MON1, &cs->event)) W6692_bh() 395 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); W6692B_interrupt() 456 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) W6692_interrupt() 458 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) W6692_interrupt() 488 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) W6692_interrupt() 490 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) W6692_interrupt() 618 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); W6692_l1hw() 660 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) W6692_l1hw() 662 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) W6692_l1hw() 706 test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags); dbusy_timer_handler() 789 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); W6692_l2l1() 806 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); W6692_l2l1() 807 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); W6692_l2l1() 819 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_w6692state() 829 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_w6692state() 841 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); open_w6692state() 847 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); open_w6692state() 856 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_w6692state()
|
H A D | icc.c | 87 if (test_and_clear_bit(D_CLEARBUSY, &cs->event)) { icc_bh() 96 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) icc_bh() 98 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) icc_bh() 100 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) icc_bh() 105 if (test_and_clear_bit(D_RX_MON1, &cs->event)) icc_bh() 107 if (test_and_clear_bit(D_TX_MON1, &cs->event)) icc_bh() 237 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) icc_interrupt() 239 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) icc_interrupt() 293 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) icc_interrupt() 295 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) icc_interrupt() 494 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); ICC_l1hw() 556 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) ICC_l1hw() 558 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) ICC_l1hw() 603 test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags); dbusy_timer_handler()
|
H A D | isac.c | 90 if (test_and_clear_bit(D_CLEARBUSY, &cs->event)) { isac_bh() 99 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) isac_bh() 101 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) isac_bh() 103 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) isac_bh() 108 if (test_and_clear_bit(D_RX_MON1, &cs->event)) isac_bh() 110 if (test_and_clear_bit(D_TX_MON1, &cs->event)) isac_bh() 240 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) isac_interrupt() 242 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) isac_interrupt() 296 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) isac_interrupt() 298 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) isac_interrupt() 496 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); ISAC_l1hw() 554 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) ISAC_l1hw() 556 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) ISAC_l1hw() 602 test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags); dbusy_timer_handler()
|
H A D | hfc_sx.c | 468 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); receive_dmsg() 498 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); main_rec_hfcsx() 552 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfcsx_fill_fifo() 685 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); receive_emsg() 772 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcsx_interrupt() 779 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcsx_interrupt() 796 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcsx_interrupt() 803 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcsx_interrupt() 816 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) hfcsx_interrupt() 818 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) hfcsx_interrupt() 824 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcsx_interrupt() 839 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcsx_interrupt() 899 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); HFCSX_l1hw() 927 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); HFCSX_l1hw() 938 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); HFCSX_l1hw() 1022 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcsx_send_data() 1173 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hfcsx_l2l1() 1190 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); hfcsx_l2l1() 1191 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfcsx_l2l1() 1206 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_hfcsx() 1212 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_hfcsx() 1228 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_hfcsxstate() 1261 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) { hfcsx_bh() 1322 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) hfcsx_bh() 1324 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) hfcsx_bh()
|
H A D | hfc_pci.c | 390 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); receive_dmsg() 509 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); main_rec_hfcpci() 662 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfcpci_fill_fifo() 727 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfcpci_fill_fifo() 919 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); receive_emsg() 1007 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcpci_interrupt() 1014 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcpci_interrupt() 1031 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcpci_interrupt() 1038 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcpci_interrupt() 1051 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) hfcpci_interrupt() 1053 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) hfcpci_interrupt() 1059 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcpci_interrupt() 1074 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcpci_interrupt() 1134 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); HFCPCI_l1hw() 1162 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); HFCPCI_l1hw() 1173 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); HFCPCI_l1hw() 1259 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); hfcpci_send_data() 1421 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hfcpci_l2l1() 1438 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); hfcpci_l2l1() 1439 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfcpci_l2l1() 1454 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_hfcpci() 1460 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_hfcpci() 1476 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_hfcpcistate() 1510 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) { hfcpci_bh() 1568 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) hfcpci_bh() 1570 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) hfcpci_bh()
|
H A D | isar.c | 446 if (test_and_clear_bit(B_LL_NOCARRIER, &bcs->event)) isar_bh() 448 if (test_and_clear_bit(B_LL_CONNECT, &bcs->event)) isar_bh() 450 if (test_and_clear_bit(B_LL_OK, &bcs->event)) isar_bh() 644 test_and_clear_bit(BC_FLG_FRH_WAIT, &bcs->Flag); isar_rcv_frame() 656 if (test_and_clear_bit(BC_FLG_FRH_WAIT, &bcs->Flag)) { isar_rcv_frame() 795 if (test_and_clear_bit(BC_FLG_DLEETX, &bcs->Flag)) { send_frames() 796 if (test_and_clear_bit(BC_FLG_LASTDATA, &bcs->Flag)) { send_frames() 797 if (test_and_clear_bit(BC_FLG_NMD_DATA, &bcs->Flag)) { send_frames() 807 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); send_frames() 848 if (!test_and_clear_bit(ISAR_RATE_REQ, &bcs->hw.isar.reg->Flags)) isar_pump_status_rsp() 1116 if (test_and_clear_bit(BC_FLG_LL_OK, &bcs->Flag)) { isar_pump_statev_fax() 1274 test_and_clear_bit(BC_FLG_FTI_RUN, &bcs->Flag); ftimer_handler() 1275 if (test_and_clear_bit(BC_FLG_LL_CONN, &bcs->Flag)) { ftimer_handler() 1278 if (test_and_clear_bit(BC_FLG_FTI_FTS, &bcs->Flag)) { ftimer_handler() 1448 test_and_clear_bit(ISAR_DP1_USE, &bcs->hw.isar.reg->Flags); modeisar() 1450 test_and_clear_bit(ISAR_DP2_USE, &bcs->hw.isar.reg->Flags); modeisar() 1465 test_and_clear_bit(BC_FLG_FRH_WAIT, &bcs->Flag); isar_pump_cmd() 1489 test_and_clear_bit(BC_FLG_FRH_WAIT, &bcs->Flag); isar_pump_cmd() 1513 test_and_clear_bit(BC_FLG_FRH_WAIT, &bcs->Flag); isar_pump_cmd() 1629 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); isar_l2l1() 1641 test_and_clear_bit(BC_FLG_ORIG, &bcs->Flag); isar_l2l1() 1678 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); isar_l2l1() 1679 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); isar_l2l1() 1693 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_isarstate() 1701 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_isarstate() 1722 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_isarstate()
|
H A D | netjet.c | 630 if (test_and_clear_bit(BC_FLG_NOFRAME, &bcs->Flag)) { netjet_fill_dma() 632 } else if (test_and_clear_bit(BC_FLG_HALF, &bcs->Flag)) { netjet_fill_dma() 653 } else if (test_and_clear_bit(BC_FLG_EMPTY, &bcs->Flag)) { netjet_fill_dma() 724 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); write_raw() 729 test_and_clear_bit(BC_FLG_HALF, &bcs->Flag); write_raw() 750 } else if (test_and_clear_bit(BC_FLG_NOFRAME, &bcs->Flag)) { write_raw() 756 } else if (test_and_clear_bit(BC_FLG_HALF, &bcs->Flag)) { write_raw() 822 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); tiger_l2l1() 843 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); tiger_l2l1() 844 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); tiger_l2l1() 857 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_tigerstate() 867 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_tigerstate() 891 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_tigerstate()
|
H A D | hfc_2bs0.c | 320 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfc_fill_fifo() 484 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hfc_l2l1() 501 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); hfc_l2l1() 502 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hfc_l2l1() 521 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_hfcstate() 524 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); close_hfcstate() 535 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_hfcstate()
|
H A D | avm_pci.c | 439 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); HDLC_irq() 515 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hdlc_l2l1() 532 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); hdlc_l2l1() 533 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hdlc_l2l1() 545 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_hdlcstate() 555 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_hdlcstate() 572 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); open_hdlcstate() 581 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); open_hdlcstate()
|
H A D | nj_s.c | 94 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); netjet_s_interrupt() 271 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); setup_netjet_s()
|
H A D | nj_u.c | 77 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); netjet_u_interrupt() 235 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); setup_netjet_u()
|
H A D | elsa_ser.c | 304 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); modem_fill() 430 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { close_elsastate() 441 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); close_elsastate() 573 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); modem_l2l1() 604 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); setstack_elsa()
|
H A D | callc.c | 858 if (test_and_clear_bit(FLG_START_B, &chanp->Flags)) { release_b_st() 1312 test_and_clear_bit(FLG_LLI_L1WAKEUP, &st->lli.flag); init_b_st() 1325 test_and_clear_bit(FLG_LLI_L2WAKEUP, &st->lli.flag); init_b_st() 1646 test_and_clear_bit(FLG_PTP, &csta->channel[0].d_st->l2.flag); HiSax_command() 1647 test_and_clear_bit(FLG_FIXED_TEI, &csta->channel[0].d_st->l2.flag); HiSax_command() 1657 test_and_clear_bit(FLG_FIXED_TEI, &chanp->d_st->l2.flag); HiSax_command()
|
H A D | config.c | 1658 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) hisax_bh() 1660 if (test_and_clear_bit(E_RCVBUFREADY, &cs->event)) hisax_bh() 1662 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) { hisax_bh() 1719 if (test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags)) { hisax_d_l1l2() 1772 if (test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags)) { hisax_b_l1l2() 1844 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hisax_b_l2l1()
|
H A D | enternow_pci.c | 297 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); enpci_interrupt() 401 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); setup_enternow_pci()
|
H A D | hscx_irq.c | 218 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); hscx_interrupt()
|
H A D | ipacx.c | 188 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) dch_l2l1() 372 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) dch_int() 374 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) dch_int() 764 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { bch_close_state()
|
H A D | jade_irq.c | 196 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); jade_interrupt()
|
H A D | st5481_b.c | 173 test_and_clear_bit(buf_nr, &b_out->busy); usb_b_out_complete()
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | bitops-llsc.h | 92 static inline int test_and_clear_bit(int nr, volatile void *addr) test_and_clear_bit() function 103 "movli.l @%2, %0 ! test_and_clear_bit \n\t" test_and_clear_bit()
|
H A D | bitops-grb.h | 105 static inline int test_and_clear_bit(int nr, volatile void * addr) test_and_clear_bit() function
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | sync_bitops.h | 21 #define sync_test_and_clear_bit(nr, p) test_and_clear_bit(nr, p)
|
H A D | bitops.h | 33 extern int test_and_clear_bit(int nr, volatile unsigned long *p);
|
/linux-4.1.27/arch/hexagon/include/asm/ |
H A D | bitops.h | 41 * test_and_clear_bit - clear a bit and return its old value 45 static inline int test_and_clear_bit(int nr, volatile void *addr) test_and_clear_bit() function 122 test_and_clear_bit(nr, addr); clear_bit() 146 test_and_clear_bit(nr, addr); __clear_bit() 162 return test_and_clear_bit(nr, addr); __test_and_clear_bit()
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | bitops_64.h | 19 int test_and_clear_bit(unsigned long nr, volatile unsigned long *addr);
|
H A D | bitops_32.h | 51 static inline int test_and_clear_bit(unsigned long nr, volatile unsigned long *addr) test_and_clear_bit() function
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | arm64ksyms.c | 61 EXPORT_SYMBOL(test_and_clear_bit); variable
|
/linux-4.1.27/include/asm-generic/bitops/ |
H A D | le.h | 84 return test_and_clear_bit(nr ^ BITOP_LE_SWIZZLE, addr); test_and_clear_bit_le()
|
H A D | atomic.h | 143 * test_and_clear_bit - Clear a bit and return its old value 151 static inline int test_and_clear_bit(int nr, volatile unsigned long *addr) test_and_clear_bit() function
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
H A D | hfcpci.c | 955 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); handle_nt_timer3() 979 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); ph_state_nt() 980 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); ph_state_nt() 997 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); ph_state_nt() 1007 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); ph_state_nt() 1008 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); ph_state_nt() 1011 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); ph_state_nt() 1014 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); ph_state_nt() 1020 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); ph_state_nt() 1021 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); ph_state_nt() 1027 if (!test_and_clear_bit(FLG_L2_ACTIVATED, ph_state_nt() 1032 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); ph_state_nt() 1100 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); hfc_l1callback() 1101 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) hfc_l1callback() 1113 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); hfc_l1callback() 1232 if (test_and_clear_bit(FLG_BUSY_TIMER, &hc->dch.Flags)) hfcpci_int() 1325 test_and_clear_bit(FLG_HDLC, &bch->Flags); mode_hfcpci() 1326 test_and_clear_bit(FLG_TRANSPARENT, &bch->Flags); mode_hfcpci() 1566 test_and_clear_bit(FLG_OPEN, &bch->Flags); hfc_bctrl() 1631 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); hfcpci_l2l1D() 1646 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); hfcpci_l2l1D() 1647 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) hfcpci_l2l1D() 1650 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) hfcpci_l2l1D()
|
H A D | mISDNipac.c | 221 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) isac_xpr_irq() 236 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) isac_retransmit() 595 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); isac_l1hw() 680 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); isac_l1cmd() 681 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) isac_l1cmd() 695 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); isac_l1cmd() 743 test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags); dbusy_timer_handler() 1032 test_and_clear_bit(FLG_TX_EMPTY, &hx->bch.Flags); hscx_xpr() 1248 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags); hscx_mode() 1249 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags); hscx_mode() 1284 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags); hscx_mode() 1285 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags); hscx_mode() 1320 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags); hscx_mode() 1321 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags); hscx_mode() 1414 test_and_clear_bit(FLG_OPEN, &bch->Flags); hscx_bctrl() 1508 test_and_clear_bit(FLG_FILLEMPTY, &bch->Flags); open_bchannel()
|
H A D | w6692.c | 329 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) d_retransmit() 332 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) d_retransmit() 391 if (test_and_clear_bit(FLG_BUSY_TIMER, &card->dch.Flags)) handle_txD() 621 test_and_clear_bit(FLG_HDLC, &wch->bch.Flags); w6692_mode() 622 test_and_clear_bit(FLG_TRANSPARENT, &wch->bch.Flags); w6692_mode() 660 test_and_clear_bit(FLG_TX_EMPTY, &wch->bch.Flags); send_next() 838 test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags); dbusy_timer_handler() 1056 test_and_clear_bit(FLG_OPEN, &bch->Flags); w6692_bctrl() 1105 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); w6692_l2l1D() 1151 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); w6692_l1callback() 1152 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) w6692_l1callback() 1166 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); w6692_l1callback()
|
H A D | mISDNisar.c | 710 test_and_clear_bit(FLG_TX_EMPTY, &ch->bch.Flags); send_next() 714 if (test_and_clear_bit(FLG_DLEETX, &ch->bch.Flags)) { send_next() 715 if (test_and_clear_bit(FLG_LASTDATA, send_next() 717 if (test_and_clear_bit(FLG_NMD_DATA, send_next() 772 if (!test_and_clear_bit(ISAR_RATE_REQ, &ch->is->Flags)) isar_pump_status_rsp() 998 if (test_and_clear_bit(FLG_LL_OK, &ch->bch.Flags)) isar_pump_statev_fax() 1154 test_and_clear_bit(FLG_FTI_RUN, &ch->bch.Flags); ftimer_handler() 1155 if (test_and_clear_bit(FLG_LL_CONN, &ch->bch.Flags)) ftimer_handler() 1293 test_and_clear_bit(FLG_HDLC, &ch->bch.Flags); modeisar() 1294 test_and_clear_bit(FLG_TRANSPARENT, &ch->bch.Flags); modeisar() 1341 test_and_clear_bit(ISAR_DP1_USE, &ch->is->Flags); modeisar() 1343 test_and_clear_bit(ISAR_DP2_USE, &ch->is->Flags); modeisar() 1590 test_and_clear_bit(FLG_OPEN, &bch->Flags); isar_bctrl() 1618 test_and_clear_bit(FLG_INITIALIZED, &isar->ch[0].bch.Flags); free_isar() 1619 test_and_clear_bit(FLG_INITIALIZED, &isar->ch[1].bch.Flags); free_isar()
|
H A D | hfcsusb.c | 337 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); hfcusb_l2l1D() 352 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); hfcusb_l2l1D() 355 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) hfcusb_l2l1D() 401 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); hfc_l1callback() 409 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); hfc_l1callback() 436 test_and_clear_bit(FLG_ACTIVE, &hw->dch.Flags); open_dchannel() 437 test_and_clear_bit(FLG_ACTIVE, &hw->ech.Flags); open_dchannel() 641 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); ph_state_nt() 642 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); ph_state_nt() 1814 test_and_clear_bit(FLG_OPEN, &bch->Flags); hfc_bctrl()
|
H A D | netjet.c | 230 test_and_clear_bit(FLG_HDLC, &bc->bch.Flags); mode_tiger() 231 test_and_clear_bit(FLG_TRANSPARENT, &bc->bch.Flags); mode_tiger() 625 test_and_clear_bit(FLG_TX_EMPTY, &bc->bch.Flags); bc_next_frame() 814 test_and_clear_bit(FLG_OPEN, &bch->Flags); nj_bctrl() 874 test_and_clear_bit(FLG_FILLEMPTY, &bch->Flags); open_bchannel()
|
H A D | avmfritz.c | 371 test_and_clear_bit(FLG_HDLC, &bch->Flags); modehdlc() 372 test_and_clear_bit(FLG_TRANSPARENT, &bch->Flags); modehdlc() 528 test_and_clear_bit(FLG_TX_EMPTY, &bch->Flags); HDLC_irq_xpr() 859 test_and_clear_bit(FLG_OPEN, &bch->Flags); avm_bctrl()
|
H A D | hfcmulti.c | 1096 test_and_clear_bit(HFC_CHIP_PLXSD, &hc->chip); /* prevent resync */ release_io_hfcmulti() 3018 test_and_clear_bit(FLG_HDLC, &hc->chan[ch].bch->Flags); mode_hfcmulti() 3019 test_and_clear_bit(FLG_TRANSPARENT, mode_hfcmulti() 3294 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); hfcm_l1callback() 3295 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) hfcm_l1callback() 3322 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); hfcm_l1callback() 3402 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); handle_dmsg() 3435 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); handle_dmsg() 3436 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) handle_dmsg() 3439 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) handle_dmsg() 3708 test_and_clear_bit(FLG_OPEN, &bch->Flags); hfcm_bctrl() 3778 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); ph_state_change() 3839 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); ph_state_change() 4376 test_and_clear_bit(HFC_CHIP_PCM_SLAVE, &hc->chip); setup_pci() 5106 test_and_clear_bit(HFC_CHIP_PCM_SLAVE, &hc->chip); hfcmulti_init()
|
/linux-4.1.27/arch/tile/include/asm/ |
H A D | bitops_32.h | 92 * test_and_clear_bit - Clear a bit and return its old value 99 static inline int test_and_clear_bit(unsigned nr, volatile unsigned long *addr) test_and_clear_bit() function
|
H A D | bitops_64.h | 67 static inline int test_and_clear_bit(unsigned nr, volatile unsigned long *addr) test_and_clear_bit() function
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | notify.c | 40 test_and_clear_bit(NVKM_NOTIFY_USER, ¬ify->flags)) { nvkm_notify_put() 76 !test_and_clear_bit(NVKM_NOTIFY_USER, ¬ify->flags)) { nvkm_notify_func()
|
/linux-4.1.27/drivers/isdn/act2000/ |
H A D | act2000_isa.c | 250 test_and_clear_bit(ACT2000_LOCK_RX, (void *) &card->ilock); act2000_isa_receive() 290 test_and_clear_bit(ACT2000_LOCK_RX, (void *) &card->ilock); act2000_isa_receive() 320 test_and_clear_bit(ACT2000_LOCK_TX, (void *) &card->ilock); act2000_isa_send() 328 test_and_clear_bit(ACT2000_LOCK_TX, (void *) &card->ilock); act2000_isa_send()
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | bitops.h | 245 #define test_and_clear_bit(nr, vaddr) bclr_reg_test_and_clear_bit(nr, vaddr) macro 247 #define test_and_clear_bit(nr, vaddr) bclr_mem_test_and_clear_bit(nr, vaddr) macro 249 #define test_and_clear_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ macro 254 #define __test_and_clear_bit(nr, vaddr) test_and_clear_bit(nr, vaddr)
|
/linux-4.1.27/arch/metag/include/asm/ |
H A D | bitops.h | 70 static inline int test_and_clear_bit(unsigned int bit, test_and_clear_bit() function
|
/linux-4.1.27/fs/ext2/ |
H A D | file.c | 81 if (ret == -EIO || test_and_clear_bit(AS_EIO, &mapping->flags)) { ext2_fsync()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | bitops.h | 330 * test_and_clear_bit - Clear a bit and return its old value 337 static inline int test_and_clear_bit(unsigned long nr, test_and_clear_bit() function 351 "1: " __LL "%0, %1 # test_and_clear_bit \n" test_and_clear_bit() 368 " " __LL "%0, %1 # test_and_clear_bit \n" test_and_clear_bit() 384 " " __LL "%0, %1 # test_and_clear_bit \n" test_and_clear_bit()
|
/linux-4.1.27/fs/hfs/ |
H A D | mdb.c | 266 if (test_and_clear_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags)) { hfs_mdb_commit() 283 if (test_and_clear_bit(HFS_FLG_ALT_MDB_DIRTY, &HFS_SB(sb)->flags) && hfs_mdb_commit() 300 if (test_and_clear_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags)) { hfs_mdb_commit()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
H A D | ivtv-irq.c | 106 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_PIO, &itv->i_flags)) ivtv_irq_work_handler() 109 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_VBI, &itv->i_flags)) ivtv_irq_work_handler() 112 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_YUV, &itv->i_flags)) ivtv_irq_work_handler() 115 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_PCM, &itv->i_flags)) ivtv_irq_work_handler() 644 if (test_and_clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags)) { ivtv_irq_enc_dma_complete() 673 if (test_and_clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags)) { ivtv_irq_enc_pio_complete() 1036 if (!test_and_clear_bit(IVTV_F_S_DMA_PENDING, &s->s_flags)) ivtv_irq_handler() 1056 if (!test_and_clear_bit(IVTV_F_S_PIO_PENDING, &s->s_flags)) ivtv_irq_handler() 1064 if (test_and_clear_bit(IVTV_F_I_HAVE_WORK, &itv->i_flags)) { ivtv_irq_handler()
|
H A D | ivtv-vbi.c | 523 if (test_and_clear_bit(IVTV_F_I_UPDATE_WSS, &itv->i_flags)) { ivtv_vbi_work_handler() 546 if (test_and_clear_bit(IVTV_F_I_UPDATE_VPS, &itv->i_flags)) { ivtv_vbi_work_handler()
|
H A D | ivtv-ioctl.c | 268 if (test_and_clear_bit(IVTV_F_I_DEC_PAUSED, &itv->i_flags)) { ivtv_video_command() 309 if (test_and_clear_bit(IVTV_F_I_DEC_PAUSED, &itv->i_flags)) { ivtv_video_command() 1330 if (!test_and_clear_bit(IVTV_F_I_ENC_PAUSED, &itv->i_flags)) ivtv_encoder_cmd() 1749 if (test_and_clear_bit(IVTV_F_I_EV_DEC_STOPPED, &itv->i_flags)) ivtv_decoder_ioctls() 1751 else if (test_and_clear_bit(IVTV_F_I_EV_VSYNC, &itv->i_flags)) { ivtv_decoder_ioctls()
|
H A D | ivtv-fileops.c | 114 if (!test_and_clear_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { ivtv_release_stream() 136 if (!test_and_clear_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags)) { ivtv_release_stream() 484 if (test_and_clear_bit(IVTV_F_I_ENC_PAUSED, &itv->i_flags)) ivtv_start_capture()
|
/linux-4.1.27/drivers/nfc/nfcmrvl/ |
H A D | main.c | 47 if (!test_and_clear_bit(NFCMRVL_NCI_RUNNING, &priv->flags)) nfcmrvl_nci_close()
|
/linux-4.1.27/drivers/nfc/st21nfcb/ |
H A D | st21nfcb.c | 50 if (!test_and_clear_bit(ST21NFCB_NCI_RUNNING, &info->flags)) st21nfcb_nci_close()
|
/linux-4.1.27/arch/sparc/lib/ |
H A D | ksyms.c | 123 EXPORT_SYMBOL(test_and_clear_bit); variable
|
/linux-4.1.27/drivers/char/pcmcia/ |
H A D | cm4040_cs.c | 154 test_and_clear_bit(BS_WRITABLE, wait_for_bulk_out_ready() 202 test_and_clear_bit(BS_READABLE, wait_for_bulk_in_ready() 425 if (test_and_clear_bit(BS_READABLE, &dev->buffer_status)) 427 if (test_and_clear_bit(BS_WRITABLE, &dev->buffer_status))
|
/linux-4.1.27/fs/hfsplus/ |
H A D | inode.c | 299 if (test_and_clear_bit(HFSPLUS_I_CAT_DIRTY, &hip->flags)) hfsplus_file_fsync() 302 if (test_and_clear_bit(HFSPLUS_I_EXT_DIRTY, &hip->flags)) { hfsplus_file_fsync() 309 if (test_and_clear_bit(HFSPLUS_I_ATTR_DIRTY, &hip->flags)) { hfsplus_file_fsync() 321 if (test_and_clear_bit(HFSPLUS_I_ALLOC_DIRTY, &hip->flags)) { hfsplus_file_fsync()
|
H A D | super.c | 214 if (test_and_clear_bit(HFSPLUS_SB_WRITEBACKUP, &sbi->flags)) { hfsplus_sync_fs() 455 } else if (test_and_clear_bit(HFSPLUS_SB_FORCE, &sbi->flags)) { hfsplus_fill_super()
|
/linux-4.1.27/include/net/irda/ |
H A D | irmod.h | 98 #define irda_unlock(lock) (test_and_clear_bit(0, (void *) (lock)))
|
/linux-4.1.27/include/linux/ |
H A D | thread_info.h | 86 return test_and_clear_bit(flag, (unsigned long *)&ti->flags); test_and_clear_ti_thread_flag()
|
/linux-4.1.27/arch/powerpc/platforms/pasemi/ |
H A D | dma_lib.c | 135 if (!test_and_clear_bit(bit, txch_free)) pasemi_alloc_tx_chan() 154 if (!test_and_clear_bit(bit, rxch_free)) pasemi_alloc_rx_chan() 395 if (!test_and_clear_bit(bit, flags_free)) pasemi_dma_alloc_flag() 460 if (!test_and_clear_bit(bit, fun_free)) pasemi_dma_alloc_fun()
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | bitops.h | 88 static inline int test_and_clear_bit(int nr, volatile unsigned long *addr) test_and_clear_bit() function
|
/linux-4.1.27/net/rxrpc/ |
H A D | ar-skbuff.c | 85 test_and_clear_bit(RXRPC_CALL_TX_SOFT_ACK, &call->flags)) { rxrpc_hard_ACK_data()
|
H A D | ar-ack.c | 1032 if (test_and_clear_bit(RXRPC_CALL_RCVD_ACKALL, &call->events)) { rxrpc_process_call() 1072 if (test_and_clear_bit(RXRPC_CALL_RESEND_TIMER, &call->events)) rxrpc_process_call() 1074 if (test_and_clear_bit(RXRPC_CALL_RESEND, &call->events)) rxrpc_process_call() 1153 if (test_and_clear_bit(RXRPC_CALL_SECURED, &call->events)) { rxrpc_process_call() 1190 if (test_and_clear_bit(RXRPC_CALL_ACCEPTED, &call->events)) { rxrpc_process_call() 1202 if (test_and_clear_bit(RXRPC_CALL_DRAIN_RX_OOS, &call->events)) { rxrpc_process_call() 1311 if (test_and_clear_bit(RXRPC_CALL_ACK_FINAL, &call->events)) rxrpc_process_call()
|
H A D | ar-connevent.c | 270 if (test_and_clear_bit(RXRPC_CONN_CHALLENGE, &conn->events)) { rxrpc_process_connection()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_intr.c | 203 if (test_and_clear_bit(QIB_CTXT_WAITING_RCV, &rcd->flag)) { qib_handle_urcv() 207 } else if (test_and_clear_bit(QIB_CTXT_WAITING_URG, qib_handle_urcv()
|
H A D | qib_uc.c | 349 if (test_and_clear_bit(QIB_R_REWIND_SGE, &qp->r_aflags)) qib_uc_rcv() 486 if (test_and_clear_bit(QIB_R_REWIND_SGE, &qp->r_aflags))
|
H A D | qib_ud.c | 205 if (!test_and_clear_bit(QIB_R_WRID_VALID, &qp->r_aflags)) qib_ud_loopback() 563 if (!test_and_clear_bit(QIB_R_WRID_VALID, &qp->r_aflags)) qib_ud_rcv()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvif/ |
H A D | notify.c | 54 test_and_clear_bit(NVIF_NOTIFY_USER, ¬ify->flags)) { nvif_notify_put() 95 !test_and_clear_bit(NVIF_NOTIFY_USER, ¬ify->flags)) { nvif_notify_func()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | sbc7240_wdt.c | 65 if (test_and_clear_bit(SBC7240_ENABLED_STATUS_BIT, &wdt_status)) { wdt_disable() 144 if (test_and_clear_bit(SBC7240_EXPECT_CLOSE_STATUS_BIT, &wdt_status) fop_close()
|
H A D | geodewdt.c | 91 if (!test_and_clear_bit(WDT_FLAGS_ORPHAN, &wdt_flags)) geodewdt_open()
|
H A D | it87_wdt.c | 379 if (test_and_clear_bit(WDTS_KEEPALIVE, &wdt_status)) wdt_get_status() 434 if (test_and_clear_bit(WDTS_EXPECTED, &wdt_status)) { wdt_release()
|
/linux-4.1.27/arch/mn10300/kernel/ |
H A D | irq.c | 79 if (!test_and_clear_bit(irq, irq_affinity_request)) { mn10300_cpupic_mask_ack() 120 if (!test_and_clear_bit(irq, irq_affinity_request)) { mn10300_cpupic_unmask_clear()
|
/linux-4.1.27/arch/avr32/include/asm/ |
H A D | bitops.h | 164 * test_and_clear_bit - Clear a bit and return its old value 171 static inline int test_and_clear_bit(int nr, volatile void * addr) test_and_clear_bit() function
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | bitops.h | 178 * test_and_clear_bit - Clear a bit and return its old value 185 static __inline__ int test_and_clear_bit(int nr, volatile void * addr) test_and_clear_bit() function
|
H A D | pgtable.h | 254 return test_and_clear_bit(_PAGE_BIT_ACCESSED, ptep); ptep_test_and_clear_young()
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | bitops.h | 192 #define test_and_clear_bit(nr,p) ATOMIC_BITOP(test_and_clear_bit,nr,p) macro
|
/linux-4.1.27/fs/dlm/ |
H A D | recoverd.c | 297 if (test_and_clear_bit(LSFL_RECOVER_DOWN, &ls->ls_flags)) { dlm_recoverd() 303 if (test_and_clear_bit(LSFL_RECOVER_WORK, &ls->ls_flags)) dlm_recoverd()
|
H A D | lowcomms.c | 443 if (test_and_clear_bit(CF_APP_LIMITED, &con->flags)) { lowcomms_write_space() 592 if (test_and_clear_bit(CF_INIT_PENDING, &con->flags)) { sctp_init_failed_foreach() 1688 if (test_and_clear_bit(CF_CONNECT_PENDING, &con->flags)) { process_send_sockets() 1692 if (test_and_clear_bit(CF_WRITE_PENDING, &con->flags)) process_send_sockets()
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs4state.c | 220 if (test_and_clear_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { nfs4_end_drain_slot_table() 1462 if (!test_and_clear_bit(ops->state_flag_bit, &state->flags)) nfs4_reclaim_open_state() 1616 if (!test_and_clear_bit(NFS_STATE_RECLAIM_REBOOT, nfs4_clear_reclaim_server() 1630 if (!test_and_clear_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state)) nfs4_state_clear_reclaim_reboot() 1726 if (!test_and_clear_bit(ops->owner_flag_bit, nfs4_do_reclaim() 1857 if (test_and_clear_bit(NFS4CLNT_SERVER_SCOPE_MISMATCH, &clp->cl_state)) nfs4_reclaim_lease() 1975 if (!test_and_clear_bit(NFS_MIG_IN_TRANSITION, nfs4_handle_migration() 2353 if (test_and_clear_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state)) { nfs4_state_manager() 2363 if (test_and_clear_bit(NFS4CLNT_BIND_CONN_TO_SESSION, nfs4_state_manager() 2372 if (test_and_clear_bit(NFS4CLNT_CHECK_LEASE, &clp->cl_state)) { nfs4_state_manager() 2380 if (test_and_clear_bit(NFS4CLNT_MOVED, &clp->cl_state)) { nfs4_state_manager() 2387 if (test_and_clear_bit(NFS4CLNT_LEASE_MOVED, &clp->cl_state)) { nfs4_state_manager() 2407 if (test_and_clear_bit(NFS4CLNT_RECLAIM_NOGRACE, &clp->cl_state)) { nfs4_state_manager() 2418 if (test_and_clear_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state)) { nfs4_state_manager()
|
H A D | pnfs.c | 272 if (test_and_clear_bit(fail_bit, &lo->plh_flags)) pnfs_layout_clear_fail_bit() 533 if (test_and_clear_bit(NFS_LSEG_VALID, &lseg->pls_flags)) { mark_lseg_invalid() 912 if (!test_and_clear_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) pnfs_clear_layoutcommit() 915 if (!test_and_clear_bit(NFS_LSEG_LAYOUTCOMMIT, &lseg->pls_flags)) pnfs_clear_layoutcommit() 1066 if (!lo || !test_and_clear_bit(NFS_LAYOUT_ROC, &lo->plh_flags) || pnfs_roc() 1100 test_and_clear_bit(NFS_LAYOUT_RETURN_BEFORE_CLOSE, pnfs_roc() 1168 test_and_clear_bit(NFS_LAYOUT_RETURN_BEFORE_CLOSE, pnfs_roc_drain() 2082 test_and_clear_bit(NFS_LSEG_LAYOUTCOMMIT, &lseg->pls_flags)) pnfs_list_write_lseg() 2187 if (!test_and_clear_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) pnfs_layoutcommit_inode()
|
H A D | delegation.c | 441 if (test_and_clear_bit(NFS_DELEGATION_RETURN, &delegation->flags)) nfs_delegation_need_return() 443 if (test_and_clear_bit(NFS_DELEGATION_RETURN_IF_CLOSED, &delegation->flags) && !ret) { nfs_delegation_need_return() 685 if (test_and_clear_bit(NFS_DELEGATION_REFERENCED, &delegation->flags)) nfs_mark_return_unreferenced_delegations()
|
/linux-4.1.27/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc.c | 349 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); s5p_mfc_handle_frame() 421 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); s5p_mfc_handle_frame() 468 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); s5p_mfc_handle_error() 522 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); s5p_mfc_handle_seq_done() 560 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); s5p_mfc_handle_init_buffers() 567 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); s5p_mfc_handle_init_buffers() 601 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); s5p_mfc_handle_stream_complete() 644 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); s5p_mfc_irq() 707 if (test_and_clear_bit(0, &dev->hw_lock) == 0) s5p_mfc_irq()
|
/linux-4.1.27/drivers/bluetooth/ |
H A D | hci_ldisc.c | 179 if (!test_and_clear_bit(HCI_UART_INIT_PENDING, &hu->hdev_flags)) hci_uart_init_work() 243 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) hci_uart_close() 388 if (test_and_clear_bit(HCI_UART_PROTO_SET, &hu->flags)) { hci_uart_tty_close()
|
H A D | btsdio.c | 232 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) btsdio_close()
|
H A D | btwilink.c | 239 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) ti_st_close()
|
H A D | hci_vhci.c | 68 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) vhci_close_dev()
|
H A D | bpa10x.c | 334 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) bpa10x_close()
|
/linux-4.1.27/fs/fscache/ |
H A D | operation.c | 71 if (test_and_clear_bit(FSCACHE_OP_WAITING, &op->flags)) fscache_run_op() 319 if (test_and_clear_bit(FSCACHE_OP_WAITING, &op->flags)) fscache_cancel_op() 352 if (test_and_clear_bit(FSCACHE_OP_WAITING, &op->flags)) fscache_cancel_all_ops()
|
H A D | cookie.c | 528 if (!test_and_clear_bit(FSCACHE_COOKIE_ENABLED, &cookie->flags)) __fscache_disable_cookie() 547 if (test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) __fscache_disable_cookie()
|
H A D | object.c | 615 if (test_and_clear_bit(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags)) fscache_lookup_failure() 688 test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) fscache_drop_object() 971 if (test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) _fscache_invalidate_object()
|
/linux-4.1.27/fs/gfs2/ |
H A D | glops.c | 147 if (!test_and_clear_bit(GLF_DIRTY, &gl->gl_flags)) rgrp_go_sync() 204 if (test_and_clear_bit(GIF_SW_PAGED, &ip->i_flags)) inode_go_sync() 208 if (!test_and_clear_bit(GLF_DIRTY, &gl->gl_flags)) inode_go_sync()
|
/linux-4.1.27/net/mac80211/ |
H A D | ht.c | 316 if (test_and_clear_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired)) ieee80211_ba_session_work() 321 if (test_and_clear_bit(tid, ieee80211_ba_session_work() 350 if (tid_tx && test_and_clear_bit(HT_AGG_STATE_WANT_STOP, ieee80211_ba_session_work()
|
H A D | mesh.c | 1285 if (test_and_clear_bit(MESH_WORK_GROW_MPATH_TABLE, &ifmsh->wrkq_flags)) ieee80211_mesh_work() 1288 if (test_and_clear_bit(MESH_WORK_GROW_MPP_TABLE, &ifmsh->wrkq_flags)) ieee80211_mesh_work() 1291 if (test_and_clear_bit(MESH_WORK_HOUSEKEEPING, &ifmsh->wrkq_flags)) ieee80211_mesh_work() 1294 if (test_and_clear_bit(MESH_WORK_ROOT, &ifmsh->wrkq_flags)) ieee80211_mesh_work() 1297 if (test_and_clear_bit(MESH_WORK_DRIFT_ADJUST, &ifmsh->wrkq_flags)) ieee80211_mesh_work() 1300 if (test_and_clear_bit(MESH_WORK_MBSS_CHANGED, &ifmsh->wrkq_flags)) ieee80211_mesh_work()
|
H A D | ocb.c | 149 if (test_and_clear_bit(OCB_WORK_HOUSEKEEPING, &ifocb->wrkq_flags)) ieee80211_ocb_work()
|
H A D | scan.c | 853 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); ieee80211_scan_work() 857 if (test_and_clear_bit(SCAN_COMPLETED, &local->scanning)) { ieee80211_scan_work() 858 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); ieee80211_scan_work()
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_mid.c | 319 if (test_and_clear_bit(VP_IDX_ACQUIRED, &vha->vp_flags)) { qla2x00_do_dpc_vp() 339 if ((test_and_clear_bit(RELOGIN_NEEDED, &vha->dpc_flags)) && qla2x00_do_dpc_vp() 350 if (test_and_clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags) && qla2x00_do_dpc_vp() 355 if (test_and_clear_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) { qla2x00_do_dpc_vp()
|
H A D | qla_os.c | 4838 if (test_and_clear_bit(ISP_UNRECOVERABLE, qla2x00_do_dpc() 4852 if (test_and_clear_bit(ISP_UNRECOVERABLE, qla2x00_do_dpc() 4865 if (test_and_clear_bit(FCOE_CTX_RESET_NEEDED, qla2x00_do_dpc() 4887 if (test_and_clear_bit(ISP_UNRECOVERABLE, qla2x00_do_dpc() 4904 if (test_and_clear_bit(FX00_TARGET_SCAN, qla2x00_do_dpc() 4919 if (test_and_clear_bit(FX00_HOST_INFO_RESEND, qla2x00_do_dpc() 4929 if (test_and_clear_bit(ISP_ABORT_NEEDED, qla2x00_do_dpc() 4950 if (test_and_clear_bit(FCPORT_UPDATE_NEEDED, qla2x00_do_dpc() 5001 if (test_and_clear_bit(RESET_MARKER_NEEDED, qla2x00_do_dpc() 5014 if ((test_and_clear_bit(RELOGIN_NEEDED, qla2x00_do_dpc() 5026 if (test_and_clear_bit(LOOP_RESYNC_NEEDED, qla2x00_do_dpc() 5058 if (test_and_clear_bit(BEACON_BLINK_NEEDED, qla2x00_do_dpc()
|
/linux-4.1.27/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_els.c | 42 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &rrq_req->req_flags)) { bnx2fc_rrq_compl() 131 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &els_req->req_flags)) { bnx2fc_l2_els_compl() 272 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &srr_req->req_flags)) { bnx2fc_srr_compl() 397 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &rec_req->req_flags)) { bnx2fc_rec_compl()
|
H A D | bnx2fc_tgt.c | 126 if (test_and_clear_bit(BNX2FC_FLAG_CTX_ALLOC_FAILURE, bnx2fc_offload_session() 185 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, bnx2fc_flush_active_ios() 249 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, bnx2fc_flush_active_ios()
|
H A D | bnx2fc_io.c | 54 if (test_and_clear_bit(BNX2FC_FLAG_ISSUE_RRQ, &io_req->req_flags)) { bnx2fc_cmd_timeout() 64 if (test_and_clear_bit(BNX2FC_FLAG_RETIRE_OXID, &io_req->req_flags)) { bnx2fc_cmd_timeout() 71 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, bnx2fc_cmd_timeout() 1425 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, bnx2fc_process_abts_compl() 1957 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, bnx2fc_process_scsi_cmd_compl()
|
/linux-4.1.27/drivers/scsi/libsas/ |
H A D | sas_event.c | 111 if (!test_and_clear_bit(ev, &d->pending)) sas_enable_revalidation()
|
/linux-4.1.27/drivers/input/joystick/iforce/ |
H A D | iforce-serio.c | 66 if (test_and_clear_bit(IFORCE_XMIT_AGAIN, iforce->xmit_flags)) iforce_serial_xmit()
|
H A D | iforce-packets.c | 233 } else if (test_and_clear_bit(FF_CORE_IS_PLAYED, iforce->core_effects[i].flags)) { iforce_process_packet()
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | bitops.h | 179 test_and_clear_bit(unsigned int bit, volatile unsigned long *p) test_and_clear_bit() function
|
/linux-4.1.27/drivers/usb/gadget/legacy/ |
H A D | mass_storage.c | 263 if (test_and_clear_bit(0, &msg_registered)) msg_cleanup()
|
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/ |
H A D | context.c | 180 if (test_and_clear_bit(SPU_SCHED_WAS_ACTIVE, &ctx->sched_flags) && spu_release_saved()
|
H A D | run.c | 389 if (unlikely(test_and_clear_bit(SPU_SCHED_NOTIFY_ACTIVE, spufs_run_spu()
|
/linux-4.1.27/arch/mips/lib/ |
H A D | bitops.c | 134 * called by test_and_clear_bit() if it cannot find a faster solution.
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | bitops.h | 131 #define test_and_clear_bit(nr, addr) __test_and_clear_bit((nr), (addr)) macro
|
H A D | pgtable.h | 351 return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte); ptep_test_and_clear_dirty() 360 return test_and_clear_bit(_PAGE_BIT_ACCESSED, &ptep->pte); ptep_test_and_clear_young()
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | cacheflush.h | 65 if (test_and_clear_bit(PG_dcache_dirty, &page->flags)) invalidate_kernel_vmap_range()
|
H A D | bitops.h | 80 static __inline__ int test_and_clear_bit(int nr, volatile unsigned long * addr) test_and_clear_bit() function
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
H A D | hostap_info.c | 486 if (test_and_clear_bit(PRISM2_INFO_PENDING_LINKSTATUS, handle_info_queue() 490 if (test_and_clear_bit(PRISM2_INFO_PENDING_SCANRESULTS, handle_info_queue()
|
/linux-4.1.27/arch/frv/include/asm/ |
H A D | bitops.h | 109 static inline int test_and_clear_bit(unsigned long nr, volatile void *addr) test_and_clear_bit() function 135 test_and_clear_bit(nr, addr); clear_bit()
|
/linux-4.1.27/security/keys/ |
H A D | gc.c | 202 if (test_and_clear_bit(KEY_GC_KEY_EXPIRED, &key_gc_flags)) key_garbage_collector() 205 if (test_and_clear_bit(KEY_GC_REAP_KEYTYPE, &key_gc_flags)) key_garbage_collector()
|
/linux-4.1.27/sound/soc/intel/atom/sst/ |
H A D | sst_pvt.c | 250 test_and_clear_bit(pvt_id, &sst->pvt_id); sst_prepare_and_post_msg() 298 test_and_clear_bit(pvt_id, &sst->pvt_id); sst_prepare_and_post_msg()
|
H A D | sst_stream.c | 223 test_and_clear_bit(pvt_id, &sst_drv_ctx->pvt_id); sst_send_byte_stream_mrfld()
|
/linux-4.1.27/net/bluetooth/rfcomm/ |
H A D | core.c | 465 if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { __rfcomm_dlc_close() 1805 if (test_and_clear_bit(RFCOMM_MSC_PENDING, &d->flags)) rfcomm_process_tx() 1864 if (test_and_clear_bit(RFCOMM_AUTH_ACCEPT, &d->flags)) { rfcomm_process_dlcs() 1882 } else if (test_and_clear_bit(RFCOMM_AUTH_REJECT, &d->flags)) { rfcomm_process_dlcs() 1996 if (test_and_clear_bit(RFCOMM_TIMED_OUT, &s->flags)) { rfcomm_process_sessions() 2128 if (test_and_clear_bit(RFCOMM_SEC_PENDING, &d->flags)) { rfcomm_security_cfm() 2148 if (!test_and_clear_bit(RFCOMM_AUTH_PENDING, &d->flags)) rfcomm_security_cfm()
|
/linux-4.1.27/drivers/media/pci/cx18/ |
H A D | cx18-fileops.c | 123 if (!test_and_clear_bit(CX18_F_S_CLAIMED, &s->s_flags)) { cx18_release_stream() 141 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { cx18_release_stream() 148 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { cx18_release_stream() 218 if (!test_and_clear_bit(CX18_F_M_NEED_SWAP, cx18_get_mdl() 555 if (test_and_clear_bit(CX18_F_I_ENC_PAUSED, &cx->i_flags)) cx18_start_capture()
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2x00dev.c | 102 if (!test_and_clear_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_disable_radio() 144 if (test_and_clear_bit(DELAYED_UPDATE_BEACON, &intf->delayed_flags)) { rt2x00lib_intf_scheduled_iter() 1128 if (!test_and_clear_bit(DEVICE_STATE_INITIALIZED, &rt2x00dev->flags)) rt2x00lib_uninitialize() 1220 if (!test_and_clear_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags)) rt2x00lib_stop() 1491 if (!test_and_clear_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00lib_suspend()
|
H A D | rt2x00usb.c | 290 if (!test_and_clear_bit(ENTRY_DATA_PENDING, &entry->flags) || rt2x00usb_kick_tx_entry() 364 if (!test_and_clear_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags)) rt2x00usb_interrupt_rxdone()
|
/linux-4.1.27/drivers/net/wan/ |
H A D | x25_asy.c | 117 if (!test_and_clear_bit(SLF_INUSE, &sl->flags)) x25_asy_free() 661 if (!test_and_clear_bit(SLF_ERROR, &sl->flags) && x25_asy_unesc() 672 if (test_and_clear_bit(SLF_ESCAPE, &sl->flags)) x25_asy_unesc()
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
H A D | perf_event_amd_ibs.c | 393 stopping = test_and_clear_bit(IBS_STARTED, pcpu->state); perf_ibs_stop() 443 if (!test_and_clear_bit(IBS_ENABLED, pcpu->state)) perf_ibs_del() 536 return test_and_clear_bit(IBS_STOPPING, pcpu->state) ? 1 : 0; perf_ibs_handle_irq()
|
/linux-4.1.27/drivers/usb/storage/ |
H A D | transport.c | 108 * and (2) test_and_clear_bit() prevents usb_unlink_urb() from being 168 if (test_and_clear_bit(US_FLIDX_URB_ACTIVE, &us->dflags)) { usb_stor_msg_common() 444 if (test_and_clear_bit(US_FLIDX_SG_ACTIVE, &us->dflags)) { usb_stor_bulk_transfer_sglist() 895 * let's wake it up. The test_and_clear_bit() call usb_stor_stop_transport() 898 if (test_and_clear_bit(US_FLIDX_URB_ACTIVE, &us->dflags)) { usb_stor_stop_transport() 904 if (test_and_clear_bit(US_FLIDX_SG_ACTIVE, &us->dflags)) { usb_stor_stop_transport()
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_vidi.c | 116 if (test_and_clear_bit(0, &ctx->irq_flags)) vidi_disable_vblank() 169 if (test_and_clear_bit(0, &ctx->irq_flags)) vidi_power_on()
|
H A D | exynos7_drm_decon.c | 273 if (test_and_clear_bit(0, &ctx->irq_flags)) { decon_disable_vblank() 644 if (test_and_clear_bit(0, &ctx->irq_flags)) { decon_poweron()
|
/linux-4.1.27/arch/x86/mm/ |
H A D | pgtable.c | 453 ret = test_and_clear_bit(_PAGE_BIT_ACCESSED, ptep_test_and_clear_young() 469 ret = test_and_clear_bit(_PAGE_BIT_ACCESSED, pmdp_test_and_clear_young()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | bitops.h | 243 * test_and_clear_bit - Clear a bit and return its old value 250 static inline int test_and_clear_bit(long nr, volatile unsigned long *addr) test_and_clear_bit() function
|
/linux-4.1.27/drivers/block/drbd/ |
H A D | drbd_state.c | 294 if (test_and_clear_bit(CL_ST_CHG_SUCCESS, &device->flags)) _req_st_cond() 297 if (test_and_clear_bit(CL_ST_CHG_FAIL, &device->flags)) _req_st_cond() 936 if (test_and_clear_bit(AL_SUSPENDED, &device->flags)) drbd_resume_al() 1456 was_io_error = test_and_clear_bit(WAS_IO_ERROR, &device->flags); 1474 if (test_and_clear_bit(FORCE_DETACH, &device->flags)) 1522 test_and_clear_bit(RESYNC_AFTER_NEG, &device->flags)) { 1804 if (test_and_clear_bit(CONN_WD_ST_CHG_OKAY, &connection->flags)) _conn_rq_cond() 1807 if (test_and_clear_bit(CONN_WD_ST_CHG_FAIL, &connection->flags)) _conn_rq_cond()
|
/linux-4.1.27/drivers/md/ |
H A D | raid5.c | 318 if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) do_release_stripe() 836 if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) stripe_add_to_batch_list() 841 if (test_and_clear_bit(STRIPE_BIT_DELAY, &sh->state)) { stripe_add_to_batch_list() 898 if (test_and_clear_bit(R5_Wantwrite, &sh->dev[i].flags)) { ops_run_io() 899 if (test_and_clear_bit(R5_WantFUA, &sh->dev[i].flags)) ops_run_io() 905 } else if (test_and_clear_bit(R5_Wantread, &sh->dev[i].flags)) ops_run_io() 907 else if (test_and_clear_bit(R5_WantReplace, ops_run_io() 913 if (test_and_clear_bit(R5_SyncIO, &sh->dev[i].flags)) ops_run_io() 1184 if (test_and_clear_bit(R5_Wantfill, &dev->flags)) { ops_complete_biofill() 1606 if (test_and_clear_bit(R5_Wantdrain, &head_sh->dev[i].flags)) { ops_run_biodrain() 1975 if (test_and_clear_bit(R5_Overlap, &dev->flags)) raid_run_ops() 2478 if (!test_and_clear_bit(R5_DOUBLE_LOCKED, &sh->dev[i].flags)) raid5_end_write_request() 3110 if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) handle_failed_stripe() 3131 if (test_and_clear_bit(R5_SkipCopy, &sh->dev[i].flags)) { handle_failed_stripe() 3159 if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) handle_failed_stripe() 3182 if (test_and_clear_bit(STRIPE_FULL_WRITE, &sh->state)) handle_failed_stripe() 3196 if (test_and_clear_bit(R5_Overlap, &sh->dev[sh->pd_idx].flags)) handle_failed_sync() 3466 if (test_and_clear_bit(R5_Discard, &dev->flags)) handle_stripe_clean_event() 3468 if (test_and_clear_bit(R5_SkipCopy, &dev->flags)) { handle_stripe_clean_event() 3541 if (test_and_clear_bit(STRIPE_FULL_WRITE, &sh->state)) handle_stripe_clean_event() 4192 if (!test_and_clear_bit(STRIPE_BATCH_READY, &sh->state)) clear_batch_ready() 4256 if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) break_stripe_batch_list() 4273 if (test_and_clear_bit(R5_Overlap, &head_sh->dev[i].flags)) break_stripe_batch_list() 4304 if (test_and_clear_bit(STRIPE_BATCH_ERR, &sh->state)) handle_stripe() 4311 test_and_clear_bit(STRIPE_SYNC_REQUESTED, &sh->state)) { handle_stripe() 4401 if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) handle_stripe() 4483 if (test_and_clear_bit(R5_Overlap, &sh->dev[sh->pd_idx].flags)) handle_stripe() 4575 if (test_and_clear_bit(R5_WriteError, &dev->flags)) { handle_stripe() 4583 if (test_and_clear_bit(R5_MadeGood, &dev->flags)) { handle_stripe() 4589 if (test_and_clear_bit(R5_MadeGoodRepl, &dev->flags)) { handle_stripe() 5868 if (test_and_clear_bit(R5_ALLOC_MORE, &conf->cache_state) && raid5d() 7045 || !test_and_clear_bit(In_sync, &tmp->rdev->flags)) raid5_spare_active()
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | bitops.h | 246 * test_and_clear_bit - Clear a bit and return its old value 254 test_and_clear_bit (int nr, volatile void *addr) test_and_clear_bit() function
|
/linux-4.1.27/mm/ |
H A D | backing-dev.c | 342 if (!test_and_clear_bit(BDI_registered, &bdi->state)) { bdi_wb_shutdown() 483 if (test_and_clear_bit(bit, &bdi->state)) clear_bdi_congested()
|
/linux-4.1.27/sound/atmel/ |
H A D | abdac.c | 207 if (test_and_clear_bit(DMA_READY, &dac->flags)) atmel_abdac_hw_params() 216 if (test_and_clear_bit(DMA_READY, &dac->flags)) atmel_abdac_hw_free()
|
H A D | ac97c.c | 261 if (test_and_clear_bit(DMA_TX_READY, &chip->flags)) atmel_ac97c_playback_hw_params() 285 if (test_and_clear_bit(DMA_RX_READY, &chip->flags)) atmel_ac97c_capture_hw_params() 301 if (test_and_clear_bit(DMA_TX_READY, &chip->flags)) atmel_ac97c_playback_hw_free() 311 if (test_and_clear_bit(DMA_RX_READY, &chip->flags)) atmel_ac97c_capture_hw_free()
|
/linux-4.1.27/drivers/media/platform/exynos-gsc/ |
H A D | gsc-core.c | 880 if (test_and_clear_bit(ST_M2M_PEND, &gsc->state)) { gsc_irq_handler() 884 if (test_and_clear_bit(ST_M2M_SUSPENDING, &gsc->state)) { gsc_irq_handler() 1069 if (test_and_clear_bit(ST_M2M_SUSPENDED, &gsc->state)) gsc_m2m_resume() 1218 if (!test_and_clear_bit(ST_SUSPEND, &gsc->state) || gsc_resume()
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
H A D | fimc-core.c | 323 if (test_and_clear_bit(ST_M2M_PEND, &fimc->state)) { fimc_irq_handler() 324 if (test_and_clear_bit(ST_M2M_SUSPENDING, &fimc->state)) { fimc_irq_handler() 869 if (test_and_clear_bit(ST_M2M_SUSPENDED, &fimc->state)) fimc_m2m_resume() 1087 if (!test_and_clear_bit(ST_LPM, &fimc->state) || fimc_resume()
|
/linux-4.1.27/drivers/net/slip/ |
H A D | slip.c | 961 if (!test_and_clear_bit(SLF_ERROR, &sl->flags) && slip_unesc() 972 if (test_and_clear_bit(SLF_ESCAPE, &sl->flags)) slip_unesc() 976 if (test_and_clear_bit(SLF_ESCAPE, &sl->flags)) slip_unesc() 1044 if (!test_and_clear_bit(SLF_ERROR, &sl->flags) && slip_unesc6()
|
/linux-4.1.27/drivers/media/radio/ |
H A D | radio-shark2.c | 153 if (!test_and_clear_bit(i, &shark->brightness_new)) shark_led_work()
|
H A D | radio-shark.c | 166 if (!test_and_clear_bit(i, &shark->brightness_new)) shark_led_work()
|
/linux-4.1.27/drivers/misc/mei/ |
H A D | hw-txe.c | 1063 if (test_and_clear_bit(TXE_INTR_READINESS_BIT, &hw->intr_cause)) { mei_txe_irq_thread_handler() 1089 if (test_and_clear_bit(TXE_INTR_ALIVENESS_BIT, &hw->intr_cause)) { mei_txe_irq_thread_handler() 1103 if (test_and_clear_bit(TXE_INTR_OUT_DB_BIT, &hw->intr_cause)) { mei_txe_irq_thread_handler() 1115 if (test_and_clear_bit(TXE_INTR_IN_READY_BIT, &hw->intr_cause)) { mei_txe_irq_thread_handler()
|
/linux-4.1.27/drivers/scsi/qla4xxx/ |
H A D | ql4_attr.c | 58 if (test_and_clear_bit(AF_82XX_DUMP_READING, &ha->flags)) { qla4_8xxx_sysfs_write_fw_dump()
|
H A D | ql4_init.c | 413 if (test_and_clear_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags)) qla4xxx_fw_ready() 476 if (test_and_clear_bit(DPC_GET_DHCP_IP_ADDR, qla4xxx_fw_ready() 897 if (test_and_clear_bit(AF_GET_CRASH_RECORD, &ha->flags)) qla4xxx_start_firmware()
|
/linux-4.1.27/drivers/pwm/ |
H A D | sysfs.c | 222 if (!test_and_clear_bit(PWMF_EXPORTED, &pwm->flags)) pwm_unexport_child()
|
H A D | core.c | 473 if (pwm && test_and_clear_bit(PWMF_ENABLED, &pwm->flags)) pwm_disable() 693 if (!test_and_clear_bit(PWMF_REQUESTED, &pwm->flags)) { pwm_put()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | event.c | 147 if (!test_and_clear_bit(WLVIF_FLAG_CS_PROGRESS, wl12xx_for_each_wlvif()
|
H A D | ps.c | 119 if (!test_and_clear_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags)) wl1271_ps_elp_wakeup()
|
H A D | tx.c | 243 test_and_clear_bit(WL1271_FLAG_REINIT_TX_WDOG, &wl->flags)) wl1271_tx_allocate() 673 test_and_clear_bit(WL1271_FLAG_DUMMY_PACKET_PENDING, &wl->flags)) { 1244 WARN_ON_ONCE(!test_and_clear_bit(reason, &wl->queue_stop_reasons[hwq])); wlcore_wake_queue() 1286 WARN_ON_ONCE(!test_and_clear_bit(reason, wlcore_wake_queues()
|
/linux-4.1.27/drivers/uio/ |
H A D | uio_dmem_genirq.c | 136 if (test_and_clear_bit(0, &priv->flags)) uio_dmem_genirq_irqcontrol()
|
/linux-4.1.27/drivers/usb/phy/ |
H A D | phy-isp1301-omap.c | 1111 if (test_and_clear_bit(WORK_UPDATE_ISP, &isp->todo)) { isp1301_work() 1117 if (test_and_clear_bit(WORK_UPDATE_OTG, &isp->todo)) { isp1301_work() 1124 if (test_and_clear_bit(WORK_HOST_RESUME, &isp->todo)) { isp1301_work() 1159 if (test_and_clear_bit(WORK_TIMER, &isp->todo)) { isp1301_work()
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | omninet.c | 179 if (!test_and_clear_bit(0, &port->write_urbs_free)) { omninet_write()
|
H A D | cyberjack.c | 178 if (!test_and_clear_bit(0, &port->write_urbs_free)) { cyberjack_write()
|
/linux-4.1.27/fs/jfs/ |
H A D | jfs_incore.h | 157 test_and_clear_bit(flag, &(JFS_IP(ip)->cflag))
|
/linux-4.1.27/include/net/bluetooth/ |
H A D | rfcomm.h | 270 if (test_and_clear_bit(RFCOMM_RX_THROTTLED, &d->flags)) rfcomm_dlc_unthrottle()
|
/linux-4.1.27/arch/powerpc/sysdev/qe_lib/ |
H A D | gpio.c | 207 test_and_clear_bit(QE_PIN_REQUESTED, &qe_gc->pin_flags[pin]); qe_pin_free()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | bitops.h | 145 static __inline__ int test_and_clear_bit(unsigned long nr, test_and_clear_bit() function
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | bitops.h | 200 test_and_clear_bit(unsigned long nr, volatile void * addr) test_and_clear_bit() function
|
/linux-4.1.27/arch/arc/include/asm/ |
H A D | bitops.h | 190 /* test_and_set_bit(), test_and_clear_bit(), test_and_change_bit() */\
|
/linux-4.1.27/net/netfilter/ipset/ |
H A D | ip_set_bitmap_ip.c | 89 return !test_and_clear_bit(e->id, map->members); bitmap_ip_do_del()
|
H A D | ip_set_bitmap_port.c | 83 return !test_and_clear_bit(e->id, map->members); bitmap_port_do_del()
|
H A D | ip_set_bitmap_ipmac.c | 177 return !test_and_clear_bit(e->id, map->members); bitmap_ipmac_do_del()
|
/linux-4.1.27/net/rds/ |
H A D | send.c | 198 if (!rm && test_and_clear_bit(0, &conn->c_map_queued)) { rds_send_xmit() 259 if (test_and_clear_bit(RDS_MSG_ON_CONN, &rm->m_flags)) rds_send_xmit() 632 if (test_and_clear_bit(RDS_MSG_ON_SOCK, &rm->m_flags)) { rds_send_remove_from_sock() 741 if (!test_and_clear_bit(RDS_MSG_ON_CONN, &rm->m_flags)) { rds_send_drop_to()
|
/linux-4.1.27/net/sunrpc/ |
H A D | auth_generic.c | 245 if (test_and_clear_bit(RPC_CRED_KEY_EXPIRE_SOON, generic_key_timeout()
|
/linux-4.1.27/sound/usb/line6/ |
H A D | capture.c | 196 if (test_and_clear_bit(index, &line6pcm->in.unlink_urbs)) audio_in_callback()
|
H A D | playback.c | 346 if (test_and_clear_bit(index, &line6pcm->out.unlink_urbs)) audio_out_callback()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | max3421-hcd.c | 1430 if (test_and_clear_bit(ENABLE_IRQ, &max3421_hcd->todo)) max3421_spi_thread() 1445 if (test_and_clear_bit(RESET_HCD, &max3421_hcd->todo)) max3421_spi_thread() 1448 if (test_and_clear_bit(RESET_PORT, &max3421_hcd->todo)) { max3421_spi_thread() 1454 if (test_and_clear_bit(CHECK_UNLINK, &max3421_hcd->todo)) max3421_spi_thread() 1456 if (test_and_clear_bit(IOPIN_UPDATE, &max3421_hcd->todo)) { max3421_spi_thread()
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | time.c | 845 if (test_and_clear_bit(ETR_EVENT_SYNC_CHECK, &etr_events)) etr_handle_events() 847 if (test_and_clear_bit(ETR_EVENT_SWITCH_LOCAL, &etr_events)) etr_handle_events() 849 if (test_and_clear_bit(ETR_EVENT_PORT_ALERT, &etr_events)) etr_handle_events() 852 if (test_and_clear_bit(ETR_EVENT_PORT0_CHANGE, &etr_events)) { etr_handle_events() 865 if (test_and_clear_bit(ETR_EVENT_PORT1_CHANGE, &etr_events)) { etr_handle_events()
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | dw_mmc.c | 1050 if (test_and_clear_bit(DW_MMC_CARD_NEED_INIT, &slot->flags)) __dw_mci_start_request() 1594 if (!test_and_clear_bit(EVENT_CMD_COMPLETE, dw_mci_tasklet_func() 1633 if (test_and_clear_bit(EVENT_DATA_ERROR, dw_mci_tasklet_func() 1644 if (!test_and_clear_bit(EVENT_XFER_COMPLETE, dw_mci_tasklet_func() 1663 if (test_and_clear_bit(EVENT_DATA_ERROR, dw_mci_tasklet_func() 1678 if (!test_and_clear_bit(EVENT_DATA_COMPLETE, dw_mci_tasklet_func() 1724 if (!test_and_clear_bit(EVENT_CMD_COMPLETE, dw_mci_tasklet_func() 1744 if (!test_and_clear_bit(EVENT_XFER_COMPLETE, dw_mci_tasklet_func()
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpiolib-sysfs.c | 513 if (test_and_clear_bit(FLAG_SYSFS, &desc->flags)) { unexport_store() 816 if (test_and_clear_bit(FLAG_SYSFS, &desc->flags)) gpiochip_unexport()
|
/linux-4.1.27/drivers/hsi/clients/ |
H A D | hsi_char.c | 558 if (!test_and_clear_bit(HSC_CH_WLINE, &channel->flags)) hsc_ioctl() 653 if (test_and_clear_bit(HSC_CH_WLINE, &channel->flags)) hsc_release()
|
/linux-4.1.27/fs/afs/ |
H A D | flock.c | 241 if (!test_and_clear_bit(AFS_VNODE_READLOCKED, &vnode->flags) && afs_defer_unlock() 242 !test_and_clear_bit(AFS_VNODE_WRITELOCKED, &vnode->flags)) afs_defer_unlock()
|
H A D | callback.c | 90 if (test_and_clear_bit(AFS_VNODE_ZAP_DATA, &vnode->flags)) afs_broken_callback_work()
|
/linux-4.1.27/fs/f2fs/ |
H A D | segment.h | 368 if (test_and_clear_bit(segno, free_i->free_segmap)) { __set_test_and_free() 374 if (test_and_clear_bit(secno, free_i->free_secmap)) __set_test_and_free()
|
/linux-4.1.27/kernel/ |
H A D | softirq.c | 502 if (!test_and_clear_bit(TASKLET_STATE_SCHED, tasklet_action() 538 if (!test_and_clear_bit(TASKLET_STATE_SCHED, tasklet_hi_action()
|
/linux-4.1.27/net/atm/ |
H A D | pppoatm.c | 125 if (test_and_clear_bit(BLOCKED, &pvcc->blocked)) pppoatm_release_cb() 160 if (test_and_clear_bit(BLOCKED, &pvcc->blocked)) pppoatm_pop()
|
/linux-4.1.27/drivers/net/caif/ |
H A D | caif_serial.c | 270 test_and_clear_bit(CAIF_FLOW_OFF_SENT, &ser->state) && handle_tx()
|
H A D | caif_hsi.c | 765 if (test_and_clear_bit(CFHSI_FLUSH_FIFO, &cfhsi->bits)) cfhsi_rx_done_cb() 800 test_and_clear_bit(CFHSI_WAKE_UP_ACK, cfhsi_wake_up() 917 test_and_clear_bit(CFHSI_WAKE_DOWN_ACK, cfhsi_wake_down()
|
/linux-4.1.27/drivers/scsi/ |
H A D | scsi_logging.c | 66 ret = test_and_clear_bit(idx, &buf->map); scsi_log_release_buffer()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_intr.c | 1025 * test_and_clear_bit(IPATH_PORT_WAITING_RCV) and handle_urcv() 1026 * test_and_clear_bit(IPATH_PORT_WAITING_URG) below handle_urcv() 1042 if (test_and_clear_bit(IPATH_PORT_WAITING_RCV, handle_urcv() 1048 } else if (test_and_clear_bit(IPATH_PORT_WAITING_URG, handle_urcv()
|
/linux-4.1.27/fs/ocfs2/cluster/ |
H A D | quorum.c | 193 if (test_and_clear_bit(node, qs->qs_hold_bm)) { o2quo_clear_hold()
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | bitops.h | 194 test_and_clear_bit(unsigned long nr, volatile unsigned long *ptr) test_and_clear_bit() function
|
/linux-4.1.27/net/phonet/ |
H A D | pn_dev.c | 173 if (!pnd || !test_and_clear_bit(addr >> 2, pnd->addrs)) { phonet_address_del()
|
/linux-4.1.27/drivers/net/hamradio/ |
H A D | mkiss.c | 317 if (!test_and_clear_bit(AXF_ERROR, &ax->flags) && (ax->rcount > 2)) kiss_unesc() 328 if (test_and_clear_bit(AXF_ESCAPE, &ax->flags)) kiss_unesc() 332 if (test_and_clear_bit(AXF_ESCAPE, &ax->flags)) kiss_unesc()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
H A D | scan.c | 114 if (!test_and_clear_bit(STATUS_SCAN_COMPLETE, &priv->status)) iwl_process_scan_complete() 121 aborted = test_and_clear_bit(STATUS_SCAN_ABORTING, &priv->status); iwl_process_scan_complete() 125 if (!test_and_clear_bit(STATUS_SCANNING, &priv->status)) { iwl_process_scan_complete()
|
/linux-4.1.27/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 1107 if (test_and_clear_bit(FF_CONSTANT, dev->ffbit)) pidff_init_fields() 1110 if (test_and_clear_bit(FF_RAMP, dev->ffbit)) pidff_init_fields() 1114 if (test_and_clear_bit(FF_PERIODIC, dev->ffbit)) pidff_init_fields()
|
/linux-4.1.27/net/9p/ |
H A D | trans_fd.c | 388 if (test_and_clear_bit(Rpending, &m->wsched)) p9_read_work() 502 if (test_and_clear_bit(Wpending, &m->wsched)) p9_write_work() 676 if (test_and_clear_bit(Wpending, &m->wsched)) p9_fd_request()
|