/openbmc/linux/drivers/isdn/mISDN/ |
H 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() 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 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 …]
|
H 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() 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 D | layer2.c | 257 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 …]
|
/openbmc/linux/drivers/media/pci/cx23885/ |
H 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()
|
/openbmc/linux/arch/hexagon/include/asm/ |
H 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() 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()
|
/openbmc/linux/drivers/fpga/ |
H A D | stratix10-soc.c | 209 if (!test_and_clear_bit(SVC_STATUS_OK, &priv->status)) { in s10_ops_write_init() 322 if (test_and_clear_bit(SVC_STATUS_BUFFER_DONE, &priv->status) || in s10_ops_write() 323 test_and_clear_bit(SVC_STATUS_BUFFER_SUBMITTED, in s10_ops_write() 329 if (test_and_clear_bit(SVC_STATUS_ERROR, &priv->status)) { in s10_ops_write() 377 if (test_and_clear_bit(SVC_STATUS_COMPLETED, &priv->status)) in s10_ops_write_complete() 380 if (test_and_clear_bit(SVC_STATUS_ERROR, &priv->status)) { in s10_ops_write_complete()
|
/openbmc/u-boot/arch/sandbox/include/asm/ |
H A D | bitops.h | 83 static inline int test_and_clear_bit(int nr, void *addr) in test_and_clear_bit() function 155 #define ext2_clear_bit test_and_clear_bit 163 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr)
|
/openbmc/u-boot/arch/nds32/include/asm/ |
H A D | bitops.h | 92 extern int test_and_clear_bit(int nr, void *addr); 180 #define ext2_clear_bit test_and_clear_bit 188 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr)
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | bitops.h | 76 static inline int test_and_clear_bit(int nr, volatile void * addr) in test_and_clear_bit() function 165 #define ext2_clear_bit test_and_clear_bit 173 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr)
|
/openbmc/linux/net/mac80211/ |
H A D | ht.c | 347 if (test_and_clear_bit(HT_AGG_STATE_STOP_CB, &tid_tx->state)) in ieee80211_sta_tear_down_BA_sessions() 367 if (test_and_clear_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired)) in ieee80211_ba_session_work() 372 if (test_and_clear_bit(tid, in ieee80211_ba_session_work() 379 test_and_clear_bit(tid, in ieee80211_ba_session_work() 385 if (test_and_clear_bit(tid + IEEE80211_NUM_TIDS, in ieee80211_ba_session_work() 449 test_and_clear_bit(HT_AGG_STATE_START_CB, &tid_tx->state)) in ieee80211_ba_session_work() 451 if (test_and_clear_bit(HT_AGG_STATE_WANT_STOP, &tid_tx->state)) in ieee80211_ba_session_work() 454 if (test_and_clear_bit(HT_AGG_STATE_STOP_CB, &tid_tx->state)) in ieee80211_ba_session_work()
|
/openbmc/linux/drivers/leds/ |
H A D | led-core.c | 72 if (test_and_clear_bit(LED_BLINK_ONESHOT_STOP, in led_timer_function() 81 if (test_and_clear_bit(LED_BLINK_BRIGHTNESS_CHANGE, in led_timer_function() 138 if (test_and_clear_bit(LED_BLINK_DISABLE, &led_cdev->work_flags)) { in set_brightness_delayed() 150 if (test_and_clear_bit(LED_SET_BRIGHTNESS_OFF, &led_cdev->work_flags)) in set_brightness_delayed() 153 if (test_and_clear_bit(LED_SET_BRIGHTNESS, &led_cdev->work_flags)) in set_brightness_delayed() 156 if (test_and_clear_bit(LED_SET_BLINK, &led_cdev->work_flags)) { in set_brightness_delayed()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | posted_intr.h | 40 return test_and_clear_bit(POSTED_INTR_ON, (unsigned long *)&pi_desc->control); in pi_test_and_clear_on() 45 return test_and_clear_bit(POSTED_INTR_SN, (unsigned long *)&pi_desc->control); in pi_test_and_clear_sn()
|
/openbmc/linux/drivers/net/can/ |
H A D | can327.c | 583 } 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()
|
/openbmc/linux/arch/sparc/lib/ |
H 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)
|
/openbmc/u-boot/arch/riscv/include/asm/ |
H A D | bitops.h | 162 #define ext2_clear_bit test_and_clear_bit 170 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr)
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | bitops.h | 254 #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()
|
/openbmc/linux/drivers/isdn/hardware/mISDN/ |
H A D | hfcpci.c | 942 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in handle_nt_timer3() 966 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt() 967 test_and_clear_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt() 984 test_and_clear_bit(FLG_HFC_TIMER_T3, &dch->Flags); in ph_state_nt() 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() 1001 test_and_clear_bit(FLG_L2_ACTIVATED, &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() [all …]
|
H 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() 757 if (!test_and_clear_bit(ISAR_RATE_REQ, &ch->is->Flags)) in isar_pump_status_rsp() 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() 1282 test_and_clear_bit(FLG_TRANSPARENT, &ch->bch.Flags); in modeisar() [all …]
|
H A D | mISDNipac.c | 207 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) in isac_xpr_irq() 221 if (test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) in isac_retransmit() 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() 729 test_and_clear_bit(FLG_BUSY_TIMER, &isac->dch.Flags); in dbusy_timer_handler() 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() 1231 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags); in hscx_mode() [all …]
|
/openbmc/linux/kernel/kcsan/ |
H A D | selftest.c | 161 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()
|
/openbmc/linux/arch/powerpc/platforms/pasemi/ |
H A D | dma_lib.c | 125 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()
|
/openbmc/u-boot/arch/mips/include/asm/ |
H A D | bitops.h | 221 test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() function 474 static __inline__ int test_and_clear_bit(int nr, volatile void * addr) in test_and_clear_bit() function 884 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr), (addr)) 899 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr)
|
/openbmc/linux/fs/nfs/ |
H A D | nfs4state.c | 259 if (test_and_clear_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { in nfs4_end_drain_slot_table() 1594 if (test_and_clear_bit(NFS_CLNT_DST_SSC_COPY_STATE, in nfs42_complete_copies() 1606 if (test_and_clear_bit(NFS_CLNT_DST_SSC_COPY_STATE, in nfs42_complete_copies() 1673 if (!test_and_clear_bit(ops->state_flag_bit, &state->flags)) in nfs4_reclaim_open_state() 1836 if (!test_and_clear_bit(NFS_STATE_RECLAIM_REBOOT, in nfs4_clear_reclaim_server() 1850 if (!test_and_clear_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state)) in nfs4_state_clear_reclaim_reboot() 1944 if (!test_and_clear_bit(ops->owner_flag_bit, in nfs4_do_reclaim() 2088 if (test_and_clear_bit(NFS4CLNT_SERVER_SCOPE_MISMATCH, &clp->cl_state)) in nfs4_reclaim_lease() 2217 if (!test_and_clear_bit(NFS_MIG_IN_TRANSITION, in nfs4_handle_migration() 2581 if (test_and_clear_bit(NFS4CLNT_RECALL_ANY_LAYOUT_READ, &clp->cl_state)) in nfs4_layoutreturn_any_run() [all …]
|
/openbmc/linux/tools/include/asm-generic/bitops/ |
H A D | atomic.h | 13 #define clear_bit test_and_clear_bit
|