/Linux-v4.19/drivers/media/pci/cx23885/ |
D | cx23885-ir.c | 40 if (test_and_clear_bit(CX23885_IR_RX_SW_FIFO_OVERRUN, notifications)) in cx23885_ir_rx_work_handler() 42 if (test_and_clear_bit(CX23885_IR_RX_HW_FIFO_OVERRUN, notifications)) in cx23885_ir_rx_work_handler() 44 if (test_and_clear_bit(CX23885_IR_RX_END_OF_RX_DETECTED, notifications)) in cx23885_ir_rx_work_handler() 46 if (test_and_clear_bit(CX23885_IR_RX_FIFO_SERVICE_REQ, notifications)) in cx23885_ir_rx_work_handler() 63 if (test_and_clear_bit(CX23885_IR_TX_FIFO_SERVICE_REQ, notifications)) in cx23885_ir_tx_work_handler()
|
/Linux-v4.19/drivers/isdn/mISDN/ |
D | hwchannel.c | 29 if (test_and_clear_bit(FLG_RECVQUEUE, &dch->Flags)) { in dchannel_bh() 39 if (test_and_clear_bit(FLG_PHCHANGE, &dch->Flags)) { in dchannel_bh() 52 if (test_and_clear_bit(FLG_RECVQUEUE, &bch->Flags)) { in bchannel_bh() 140 test_and_clear_bit(FLG_TX_BUSY, &ch->Flags); in mISDN_clear_bchannel() 141 test_and_clear_bit(FLG_TX_NEXT, &ch->Flags); in mISDN_clear_bchannel() 142 test_and_clear_bit(FLG_ACTIVE, &ch->Flags); in mISDN_clear_bchannel() 143 test_and_clear_bit(FLG_FILLEMPTY, &ch->Flags); in mISDN_clear_bchannel() 144 test_and_clear_bit(FLG_TX_EMPTY, &ch->Flags); in mISDN_clear_bchannel() 145 test_and_clear_bit(FLG_RX_OFF, &ch->Flags); in mISDN_clear_bchannel() 179 test_and_clear_bit(FLG_FILLEMPTY, &bch->Flags); in mISDN_ctrl_bchannel() [all …]
|
D | layer1.c | 183 if (test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags)) in l1_info4_ind() 186 if (test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags)) in l1_info4_ind() 198 test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags); in l1_timer3() 199 if (test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags)) { in l1_timer3() 200 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_timer3() 215 test_and_clear_bit(FLG_L1_ACTTIMER, &l1->Flags); in l1_timer_act() 225 test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags); in l1_timer_deact() 226 test_and_clear_bit(FLG_L1_ACTIVATED, &l1->Flags); in l1_timer_deact() 227 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_timer_deact() 251 test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags); in l1_activate_no() [all …]
|
D | stack.c | 227 test_and_clear_bit(mISDN_STACK_WORK, &st->status); in mISDNStackd() 228 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd() 234 test_and_clear_bit(mISDN_STACK_WORK, in mISDNStackd() 260 test_and_clear_bit(mISDN_STACK_WORK, in mISDNStackd() 262 test_and_clear_bit(mISDN_STACK_RUNNING, in mISDNStackd() 269 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd() 271 test_and_clear_bit(mISDN_STACK_CLEARING, &st->status); in mISDNStackd() 274 if (test_and_clear_bit(mISDN_STACK_RESTART, &st->status)) { in mISDNStackd() 275 test_and_clear_bit(mISDN_STACK_STOPPED, &st->status); in mISDNStackd() 290 test_and_clear_bit(mISDN_STACK_ACTIVE, &st->status); in mISDNStackd() [all …]
|
D | layer2.c | 266 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm() 278 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm() 281 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm() 340 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) in clear_peer_busy() 341 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); in clear_peer_busy() 393 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); in clear_exception() 394 test_and_clear_bit(FLG_REJEXC, &l2->flag); in clear_exception() 395 test_and_clear_bit(FLG_OWN_BUSY, &l2->flag); in clear_exception() 681 if (test_and_clear_bit(FLG_T200_RUN, &l2->flag)) in stop_t200() 690 if (test_and_clear_bit(FLG_PEND_REL, &l2->flag)) in st5_dl_release_l2l3() [all …]
|
/Linux-v4.19/arch/hexagon/include/asm/ |
D | bitops.h | 45 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() function 122 test_and_clear_bit(nr, addr); in clear_bit() 146 test_and_clear_bit(nr, addr); in __clear_bit() 162 return test_and_clear_bit(nr, addr); in __test_and_clear_bit()
|
/Linux-v4.19/drivers/isdn/hisax/ |
D | amd7930_fn.c | 242 if (test_and_clear_bit(D_CLEARBUSY, &cs->event)) { in Amd7930_bh() 251 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) { in Amd7930_bh() 257 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) { in Amd7930_bh() 263 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) { in Amd7930_bh() 442 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in Amd7930_interrupt() 444 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in Amd7930_interrupt() 460 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in Amd7930_interrupt() 462 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in Amd7930_interrupt() 481 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in Amd7930_interrupt() 483 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in Amd7930_interrupt() [all …]
|
D | hscx.c | 129 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in hscx_l2l1() 146 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); in hscx_l2l1() 147 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hscx_l2l1() 159 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { in close_hscxstate() 169 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in close_hscxstate() 181 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); in open_hscxstate() 187 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); in open_hscxstate() 196 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in open_hscxstate()
|
D | jade.c | 164 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in jade_l2l1() 181 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); in jade_l2l1() 182 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in jade_l2l1() 194 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { in close_jadestate() 204 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in close_jadestate() 216 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); in open_jadestate() 222 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); in open_jadestate() 231 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in open_jadestate()
|
D | hfc_2bds0.c | 334 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfc_fill_fifo() 345 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfc_send_data() 398 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in main_rec_2bds0() 484 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in hfc_l2l1() 501 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); in hfc_l2l1() 502 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfc_l2l1() 514 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { in close_2bs0() 520 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in close_2bs0() 533 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in open_hfcstate() 559 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) { in hfcd_bh() [all …]
|
D | isdnl2.c | 119 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) in clear_peer_busy() 120 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); in clear_peer_busy() 177 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); in clear_exception() 178 test_and_clear_bit(FLG_REJEXC, &l2->flag); in clear_exception() 179 test_and_clear_bit(FLG_OWN_BUSY, &l2->flag); in clear_exception() 473 if (test_and_clear_bit(FLG_T200_RUN, &st->l2.flag)) in stop_t200() 482 if (test_and_clear_bit(FLG_PEND_REL, &st->l2.flag)) in st5_dl_release_l2l3() 510 test_and_clear_bit(FLG_PEND_REL, &st->l2.flag); in establishlink() 538 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); in l2_mdl_error_dm() 554 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); in l2_st8_mdl_error_dm() [all …]
|
D | w6692.c | 109 if (test_and_clear_bit(D_CLEARBUSY, &cs->event)) { in W6692_bh() 118 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) in W6692_bh() 120 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) in W6692_bh() 122 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) in W6692_bh() 397 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in W6692B_interrupt() 458 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in W6692_interrupt() 460 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in W6692_interrupt() 490 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in W6692_interrupt() 492 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in W6692_interrupt() 620 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in W6692_l1hw() [all …]
|
D | isac.c | 90 if (test_and_clear_bit(D_CLEARBUSY, &cs->event)) { in isac_bh() 99 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) in isac_bh() 101 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) in isac_bh() 103 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) in isac_bh() 108 if (test_and_clear_bit(D_RX_MON1, &cs->event)) in isac_bh() 110 if (test_and_clear_bit(D_TX_MON1, &cs->event)) in isac_bh() 241 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in isac_interrupt() 243 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in isac_interrupt() 298 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in isac_interrupt() 300 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in isac_interrupt() [all …]
|
D | icc.c | 87 if (test_and_clear_bit(D_CLEARBUSY, &cs->event)) { in icc_bh() 96 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) in icc_bh() 98 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) in icc_bh() 100 if (test_and_clear_bit(D_XMTBUFREADY, &cs->event)) in icc_bh() 105 if (test_and_clear_bit(D_RX_MON1, &cs->event)) in icc_bh() 107 if (test_and_clear_bit(D_TX_MON1, &cs->event)) in icc_bh() 236 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in icc_interrupt() 238 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in icc_interrupt() 292 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in icc_interrupt() 294 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in icc_interrupt() [all …]
|
D | isdnl1.c | 162 if (test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) in L1activated() 182 test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags); in L1deactivated() 195 if (test_and_clear_bit(FLG_L1_PULL_REQ, &stptr->l1.Flags)) { in DChannel_proc_xmt() 280 if (test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags)) in BChannel_proc_xmt() 325 if (test_and_clear_bit(B_RCVBUFREADY, &bcs->event)) in BChannel_bh() 327 if (test_and_clear_bit(B_XMTBUFREADY, &bcs->event)) in BChannel_bh() 329 if (test_and_clear_bit(B_ACKPENDING, &bcs->event)) in BChannel_bh() 535 if (test_and_clear_bit(FLG_L1_DEACTTIMER, &st->l1.Flags)) in l1_info4_ind() 538 if (test_and_clear_bit(FLG_L1_T3RUN, &st->l1.Flags)) in l1_info4_ind() 550 test_and_clear_bit(FLG_L1_T3RUN, &st->l1.Flags); in l1_timer3() [all …]
|
D | hfc_sx.c | 469 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in receive_dmsg() 499 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in main_rec_hfcsx() 553 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfcsx_fill_fifo() 686 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in receive_emsg() 773 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcsx_interrupt() 780 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcsx_interrupt() 797 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcsx_interrupt() 804 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcsx_interrupt() 817 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in hfcsx_interrupt() 819 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in hfcsx_interrupt() [all …]
|
D | hfc_pci.c | 391 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in receive_dmsg() 510 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in main_rec_hfcpci() 663 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfcpci_fill_fifo() 728 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfcpci_fill_fifo() 920 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in receive_emsg() 1008 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcpci_interrupt() 1015 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcpci_interrupt() 1032 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcpci_interrupt() 1039 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcpci_interrupt() 1052 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in hfcpci_interrupt() [all …]
|
D | arcofi.c | 81 if (test_and_clear_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { in arcofi_fsm() 98 if (test_and_clear_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { in arcofi_fsm() 121 if (test_and_clear_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { in clear_arcofi()
|
D | isar.c | 446 if (test_and_clear_bit(B_LL_NOCARRIER, &bcs->event)) in isar_bh() 448 if (test_and_clear_bit(B_LL_CONNECT, &bcs->event)) in isar_bh() 450 if (test_and_clear_bit(B_LL_OK, &bcs->event)) in isar_bh() 644 test_and_clear_bit(BC_FLG_FRH_WAIT, &bcs->Flag); in isar_rcv_frame() 656 if (test_and_clear_bit(BC_FLG_FRH_WAIT, &bcs->Flag)) { in isar_rcv_frame() 795 if (test_and_clear_bit(BC_FLG_DLEETX, &bcs->Flag)) { in send_frames() 796 if (test_and_clear_bit(BC_FLG_LASTDATA, &bcs->Flag)) { in send_frames() 797 if (test_and_clear_bit(BC_FLG_NMD_DATA, &bcs->Flag)) { in send_frames() 807 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in send_frames() 848 if (!test_and_clear_bit(ISAR_RATE_REQ, &bcs->hw.isar.reg->Flags)) in isar_pump_status_rsp() [all …]
|
D | netjet.c | 630 if (test_and_clear_bit(BC_FLG_NOFRAME, &bcs->Flag)) { in netjet_fill_dma() 632 } else if (test_and_clear_bit(BC_FLG_HALF, &bcs->Flag)) { in netjet_fill_dma() 653 } else if (test_and_clear_bit(BC_FLG_EMPTY, &bcs->Flag)) { in netjet_fill_dma() 724 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in write_raw() 729 test_and_clear_bit(BC_FLG_HALF, &bcs->Flag); in write_raw() 750 } else if (test_and_clear_bit(BC_FLG_NOFRAME, &bcs->Flag)) { in write_raw() 756 } else if (test_and_clear_bit(BC_FLG_HALF, &bcs->Flag)) { in write_raw() 822 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in tiger_l2l1() 843 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); in tiger_l2l1() 844 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in tiger_l2l1() [all …]
|
/Linux-v4.19/net/mac80211/ |
D | ht.c | 320 if (test_and_clear_bit(HT_AGG_STATE_STOP_CB, &tid_tx->state)) in ieee80211_sta_tear_down_BA_sessions() 340 if (test_and_clear_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired)) in ieee80211_ba_session_work() 345 if (test_and_clear_bit(tid, in ieee80211_ba_session_work() 352 test_and_clear_bit(tid, in ieee80211_ba_session_work() 358 if (test_and_clear_bit(tid + IEEE80211_NUM_TIDS, in ieee80211_ba_session_work() 391 test_and_clear_bit(HT_AGG_STATE_START_CB, &tid_tx->state)) in ieee80211_ba_session_work() 393 if (test_and_clear_bit(HT_AGG_STATE_WANT_STOP, &tid_tx->state)) in ieee80211_ba_session_work() 396 if (test_and_clear_bit(HT_AGG_STATE_STOP_CB, &tid_tx->state)) in ieee80211_ba_session_work()
|
/Linux-v4.19/net/rxrpc/ |
D | call_event.c | 322 if (test_and_clear_bit(RXRPC_CALL_EV_ABORT, &call->events)) { in rxrpc_process_call() 392 if (test_and_clear_bit(RXRPC_CALL_EV_EXPIRED, &call->events)) { in rxrpc_process_call() 405 if (test_and_clear_bit(RXRPC_CALL_EV_ACK_LOST, &call->events)) { in rxrpc_process_call() 412 if (test_and_clear_bit(RXRPC_CALL_EV_ACK, &call->events) || in rxrpc_process_call() 420 if (test_and_clear_bit(RXRPC_CALL_EV_PING, &call->events)) { in rxrpc_process_call() 425 if (test_and_clear_bit(RXRPC_CALL_EV_RESEND, &call->events)) { in rxrpc_process_call()
|
/Linux-v4.19/arch/sparc/lib/ |
D | bitops.S | 36 ENTRY(test_and_clear_bit) /* %o0=nr, %o1=addr */ 55 ENDPROC(test_and_clear_bit) 56 EXPORT_SYMBOL(test_and_clear_bit)
|
/Linux-v4.19/arch/m68k/include/asm/ |
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-v4.19/drivers/isdn/hardware/mISDN/ |
D | hfcpci.c | 956 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in handle_nt_timer3() 980 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt() 981 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt() 998 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt() 1008 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt() 1009 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt() 1012 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in ph_state_nt() 1015 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in ph_state_nt() 1021 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt() 1022 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt() [all …]
|