/linux/drivers/isdn/mISDN/ |
A D | hwchannel.c | 20 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() 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() 179 test_and_clear_bit(FLG_RX_OFF, &bch->Flags); in mISDN_ctrl_bchannel() 332 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in get_next_dframe() [all …]
|
A D | layer1.c | 174 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 …]
|
A D | stack.c | 216 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() 279 test_and_clear_bit(mISDN_STACK_ACTIVE, &st->status); in mISDNStackd() 287 test_and_clear_bit(mISDN_STACK_WAKEUP, &st->status); in mISDNStackd() 312 test_and_clear_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd() 313 test_and_clear_bit(mISDN_STACK_ACTIVE, &st->status); in mISDNStackd() [all …]
|
A D | layer2.c | 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() 708 test_and_clear_bit(FLG_PEND_REL, &l2->flag); in establishlink() 737 test_and_clear_bit(FLG_L3_INIT, &l2->flag); in l2_mdl_error_dm() 752 test_and_clear_bit(FLG_L3_INIT, &l2->flag); in l2_st8_mdl_error_dm() 854 test_and_clear_bit(FLG_PEND_REL, &l2->flag); in l2_discard_i_setl3() 1129 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); in enquiry_response() 1151 test_and_clear_bit(FLG_L3_INIT, &l2->flag); in nrerrorrecovery() [all …]
|
/linux/drivers/media/pci/cx23885/ |
A D | cx23885-ir.c | 31 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/ |
A D | bitops.h | 31 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() 132 test_and_clear_bit(nr, addr); in __clear_bit() 148 return test_and_clear_bit(nr, addr); in __test_and_clear_bit()
|
/linux/drivers/fpga/ |
A D | stratix10-soc.c | 208 if (!test_and_clear_bit(SVC_STATUS_OK, &priv->status)) { in s10_ops_write_init() 321 if (test_and_clear_bit(SVC_STATUS_BUFFER_DONE, &priv->status) || in s10_ops_write() 322 test_and_clear_bit(SVC_STATUS_BUFFER_SUBMITTED, in s10_ops_write() 328 if (test_and_clear_bit(SVC_STATUS_ERROR, &priv->status)) { in s10_ops_write() 376 if (test_and_clear_bit(SVC_STATUS_COMPLETED, &priv->status)) in s10_ops_write_complete() 379 if (test_and_clear_bit(SVC_STATUS_ERROR, &priv->status)) { in s10_ops_write_complete()
|
/linux/net/mac80211/ |
A D | ht.c | 332 if (test_and_clear_bit(HT_AGG_STATE_STOP_CB, &tid_tx->state)) in ieee80211_sta_tear_down_BA_sessions() 352 if (test_and_clear_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired)) in ieee80211_ba_session_work() 357 if (test_and_clear_bit(tid, in ieee80211_ba_session_work() 364 test_and_clear_bit(tid, in ieee80211_ba_session_work() 370 if (test_and_clear_bit(tid + IEEE80211_NUM_TIDS, in ieee80211_ba_session_work() 403 test_and_clear_bit(HT_AGG_STATE_START_CB, &tid_tx->state)) in ieee80211_ba_session_work() 405 if (test_and_clear_bit(HT_AGG_STATE_WANT_STOP, &tid_tx->state)) in ieee80211_ba_session_work() 408 if (test_and_clear_bit(HT_AGG_STATE_STOP_CB, &tid_tx->state)) in ieee80211_ba_session_work()
|
/linux/net/rxrpc/ |
A D | call_event.c | 309 if (test_and_clear_bit(RXRPC_CALL_EV_ABORT, &call->events)) { in rxrpc_process_call() 378 if (test_and_clear_bit(RXRPC_CALL_EV_EXPIRED, &call->events)) { in rxrpc_process_call() 391 if (test_and_clear_bit(RXRPC_CALL_EV_ACK_LOST, &call->events)) { in rxrpc_process_call() 398 if (test_and_clear_bit(RXRPC_CALL_EV_ACK, &call->events) || in rxrpc_process_call() 406 if (test_and_clear_bit(RXRPC_CALL_EV_PING, &call->events)) { in rxrpc_process_call() 411 if (test_and_clear_bit(RXRPC_CALL_EV_RESEND, &call->events)) { in rxrpc_process_call()
|
/linux/arch/sparc/lib/ |
A 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/drivers/isdn/hardware/mISDN/ |
A D | hfcpci.c | 942 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in handle_nt_timer3() 994 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt() 995 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt() 998 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in ph_state_nt() 1014 if (!test_and_clear_bit(FLG_L2_ACTIVATED, in ph_state_nt() 1087 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in hfc_l1callback() 1100 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in hfc_l1callback() 1311 test_and_clear_bit(FLG_HDLC, &bch->Flags); in mode_hfcpci() 1312 test_and_clear_bit(FLG_TRANSPARENT, &bch->Flags); in mode_hfcpci() 1552 test_and_clear_bit(FLG_OPEN, &bch->Flags); in hfc_bctrl() [all …]
|
A D | mISDNisar.c | 695 test_and_clear_bit(FLG_TX_EMPTY, &ch->bch.Flags); in send_next() 699 if (test_and_clear_bit(FLG_DLEETX, &ch->bch.Flags)) { in send_next() 700 if (test_and_clear_bit(FLG_LASTDATA, in send_next() 702 if (test_and_clear_bit(FLG_NMD_DATA, in send_next() 984 if (test_and_clear_bit(FLG_LL_OK, &ch->bch.Flags)) in isar_pump_statev_fax() 1140 test_and_clear_bit(FLG_FTI_RUN, &ch->bch.Flags); in ftimer_handler() 1141 if (test_and_clear_bit(FLG_LL_CONN, &ch->bch.Flags)) in ftimer_handler() 1281 test_and_clear_bit(FLG_HDLC, &ch->bch.Flags); in modeisar() 1329 test_and_clear_bit(ISAR_DP1_USE, &ch->is->Flags); in modeisar() 1331 test_and_clear_bit(ISAR_DP2_USE, &ch->is->Flags); in modeisar() [all …]
|
A D | mISDNipac.c | 207 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) in isac_xpr_irq() 579 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in isac_l1hw() 665 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in isac_l1cmd() 666 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in isac_l1cmd() 680 test_and_clear_bit(FLG_ACTIVE, &dch->Flags); in isac_l1cmd() 1015 test_and_clear_bit(FLG_TX_EMPTY, &hx->bch.Flags); in hscx_xpr() 1230 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags); in hscx_mode() 1266 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags); in hscx_mode() 1302 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags); in hscx_mode() 1396 test_and_clear_bit(FLG_OPEN, &bch->Flags); in hscx_bctrl() [all …]
|
A D | w6692.c | 312 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in d_retransmit() 315 if (test_and_clear_bit(FLG_L1_BUSY, &dch->Flags)) in d_retransmit() 602 test_and_clear_bit(FLG_HDLC, &wch->bch.Flags); in w6692_mode() 603 test_and_clear_bit(FLG_TRANSPARENT, &wch->bch.Flags); in w6692_mode() 640 test_and_clear_bit(FLG_TX_EMPTY, &wch->bch.Flags); in send_next() 819 test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags); in dbusy_timer_handler() 1035 test_and_clear_bit(FLG_OPEN, &bch->Flags); in w6692_bctrl() 1084 test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags); in w6692_l2l1D() 1130 test_and_clear_bit(FLG_TX_BUSY, &dch->Flags); in w6692_l1callback() 1131 if (test_and_clear_bit(FLG_BUSY_TIMER, &dch->Flags)) in w6692_l1callback() [all …]
|
/linux/arch/m68k/include/asm/ |
A D | bitops.h | 245 #define test_and_clear_bit(nr, vaddr) bclr_reg_test_and_clear_bit(nr, vaddr) macro 247 #define test_and_clear_bit(nr, vaddr) bclr_mem_test_and_clear_bit(nr, vaddr) macro 249 #define test_and_clear_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ macro 254 #define __test_and_clear_bit(nr, vaddr) test_and_clear_bit(nr, vaddr)
|
/linux/fs/nfs/ |
A D | nfs4state.c | 1569 if (test_and_clear_bit(NFS_CLNT_DST_SSC_COPY_STATE, in nfs42_complete_copies() 1581 if (test_and_clear_bit(NFS_CLNT_DST_SSC_COPY_STATE, in nfs42_complete_copies() 1644 if (!test_and_clear_bit(ops->state_flag_bit, &state->flags)) in nfs4_reclaim_open_state() 1806 if (!test_and_clear_bit(NFS_STATE_RECLAIM_REBOOT, in nfs4_clear_reclaim_server() 1820 if (!test_and_clear_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state)) in nfs4_state_clear_reclaim_reboot() 1913 if (!test_and_clear_bit(ops->owner_flag_bit, in nfs4_do_reclaim() 2170 if (!test_and_clear_bit(NFS_MIG_IN_TRANSITION, in nfs4_handle_migration() 2594 if (test_and_clear_bit(NFS4CLNT_BIND_CONN_TO_SESSION, in nfs4_state_manager() 2603 if (test_and_clear_bit(NFS4CLNT_CHECK_LEASE, &clp->cl_state)) { in nfs4_state_manager() 2611 if (test_and_clear_bit(NFS4CLNT_MOVED, &clp->cl_state)) { in nfs4_state_manager() [all …]
|
/linux/drivers/net/wireless/realtek/rtw89/ |
A D | ps.c | 48 if (test_and_clear_bit(RTW89_FLAG_LOW_POWER_MODE, rtwdev->flags)) in __rtw89_leave_ps_mode() 110 if (!test_and_clear_bit(RTW89_FLAG_LEISURE_PS, rtwdev->flags)) in rtw89_leave_lps()
|
/linux/arch/powerpc/platforms/pasemi/ |
A D | dma_lib.c | 123 if (!test_and_clear_bit(bit, txch_free)) in pasemi_alloc_tx_chan() 142 if (!test_and_clear_bit(bit, rxch_free)) in pasemi_alloc_rx_chan() 381 if (!test_and_clear_bit(bit, flags_free)) in pasemi_dma_alloc_flag() 446 if (!test_and_clear_bit(bit, fun_free)) in pasemi_dma_alloc_fun()
|
/linux/drivers/media/pci/ivtv/ |
A D | ivtv-irq.c | 94 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/drivers/infiniband/hw/hfi1/ |
A D | intr.c | 211 if (test_and_clear_bit(HFI1_CTXT_WAITING_RCV, &rcd->event_flags)) { in handle_user_interrupt() 214 } else if (test_and_clear_bit(HFI1_CTXT_WAITING_URG, in handle_user_interrupt()
|
/linux/drivers/media/usb/hackrf/ |
A D | hackrf.c | 270 if (rx && test_and_clear_bit(RX_ADC_FREQUENCY, &dev->flags)) { in hackrf_set_params() 275 } else if (tx && test_and_clear_bit(TX_DAC_FREQUENCY, &dev->flags)) { in hackrf_set_params() 298 if (rx && test_and_clear_bit(RX_BANDWIDTH, &dev->flags)) { in hackrf_set_params() 314 } else if (tx && test_and_clear_bit(TX_BANDWIDTH, &dev->flags)) { in hackrf_set_params() 346 if (rx && test_and_clear_bit(RX_RF_FREQUENCY, &dev->flags)) { in hackrf_set_params() 351 } else if (tx && test_and_clear_bit(TX_RF_FREQUENCY, &dev->flags)) { in hackrf_set_params() 374 if (rx && test_and_clear_bit(RX_RF_GAIN, &dev->flags)) { in hackrf_set_params() 386 if (tx && test_and_clear_bit(TX_RF_GAIN, &dev->flags)) { in hackrf_set_params() 398 if (rx && test_and_clear_bit(RX_LNA_GAIN, &dev->flags)) { in hackrf_set_params() 409 if (rx && test_and_clear_bit(RX_IF_GAIN, &dev->flags)) { in hackrf_set_params() [all …]
|
/linux/drivers/watchdog/ |
A D | sbc7240_wdt.c | 56 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/drivers/gpu/drm/nouveau/nvkm/core/ |
A D | notify.c | 40 test_and_clear_bit(NVKM_NOTIFY_USER, ¬ify->flags)) { in nvkm_notify_put() 76 !test_and_clear_bit(NVKM_NOTIFY_USER, ¬ify->flags)) { in nvkm_notify_func()
|
/linux/drivers/bus/mhi/ |
A D | pci_generic.c | 624 if (test_and_clear_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status)) { in mhi_pci_recovery_work() 785 if (test_and_clear_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status)) { in mhi_pci_remove() 814 if (test_and_clear_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status)) { in mhi_pci_reset_prepare() 871 if (test_and_clear_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status)) { in mhi_pci_error_detected() 950 if (!test_and_clear_bit(MHI_PCI_DEV_SUSPENDED, &mhi_pdev->status)) in mhi_pci_runtime_resume() 1020 if (test_and_clear_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status)) { in mhi_pci_freeze()
|
/linux/drivers/infiniband/hw/qib/ |
A D | qib_intr.c | 203 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()
|