Home
last modified time | relevance | path

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

12345678910>>...20

/linux/drivers/isdn/mISDN/
H A Dhwchannel.c20 if (test_and_clear_bit(FLG_RECVQUEUE, &dch->Flags)) { in dchannel_bh()
30 if (test_and_clear_bit(FLG_PHCHANGE, &dch->Flags)) { in dchannel_bh()
43 if (test_and_clear_bit(FLG_RECVQUEUE, &bch->Flags)) { in bchannel_bh()
131 test_and_clear_bit(FLG_TX_BUSY, &ch->Flags); in mISDN_clear_bchannel()
132 test_and_clear_bit(FLG_TX_NEXT, &ch->Flags); in mISDN_clear_bchannel()
133 test_and_clear_bit(FLG_ACTIVE, &ch->Flags); in mISDN_clear_bchannel()
134 test_and_clear_bit(FLG_FILLEMPTY, &ch->Flags); in mISDN_clear_bchannel()
135 test_and_clear_bit(FLG_TX_EMPTY, &ch->Flags); in mISDN_clear_bchannel()
136 test_and_clear_bit(FLG_RX_OFF, &ch->Flags); in mISDN_clear_bchannel()
170 test_and_clear_bit(FLG_FILLEMPTY, &bch->Flags); in mISDN_ctrl_bchannel()
[all …]
H A Dlayer1.c174 if (test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags)) in l1_info4_ind()
177 if (test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags)) in l1_info4_ind()
189 test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags); in l1_timer3()
190 if (test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags)) { in l1_timer3()
191 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_timer3()
206 test_and_clear_bit(FLG_L1_ACTTIMER, &l1->Flags); in l1_timer_act()
216 test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags); in l1_timer_deact()
217 test_and_clear_bit(FLG_L1_ACTIVATED, &l1->Flags); in l1_timer_deact()
218 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_timer_deact()
242 test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags); in l1_activate_no()
[all …]
H A Dstack.c216 test_and_clear_bit(mISDN_STACK_WORK, &st->status); in mISDNStackd()
217 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
223 test_and_clear_bit(mISDN_STACK_WORK, in mISDNStackd()
249 test_and_clear_bit(mISDN_STACK_WORK, in mISDNStackd()
251 test_and_clear_bit(mISDN_STACK_RUNNING, in mISDNStackd()
258 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
260 test_and_clear_bit(mISDN_STACK_CLEARING, &st->status); in mISDNStackd()
263 if (test_and_clear_bit(mISDN_STACK_RESTART, &st->status)) { in mISDNStackd()
264 test_and_clear_bit(mISDN_STACK_STOPPED, &st->status); in mISDNStackd()
279 test_and_clear_bit(mISDN_STACK_ACTIVE, &st->status); in mISDNStackd()
[all …]
H A Dlayer2.c257 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
269 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
272 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
331 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) in clear_peer_busy()
332 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); in clear_peer_busy()
384 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); in clear_exception()
385 test_and_clear_bit(FLG_REJEXC, &l2->flag); in clear_exception()
386 test_and_clear_bit(FLG_OWN_BUSY, &l2->flag); in clear_exception()
672 if (test_and_clear_bit(FLG_T200_RUN, &l2->flag)) in stop_t200()
681 if (test_and_clear_bit(FLG_PEND_REL, &l2->flag)) in st5_dl_release_l2l3()
[all …]
/linux/drivers/media/pci/cx23885/
H A Dcx23885-ir.c31 if (test_and_clear_bit(CX23885_IR_RX_SW_FIFO_OVERRUN, notifications)) in cx23885_ir_rx_work_handler()
33 if (test_and_clear_bit(CX23885_IR_RX_HW_FIFO_OVERRUN, notifications)) in cx23885_ir_rx_work_handler()
35 if (test_and_clear_bit(CX23885_IR_RX_END_OF_RX_DETECTED, notifications)) in cx23885_ir_rx_work_handler()
37 if (test_and_clear_bit(CX23885_IR_RX_FIFO_SERVICE_REQ, notifications)) in cx23885_ir_rx_work_handler()
54 if (test_and_clear_bit(CX23885_IR_TX_FIFO_SERVICE_REQ, notifications)) in cx23885_ir_tx_work_handler()
/linux/arch/hexagon/include/asm/
H A Dbitops.h31 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() function
108 test_and_clear_bit(nr, addr); in clear_bit()
133 test_and_clear_bit(nr, addr); in arch___clear_bit()
152 return test_and_clear_bit(nr, addr); in arch___test_and_clear_bit()
/linux/net/mac80211/
H A Dht.c346 if (test_and_clear_bit(HT_AGG_STATE_STOP_CB, &tid_tx->state)) in ieee80211_sta_tear_down_BA_sessions()
366 if (test_and_clear_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired)) in ieee80211_ba_session_work()
371 if (test_and_clear_bit(tid, in ieee80211_ba_session_work()
378 test_and_clear_bit(tid, in ieee80211_ba_session_work()
384 if (test_and_clear_bit(tid + IEEE80211_NUM_TIDS, in ieee80211_ba_session_work()
446 test_and_clear_bit(HT_AGG_STATE_START_CB, &tid_tx->state)) in ieee80211_ba_session_work()
448 if (test_and_clear_bit(HT_AGG_STATE_WANT_STOP, &tid_tx->state)) in ieee80211_ba_session_work()
451 if (test_and_clear_bit(HT_AGG_STATE_STOP_CB, &tid_tx->state)) in ieee80211_ba_session_work()
/linux/drivers/leds/
H A Dled-core.c78 if (test_and_clear_bit(LED_BLINK_ONESHOT_STOP, in led_timer_function()
87 if (test_and_clear_bit(LED_BLINK_BRIGHTNESS_CHANGE, in led_timer_function()
151 if (test_and_clear_bit(LED_BLINK_DISABLE, &led_cdev->work_flags)) { in set_brightness_delayed()
163 if (test_and_clear_bit(LED_SET_BRIGHTNESS_OFF, &led_cdev->work_flags)) { in set_brightness_delayed()
177 if (test_and_clear_bit(LED_SET_BRIGHTNESS, &led_cdev->work_flags)) in set_brightness_delayed()
180 if (test_and_clear_bit(LED_SET_BLINK, &led_cdev->work_flags)) { in set_brightness_delayed()
/linux/drivers/net/can/
H A Dcan327.c583 } else if (test_and_clear_bit(CAN327_TX_DO_SILENT_MONITOR, &elm->cmds_todo)) { in can327_handle_prompt()
588 } else if (test_and_clear_bit(CAN327_TX_DO_RESPONSES, &elm->cmds_todo)) { in can327_handle_prompt()
593 } else if (test_and_clear_bit(CAN327_TX_DO_CAN_CONFIG, &elm->cmds_todo)) { in can327_handle_prompt()
598 } else if (test_and_clear_bit(CAN327_TX_DO_CAN_CONFIG_PART2, &elm->cmds_todo)) { in can327_handle_prompt()
603 } else if (test_and_clear_bit(CAN327_TX_DO_CANID_29BIT_HIGH, &elm->cmds_todo)) { in can327_handle_prompt()
608 } else if (test_and_clear_bit(CAN327_TX_DO_CANID_29BIT_LOW, &elm->cmds_todo)) { in can327_handle_prompt()
613 } else if (test_and_clear_bit(CAN327_TX_DO_CANID_11BIT, &elm->cmds_todo)) { in can327_handle_prompt()
618 } else if (test_and_clear_bit(CAN327_TX_DO_CAN_DATA, &elm->cmds_todo)) { in can327_handle_prompt()
/linux/arch/sparc/lib/
H A Dbitops.S36 ENTRY(test_and_clear_bit) /* %o0=nr, %o1=addr */
55 ENDPROC(test_and_clear_bit)
56 EXPORT_SYMBOL(test_and_clear_bit)
/linux/drivers/isdn/hardware/mISDN/
H A Dhfcpci.c944 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in handle_nt_timer3()
968 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt()
969 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt()
986 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt()
996 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt()
997 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt()
1000 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in ph_state_nt()
1003 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in ph_state_nt()
1009 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt()
1010 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt()
[all …]
H A DmISDNisar.c696 test_and_clear_bit(FLG_TX_EMPTY, &ch->bch.Flags); in send_next()
700 if (test_and_clear_bit(FLG_DLEETX, &ch->bch.Flags)) { in send_next()
701 if (test_and_clear_bit(FLG_LASTDATA, in send_next()
703 if (test_and_clear_bit(FLG_NMD_DATA, in send_next()
758 if (!test_and_clear_bit(ISAR_RATE_REQ, &ch->is->Flags)) in isar_pump_status_rsp()
985 if (test_and_clear_bit(FLG_LL_OK, &ch->bch.Flags)) in isar_pump_statev_fax()
1141 test_and_clear_bit(FLG_FTI_RUN, &ch->bch.Flags); in ftimer_handler()
1142 if (test_and_clear_bit(FLG_LL_CONN, &ch->bch.Flags)) in ftimer_handler()
1282 test_and_clear_bit(FLG_HDLC, &ch->bch.Flags); in modeisar()
1283 test_and_clear_bit(FLG_TRANSPARENT, &ch->bch.Flags); in modeisar()
[all …]
H A DmISDNipac.c208 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) in isac_xpr_irq()
222 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) in isac_retransmit()
580 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in isac_l1hw()
666 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in isac_l1cmd()
667 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in isac_l1cmd()
681 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in isac_l1cmd()
730 test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags); in dbusy_timer_handler()
1016 test_and_clear_bit(FLG_TX_EMPTY, &hx->bch.Flags); in hscx_xpr()
1231 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags); in hscx_mode()
1232 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags); in hscx_mode()
[all …]
H A Dw6692.c313 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in d_retransmit()
316 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) in d_retransmit()
374 if (test_and_clear_bit(FLG_BUSY_TIMER, &card->dch.Flags)) in handle_txD()
603 test_and_clear_bit(FLG_HDLC, &wch->bch.Flags); in w6692_mode()
604 test_and_clear_bit(FLG_TRANSPARENT, &wch->bch.Flags); in w6692_mode()
641 test_and_clear_bit(FLG_TX_EMPTY, &wch->bch.Flags); in send_next()
820 test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags); in dbusy_timer_handler()
1036 test_and_clear_bit(FLG_OPEN, &bch->Flags); in w6692_bctrl()
1085 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in w6692_l2l1D()
1131 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in w6692_l1callback()
[all …]
/linux/arch/m68k/include/asm/
H A Dbitops.h254 #define test_and_clear_bit(nr, vaddr) bclr_reg_test_and_clear_bit(nr, vaddr) macro
256 #define test_and_clear_bit(nr, vaddr) bclr_mem_test_and_clear_bit(nr, vaddr) macro
258 #define test_and_clear_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ macro
266 return test_and_clear_bit(nr, addr); in arch___test_and_clear_bit()
/linux/kernel/kcsan/
H A Dselftest.c161 KCSAN_CHECK_READ_BARRIER(test_and_clear_bit(0, &test_var)); in test_barrier()
190 KCSAN_CHECK_WRITE_BARRIER(test_and_clear_bit(0, &test_var)); in test_barrier()
222 KCSAN_CHECK_RW_BARRIER(test_and_clear_bit(0, &test_var)); in test_barrier()
/linux/arch/powerpc/platforms/pasemi/
H A Ddma_lib.c125 if (!test_and_clear_bit(bit, txch_free)) in pasemi_alloc_tx_chan()
144 if (!test_and_clear_bit(bit, rxch_free)) in pasemi_alloc_rx_chan()
383 if (!test_and_clear_bit(bit, flags_free)) in pasemi_dma_alloc_flag()
448 if (!test_and_clear_bit(bit, fun_free)) in pasemi_dma_alloc_fun()
/linux/drivers/media/pci/ivtv/
H A Divtv-irq.c94 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_PIO, &itv->i_flags)) in ivtv_irq_work_handler()
97 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_VBI, &itv->i_flags)) in ivtv_irq_work_handler()
100 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_YUV, &itv->i_flags)) in ivtv_irq_work_handler()
103 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_PCM, &itv->i_flags)) in ivtv_irq_work_handler()
632 if (test_and_clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags)) { in ivtv_irq_enc_dma_complete()
661 if (test_and_clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags)) { in ivtv_irq_enc_pio_complete()
1024 if (!test_and_clear_bit(IVTV_F_S_DMA_PENDING, &s->s_flags)) in ivtv_irq_handler()
1044 if (!test_and_clear_bit(IVTV_F_S_PIO_PENDING, &s->s_flags)) in ivtv_irq_handler()
1052 if (test_and_clear_bit(IVTV_F_I_HAVE_WORK, &itv->i_flags)) { in ivtv_irq_handler()
/linux/tools/include/asm-generic/bitops/
H A Datomic.h13 #define clear_bit test_and_clear_bit
/linux/drivers/watchdog/
H A Dsbc7240_wdt.c56 if (test_and_clear_bit(SBC7240_ENABLED_STATUS_BIT, &wdt_status)) { in wdt_disable()
135 if (test_and_clear_bit(SBC7240_EXPECT_CLOSE_STATUS_BIT, &wdt_status) in fop_close()
/linux/arch/arm/include/asm/
H A Dbitops.h195 #define test_and_clear_bit(nr,p) ATOMIC_BITOP(test_and_clear_bit,nr,p) macro
/linux/drivers/net/phy/mediatek/
H A Dmtk-phy-lib.c295 changed = !!test_and_clear_bit(bit_on, &priv->led_state); in mtk_phy_hw_led_on_set()
297 changed |= !!test_and_clear_bit(MTK_PHY_LED_STATE_NETDEV + in mtk_phy_hw_led_on_set()
320 changed = !!test_and_clear_bit(bit_blink, &priv->led_state); in mtk_phy_hw_led_blink_set()
/linux/drivers/media/pci/cx18/
H A Dcx18-fileops.c108 if (!test_and_clear_bit(CX18_F_S_CLAIMED, &s->s_flags)) { in cx18_release_stream()
126 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
133 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
203 if (!test_and_clear_bit(CX18_F_M_NEED_SWAP, in cx18_get_mdl()
540 if (test_and_clear_bit(CX18_F_I_ENC_PAUSED, &cx->i_flags)) in cx18_start_capture()
/linux/arch/arm64/include/asm/
H A Dsync_bitops.h22 #define sync_test_and_clear_bit(nr, p) test_and_clear_bit(nr, p)
/linux/fs/hfs/
H A Dmdb.c272 if (test_and_clear_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags)) { in hfs_mdb_commit()
289 if (test_and_clear_bit(HFS_FLG_ALT_MDB_DIRTY, &HFS_SB(sb)->flags) && in hfs_mdb_commit()
306 if (test_and_clear_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags)) { in hfs_mdb_commit()

12345678910>>...20