Home
last modified time | relevance | path

Searched refs:test_and_clear_bit (Results 1 – 200 of 485) sorted by relevance

123

/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-ir.c40 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-4.4.14/drivers/isdn/mISDN/
Dhwchannel.c29 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 …]
Dlayer1.c183 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 …]
Dstack.c224 test_and_clear_bit(mISDN_STACK_WORK, &st->status); in mISDNStackd()
225 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
231 test_and_clear_bit(mISDN_STACK_WORK, in mISDNStackd()
257 test_and_clear_bit(mISDN_STACK_WORK, in mISDNStackd()
259 test_and_clear_bit(mISDN_STACK_RUNNING, in mISDNStackd()
266 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
268 test_and_clear_bit(mISDN_STACK_CLEARING, &st->status); in mISDNStackd()
271 if (test_and_clear_bit(mISDN_STACK_RESTART, &st->status)) { in mISDNStackd()
272 test_and_clear_bit(mISDN_STACK_STOPPED, &st->status); in mISDNStackd()
287 test_and_clear_bit(mISDN_STACK_ACTIVE, &st->status); in mISDNStackd()
[all …]
Dlayer2.c266 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 …]
Dtei.c347 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_send()
354 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_send()
377 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_ack()
1133 test_and_clear_bit(MGR_PH_ACTIVE, &mgr->options); in mgr_send()
1152 test_and_clear_bit(OPTION_L1_HOLD, &mgr->options); in free_teimanager()
1164 test_and_clear_bit(MGR_OPT_NETWORK, &mgr->options); in free_teimanager()
1173 test_and_clear_bit(MGR_OPT_USER, &mgr->options); in free_teimanager()
1191 test_and_clear_bit(OPTION_L2_CLEANUP, &mgr->options); in ctrl_teimanager()
1197 test_and_clear_bit(OPTION_L1_HOLD, &mgr->options); in ctrl_teimanager()
Dl1oip_core.c793 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in l1oip_socket_close()
867 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in l1oip_timeout()
1174 test_and_clear_bit(FLG_ACTIVE, &bch->Flags); in handle_bmsg()
1223 test_and_clear_bit(FLG_OPEN, &bch->Flags); in l1oip_bctrl()
1224 test_and_clear_bit(FLG_ACTIVE, &bch->Flags); in l1oip_bctrl()
/linux-4.4.14/arch/hexagon/include/asm/
Dbitops.h45 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-4.4.14/drivers/isdn/hisax/
Damd7930_fn.c242 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 …]
Dhscx.c129 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()
Djade.c164 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()
Dhfc_2bds0.c334 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 …]
Disdnl2.c119 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 …]
Dw6692.c109 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()
395 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in W6692B_interrupt()
456 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in W6692_interrupt()
458 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in W6692_interrupt()
488 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in W6692_interrupt()
490 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in W6692_interrupt()
618 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in W6692_l1hw()
[all …]
Disac.c90 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()
240 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in isac_interrupt()
242 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in isac_interrupt()
296 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in isac_interrupt()
298 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in isac_interrupt()
[all …]
Dicc.c87 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()
237 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in icc_interrupt()
239 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in icc_interrupt()
293 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in icc_interrupt()
295 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in icc_interrupt()
[all …]
Disdnl1.c162 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 …]
Dhfc_sx.c468 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in receive_dmsg()
498 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in main_rec_hfcsx()
552 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfcsx_fill_fifo()
685 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in receive_emsg()
772 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcsx_interrupt()
779 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcsx_interrupt()
796 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcsx_interrupt()
803 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcsx_interrupt()
816 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in hfcsx_interrupt()
818 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in hfcsx_interrupt()
[all …]
Dhfc_pci.c390 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in receive_dmsg()
509 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in main_rec_hfcpci()
662 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfcpci_fill_fifo()
727 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfcpci_fill_fifo()
919 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in receive_emsg()
1007 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcpci_interrupt()
1014 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcpci_interrupt()
1031 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcpci_interrupt()
1038 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in hfcpci_interrupt()
1051 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in hfcpci_interrupt()
[all …]
Disar.c446 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 …]
Darcofi.c82 if (test_and_clear_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { in arcofi_fsm()
99 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()
Dnetjet.c630 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 …]
Dhfc_2bs0.c320 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hfc_fill_fifo()
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()
521 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in close_hfcstate()
524 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); in close_hfcstate()
535 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in open_hfcstate()
Davm_pci.c439 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in HDLC_irq()
515 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in hdlc_l2l1()
532 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); in hdlc_l2l1()
533 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hdlc_l2l1()
545 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { in close_hdlcstate()
555 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in close_hdlcstate()
572 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); in open_hdlcstate()
581 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in open_hdlcstate()
Delsa_ser.c304 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in modem_fill()
430 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { in close_elsastate()
441 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in close_elsastate()
573 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); in modem_l2l1()
604 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in setstack_elsa()
Dnj_u.c77 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in netjet_u_interrupt()
235 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in setup_netjet_u()
Dnj_s.c94 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in netjet_s_interrupt()
271 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in setup_netjet_s()
Denternow_pci.c297 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in enpci_interrupt()
401 test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags); in setup_enternow_pci()
Dipacx.c188 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in dch_l2l1()
372 if (test_and_clear_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) in dch_int()
374 if (test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in dch_int()
764 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { in bch_close_state()
Dconfig.c1658 if (test_and_clear_bit(D_RCVBUFREADY, &cs->event)) in hisax_bh()
1660 if (test_and_clear_bit(E_RCVBUFREADY, &cs->event)) in hisax_bh()
1662 if (test_and_clear_bit(D_L1STATECHANGE, &cs->event)) { in hisax_bh()
1719 if (test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags)) { in hisax_d_l1l2()
1772 if (test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags)) { in hisax_b_l1l2()
1844 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hisax_b_l2l1()
Dcallc.c858 if (test_and_clear_bit(FLG_START_B, &chanp->Flags)) { in release_b_st()
1312 test_and_clear_bit(FLG_LLI_L1WAKEUP, &st->lli.flag); in init_b_st()
1325 test_and_clear_bit(FLG_LLI_L2WAKEUP, &st->lli.flag); in init_b_st()
1646 test_and_clear_bit(FLG_PTP, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1647 test_and_clear_bit(FLG_FIXED_TEI, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1657 test_and_clear_bit(FLG_FIXED_TEI, &chanp->d_st->l2.flag); in HiSax_command()
Djade_irq.c196 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in jade_interrupt()
Dhscx_irq.c218 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hscx_interrupt()
Dst5481_b.c173 test_and_clear_bit(buf_nr, &b_out->busy); in usb_b_out_complete()
/linux-4.4.14/arch/mn10300/lib/
Dbitops.c27 if (test_and_clear_bit(nr, addr)) in change_bit()
46 if (test_and_clear_bit(nr, addr)) in test_and_change_bit()
/linux-4.4.14/arch/m68k/include/asm/
Dbitops.h245 #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.4.14/drivers/staging/rdma/hfi1/
Dintr.c197 if (test_and_clear_bit(HFI1_CTXT_WAITING_RCV, &rcd->event_flags)) { in handle_user_interrupt()
200 } else if (test_and_clear_bit(HFI1_CTXT_WAITING_URG, in handle_user_interrupt()
Duc.c390 if (test_and_clear_bit(HFI1_R_REWIND_SGE, &qp->r_aflags)) in hfi1_uc_rcv()
535 if (test_and_clear_bit(HFI1_R_REWIND_SGE, &qp->r_aflags)) in hfi1_uc_rcv()
/linux-4.4.14/drivers/isdn/hardware/mISDN/
Dhfcpci.c955 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in handle_nt_timer3()
979 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt()
980 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt()
997 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt()
1007 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt()
1008 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt()
1011 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in ph_state_nt()
1014 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in ph_state_nt()
1020 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt()
1021 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt()
[all …]
DmISDNipac.c221 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) in isac_xpr_irq()
236 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) in isac_retransmit()
595 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in isac_l1hw()
680 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in isac_l1cmd()
681 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in isac_l1cmd()
695 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in isac_l1cmd()
743 test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags); in dbusy_timer_handler()
1032 test_and_clear_bit(FLG_TX_EMPTY, &hx->bch.Flags); in hscx_xpr()
1247 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags); in hscx_mode()
1248 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags); in hscx_mode()
[all …]
Dw6692.c329 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in d_retransmit()
332 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) in d_retransmit()
391 if (test_and_clear_bit(FLG_BUSY_TIMER, &card->dch.Flags)) in handle_txD()
621 test_and_clear_bit(FLG_HDLC, &wch->bch.Flags); in w6692_mode()
622 test_and_clear_bit(FLG_TRANSPARENT, &wch->bch.Flags); in w6692_mode()
660 test_and_clear_bit(FLG_TX_EMPTY, &wch->bch.Flags); in send_next()
838 test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags); in dbusy_timer_handler()
1056 test_and_clear_bit(FLG_OPEN, &bch->Flags); in w6692_bctrl()
1105 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in w6692_l2l1D()
1151 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in w6692_l1callback()
[all …]
DmISDNisar.c710 test_and_clear_bit(FLG_TX_EMPTY, &ch->bch.Flags); in send_next()
714 if (test_and_clear_bit(FLG_DLEETX, &ch->bch.Flags)) { in send_next()
715 if (test_and_clear_bit(FLG_LASTDATA, in send_next()
717 if (test_and_clear_bit(FLG_NMD_DATA, in send_next()
772 if (!test_and_clear_bit(ISAR_RATE_REQ, &ch->is->Flags)) in isar_pump_status_rsp()
998 if (test_and_clear_bit(FLG_LL_OK, &ch->bch.Flags)) in isar_pump_statev_fax()
1154 test_and_clear_bit(FLG_FTI_RUN, &ch->bch.Flags); in ftimer_handler()
1155 if (test_and_clear_bit(FLG_LL_CONN, &ch->bch.Flags)) in ftimer_handler()
1293 test_and_clear_bit(FLG_HDLC, &ch->bch.Flags); in modeisar()
1294 test_and_clear_bit(FLG_TRANSPARENT, &ch->bch.Flags); in modeisar()
[all …]
Dhfcsusb.c337 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in hfcusb_l2l1D()
352 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in hfcusb_l2l1D()
355 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) in hfcusb_l2l1D()
401 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in hfc_l1callback()
409 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in hfc_l1callback()
436 test_and_clear_bit(FLG_ACTIVE, &hw->dch.Flags); in open_dchannel()
437 test_and_clear_bit(FLG_ACTIVE, &hw->ech.Flags); in open_dchannel()
641 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in ph_state_nt()
642 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in ph_state_nt()
1814 test_and_clear_bit(FLG_OPEN, &bch->Flags); in hfc_bctrl()
Dnetjet.c230 test_and_clear_bit(FLG_HDLC, &bc->bch.Flags); in mode_tiger()
231 test_and_clear_bit(FLG_TRANSPARENT, &bc->bch.Flags); in mode_tiger()
625 test_and_clear_bit(FLG_TX_EMPTY, &bc->bch.Flags); in bc_next_frame()
814 test_and_clear_bit(FLG_OPEN, &bch->Flags); in nj_bctrl()
874 test_and_clear_bit(FLG_FILLEMPTY, &bch->Flags); in open_bchannel()
Davmfritz.c371 test_and_clear_bit(FLG_HDLC, &bch->Flags); in modehdlc()
372 test_and_clear_bit(FLG_TRANSPARENT, &bch->Flags); in modehdlc()
528 test_and_clear_bit(FLG_TX_EMPTY, &bch->Flags); in HDLC_irq_xpr()
859 test_and_clear_bit(FLG_OPEN, &bch->Flags); in avm_bctrl()
Dhfcmulti.c1096 test_and_clear_bit(HFC_CHIP_PLXSD, &hc->chip); /* prevent resync */ in release_io_hfcmulti()
3018 test_and_clear_bit(FLG_HDLC, &hc->chan[ch].bch->Flags); in mode_hfcmulti()
3019 test_and_clear_bit(FLG_TRANSPARENT, in mode_hfcmulti()
3294 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in hfcm_l1callback()
3295 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in hfcm_l1callback()
3322 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in hfcm_l1callback()
3402 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in handle_dmsg()
3435 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in handle_dmsg()
3436 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in handle_dmsg()
3439 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) in handle_dmsg()
[all …]
/linux-4.4.14/drivers/isdn/act2000/
Dact2000_isa.c250 test_and_clear_bit(ACT2000_LOCK_RX, (void *) &card->ilock); in act2000_isa_receive()
290 test_and_clear_bit(ACT2000_LOCK_RX, (void *) &card->ilock); in act2000_isa_receive()
320 test_and_clear_bit(ACT2000_LOCK_TX, (void *) &card->ilock); in act2000_isa_send()
328 test_and_clear_bit(ACT2000_LOCK_TX, (void *) &card->ilock); in act2000_isa_send()
/linux-4.4.14/arch/powerpc/platforms/pasemi/
Ddma_lib.c135 if (!test_and_clear_bit(bit, txch_free)) in pasemi_alloc_tx_chan()
154 if (!test_and_clear_bit(bit, rxch_free)) in pasemi_alloc_rx_chan()
395 if (!test_and_clear_bit(bit, flags_free)) in pasemi_dma_alloc_flag()
460 if (!test_and_clear_bit(bit, fun_free)) in pasemi_dma_alloc_fun()
/linux-4.4.14/arch/frv/include/asm/
Dbitops.h30 static inline int test_and_clear_bit(unsigned long nr, volatile void *addr) in test_and_clear_bit() function
56 test_and_clear_bit(nr, addr); in clear_bit()
/linux-4.4.14/drivers/watchdog/
Dsbc7240_wdt.c65 if (test_and_clear_bit(SBC7240_ENABLED_STATUS_BIT, &wdt_status)) { in wdt_disable()
144 if (test_and_clear_bit(SBC7240_EXPECT_CLOSE_STATUS_BIT, &wdt_status) in fop_close()
Dgeodewdt.c91 if (!test_and_clear_bit(WDT_FLAGS_ORPHAN, &wdt_flags)) in geodewdt_open()
Dit87_wdt.c379 if (test_and_clear_bit(WDTS_KEEPALIVE, &wdt_status)) in wdt_get_status()
434 if (test_and_clear_bit(WDTS_EXPECTED, &wdt_status)) { in wdt_release()
Dintel_scu_watchdog.c321 if (!test_and_clear_bit(0, &watchdog_device.driver_open)) { in intel_scu_release()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/
Dnotify.c40 test_and_clear_bit(NVKM_NOTIFY_USER, &notify->flags)) { in nvkm_notify_put()
76 !test_and_clear_bit(NVKM_NOTIFY_USER, &notify->flags)) { in nvkm_notify_func()
/linux-4.4.14/arch/arm64/include/asm/
Dbitops.h33 extern int test_and_clear_bit(int nr, volatile unsigned long *p);
Dsync_bitops.h21 #define sync_test_and_clear_bit(nr, p) test_and_clear_bit(nr, p)
/linux-4.4.14/arch/sparc/include/asm/
Dbitops_64.h19 int test_and_clear_bit(unsigned long nr, volatile unsigned long *addr);
Dbitops_32.h51 static inline int test_and_clear_bit(unsigned long nr, volatile unsigned long *addr) in test_and_clear_bit() function
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-irq.c106 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_PIO, &itv->i_flags)) in ivtv_irq_work_handler()
109 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_VBI, &itv->i_flags)) in ivtv_irq_work_handler()
112 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_YUV, &itv->i_flags)) in ivtv_irq_work_handler()
115 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_PCM, &itv->i_flags)) in ivtv_irq_work_handler()
644 if (test_and_clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags)) { in ivtv_irq_enc_dma_complete()
673 if (test_and_clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags)) { in ivtv_irq_enc_pio_complete()
1036 if (!test_and_clear_bit(IVTV_F_S_DMA_PENDING, &s->s_flags)) in ivtv_irq_handler()
1056 if (!test_and_clear_bit(IVTV_F_S_PIO_PENDING, &s->s_flags)) in ivtv_irq_handler()
1064 if (test_and_clear_bit(IVTV_F_I_HAVE_WORK, &itv->i_flags)) { in ivtv_irq_handler()
Divtv-vbi.c523 if (test_and_clear_bit(IVTV_F_I_UPDATE_WSS, &itv->i_flags)) { in ivtv_vbi_work_handler()
546 if (test_and_clear_bit(IVTV_F_I_UPDATE_VPS, &itv->i_flags)) { in ivtv_vbi_work_handler()
Divtv-fileops.c114 if (!test_and_clear_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { in ivtv_release_stream()
136 if (!test_and_clear_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags)) { in ivtv_release_stream()
484 if (test_and_clear_bit(IVTV_F_I_ENC_PAUSED, &itv->i_flags)) in ivtv_start_capture()
Divtv-ioctl.c268 if (test_and_clear_bit(IVTV_F_I_DEC_PAUSED, &itv->i_flags)) { in ivtv_video_command()
309 if (test_and_clear_bit(IVTV_F_I_DEC_PAUSED, &itv->i_flags)) { in ivtv_video_command()
1332 if (!test_and_clear_bit(IVTV_F_I_ENC_PAUSED, &itv->i_flags)) in ivtv_encoder_cmd()
1752 if (test_and_clear_bit(IVTV_F_I_EV_DEC_STOPPED, &itv->i_flags)) in ivtv_decoder_ioctls()
1754 else if (test_and_clear_bit(IVTV_F_I_EV_VSYNC, &itv->i_flags)) { in ivtv_decoder_ioctls()
/linux-4.4.14/arch/arm64/kernel/
Darm64ksyms.c64 EXPORT_SYMBOL(test_and_clear_bit);
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_intr.c203 if (test_and_clear_bit(QIB_CTXT_WAITING_RCV, &rcd->flag)) { in qib_handle_urcv()
207 } else if (test_and_clear_bit(QIB_CTXT_WAITING_URG, in qib_handle_urcv()
Dqib_uc.c349 if (test_and_clear_bit(QIB_R_REWIND_SGE, &qp->r_aflags)) in qib_uc_rcv()
486 if (test_and_clear_bit(QIB_R_REWIND_SGE, &qp->r_aflags)) in qib_uc_rcv()
Dqib_ud.c205 if (!test_and_clear_bit(QIB_R_WRID_VALID, &qp->r_aflags)) in qib_ud_loopback()
563 if (!test_and_clear_bit(QIB_R_WRID_VALID, &qp->r_aflags)) in qib_ud_rcv()
/linux-4.4.14/arch/sparc/lib/
Dbitops.S33 ENTRY(test_and_clear_bit) /* %o0=nr, %o1=addr */
52 ENDPROC(test_and_clear_bit)
Dksyms.c126 EXPORT_SYMBOL(test_and_clear_bit);
/linux-4.4.14/drivers/gpu/drm/nouveau/nvif/
Dnotify.c54 test_and_clear_bit(NVIF_NOTIFY_USER, &notify->flags)) { in nvif_notify_put()
95 !test_and_clear_bit(NVIF_NOTIFY_USER, &notify->flags)) { in nvif_notify_func()
/linux-4.4.14/fs/nfs/
Dnfs4state.c220 if (test_and_clear_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { in nfs4_end_drain_slot_table()
1461 if (!test_and_clear_bit(ops->state_flag_bit, &state->flags)) in nfs4_reclaim_open_state()
1615 if (!test_and_clear_bit(NFS_STATE_RECLAIM_REBOOT, in nfs4_clear_reclaim_server()
1629 if (!test_and_clear_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state)) in nfs4_state_clear_reclaim_reboot()
1725 if (!test_and_clear_bit(ops->owner_flag_bit, in nfs4_do_reclaim()
1858 if (test_and_clear_bit(NFS4CLNT_SERVER_SCOPE_MISMATCH, &clp->cl_state)) in nfs4_reclaim_lease()
1976 if (!test_and_clear_bit(NFS_MIG_IN_TRANSITION, in nfs4_handle_migration()
2355 if (test_and_clear_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state)) { in nfs4_state_manager()
2365 if (test_and_clear_bit(NFS4CLNT_BIND_CONN_TO_SESSION, in nfs4_state_manager()
2374 if (test_and_clear_bit(NFS4CLNT_CHECK_LEASE, &clp->cl_state)) { in nfs4_state_manager()
[all …]
Ddelegation.c443 if (test_and_clear_bit(NFS_DELEGATION_RETURN, &delegation->flags)) in nfs_delegation_need_return()
445 if (test_and_clear_bit(NFS_DELEGATION_RETURN_IF_CLOSED, &delegation->flags) && !ret) { in nfs_delegation_need_return()
687 if (test_and_clear_bit(NFS_DELEGATION_REFERENCED, &delegation->flags)) in nfs_mark_return_unreferenced_delegations()
Dpnfs.c273 if (test_and_clear_bit(fail_bit, &lo->plh_flags)) in pnfs_layout_clear_fail_bit()
355 if (!test_and_clear_bit(NFS_LSEG_LAYOUTRETURN, &lseg->pls_flags)) in pnfs_layout_need_return()
550 if (test_and_clear_bit(NFS_LSEG_VALID, &lseg->pls_flags)) { in mark_lseg_invalid()
930 if (!test_and_clear_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) in pnfs_clear_layoutcommit()
933 if (!test_and_clear_bit(NFS_LSEG_LAYOUTCOMMIT, &lseg->pls_flags)) in pnfs_clear_layoutcommit()
1101 if (test_and_clear_bit(NFS_LAYOUT_RETURN_BEFORE_CLOSE, in pnfs_roc()
2159 test_and_clear_bit(NFS_LSEG_LAYOUTCOMMIT, &lseg->pls_flags)) in pnfs_list_write_lseg()
2264 if (!test_and_clear_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) in pnfs_layoutcommit_inode()
Dfile.c247 do_resend = test_and_clear_bit(NFS_CONTEXT_RESEND_WRITES, &ctx->flags); in nfs_file_fsync_commit()
248 have_error = test_and_clear_bit(NFS_CONTEXT_ERROR_WRITE, &ctx->flags); in nfs_file_fsync_commit()
/linux-4.4.14/drivers/media/usb/hackrf/
Dhackrf.c279 if (rx && test_and_clear_bit(RX_ADC_FREQUENCY, &dev->flags)) { in hackrf_set_params()
284 } else if (tx && test_and_clear_bit(TX_DAC_FREQUENCY, &dev->flags)) { in hackrf_set_params()
307 if (rx && test_and_clear_bit(RX_BANDWIDTH, &dev->flags)) { in hackrf_set_params()
323 } else if (tx && test_and_clear_bit(TX_BANDWIDTH, &dev->flags)) { in hackrf_set_params()
355 if (rx && test_and_clear_bit(RX_RF_FREQUENCY, &dev->flags)) { in hackrf_set_params()
360 } else if (tx && test_and_clear_bit(TX_RF_FREQUENCY, &dev->flags)) { in hackrf_set_params()
383 if (rx && test_and_clear_bit(RX_RF_GAIN, &dev->flags)) { in hackrf_set_params()
395 if (tx && test_and_clear_bit(TX_RF_GAIN, &dev->flags)) { in hackrf_set_params()
407 if (rx && test_and_clear_bit(RX_LNA_GAIN, &dev->flags)) { in hackrf_set_params()
418 if (rx && test_and_clear_bit(RX_IF_GAIN, &dev->flags)) { in hackrf_set_params()
[all …]
/linux-4.4.14/arch/tile/include/asm/
Dbitops_32.h99 static inline int test_and_clear_bit(unsigned nr, volatile unsigned long *addr) in test_and_clear_bit() function
Dbitops_64.h67 static inline int test_and_clear_bit(unsigned nr, volatile unsigned long *addr) in test_and_clear_bit() function
/linux-4.4.14/drivers/char/pcmcia/
Dcm4040_cs.c154 test_and_clear_bit(BS_WRITABLE, in wait_for_bulk_out_ready()
202 test_and_clear_bit(BS_READABLE, in wait_for_bulk_in_ready()
425 if (test_and_clear_bit(BS_READABLE, &dev->buffer_status)) in cm4040_poll()
427 if (test_and_clear_bit(BS_WRITABLE, &dev->buffer_status)) in cm4040_poll()
/linux-4.4.14/include/net/irda/
Dirmod.h98 #define irda_unlock(lock) (test_and_clear_bit(0, (void *) (lock)))
/linux-4.4.14/arch/arm/include/asm/
Dbitops.h192 #define test_and_clear_bit(nr,p) ATOMIC_BITOP(test_and_clear_bit,nr,p) macro
/linux-4.4.14/fs/dlm/
Drecoverd.c297 if (test_and_clear_bit(LSFL_RECOVER_DOWN, &ls->ls_flags)) { in dlm_recoverd()
303 if (test_and_clear_bit(LSFL_RECOVER_WORK, &ls->ls_flags)) in dlm_recoverd()
/linux-4.4.14/fs/hfs/
Dmdb.c266 if (test_and_clear_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags)) { in hfs_mdb_commit()
283 if (test_and_clear_bit(HFS_FLG_ALT_MDB_DIRTY, &HFS_SB(sb)->flags) && in hfs_mdb_commit()
300 if (test_and_clear_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags)) { in hfs_mdb_commit()
/linux-4.4.14/arch/arm64/lib/
Dbitops.S75 testop test_and_clear_bit, bic, ldclral
/linux-4.4.14/include/linux/
Dpage_idle.h59 return test_and_clear_bit(PAGE_EXT_YOUNG, in test_and_clear_page_young()
Dthread_info.h86 return test_and_clear_bit(flag, (unsigned long *)&ti->flags); in test_and_clear_ti_thread_flag()
Dbuffer_head.h108 return test_and_clear_bit(BH_##bit, &(bh)->b_state); \
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-fileops.c123 if (!test_and_clear_bit(CX18_F_S_CLAIMED, &s->s_flags)) { in cx18_release_stream()
141 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
148 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
218 if (!test_and_clear_bit(CX18_F_M_NEED_SWAP, in cx18_get_mdl()
555 if (test_and_clear_bit(CX18_F_I_ENC_PAUSED, &cx->i_flags)) in cx18_start_capture()
/linux-4.4.14/arch/sh/include/asm/
Dbitops-grb.h105 static inline int test_and_clear_bit(int nr, volatile void * addr) in test_and_clear_bit() function
Dbitops-llsc.h92 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() function
/linux-4.4.14/include/asm-generic/bitops/
Dle.h84 return test_and_clear_bit(nr ^ BITOP_LE_SWIZZLE, addr); in test_and_clear_bit_le()
Datomic.h151 static inline int test_and_clear_bit(int nr, volatile unsigned long *addr) in test_and_clear_bit() function
/linux-4.4.14/security/keys/
Dgc.c202 if (test_and_clear_bit(KEY_GC_KEY_EXPIRED, &key_gc_flags)) in key_garbage_collector()
205 if (test_and_clear_bit(KEY_GC_REAP_KEYTYPE, &key_gc_flags)) in key_garbage_collector()
/linux-4.4.14/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c348 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_frame()
422 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_frame()
469 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_error()
523 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_seq_done()
561 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_init_buffers()
568 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_init_buffers()
598 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_stream_complete()
648 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_irq()
714 if (test_and_clear_bit(0, &dev->hw_lock) == 0) in s5p_mfc_irq()
/linux-4.4.14/arch/metag/include/asm/
Dbitops.h70 static inline int test_and_clear_bit(unsigned int bit, in test_and_clear_bit() function
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos5433_drm_decon.c109 if (test_and_clear_bit(BIT_IRQS_ENABLED, &ctx->flags)) in decon_disable_vblank()
383 if (!test_and_clear_bit(BIT_SUSPENDED, &ctx->flags)) in decon_enable()
397 if (test_and_clear_bit(BIT_IRQS_ENABLED, &ctx->flags)) in decon_enable()
445 if (test_and_clear_bit(BIT_WIN_UPDATED, &ctx->flags)) in decon_te_irq_handler()
Dexynos_drm_vidi.c121 if (test_and_clear_bit(0, &ctx->irq_flags)) in vidi_disable_vblank()
148 if (test_and_clear_bit(0, &ctx->irq_flags)) in vidi_enable()
Dexynos7_drm_decon.c265 if (test_and_clear_bit(0, &ctx->irq_flags)) { in decon_disable_vblank()
594 if (test_and_clear_bit(0, &ctx->irq_flags)) in decon_enable()
/linux-4.4.14/fs/fscache/
Doperation.c100 if (test_and_clear_bit(FSCACHE_OP_WAITING, &op->flags)) in fscache_run_op()
377 if (test_and_clear_bit(FSCACHE_OP_WAITING, &op->flags)) in fscache_cancel_op()
393 if (test_and_clear_bit(FSCACHE_OP_WAITING, &op->flags)) in fscache_cancel_op()
428 if (test_and_clear_bit(FSCACHE_OP_WAITING, &op->flags)) in fscache_cancel_all_ops()
Dobject.c628 if (test_and_clear_bit(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags)) in fscache_lookup_failure()
701 test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) in fscache_drop_object()
985 if (test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) in _fscache_invalidate_object()
Dcookie.c529 if (!test_and_clear_bit(FSCACHE_COOKIE_ENABLED, &cookie->flags)) in __fscache_disable_cookie()
548 if (test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) in __fscache_disable_cookie()
/linux-4.4.14/arch/mn10300/kernel/
Dirq.c79 if (!test_and_clear_bit(irq, irq_affinity_request)) { in mn10300_cpupic_mask_ack()
121 if (!test_and_clear_bit(irq, irq_affinity_request)) { in mn10300_cpupic_unmask_clear()
/linux-4.4.14/net/rxrpc/
Dar-ack.c1034 if (test_and_clear_bit(RXRPC_CALL_RCVD_ACKALL, &call->events)) { in rxrpc_process_call()
1074 if (test_and_clear_bit(RXRPC_CALL_RESEND_TIMER, &call->events)) in rxrpc_process_call()
1076 if (test_and_clear_bit(RXRPC_CALL_RESEND, &call->events)) in rxrpc_process_call()
1155 if (test_and_clear_bit(RXRPC_CALL_SECURED, &call->events)) { in rxrpc_process_call()
1192 if (test_and_clear_bit(RXRPC_CALL_ACCEPTED, &call->events)) { in rxrpc_process_call()
1204 if (test_and_clear_bit(RXRPC_CALL_DRAIN_RX_OOS, &call->events)) { in rxrpc_process_call()
1313 if (test_and_clear_bit(RXRPC_CALL_ACK_FINAL, &call->events)) in rxrpc_process_call()
Dar-skbuff.c85 test_and_clear_bit(RXRPC_CALL_TX_SOFT_ACK, &call->flags)) { in rxrpc_hard_ACK_data()
/linux-4.4.14/arch/blackfin/include/asm/
Dbitops.h88 static inline int test_and_clear_bit(int nr, volatile unsigned long *addr) in test_and_clear_bit() function
/linux-4.4.14/arch/xtensa/include/asm/
Dbitops.h179 test_and_clear_bit(unsigned int bit, volatile unsigned long *p) in test_and_clear_bit() function
/linux-4.4.14/drivers/misc/mei/
Dhw-txe.c1063 if (test_and_clear_bit(TXE_INTR_READINESS_BIT, &hw->intr_cause)) { in mei_txe_irq_thread_handler()
1089 if (test_and_clear_bit(TXE_INTR_ALIVENESS_BIT, &hw->intr_cause)) { in mei_txe_irq_thread_handler()
1103 if (test_and_clear_bit(TXE_INTR_OUT_DB_BIT, &hw->intr_cause)) { in mei_txe_irq_thread_handler()
1115 if (test_and_clear_bit(TXE_INTR_IN_READY_BIT, &hw->intr_cause)) { in mei_txe_irq_thread_handler()
/linux-4.4.14/fs/hfsplus/
Dinode.c299 if (test_and_clear_bit(HFSPLUS_I_CAT_DIRTY, &hip->flags)) in hfsplus_file_fsync()
302 if (test_and_clear_bit(HFSPLUS_I_EXT_DIRTY, &hip->flags)) { in hfsplus_file_fsync()
309 if (test_and_clear_bit(HFSPLUS_I_ATTR_DIRTY, &hip->flags)) { in hfsplus_file_fsync()
321 if (test_and_clear_bit(HFSPLUS_I_ALLOC_DIRTY, &hip->flags)) { in hfsplus_file_fsync()
Dsuper.c215 if (test_and_clear_bit(HFSPLUS_SB_WRITEBACKUP, &sbi->flags)) { in hfsplus_sync_fs()
456 } else if (test_and_clear_bit(HFSPLUS_SB_FORCE, &sbi->flags)) { in hfsplus_fill_super()
/linux-4.4.14/net/mac80211/
Dht.c316 if (test_and_clear_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired)) in ieee80211_ba_session_work()
321 if (test_and_clear_bit(tid, in ieee80211_ba_session_work()
350 if (tid_tx && test_and_clear_bit(HT_AGG_STATE_WANT_STOP, in ieee80211_ba_session_work()
Dmesh.c1352 if (test_and_clear_bit(MESH_WORK_GROW_MPATH_TABLE, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
1355 if (test_and_clear_bit(MESH_WORK_GROW_MPP_TABLE, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
1358 if (test_and_clear_bit(MESH_WORK_HOUSEKEEPING, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
1361 if (test_and_clear_bit(MESH_WORK_ROOT, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
1364 if (test_and_clear_bit(MESH_WORK_DRIFT_ADJUST, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
1367 if (test_and_clear_bit(MESH_WORK_MBSS_CHANGED, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
Docb.c149 if (test_and_clear_bit(OCB_WORK_HOUSEKEEPING, &ifocb->wrkq_flags)) in ieee80211_ocb_work()
Dscan.c858 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_work()
862 if (test_and_clear_bit(SCAN_COMPLETED, &local->scanning)) { in ieee80211_scan_work()
863 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_work()
Dsta_info.h538 return test_and_clear_bit(flag, &sta->_flags); in test_and_clear_sta_flag()
/linux-4.4.14/arch/mn10300/include/asm/
Dbitops.h131 #define test_and_clear_bit(nr, addr) __test_and_clear_bit((nr), (addr)) macro
Dpgtable.h351 return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte); in ptep_test_and_clear_dirty()
360 return test_and_clear_bit(_PAGE_BIT_ACCESSED, &ptep->pte); in ptep_test_and_clear_young()
/linux-4.4.14/arch/h8300/include/asm/
Dbitops.h152 H8300_GEN_TEST_BITOP(test_and_clear_bit, "bclr")
/linux-4.4.14/arch/parisc/include/asm/
Dbitops.h80 static __inline__ int test_and_clear_bit(int nr, volatile unsigned long * addr) in test_and_clear_bit() function
Dcacheflush.h65 if (test_and_clear_bit(PG_dcache_dirty, &page->flags)) in invalidate_kernel_vmap_range()
/linux-4.4.14/arch/m32r/include/asm/
Dbitops.h185 static __inline__ int test_and_clear_bit(int nr, volatile void * addr) in test_and_clear_bit() function
Dpgtable.h254 return test_and_clear_bit(_PAGE_BIT_ACCESSED, ptep); in ptep_test_and_clear_young()
/linux-4.4.14/fs/gfs2/
Dglops.c155 if (!test_and_clear_bit(GLF_DIRTY, &gl->gl_flags)) in rgrp_go_sync()
214 if (test_and_clear_bit(GIF_SW_PAGED, &ip->i_flags)) in inode_go_sync()
218 if (!test_and_clear_bit(GLF_DIRTY, &gl->gl_flags)) in inode_go_sync()
Dglock.c413 if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) in finish_xmote()
595 if (test_and_clear_bit(GLF_REPLY_PENDING, &gl->gl_flags)) { in glock_work_func()
973 test_and_clear_bit(GLF_FROZEN, &gl->gl_flags))) { in gfs2_glock_nq()
1343 WARN_ON(!test_and_clear_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_dispose_glock_lru()
1445 if (!test_and_clear_bit(GLF_FROZEN, &gl->gl_flags)) in thaw_glock()
/linux-4.4.14/arch/avr32/include/asm/
Dbitops.h171 static inline int test_and_clear_bit(int nr, volatile void * addr) in test_and_clear_bit() function
/linux-4.4.14/sound/soc/intel/atom/sst/
Dsst_pvt.c250 test_and_clear_bit(pvt_id, &sst->pvt_id); in sst_prepare_and_post_msg()
298 test_and_clear_bit(pvt_id, &sst->pvt_id); in sst_prepare_and_post_msg()
/linux-4.4.14/net/atm/
Dpppoatm.c125 if (test_and_clear_bit(BLOCKED, &pvcc->blocked)) in pppoatm_release_cb()
160 if (test_and_clear_bit(BLOCKED, &pvcc->blocked)) in pppoatm_pop()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_mid.c319 if (test_and_clear_bit(VP_IDX_ACQUIRED, &vha->vp_flags)) { in qla2x00_do_dpc_vp()
339 if ((test_and_clear_bit(RELOGIN_NEEDED, &vha->dpc_flags)) && in qla2x00_do_dpc_vp()
350 if (test_and_clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags) && in qla2x00_do_dpc_vp()
355 if (test_and_clear_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) { in qla2x00_do_dpc_vp()
Dqla_os.c4840 if (test_and_clear_bit(ISP_UNRECOVERABLE, in qla2x00_do_dpc()
4854 if (test_and_clear_bit(ISP_UNRECOVERABLE, in qla2x00_do_dpc()
4867 if (test_and_clear_bit(FCOE_CTX_RESET_NEEDED, in qla2x00_do_dpc()
4889 if (test_and_clear_bit(ISP_UNRECOVERABLE, in qla2x00_do_dpc()
4906 if (test_and_clear_bit(FX00_TARGET_SCAN, in qla2x00_do_dpc()
4921 if (test_and_clear_bit(FX00_HOST_INFO_RESEND, in qla2x00_do_dpc()
4931 if (test_and_clear_bit(ISP_ABORT_NEEDED, in qla2x00_do_dpc()
4952 if (test_and_clear_bit(FCPORT_UPDATE_NEEDED, in qla2x00_do_dpc()
5003 if (test_and_clear_bit(RESET_MARKER_NEEDED, in qla2x00_do_dpc()
5016 if ((test_and_clear_bit(RELOGIN_NEEDED, in qla2x00_do_dpc()
[all …]
/linux-4.4.14/drivers/net/wan/
Dx25_asy.c117 if (!test_and_clear_bit(SLF_INUSE, &sl->flags)) in x25_asy_free()
657 if (!test_and_clear_bit(SLF_ERROR, &sl->flags) && in x25_asy_unesc()
668 if (test_and_clear_bit(SLF_ESCAPE, &sl->flags)) in x25_asy_unesc()
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00dev.c102 if (!test_and_clear_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_disable_radio()
144 if (test_and_clear_bit(DELAYED_UPDATE_BEACON, &intf->delayed_flags)) { in rt2x00lib_intf_scheduled_iter()
1128 if (!test_and_clear_bit(DEVICE_STATE_INITIALIZED, &rt2x00dev->flags)) in rt2x00lib_uninitialize()
1220 if (!test_and_clear_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags)) in rt2x00lib_stop()
1491 if (!test_and_clear_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) in rt2x00lib_suspend()
Drt2x00usb.c290 if (!test_and_clear_bit(ENTRY_DATA_PENDING, &entry->flags) || in rt2x00usb_kick_tx_entry()
364 if (!test_and_clear_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags)) in rt2x00usb_interrupt_rxdone()
/linux-4.4.14/arch/x86/mm/
Dpgtable.c453 ret = test_and_clear_bit(_PAGE_BIT_ACCESSED, in ptep_test_and_clear_young()
469 ret = test_and_clear_bit(_PAGE_BIT_ACCESSED, in pmdp_test_and_clear_young()
/linux-4.4.14/net/rds/
Dsend.c199 if (!rm && test_and_clear_bit(0, &conn->c_map_queued)) { in rds_send_xmit()
260 if (test_and_clear_bit(RDS_MSG_ON_CONN, &rm->m_flags)) in rds_send_xmit()
645 if (test_and_clear_bit(RDS_MSG_ON_SOCK, &rm->m_flags)) { in rds_send_remove_from_sock()
754 if (!test_and_clear_bit(RDS_MSG_ON_CONN, &rm->m_flags)) { in rds_send_drop_to()
/linux-4.4.14/drivers/usb/storage/
Dtransport.c168 if (test_and_clear_bit(US_FLIDX_URB_ACTIVE, &us->dflags)) { in usb_stor_msg_common()
444 if (test_and_clear_bit(US_FLIDX_SG_ACTIVE, &us->dflags)) { in usb_stor_bulk_transfer_sglist()
898 if (test_and_clear_bit(US_FLIDX_URB_ACTIVE, &us->dflags)) { in usb_stor_stop_transport()
904 if (test_and_clear_bit(US_FLIDX_SG_ACTIVE, &us->dflags)) { in usb_stor_stop_transport()
/linux-4.4.14/arch/x86/include/asm/
Dbitops.h250 static inline int test_and_clear_bit(long nr, volatile unsigned long *addr) in test_and_clear_bit() function
/linux-4.4.14/arch/s390/kernel/
Dtime.c852 if (test_and_clear_bit(ETR_EVENT_SYNC_CHECK, &etr_events)) in etr_handle_events()
854 if (test_and_clear_bit(ETR_EVENT_SWITCH_LOCAL, &etr_events)) in etr_handle_events()
856 if (test_and_clear_bit(ETR_EVENT_PORT_ALERT, &etr_events)) in etr_handle_events()
859 if (test_and_clear_bit(ETR_EVENT_PORT0_CHANGE, &etr_events)) { in etr_handle_events()
872 if (test_and_clear_bit(ETR_EVENT_PORT1_CHANGE, &etr_events)) { in etr_handle_events()
/linux-4.4.14/drivers/md/
Draid5.c314 if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) in do_release_stripe()
838 if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) in stripe_add_to_batch_list()
843 if (test_and_clear_bit(STRIPE_BIT_DELAY, &sh->state)) { in stripe_add_to_batch_list()
902 if (test_and_clear_bit(R5_Wantwrite, &sh->dev[i].flags)) { in ops_run_io()
903 if (test_and_clear_bit(R5_WantFUA, &sh->dev[i].flags)) in ops_run_io()
909 } else if (test_and_clear_bit(R5_Wantread, &sh->dev[i].flags)) in ops_run_io()
911 else if (test_and_clear_bit(R5_WantReplace, in ops_run_io()
917 if (test_and_clear_bit(R5_SyncIO, &sh->dev[i].flags)) in ops_run_io()
1188 if (test_and_clear_bit(R5_Wantfill, &dev->flags)) { in ops_complete_biofill()
1608 if (test_and_clear_bit(R5_Wantdrain, &head_sh->dev[i].flags)) { in ops_run_biodrain()
[all …]
/linux-4.4.14/drivers/net/hamradio/
Dmkiss.c317 if (!test_and_clear_bit(AXF_ERROR, &ax->flags) && (ax->rcount > 2)) in kiss_unesc()
328 if (test_and_clear_bit(AXF_ESCAPE, &ax->flags)) in kiss_unesc()
332 if (test_and_clear_bit(AXF_ESCAPE, &ax->flags)) in kiss_unesc()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_amd_ibs.c393 stopping = test_and_clear_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop()
443 if (!test_and_clear_bit(IBS_ENABLED, pcpu->state)) in perf_ibs_del()
536 return test_and_clear_bit(IBS_STOPPING, pcpu->state) ? 1 : 0; in perf_ibs_handle_irq()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dcontext.c180 if (test_and_clear_bit(SPU_SCHED_WAS_ACTIVE, &ctx->sched_flags) && in spu_release_saved()
Drun.c389 if (unlikely(test_and_clear_bit(SPU_SCHED_NOTIFY_ACTIVE, in spufs_run_spu()
/linux-4.4.14/fs/jfs/
Djfs_incore.h157 test_and_clear_bit(flag, &(JFS_IP(ip)->cflag))
/linux-4.4.14/drivers/scsi/libsas/
Dsas_event.c111 if (!test_and_clear_bit(ev, &d->pending)) in sas_enable_revalidation()
/linux-4.4.14/drivers/input/joystick/iforce/
Diforce-serio.c66 if (test_and_clear_bit(IFORCE_XMIT_AGAIN, iforce->xmit_flags)) in iforce_serial_xmit()
Diforce-packets.c233 } else if (test_and_clear_bit(FF_CORE_IS_PLAYED, iforce->core_effects[i].flags)) { in iforce_process_packet()
/linux-4.4.14/drivers/nfc/nfcmrvl/
Dspi.c51 if (test_and_clear_bit(SPI_WAIT_HANDSHAKE, &drv_data->flags)) { in nfcmrvl_spi_int_irq_thread_fn()
Dmain.c51 if (!test_and_clear_bit(NFCMRVL_NCI_RUNNING, &priv->flags)) in nfcmrvl_nci_close()
/linux-4.4.14/drivers/net/wireless/hostap/
Dhostap_info.c486 if (test_and_clear_bit(PRISM2_INFO_PENDING_LINKSTATUS, in handle_info_queue()
490 if (test_and_clear_bit(PRISM2_INFO_PENDING_SCANRESULTS, in handle_info_queue()
/linux-4.4.14/drivers/bluetooth/
Dhci_intel.c982 if (test_and_clear_bit(STATE_DOWNLOADING, &intel->flags) && in intel_recv_event()
994 if (test_and_clear_bit(STATE_BOOTING, &intel->flags)) { in intel_recv_event()
1034 if (test_and_clear_bit(STATE_LPM_TRANSACTION, &intel->flags)) { in intel_recv_lpm()
1041 if (test_and_clear_bit(STATE_LPM_TRANSACTION, &intel->flags)) { in intel_recv_lpm()
Dhci_ldisc.c180 if (!test_and_clear_bit(HCI_UART_INIT_PENDING, &hu->hdev_flags)) in hci_uart_init_work()
500 if (test_and_clear_bit(HCI_UART_PROTO_SET, &hu->flags)) { in hci_uart_tty_close()
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_els.c42 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &rrq_req->req_flags)) { in bnx2fc_rrq_compl()
131 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &els_req->req_flags)) { in bnx2fc_l2_els_compl()
272 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &srr_req->req_flags)) { in bnx2fc_srr_compl()
397 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &rec_req->req_flags)) { in bnx2fc_rec_compl()
Dbnx2fc_tgt.c126 if (test_and_clear_bit(BNX2FC_FLAG_CTX_ALLOC_FAILURE, in bnx2fc_offload_session()
185 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, in bnx2fc_flush_active_ios()
249 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, in bnx2fc_flush_active_ios()
Dbnx2fc_io.c51 if (test_and_clear_bit(BNX2FC_FLAG_ISSUE_RRQ, &io_req->req_flags)) { in bnx2fc_cmd_timeout()
61 if (test_and_clear_bit(BNX2FC_FLAG_RETIRE_OXID, &io_req->req_flags)) { in bnx2fc_cmd_timeout()
68 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, in bnx2fc_cmd_timeout()
1364 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, in bnx2fc_process_abts_compl()
1899 if (test_and_clear_bit(BNX2FC_FLAG_EH_ABORT, in bnx2fc_process_scsi_cmd_compl()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_state.c294 if (test_and_clear_bit(CL_ST_CHG_SUCCESS, &device->flags)) in _req_st_cond()
297 if (test_and_clear_bit(CL_ST_CHG_FAIL, &device->flags)) in _req_st_cond()
936 if (test_and_clear_bit(AL_SUSPENDED, &device->flags)) in drbd_resume_al()
1456 was_io_error = test_and_clear_bit(WAS_IO_ERROR, &device->flags); in after_state_ch()
1474 if (test_and_clear_bit(FORCE_DETACH, &device->flags)) in after_state_ch()
1522 test_and_clear_bit(RESYNC_AFTER_NEG, &device->flags)) { in after_state_ch()
1804 if (test_and_clear_bit(CONN_WD_ST_CHG_OKAY, &connection->flags)) in _conn_rq_cond()
1807 if (test_and_clear_bit(CONN_WD_ST_CHG_FAIL, &connection->flags)) in _conn_rq_cond()
/linux-4.4.14/fs/ext2/
Dfile.c165 if (ret == -EIO || test_and_clear_bit(AS_EIO, &mapping->flags)) { in ext2_fsync()
/linux-4.4.14/fs/ntfs/
Dinode.h206 return test_and_clear_bit(NI_##flag, &(ni)->state); \
/linux-4.4.14/arch/powerpc/include/asm/
Dbitops.h145 static __inline__ int test_and_clear_bit(unsigned long nr, in test_and_clear_bit() function
/linux-4.4.14/drivers/usb/gadget/legacy/
Dmass_storage.c266 if (test_and_clear_bit(0, &msg_registered)) in msg_cleanup()
/linux-4.4.14/kernel/
Dsoftirq.c502 if (!test_and_clear_bit(TASKLET_STATE_SCHED, in tasklet_action()
538 if (!test_and_clear_bit(TASKLET_STATE_SCHED, in tasklet_hi_action()
/linux-4.4.14/drivers/usb/serial/
Domninet.c179 if (!test_and_clear_bit(0, &port->write_urbs_free)) { in omninet_write()
/linux-4.4.14/drivers/net/slip/
Dslip.c961 if (!test_and_clear_bit(SLF_ERROR, &sl->flags) &&
972 if (test_and_clear_bit(SLF_ESCAPE, &sl->flags))
976 if (test_and_clear_bit(SLF_ESCAPE, &sl->flags))
1044 if (!test_and_clear_bit(SLF_ERROR, &sl->flags) &&
/linux-4.4.14/sound/atmel/
Dac97c.c261 if (test_and_clear_bit(DMA_TX_READY, &chip->flags)) in atmel_ac97c_playback_hw_params()
285 if (test_and_clear_bit(DMA_RX_READY, &chip->flags)) in atmel_ac97c_capture_hw_params()
301 if (test_and_clear_bit(DMA_TX_READY, &chip->flags)) in atmel_ac97c_playback_hw_free()
311 if (test_and_clear_bit(DMA_RX_READY, &chip->flags)) in atmel_ac97c_capture_hw_free()
Dabdac.c207 if (test_and_clear_bit(DMA_READY, &dac->flags)) in atmel_abdac_hw_params()
216 if (test_and_clear_bit(DMA_READY, &dac->flags)) in atmel_abdac_hw_free()
/linux-4.4.14/arch/alpha/include/asm/
Dbitops.h200 test_and_clear_bit(unsigned long nr, volatile void * addr) in test_and_clear_bit() function
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Dscan.c114 if (!test_and_clear_bit(STATUS_SCAN_COMPLETE, &priv->status)) in iwl_process_scan_complete()
121 aborted = test_and_clear_bit(STATUS_SCAN_ABORTING, &priv->status); in iwl_process_scan_complete()
125 if (!test_and_clear_bit(STATUS_SCANNING, &priv->status)) { in iwl_process_scan_complete()
/linux-4.4.14/drivers/usb/host/
Dmax3421-hcd.c1430 if (test_and_clear_bit(ENABLE_IRQ, &max3421_hcd->todo)) in max3421_spi_thread()
1445 if (test_and_clear_bit(RESET_HCD, &max3421_hcd->todo)) in max3421_spi_thread()
1448 if (test_and_clear_bit(RESET_PORT, &max3421_hcd->todo)) { in max3421_spi_thread()
1454 if (test_and_clear_bit(CHECK_UNLINK, &max3421_hcd->todo)) in max3421_spi_thread()
1456 if (test_and_clear_bit(IOPIN_UPDATE, &max3421_hcd->todo)) { in max3421_spi_thread()
/linux-4.4.14/fs/afs/
Dflock.c241 if (!test_and_clear_bit(AFS_VNODE_READLOCKED, &vnode->flags) && in afs_defer_unlock()
242 !test_and_clear_bit(AFS_VNODE_WRITELOCKED, &vnode->flags)) in afs_defer_unlock()
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-core.c323 if (test_and_clear_bit(ST_M2M_PEND, &fimc->state)) { in fimc_irq_handler()
324 if (test_and_clear_bit(ST_M2M_SUSPENDING, &fimc->state)) { in fimc_irq_handler()
869 if (test_and_clear_bit(ST_M2M_SUSPENDED, &fimc->state)) in fimc_m2m_resume()
1087 if (!test_and_clear_bit(ST_LPM, &fimc->state) || in fimc_resume()
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dtx.c243 test_and_clear_bit(WL1271_FLAG_REINIT_TX_WDOG, &wl->flags)) in wl1271_tx_allocate()
673 test_and_clear_bit(WL1271_FLAG_DUMMY_PACKET_PENDING, &wl->flags)) { in wl1271_skb_dequeue()
1244 WARN_ON_ONCE(!test_and_clear_bit(reason, &wl->queue_stop_reasons[hwq])); in wlcore_wake_queue()
1286 WARN_ON_ONCE(!test_and_clear_bit(reason, in wlcore_wake_queues()
Devent.c147 if (!test_and_clear_bit(WLVIF_FLAG_CS_PROGRESS, in wlcore_event_channel_switch()
Dps.c119 if (!test_and_clear_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags)) in wl1271_ps_elp_wakeup()
/linux-4.4.14/drivers/media/platform/exynos-gsc/
Dgsc-core.c880 if (test_and_clear_bit(ST_M2M_PEND, &gsc->state)) { in gsc_irq_handler()
884 if (test_and_clear_bit(ST_M2M_SUSPENDING, &gsc->state)) { in gsc_irq_handler()
1069 if (test_and_clear_bit(ST_M2M_SUSPENDED, &gsc->state)) in gsc_m2m_resume()
1218 if (!test_and_clear_bit(ST_SUSPEND, &gsc->state) || in gsc_resume()
/linux-4.4.14/drivers/usb/phy/
Dphy-isp1301-omap.c1111 if (test_and_clear_bit(WORK_UPDATE_ISP, &isp->todo)) { in isp1301_work()
1117 if (test_and_clear_bit(WORK_UPDATE_OTG, &isp->todo)) { in isp1301_work()
1124 if (test_and_clear_bit(WORK_HOST_RESUME, &isp->todo)) { in isp1301_work()
1159 if (test_and_clear_bit(WORK_TIMER, &isp->todo)) { in isp1301_work()
/linux-4.4.14/fs/ocfs2/cluster/
Dquorum.c193 if (test_and_clear_bit(node, qs->qs_hold_bm)) { in o2quo_clear_hold()
/linux-4.4.14/net/bluetooth/rfcomm/
Dcore.c465 if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { in __rfcomm_dlc_close()
1805 if (test_and_clear_bit(RFCOMM_MSC_PENDING, &d->flags)) in rfcomm_process_tx()
1864 if (test_and_clear_bit(RFCOMM_AUTH_ACCEPT, &d->flags)) { in rfcomm_process_dlcs()
1882 } else if (test_and_clear_bit(RFCOMM_AUTH_REJECT, &d->flags)) { in rfcomm_process_dlcs()
1996 if (test_and_clear_bit(RFCOMM_TIMED_OUT, &s->flags)) { in rfcomm_process_sessions()
2128 if (test_and_clear_bit(RFCOMM_SEC_PENDING, &d->flags)) { in rfcomm_security_cfm()
2148 if (!test_and_clear_bit(RFCOMM_AUTH_PENDING, &d->flags)) in rfcomm_security_cfm()
/linux-4.4.14/net/9p/
Dtrans_fd.c388 if (test_and_clear_bit(Rpending, &m->wsched)) in p9_read_work()
502 if (test_and_clear_bit(Wpending, &m->wsched)) in p9_write_work()
676 if (test_and_clear_bit(Wpending, &m->wsched)) in p9_fd_request()
/linux-4.4.14/sound/usb/line6/
Dcapture.c196 if (test_and_clear_bit(index, &line6pcm->in.unlink_urbs)) in audio_in_callback()
/linux-4.4.14/net/sunrpc/
Dauth_generic.c245 if (test_and_clear_bit(RPC_CRED_KEY_EXPIRE_SOON, in generic_key_timeout()
/linux-4.4.14/arch/s390/include/asm/
Dbitops.h188 test_and_clear_bit(unsigned long nr, volatile unsigned long *ptr) in test_and_clear_bit() function
/linux-4.4.14/arch/ia64/include/asm/
Dbitops.h254 test_and_clear_bit (int nr, volatile void *addr) in test_and_clear_bit() function
/linux-4.4.14/drivers/gpio/
Dgpiolib-sysfs.c508 if (test_and_clear_bit(FLAG_SYSFS, &desc->flags)) { in unexport_store()
764 if (test_and_clear_bit(FLAG_SYSFS, &desc->flags)) in gpiochip_sysfs_unregister()
/linux-4.4.14/drivers/pwm/
Dcore.c529 if (pwm && test_and_clear_bit(PWMF_ENABLED, &pwm->flags)) in pwm_disable()
774 if (!test_and_clear_bit(PWMF_REQUESTED, &pwm->flags)) { in pwm_put()
Dsysfs.c232 if (!test_and_clear_bit(PWMF_EXPORTED, &pwm->flags)) in pwm_unexport_child()
/linux-4.4.14/fs/f2fs/
Dsegment.h381 if (test_and_clear_bit(segno, free_i->free_segmap)) { in __set_test_and_free()
387 if (test_and_clear_bit(secno, free_i->free_secmap)) in __set_test_and_free()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dtime-event.c111 if (test_and_clear_bit(IWL_MVM_STATUS_ROC_RUNNING, &mvm->status)) { in iwl_mvm_roc_done_wk()
115 if (test_and_clear_bit(IWL_MVM_STATUS_ROC_AUX_RUNNING, &mvm->status)) { in iwl_mvm_roc_done_wk()
/linux-4.4.14/drivers/scsi/qla4xxx/
Dql4_init.c413 if (test_and_clear_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags)) in qla4xxx_fw_ready()
476 if (test_and_clear_bit(DPC_GET_DHCP_IP_ADDR, in qla4xxx_fw_ready()
897 if (test_and_clear_bit(AF_GET_CRASH_RECORD, &ha->flags)) in qla4xxx_start_firmware()
/linux-4.4.14/include/net/bluetooth/
Drfcomm.h270 if (test_and_clear_bit(RFCOMM_RX_THROTTLED, &d->flags)) in rfcomm_dlc_unthrottle()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c224 if (!test_and_clear_bit(MLX5E_CQ_HAS_CQES, &cq->flags)) in mlx5e_poll_rx_cq()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-irq.c220 if (test_and_clear_bit(COBALT_STREAM_FL_ADV_IRQ, &s->flags)) { in cobalt_irq_work_handler()
/linux-4.4.14/drivers/mmc/host/
Ddw_mmc.c1173 if (test_and_clear_bit(DW_MMC_CARD_NEED_INIT, &slot->flags)) in __dw_mci_start_request()
1729 if (!test_and_clear_bit(EVENT_CMD_COMPLETE, in dw_mci_tasklet_func()
1768 if (test_and_clear_bit(EVENT_DATA_ERROR, in dw_mci_tasklet_func()
1779 if (!test_and_clear_bit(EVENT_XFER_COMPLETE, in dw_mci_tasklet_func()
1806 if (test_and_clear_bit(EVENT_DATA_ERROR, in dw_mci_tasklet_func()
1821 if (!test_and_clear_bit(EVENT_DATA_COMPLETE, in dw_mci_tasklet_func()
1876 if (!test_and_clear_bit(EVENT_CMD_COMPLETE, in dw_mci_tasklet_func()
1896 if (!test_and_clear_bit(EVENT_XFER_COMPLETE, in dw_mci_tasklet_func()
/linux-4.4.14/arch/powerpc/sysdev/qe_lib/
Dgpio.c207 test_and_clear_bit(QE_PIN_REQUESTED, &qe_gc->pin_flags[pin]); in qe_pin_free()
/linux-4.4.14/drivers/uio/
Duio_dmem_genirq.c136 if (test_and_clear_bit(0, &priv->flags)) in uio_dmem_genirq_irqcontrol()
/linux-4.4.14/net/irda/irnet/
Dirnet_irda.c1119 test_open = test_and_clear_bit(0, &self->ttp_open); in irnet_disconnect_indication()
1122 test_connect = test_and_clear_bit(0, &self->ttp_connect); in irnet_disconnect_indication()
1405 (test_and_clear_bit(0, &new->ttp_connect))) in irnet_connect_indication()
/linux-4.4.14/arch/mips/include/asm/
Dbitops.h337 static inline int test_and_clear_bit(unsigned long nr, in test_and_clear_bit() function
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Dtx.c259 else if (test_and_clear_bit(MT7601U_STATE_MORE_STATS, &dev->state)) in mt7601u_tx_stat()
/linux-4.4.14/net/netfilter/ipset/
Dip_set_bitmap_port.c84 return !test_and_clear_bit(e->id, map->members); in bitmap_port_do_del()
/linux-4.4.14/drivers/hsi/clients/
Dhsi_char.c558 if (!test_and_clear_bit(HSC_CH_WLINE, &channel->flags)) in hsc_ioctl()
653 if (test_and_clear_bit(HSC_CH_WLINE, &channel->flags)) in hsc_release()
/linux-4.4.14/drivers/char/
Dlp.c176 if (test_and_clear_bit(LP_PARPORT_CLAIMED, &this_lp->bits)) { in lp_release_parport()
395 if (test_and_clear_bit(LP_PREEMPT_REQUEST, in lp_write()
/linux-4.4.14/drivers/hid/usbhid/
Dhid-pidff.c1107 if (test_and_clear_bit(FF_CONSTANT, dev->ffbit)) in pidff_init_fields()
1110 if (test_and_clear_bit(FF_RAMP, dev->ffbit)) in pidff_init_fields()
1114 if (test_and_clear_bit(FF_PERIODIC, dev->ffbit)) in pidff_init_fields()
/linux-4.4.14/kernel/irq/
Dmanage.c745 if (test_and_clear_bit(IRQTF_RUNTHREAD, in irq_wait_for_interrupt()
822 if (!test_and_clear_bit(IRQTF_AFFINITY, &action->thread_flags)) in irq_thread_check_affinity()
913 if (test_and_clear_bit(IRQTF_RUNTHREAD, &action->thread_flags)) in irq_thread_dtor()
/linux-4.4.14/drivers/net/caif/
Dcaif_hsi.c765 if (test_and_clear_bit(CFHSI_FLUSH_FIFO, &cfhsi->bits)) in cfhsi_rx_done_cb()
800 test_and_clear_bit(CFHSI_WAKE_UP_ACK, in cfhsi_wake_up()
917 test_and_clear_bit(CFHSI_WAKE_DOWN_ACK, in cfhsi_wake_down()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c1263 test_and_clear_bit(TXQ_ETH, &qs->txq_stopped)) { in t3_eth_xmit()
1385 test_and_clear_bit(qid, &qs->txq_stopped)) in check_desc_avail()
1498 test_and_clear_bit(TXQ_CTRL, &qs->txq_stopped)) in restart_ctrlq()
1703 test_and_clear_bit(TXQ_OFLD, &qs->txq_stopped)) in restart_offloadq()
1923 test_and_clear_bit(TXQ_ETH, &qs->txq_stopped)) { in restart_tx()
1931 test_and_clear_bit(TXQ_OFLD, &qs->txq_stopped)) { in restart_tx()
1937 test_and_clear_bit(TXQ_CTRL, &qs->txq_stopped)) { in restart_tx()

123