Home
last modified time | relevance | path

Searched refs:test_and_clear_bit (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/linux-3.3/drivers/media/video/cx23885/
Dcx23885-ir.c44 if (test_and_clear_bit(CX23885_IR_RX_SW_FIFO_OVERRUN, notifications)) in cx23885_ir_rx_work_handler()
46 if (test_and_clear_bit(CX23885_IR_RX_HW_FIFO_OVERRUN, notifications)) in cx23885_ir_rx_work_handler()
48 if (test_and_clear_bit(CX23885_IR_RX_END_OF_RX_DETECTED, notifications)) in cx23885_ir_rx_work_handler()
50 if (test_and_clear_bit(CX23885_IR_RX_FIFO_SERVICE_REQ, notifications)) in cx23885_ir_rx_work_handler()
67 if (test_and_clear_bit(CX23885_IR_TX_FIFO_SERVICE_REQ, notifications)) in cx23885_ir_tx_work_handler()
/linux-3.3/drivers/isdn/mISDN/
Dlayer1.c181 if (test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags)) in l1_info4_ind()
184 if (test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags)) in l1_info4_ind()
196 test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags); in l1_timer3()
197 if (test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags)) { in l1_timer3()
198 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_timer3()
213 test_and_clear_bit(FLG_L1_ACTTIMER, &l1->Flags); in l1_timer_act()
223 test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags); in l1_timer_deact()
224 test_and_clear_bit(FLG_L1_ACTIVATED, &l1->Flags); in l1_timer_deact()
225 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_timer_deact()
248 test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags); in l1_activate_no()
[all …]
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()
134 test_and_clear_bit(FLG_TX_BUSY, &ch->Flags); in mISDN_clear_bchannel()
135 test_and_clear_bit(FLG_TX_NEXT, &ch->Flags); in mISDN_clear_bchannel()
136 test_and_clear_bit(FLG_ACTIVE, &ch->Flags); in mISDN_clear_bchannel()
270 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in get_next_dframe()
307 test_and_clear_bit(FLG_TX_NEXT, &bch->Flags); in get_next_bframe()
312 test_and_clear_bit(FLG_TX_NEXT, &bch->Flags); in get_next_bframe()
317 test_and_clear_bit(FLG_TX_BUSY, &bch->Flags); in get_next_bframe()
Dstack.c221 test_and_clear_bit(mISDN_STACK_WORK, &st->status); in mISDNStackd()
222 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
228 test_and_clear_bit(mISDN_STACK_WORK, in mISDNStackd()
254 test_and_clear_bit(mISDN_STACK_WORK, in mISDNStackd()
256 test_and_clear_bit(mISDN_STACK_RUNNING, in mISDNStackd()
263 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
265 test_and_clear_bit(mISDN_STACK_CLEARING, &st->status); in mISDNStackd()
268 if (test_and_clear_bit(mISDN_STACK_RESTART, &st->status)) { in mISDNStackd()
269 test_and_clear_bit(mISDN_STACK_STOPPED, &st->status); in mISDNStackd()
284 test_and_clear_bit(mISDN_STACK_ACTIVE, &st->status); in mISDNStackd()
[all …]
Dlayer2.c259 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
271 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
274 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
308 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) in clear_peer_busy()
309 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); in clear_peer_busy()
361 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); in clear_exception()
362 test_and_clear_bit(FLG_REJEXC, &l2->flag); in clear_exception()
363 test_and_clear_bit(FLG_OWN_BUSY, &l2->flag); in clear_exception()
649 if (test_and_clear_bit(FLG_T200_RUN, &l2->flag)) in stop_t200()
658 if (test_and_clear_bit(FLG_PEND_REL, &l2->flag)) in st5_dl_release_l2l3()
[all …]
/linux-3.3/arch/hexagon/include/asm/
Dbitops.h48 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() function
125 test_and_clear_bit(nr, addr); in clear_bit()
149 test_and_clear_bit(nr, addr); in __clear_bit()
165 return test_and_clear_bit(nr, addr); in __test_and_clear_bit()
/linux-3.3/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.c167 test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in jade_l2l1()
184 test_and_clear_bit(BC_FLG_ACTIV, &bcs->Flag); in jade_l2l1()
185 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in jade_l2l1()
197 if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { in close_jadestate()
207 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in close_jadestate()
219 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); in open_jadestate()
225 test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); in open_jadestate()
234 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 …]
/linux-3.3/arch/sparc/lib/
Dbitops.S34 .globl test_and_clear_bit symbol
35 .type test_and_clear_bit,#function
36 test_and_clear_bit: /* %o0=nr, %o1=addr */ label
55 .size test_and_clear_bit, .-test_and_clear_bit
/linux-3.3/arch/mn10300/lib/
Dbitops.c28 if (test_and_clear_bit(nr, addr)) in change_bit()
47 if (test_and_clear_bit(nr, addr)) in test_and_change_bit()
/linux-3.3/arch/cris/include/asm/
Dbitops.h50 #define clear_bit(nr, addr) (void)test_and_clear_bit(nr, addr)
103 static inline int test_and_clear_bit(int nr, volatile unsigned long *addr) in test_and_clear_bit() function
/linux-3.3/net/mac80211/
Dmesh.c555 if (test_and_clear_bit(TMR_RUNNING_HK, &ifmsh->timers_running)) in ieee80211_mesh_restart()
557 if (test_and_clear_bit(TMR_RUNNING_MP, &ifmsh->timers_running)) in ieee80211_mesh_restart()
559 if (test_and_clear_bit(TMR_RUNNING_MPR, &ifmsh->timers_running)) in ieee80211_mesh_restart()
713 if (test_and_clear_bit(MESH_WORK_GROW_MPATH_TABLE, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
716 if (test_and_clear_bit(MESH_WORK_GROW_MPP_TABLE, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
719 if (test_and_clear_bit(MESH_WORK_HOUSEKEEPING, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
722 if (test_and_clear_bit(MESH_WORK_ROOT, &ifmsh->wrkq_flags)) in ieee80211_mesh_work()
/linux-3.3/arch/m68k/include/asm/
Dbitops.h250 #define test_and_clear_bit(nr, vaddr) bclr_reg_test_and_clear_bit(nr, vaddr) macro
252 #define test_and_clear_bit(nr, vaddr) bclr_mem_test_and_clear_bit(nr, vaddr) macro
254 #define test_and_clear_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ macro
259 #define __test_and_clear_bit(nr, vaddr) test_and_clear_bit(nr, vaddr)

12345678910>>...16