Home
last modified time | relevance | path

Searched refs:test_and_set_bit (Results 1 – 200 of 680) sorted by relevance

1234

/linux-4.1.27/arch/hexagon/include/asm/
Dbitops.h69 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() function
127 test_and_set_bit(nr, addr); in set_bit()
151 test_and_set_bit(nr, addr); in __set_bit()
167 return test_and_set_bit(nr, addr); in __test_and_set_bit()
/linux-4.1.27/arch/mn10300/lib/
Dbitops.c23 if (!test_and_set_bit(nr, addr)) in change_bit()
42 if (!test_and_set_bit(nr, addr)) in test_and_change_bit()
/linux-4.1.27/drivers/dma-buf/
Dfence.c79 if (test_and_set_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) { in fence_signal_locked()
119 if (test_and_set_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) in fence_signal()
205 if (!test_and_set_bit(FENCE_FLAG_ENABLE_SIGNAL_BIT, &fence->flags) && in fence_enable_sw_signaling()
259 was_set = test_and_set_bit(FENCE_FLAG_ENABLE_SIGNAL_BIT, &fence->flags); in fence_add_callback()
358 was_set = test_and_set_bit(FENCE_FLAG_ENABLE_SIGNAL_BIT, &fence->flags); in fence_default_wait()
/linux-4.1.27/net/rxrpc/
Dar-accept.c137 if (!test_and_set_bit(RXRPC_CALL_INIT_ACCEPT, &call->flags)) { in rxrpc_accept_incoming_call()
189 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) { in rxrpc_accept_incoming_call()
380 if (test_and_set_bit(RXRPC_CALL_HAS_USERID, &call->flags)) in rxrpc_accept_call()
382 if (test_and_set_bit(RXRPC_CALL_ACCEPTED, &call->events)) in rxrpc_accept_call()
398 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) in rxrpc_accept_call()
437 if (test_and_set_bit(RXRPC_CALL_REJECT_BUSY, &call->events)) in rxrpc_reject_call()
461 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) in rxrpc_reject_call()
Dar-call.c455 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) in rxrpc_incoming_call()
624 if (test_and_set_bit(RXRPC_CALL_RELEASED, &call->flags)) in rxrpc_release_call()
766 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) in rxrpc_mark_call_released()
769 if (!test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) in rxrpc_mark_call_released()
998 if (!test_and_set_bit(RXRPC_CALL_RESEND_TIMER, &call->events)) in rxrpc_resend_time_expired()
1016 !test_and_set_bit(RXRPC_CALL_ACK, &call->events)) in rxrpc_ack_time_expired()
Dar-input.c185 if (test_and_set_bit(RXRPC_CALL_EXPECT_OOS, &call->flags)) { in rxrpc_fast_process_data()
234 !test_and_set_bit(RXRPC_CALL_DRAIN_RX_OOS, &call->events)) in rxrpc_fast_process_data()
533 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) { in rxrpc_post_packet_to_call()
/linux-4.1.27/arch/mips/kernel/
Dirq.c44 if (test_and_set_bit(irq, irq_map)) in allocate_irqno()
60 BUG_ON(test_and_set_bit(i, irq_map)); in alloc_legacy_irqno()
/linux-4.1.27/drivers/isdn/mISDN/
Dstack.c36 test_and_set_bit(mISDN_STACK_WORK, &st->status); in _queue_message()
227 test_and_set_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
237 test_and_set_bit(mISDN_STACK_WORK, in mISDNStackd()
265 test_and_set_bit(mISDN_STACK_STOPPED, &st->status); in mISDNStackd()
269 test_and_set_bit(mISDN_STACK_RESTART, &st->status); in mISDNStackd()
273 test_and_set_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
275 test_and_set_bit(mISDN_STACK_WORK, in mISDNStackd()
293 test_and_set_bit(mISDN_STACK_ACTIVE, &st->status); in mISDNStackd()
319 test_and_set_bit(mISDN_STACK_KILLED, &st->status); in mISDNStackd()
643 test_and_set_bit(mISDN_STACK_ABORT, &st->status); in delete_stack()
[all …]
Dlayer2.c205 if (test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in l2down_raw()
271 if (!test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm()
333 test_and_set_bit(FLG_PEER_BUSY, &l2->flag); in set_peer_busy()
335 test_and_set_bit(FLG_L2BLOCK, &l2->flag); in set_peer_busy()
668 test_and_set_bit(FLG_T200_RUN, &l2->flag); in start_t200()
675 test_and_set_bit(FLG_T200_RUN, &l2->flag); in restart_t200()
851 test_and_set_bit(FLG_L3_INIT, &l2->flag); in l2_establish()
862 test_and_set_bit(FLG_L3_INIT, &l2->flag); in l2_discard_i_setl3()
875 test_and_set_bit(FLG_L3_INIT, &l2->flag); in l2_l3_reestablish()
895 test_and_set_bit(FLG_PEND_REL, &l2->flag); in l2_pend_rel()
[all …]
Dhwchannel.c68 test_and_set_bit(FLG_HDLC, &ch->Flags); in mISDN_initdchannel()
177 test_and_set_bit(FLG_FILLEMPTY, &bch->Flags); in mISDN_ctrl_bchannel()
186 test_and_set_bit(FLG_RX_OFF, &bch->Flags); in mISDN_ctrl_bchannel()
426 if (test_and_set_bit(FLG_TX_BUSY, &ch->Flags)) { in dchannel_senddata()
460 if (test_and_set_bit(FLG_TX_BUSY, &ch->Flags)) { in bchannel_senddata()
461 test_and_set_bit(FLG_TX_NEXT, &ch->Flags); in bchannel_senddata()
Dlayer1.c140 test_and_set_bit(FLG_L1_DEACTTIMER, &l1->Flags); in l1_deact_req_s()
189 test_and_set_bit(FLG_L1_ACTTIMER, &l1->Flags); in l1_info4_ind()
216 test_and_set_bit(FLG_L1_ACTIVATED, &l1->Flags); in l1_timer_act()
239 test_and_set_bit(FLG_L1_T3RUN, &l1->Flags); in l1_activate_s()
355 test_and_set_bit(FLG_L1_ACTIVATING, &l1->Flags); in l1_event()
Dtei.c343 if (!test_and_set_bit(MGR_PH_NOTREADY, &mgr->options)) { in do_send()
802 test_and_set_bit(OPTION_L2_FIXEDTEI, &opt); in create_new_tei()
805 test_and_set_bit(OPTION_L2_PMX, &opt); in create_new_tei()
1008 test_and_set_bit(OPTION_L2_FIXEDTEI, &opt); in create_teimgr()
1010 test_and_set_bit(OPTION_L2_PTP, &opt); in create_teimgr()
1029 test_and_set_bit(MGR_OPT_NETWORK, &mgr->options); in create_teimgr()
1031 test_and_set_bit(MGR_OPT_USER, &mgr->options); in create_teimgr()
1036 test_and_set_bit(OPTION_L2_PMX, &opt); in create_teimgr()
1125 test_and_set_bit(MGR_PH_ACTIVE, &mgr->options); in mgr_send()
1189 test_and_set_bit(OPTION_L2_CLEANUP, &mgr->options); in ctrl_teimanager()
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dperfctr-watchdog.c115 if (!test_and_set_bit(counter, perfctr_nmi_owner)) in reserve_perfctr_nmi()
143 if (!test_and_set_bit(counter, evntsel_nmi_owner)) in reserve_evntsel_nmi()
/linux-4.1.27/arch/sh/boards/mach-x3proto/
Dilsel.c106 } while (test_and_set_bit(bit, &ilsel_level_map)); in ilsel_enable()
129 if (test_and_set_bit(bit, &ilsel_level_map)) in ilsel_enable_fixed()
/linux-4.1.27/drivers/isdn/hisax/
Dhscx.c109 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in hscx_l2l1()
120 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in hscx_l2l1()
132 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in hscx_l2l1()
136 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); in hscx_l2l1()
177 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { in open_hscxstate()
Djade.c144 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in jade_l2l1()
155 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in jade_l2l1()
167 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in jade_l2l1()
171 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); in jade_l2l1()
212 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { in open_jadestate()
Dhfc_2bds0.c343 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfc_send_data()
361 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in main_rec_2bds0()
487 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in hfc_l2l1()
491 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); in hfc_l2l1()
528 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { in open_hfcstate()
597 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in receive_dmsg()
815 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfc2bds0_interrupt()
822 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfc2bds0_interrupt()
839 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfc2bds0_interrupt()
846 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfc2bds0_interrupt()
[all …]
Darcofi.c23 if (test_and_set_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { in add_arcofi_timer()
59 test_and_set_bit(FLG_ARCOFI_ERROR, &cs->HW_Flags); in arcofi_fsm()
132 test_and_set_bit(HW_ARCOFI, &cs->HW_Flags); in init_arcofi()
Disar.c701 test_and_set_bit(BC_FLG_LASTDATA, in isar_fill_fifo()
776 test_and_set_bit(BC_FLG_NMD_DATA, &bcs->Flag); in send_frames()
780 test_and_set_bit(BC_FLG_LASTDATA, &bcs->Flag); in send_frames()
781 test_and_set_bit(BC_FLG_NMD_DATA, &bcs->Flag); in send_frames()
792 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in send_frames()
802 test_and_set_bit(BC_FLG_LL_OK, &bcs->Flag); in send_frames()
932 test_and_set_bit(ISAR_RATE_REQ, &bcs->hw.isar.reg->Flags); in isar_pump_statev_modem()
1056 test_and_set_bit(ISAR_RATE_REQ, &bcs->hw.isar.reg->Flags); in isar_pump_statev_fax()
1060 if (test_and_set_bit(BC_FLG_FTI_RUN, &bcs->Flag)) in isar_pump_statev_fax()
1065 test_and_set_bit(BC_FLG_LL_CONN, in isar_pump_statev_fax()
[all …]
Dhfc_sx.c455 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in receive_dmsg()
484 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in main_rec_hfcsx()
658 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in receive_emsg()
770 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcsx_interrupt()
777 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcsx_interrupt()
794 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcsx_interrupt()
801 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcsx_interrupt()
822 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcsx_interrupt()
837 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcsx_interrupt()
897 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in HFCSX_l1hw()
[all …]
Dhfc_pci.c184 test_and_set_bit(event, &cs->event); in sched_event_D_pci()
194 test_and_set_bit(event, &bcs->event); in hfcpci_sched_event()
340 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in receive_dmsg()
472 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in main_rec_hfcpci()
844 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in receive_emsg()
1005 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcpci_interrupt()
1012 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcpci_interrupt()
1029 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcpci_interrupt()
1036 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcpci_interrupt()
1057 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { in hfcpci_interrupt()
[all …]
Dnetjet.c145 test_and_set_bit(BC_FLG_EMPTY, &bcs->Flag); in mode_tiger()
389 test_and_set_bit(B_RCVBUFREADY, &bcs->event); in got_frame()
617 if (test_and_set_bit(BC_FLG_BUSY, &bcs->Flag)) in netjet_fill_dma()
727 test_and_set_bit(BC_FLG_HALF, &bcs->Flag); in write_raw()
730 test_and_set_bit(BC_FLG_NOFRAME, &bcs->Flag); in write_raw()
746 test_and_set_bit(B_XMTBUFREADY, &bcs->event); in write_raw()
751 test_and_set_bit(BC_FLG_HALF, &bcs->Flag); in write_raw()
757 test_and_set_bit(BC_FLG_EMPTY, &bcs->Flag); in write_raw()
825 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in tiger_l2l1()
829 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); in tiger_l2l1()
[all …]
Dhfc_2bs0.c377 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in main_irq_hfc()
384 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in main_irq_hfc()
466 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in hfc_l2l1()
476 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in hfc_l2l1()
487 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in hfc_l2l1()
491 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); in hfc_l2l1()
530 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { in open_hfcstate()
Disdnl2.c111 test_and_set_bit(FLG_PEER_BUSY, &l2->flag); in set_peer_busy()
114 test_and_set_bit(FLG_L2BLOCK, &l2->flag); in set_peer_busy()
460 test_and_set_bit(FLG_T200_RUN, &st->l2.flag); in start_t200()
467 test_and_set_bit(FLG_T200_RUN, &st->l2.flag); in restart_t200()
638 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_establish()
647 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_discard_i_setl3()
658 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_l3_reestablish()
674 test_and_set_bit(FLG_PEND_REL, &st->l2.flag); in l2_pend_rel()
844 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_reestablish()
1095 test_and_set_bit(FLG_ACK_PEND, &l2->flag); in l2_got_iframe()
[all …]
Disdnl1.c480 test_and_set_bit(FLG_L1_DEACTTIMER, &st->l1.Flags); in l1_deact_req_s()
492 test_and_set_bit(FLG_L1_T3RUN, &st->l1.Flags); in l1_power_up_s()
541 test_and_set_bit(FLG_L1_ACTTIMER, &st->l1.Flags); in l1_info4_ind()
569 test_and_set_bit(FLG_L1_ACTIVATED, &st->l1.Flags); in l1_timer_act()
659 test_and_set_bit(FLG_L1_DEACTTIMER, &st->l1.Flags); in l1_deact_req_u()
669 test_and_set_bit(FLG_L1_T3RUN, &st->l1.Flags); in l1_power_up_u()
818 test_and_set_bit(FLG_L1_ACTIVATING, &st->l1.Flags); in dch_l2l1()
Dw6692.c187 if (test_and_set_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) { in W6692_fill_fifo()
392 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in W6692B_interrupt()
621 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in W6692_l1hw()
698 test_and_set_bit(FLG_L1_DBUSY, &cs->HW_Flags); in dbusy_timer_handler()
769 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in W6692_l2l1()
781 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in W6692_l2l1()
792 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in W6692_l2l1()
796 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); in W6692_l2l1()
837 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { in open_w6692state()
Dcallc.c1051 test_and_set_bit(FLG_MOD128, &st->l2.flag); in init_d_st()
1052 test_and_set_bit(FLG_LAPD, &st->l2.flag); in init_d_st()
1053 test_and_set_bit(FLG_ORIG, &st->l2.flag); in init_d_st()
1296 test_and_set_bit(FLG_LAPB, &st->l2.flag); in init_b_st()
1299 test_and_set_bit(FLG_ORIG, &st->l2.flag); in init_b_st()
1313 test_and_set_bit(FLG_LLI_L2WAKEUP, &st->lli.flag); in init_b_st()
1324 test_and_set_bit(FLG_LLI_L1WAKEUP, &st->lli.flag); in init_b_st()
1330 test_and_set_bit(FLG_START_B, &chanp->Flags); in init_b_st()
1637 test_and_set_bit(FLG_PTP, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1638 test_and_set_bit(FLG_FIXED_TEI, &csta->channel[0].d_st->l2.flag); in HiSax_command()
[all …]
Davm_pci.c436 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in HDLC_irq()
495 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in hdlc_l2l1()
506 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in hdlc_l2l1()
518 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in hdlc_l2l1()
522 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); in hdlc_l2l1()
563 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { in open_hdlcstate()
Delsa_ser.c301 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in modem_fill()
560 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); in modem_l2l1()
566 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); in modem_l2l1()
598 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { in setstack_elsa()
Damd7930_fn.c396 if (test_and_set_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) { in Amd7930_fill_Dfifo()
624 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in Amd7930_l1hw()
712 test_and_set_bit(FLG_L1_DBUSY, &cs->HW_Flags); in dbusy_timer_handler()
Dconfig.c1051 test_and_set_bit(FLG_TWO_DCHAN, &cs->HW_Flags); in hisax_cs_new()
1053 test_and_set_bit(FLG_TWO_DCHAN, &cs->HW_Flags); in hisax_cs_new()
1647 test_and_set_bit(event, &cs->event); in hisax_sched_event()
1675 test_and_set_bit(event, &bcs->event); in hisax_b_sched_event()
1797 if (!test_and_set_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in hisax_d_l2l1()
1831 if (!test_and_set_bit(BC_FLG_BUSY, &bcs->Flag)) { in hisax_b_l2l1()
/linux-4.1.27/drivers/isdn/hardware/mISDN/
DmISDNisar.c626 test_and_set_bit(FLG_LASTDATA, in isar_fill_fifo()
631 test_and_set_bit(FLG_DLEETX, in isar_fill_fifo()
697 test_and_set_bit(FLG_NMD_DATA, &ch->bch.Flags); in send_next()
701 test_and_set_bit(FLG_LASTDATA, &ch->bch.Flags); in send_next()
702 test_and_set_bit(FLG_NMD_DATA, &ch->bch.Flags); in send_next()
723 test_and_set_bit(FLG_LL_OK, &ch->bch.Flags); in send_next()
728 test_and_set_bit(FLG_TX_EMPTY, &ch->bch.Flags); in send_next()
845 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags); in isar_pump_statev_modem()
940 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags); in isar_pump_statev_fax()
945 if (test_and_set_bit(FLG_FTI_RUN, in isar_pump_statev_fax()
[all …]
Dhfc_multi_8xx.h104 test_and_set_bit(HFC_CHIP_CLOCK2, &hc->chip); in setup_embedded()
121 test_and_set_bit(HFC_CHIP_EMBSD, &hc->chip); in setup_embedded()
Dhfcmulti.c1153 test_and_set_bit(HFC_CHIP_REVISION0, &hc->chip); in init_chip()
1397 test_and_set_bit(HFC_CHIP_PCM_SLAVE, &hc->chip); in init_chip()
1448 test_and_set_bit(HFC_CHIP_PCM_MASTER, in init_chip()
3130 test_and_set_bit(FLG_TRANSPARENT, in mode_hfcmulti()
3165 test_and_set_bit(FLG_HDLC, &hc->chan[ch].bch->Flags); in mode_hfcmulti()
3317 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in hfcm_l1callback()
3498 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) { in handle_bmsg()
3770 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in ph_state_change()
3848 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in ph_state_change()
4121 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) in open_bchannel()
[all …]
DmISDNipac.c170 if (test_and_set_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) { in isac_fill_fifo()
244 test_and_set_bit(FLG_TX_BUSY, &isac->dch.Flags); in isac_retransmit()
690 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in isac_l1cmd()
740 test_and_set_bit(FLG_L1_BUSY, &isac->dch.Flags); in dbusy_timer_handler()
1153 test_and_set_bit(FLG_TX_EMPTY, &hx->bch.Flags); in ipac_irq()
1256 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags); in hscx_mode()
1263 test_and_set_bit(FLG_HDLC, &hscx->bch.Flags); in hscx_mode()
1292 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags); in hscx_mode()
1299 test_and_set_bit(FLG_HDLC, &hscx->bch.Flags); in hscx_mode()
1328 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags); in hscx_mode()
[all …]
Dw6692.c310 if (test_and_set_bit(FLG_BUSY_TIMER, &dch->Flags)) { in W6692_fill_Dfifo()
341 test_and_set_bit(FLG_TX_BUSY, &dch->Flags); in d_retransmit()
630 test_and_set_bit(FLG_TRANSPARENT, &wch->bch.Flags); in w6692_mode()
640 test_and_set_bit(FLG_HDLC, &wch->bch.Flags); in w6692_mode()
780 test_and_set_bit(FLG_TX_EMPTY, &wch->bch.Flags); in W6692B_interrupt()
835 test_and_set_bit(FLG_L1_BUSY, &dch->Flags); in dbusy_timer_handler()
973 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) in w6692_l2l1B()
1017 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) in open_bchannel()
1161 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in w6692_l1callback()
Davmfritz.c382 test_and_set_bit(FLG_TRANSPARENT, &bch->Flags); in modehdlc()
392 test_and_set_bit(FLG_HDLC, &bch->Flags); in modehdlc()
596 test_and_set_bit(FLG_TX_EMPTY, &bch->Flags); in HDLC_irq()
713 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) in avm_l2l1B()
917 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) in open_bchannel()
Dhfcpci.c959 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in handle_nt_timer3()
998 test_and_set_bit(FLG_HFC_TIMER_T1, &dch->Flags); in ph_state_nt()
1026 if (!test_and_set_bit(FLG_HFC_TIMER_T3, &dch->Flags)) { in ph_state_nt()
1108 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in hfc_l1callback()
1361 test_and_set_bit(FLG_TRANSPARENT, &bch->Flags); in mode_hfcpci()
1390 test_and_set_bit(FLG_HDLC, &bch->Flags); in mode_hfcpci()
1623 test_and_set_bit(FLG_L2_ACTIVATED, &dch->Flags); in hfcpci_l2l1D()
1691 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) in hfcpci_l2l1B()
1950 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) in open_bchannel()
2051 test_and_set_bit(HFC_CFG_MASTER, &hc->cfg); in setup_hw()
Dnetjet.c237 test_and_set_bit(FLG_TRANSPARENT, &bc->bch.Flags); in mode_tiger()
251 test_and_set_bit(FLG_HDLC, &bc->bch.Flags); in mode_tiger()
629 test_and_set_bit(FLG_TX_EMPTY, &bc->bch.Flags); in bc_next_frame()
772 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) in nj_l2l1B()
872 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) in open_bchannel()
/linux-4.1.27/kernel/irq/
Dhandle.c48 if (test_and_set_bit(IRQTF_WARNED, &action->thread_flags)) in warn_no_thread()
69 if (test_and_set_bit(IRQTF_RUNTHREAD, &action->thread_flags)) in __irq_wake_thread()
/linux-4.1.27/crypto/
Dchainiv.c133 test_and_set_bit(CHAINIV_STATE_INUSE, &ctx->state)) in async_chainiv_schedule_work()
154 if (test_and_set_bit(CHAINIV_STATE_INUSE, &ctx->state)) in async_chainiv_postpone_request()
194 if (test_and_set_bit(CHAINIV_STATE_INUSE, &ctx->state)) in async_chainiv_givencrypt()
214 if (test_and_set_bit(CHAINIV_STATE_INUSE, &ctx->state)) in async_chainiv_givencrypt_first()
/linux-4.1.27/include/linux/sunrpc/
Dxprt.h382 return test_and_set_bit(XPRT_CONNECTED, &xprt->state); in xprt_test_and_set_connected()
404 return test_and_set_bit(XPRT_CONNECTING, &xprt->state); in xprt_test_and_set_connecting()
409 test_and_set_bit(XPRT_BOUND, &xprt->state); in xprt_set_bound()
431 return test_and_set_bit(XPRT_BINDING, &xprt->state); in xprt_test_and_set_binding()
Dsched.h142 test_and_set_bit(RPC_TASK_RUNNING, &(t)->tk_runstate)
/linux-4.1.27/arch/m68k/include/asm/
Dbitops.h195 #define test_and_set_bit(nr, vaddr) bset_reg_test_and_set_bit(nr, vaddr) macro
197 #define test_and_set_bit(nr, vaddr) bset_mem_test_and_set_bit(nr, vaddr) macro
199 #define test_and_set_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ macro
204 #define __test_and_set_bit(nr, vaddr) test_and_set_bit(nr, vaddr)
/linux-4.1.27/include/linux/
Dinterrupt.h509 return !test_and_set_bit(TASKLET_STATE_RUN, &(t)->state); in tasklet_trylock()
532 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_schedule()
540 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_hi_schedule()
554 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_hi_schedule_first()
Dblk-iopoll.h29 return test_and_set_bit(IOPOLL_F_SCHED, &iop->state); in blk_iopoll_sched_prep()
Dthread_info.h81 return test_and_set_bit(flag, (unsigned long *)&ti->flags); in test_and_set_ti_thread_flag()
Dlru_cache.h282 return !test_and_set_bit(__LC_LOCKED, &lc->flags); in lc_try_lock_for_transaction()
DmISDNhw.h83 test_and_set_bit(ev, &((s)->Flags)); \
Dnfs_page.h152 return !test_and_set_bit(PG_BUSY, &req->wb_flags); in nfs_lock_request()
Dwait.h1081 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock()
1105 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock_io()
1131 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock_action()
/linux-4.1.27/arch/mips/sgi-ip27/
Dip27-init.c65 if (test_and_set_bit(cnode, hub_init_mask)) in per_hub_init()
122 if (test_and_set_bit(slice, &hub->slice_map)) in per_cpu_init()
Dip27-hubio.c47 if (test_and_set_bit(i, hub_data(cnode)->h_bigwin_used)) in hub_pio_map()
/linux-4.1.27/net/core/
Dlink_watch.c124 if (test_and_set_bit(LW_URGENT, &linkwatch_flags)) in linkwatch_schedule_work()
246 if (!test_and_set_bit(__LINK_STATE_LINKWATCH_PENDING, &dev->state)) { in linkwatch_fire_event()
/linux-4.1.27/include/asm-generic/bitops/
Dlock.h12 #define test_and_set_bit_lock(nr, addr) test_and_set_bit(nr, addr)
Dle.h79 return test_and_set_bit(nr ^ BITOP_LE_SWIZZLE, addr); in test_and_set_bit_le()
Datomic.h127 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) in test_and_set_bit() function
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_io.c81 if (!(test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, in bnx2fc_cmd_timeout()
86 logo_issued = test_and_set_bit( in bnx2fc_cmd_timeout()
107 if (test_and_set_bit(BNX2FC_FLAG_IO_COMPL, in bnx2fc_cmd_timeout()
114 if (!test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, in bnx2fc_cmd_timeout()
125 logo_issued = test_and_set_bit( in bnx2fc_cmd_timeout()
153 if (!test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, in bnx2fc_cmd_timeout()
157 logo_issued = test_and_set_bit( in bnx2fc_cmd_timeout()
181 if (test_and_set_bit(BNX2FC_FLAG_ELS_DONE, in bnx2fc_cmd_timeout()
1121 logo_issued = test_and_set_bit(BNX2FC_FLAG_EXPL_LOGO, in bnx2fc_expl_logo()
1245 if (test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { in bnx2fc_eh_abort()
[all …]
/linux-4.1.27/arch/x86/include/asm/
Dbitops.h204 static inline int test_and_set_bit(long nr, volatile unsigned long *addr) in test_and_set_bit() function
219 return test_and_set_bit(nr, addr); in test_and_set_bit_lock()
Dmpspec.h102 test_and_set_bit(physid, (map).mask)
/linux-4.1.27/fs/dlm/
Dlowcomms.c430 if (con && !test_and_set_bit(CF_READ_PENDING, &con->flags)) in lowcomms_data_ready()
448 if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) in lowcomms_write_space()
456 if (!test_and_set_bit(CF_CONNECT_PENDING, &con->flags)) in lowcomms_connect_sock()
593 if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) in sctp_init_failed_foreach()
646 if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) in retry_failed_sctp_send()
751 if (!test_and_set_bit(CF_WRITE_PENDING, &new_con->flags)) { in process_sctp_notification()
754 if (!test_and_set_bit(CF_READ_PENDING, &new_con->flags)) in process_sctp_notification()
887 if (!test_and_set_bit(CF_READ_PENDING, &con->flags)) in receive_from_sock()
1021 if (!test_and_set_bit(CF_READ_PENDING, &addcon->flags)) in tcp_accept_from_sock()
1080 if (test_and_set_bit(CF_INIT_PENDING, &con->flags)) in sctp_init_assoc()
[all …]
/linux-4.1.27/fs/fscache/
Dcache.c244 if (test_and_set_bit(FSCACHE_TAG_RESERVED, &tag->flags)) in fscache_add_cache()
319 if (!test_and_set_bit(FSCACHE_IOERROR, &cache->flags)) in fscache_io_error()
375 if (test_and_set_bit(FSCACHE_CACHE_WITHDRAWN, &cache->flags)) in fscache_withdraw_cache()
/linux-4.1.27/arch/arm/kernel/
Dperf_event_xscale.c272 if (test_and_set_bit(XSCALE_CYCLE_COUNTER, cpuc->used_mask)) in xscale1pmu_get_event_idx()
277 if (!test_and_set_bit(XSCALE_COUNTER1, cpuc->used_mask)) in xscale1pmu_get_event_idx()
280 if (!test_and_set_bit(XSCALE_COUNTER0, cpuc->used_mask)) in xscale1pmu_get_event_idx()
643 if (!test_and_set_bit(XSCALE_COUNTER3, cpuc->used_mask)) in xscale2pmu_get_event_idx()
645 else if (!test_and_set_bit(XSCALE_COUNTER2, cpuc->used_mask)) in xscale2pmu_get_event_idx()
Dperf_event_v6.c387 if (test_and_set_bit(ARMV6_CYCLE_COUNTER, cpuc->used_mask)) in armv6pmu_get_event_idx()
396 if (!test_and_set_bit(ARMV6_COUNTER1, cpuc->used_mask)) in armv6pmu_get_event_idx()
399 if (!test_and_set_bit(ARMV6_COUNTER0, cpuc->used_mask)) in armv6pmu_get_event_idx()
/linux-4.1.27/drivers/watchdog/
Dsbc7240_wdt.c74 if (!test_and_set_bit(SBC7240_ENABLED_STATUS_BIT, &wdt_status)) { in wdt_enable()
134 if (test_and_set_bit(SBC7240_OPEN_STATUS_BIT, &wdt_status)) in fop_open()
Dit87_wdt.c400 if (exclusive && test_and_set_bit(WDTS_DEV_OPEN, &wdt_status)) in wdt_open()
402 if (!test_and_set_bit(WDTS_TIMER_RUN, &wdt_status)) { in wdt_open()
404 if (nowayout && !test_and_set_bit(WDTS_LOCKED, &wdt_status)) in wdt_open()
551 if (!test_and_set_bit(WDTS_TIMER_RUN, &wdt_status)) { in wdt_ioctl()
Dwdt285.c79 if (test_and_set_bit(1, &timer_alive)) in watchdog_open()
Dsa1100_wdt.c53 if (test_and_set_bit(1, &sa1100wdt_users)) in sa1100dog_open()
Dindydog.c68 if (test_and_set_bit(0, &indydog_alive)) in indydog_open()
Dixp4xx_wdt.c63 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) in ixp4xx_wdt_open()
Dsbc8360.c266 if (test_and_set_bit(0, &sbc8360_is_open)) in sbc8360_open()
Dm54xx_wdt.c83 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) in m54xx_wdt_open()
Diop_wdt.c98 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) in iop_wdt_open()
Dlantiq_wdt.c153 if (test_and_set_bit(0, &ltq_wdt_in_use)) in ltq_wdt_open()
Dpnx833x_wdt.c105 if (test_and_set_bit(0, &pnx833x_wdt_alive)) in pnx833x_wdt_open()
Dsbc_fitpc2_wdt.c71 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) in fitpc2_wdt_open()
Dmixcomwd.c135 if (test_and_set_bit(0, &mixcomwd_opened)) in mixcomwd_open()
Dwafer5823wdt.c193 if (test_and_set_bit(0, &wafwdt_is_open)) in wafwdt_open()
Dscx200_wdt.c101 if (test_and_set_bit(0, &open_lock)) in scx200_wdt_open()
Dmtx-1_wdt.c128 if (test_and_set_bit(0, &mtx1_wdt_device.inuse)) in mtx1_wdt_open()
Dacquirewdt.c195 if (test_and_set_bit(0, &acq_is_open)) in acq_open()
Dib700wdt.c234 if (test_and_set_bit(0, &ibwdt_is_open)) in ibwdt_open()
Dks8695_wdt.c141 if (test_and_set_bit(0, &ks8695wdt_busy)) in ks8695_wdt_open()
Dpika_wdt.c116 if (test_and_set_bit(0, &pikawdt_private.open)) in pikawdt_open()
Dadvantechwdt.c195 if (test_and_set_bit(0, &advwdt_is_open)) in advwdt_open()
Dcpu5wdt.c141 if (test_and_set_bit(0, &cpu5wdt_device.inuse)) in cpu5wdt_open()
Dgef_wdt.c224 if (test_and_set_bit(GEF_WDOG_FLAG_OPENED, &wdt_flags)) in gef_wdt_open()
Dgeodewdt.c88 if (test_and_set_bit(WDT_FLAGS_OPEN, &wdt_flags)) in geodewdt_open()
Dsb_wdog.c109 if (test_and_set_bit(0, &sbwdog_gate)) in sbwdog_open()
Drc32434_wdt.c144 if (test_and_set_bit(0, &rc32434_wdt_device.inuse)) in rc32434_wdt_open()
Dalim1535_wdt.c247 if (test_and_set_bit(0, &ali_is_open)) in ali_open()
Dw83877f_wdt.c222 if (test_and_set_bit(0, &wdt_is_open)) in fop_open()
Dmv64x60_wdt.c128 if (test_and_set_bit(MV64x60_WDOG_FLAG_OPENED, &wdt_flags)) in mv64x60_wdt_open()
Dbcm63xx_wdt.c118 if (test_and_set_bit(0, &bcm63xx_wdt_device.inuse)) in bcm63xx_wdt_open()
Dsbc60xxwdt.c203 if (test_and_set_bit(0, &wdt_is_open)) in fop_open()
Ddiag288_wdt.c224 if (test_and_set_bit(WDOG_DEV_OPEN, &wdt_dev.status)) { in wdt_suspend()
Drdc321x_wdt.c142 if (test_and_set_bit(0, &rdc321x_wdt_device.inuse)) in rdc321x_wdt_open()
Dsc520_wdt.c254 if (test_and_set_bit(0, &wdt_is_open)) in fop_open()
Dat91rm9200_wdt.c112 if (test_and_set_bit(0, &at91wdt_busy)) in at91_wdt_open()
Dbfin_wdt.c154 if (test_and_set_bit(0, &open_check)) in bfin_wdt_open()
Dar7_wdt.c173 if (test_and_set_bit(0, &wdt_is_open)) in ar7_wdt_open()
Dath79_wdt.c128 if (test_and_set_bit(WDT_FLAGS_BUSY, &wdt_flags)) in ath79_wdt_open()
Deurotechwdt.c314 if (test_and_set_bit(0, &eurwdt_is_open)) in eurwdt_open()
Dnuc900_wdt.c129 if (test_and_set_bit(0, &nuc900wdt_busy)) in nuc900_wdt_open()
/linux-4.1.27/arch/arm64/include/asm/
Dbitops.h32 extern int test_and_set_bit(int nr, volatile unsigned long *p);
Dsync_bitops.h20 #define sync_test_and_set_bit(nr, p) test_and_set_bit(nr, p)
/linux-4.1.27/arch/sparc/include/asm/
Dbitops_64.h18 int test_and_set_bit(unsigned long nr, volatile unsigned long *addr);
Dbitops_32.h31 static inline int test_and_set_bit(unsigned long nr, volatile unsigned long *addr) in test_and_set_bit() function
Dparport.h128 if (!test_and_set_bit(slot, dma_slot_map)) in ecpp_probe()
/linux-4.1.27/arch/arm64/kernel/
Darm64ksyms.c59 EXPORT_SYMBOL(test_and_set_bit);
/linux-4.1.27/arch/sparc/lib/
Dbitops.S12 ENTRY(test_and_set_bit) /* %o0=nr, %o1=addr */
31 ENDPROC(test_and_set_bit)
Dksyms.c122 EXPORT_SYMBOL(test_and_set_bit);
/linux-4.1.27/arch/frv/include/asm/
Dbitops.h117 static inline int test_and_set_bit(unsigned long nr, volatile void *addr) in test_and_set_bit() function
140 test_and_set_bit(nr, addr); in set_bit()
/linux-4.1.27/arch/powerpc/mm/
Dmmu_context_hash32.c68 while (test_and_set_bit(ctx, context_map)) { in __init_new_context()
/linux-4.1.27/arch/arm/mm/
Dcopypage-xscale.c92 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) in xscale_mc_copy_user_highpage()
Dcopypage-v4mc.c72 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) in v4_mc_copy_user_highpage()
Dcopypage-v6.c78 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) in v6_copy_user_highpage_aliasing()
Dfault-armv.c199 if (!test_and_set_bit(PG_dcache_clean, &page->flags)) in update_mmu_cache()
/linux-4.1.27/sound/usb/line6/
Dpcm.c110 if (!test_and_set_bit(i, &pcms->unlink_urbs)) in line6_unlink_audio_urbs()
156 if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { in line6_buffer_acquire()
189 if (!test_and_set_bit(type, &pstr->running) && in line6_stream_start()
571 if (!test_and_set_bit(LINE6_FLAG_PREPARED, &line6pcm->flags)) { in snd_line6_prepare()
/linux-4.1.27/arch/arm/include/asm/
Dbitops.h191 #define test_and_set_bit(nr,p) ATOMIC_BITOP(test_and_set_bit,nr,p) macro
/linux-4.1.27/arch/tile/include/asm/
Dbitops_32.h83 static inline int test_and_set_bit(unsigned nr, volatile unsigned long *addr) in test_and_set_bit() function
Dbitops_64.h55 static inline int test_and_set_bit(unsigned nr, volatile unsigned long *addr) in test_and_set_bit() function
/linux-4.1.27/tools/perf/util/include/linux/
Dbitmap.h54 static inline int test_and_set_bit(int nr, unsigned long *addr) in test_and_set_bit() function
/linux-4.1.27/include/net/irda/
Dirmod.h97 #define irda_lock(lock) (! test_and_set_bit(0, (void *) (lock)))
/linux-4.1.27/drivers/hsi/clients/
Dhsi_char.c319 if (test_and_set_bit(HSC_RXBREAK, &cl_data->flags)) in hsc_break_request()
440 if (test_and_set_bit(HSC_CH_READ, &channel->flags)) in hsc_read()
497 if (test_and_set_bit(HSC_CH_WRITE, &channel->flags)) in hsc_write()
554 if (test_and_set_bit(HSC_CH_WLINE, &channel->flags)) in hsc_ioctl()
614 if (test_and_set_bit(HSC_CH_OPEN, &channel->flags)) { in hsc_open()
/linux-4.1.27/arch/arm64/lib/
Dbitops.S69 testop test_and_set_bit, orr
/linux-4.1.27/arch/sh/include/asm/
Dbitops-llsc.h67 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() function
Dbitops-grb.h74 static inline int test_and_set_bit(int nr, volatile void * addr) in test_and_set_bit() function
/linux-4.1.27/arch/ia64/include/asm/
Dbitops.h200 test_and_set_bit (int nr, volatile void *addr) in test_and_set_bit() function
223 #define test_and_set_bit_lock test_and_set_bit
/linux-4.1.27/fs/gfs2/
Dlog.h57 if (!test_and_set_bit(GIF_ORDERED, &ip->i_flags)) in gfs2_ordered_add_inode()
Dutil.c46 test_and_set_bit(SDF_SHUTDOWN, &sdp->sd_flags)) in gfs2_lm_withdraw()
/linux-4.1.27/arch/arm64/mm/
Dflush.c81 if (!test_and_set_bit(PG_dcache_clean, &page->flags)) { in __sync_icache_dcache()
/linux-4.1.27/arch/alpha/include/asm/
Dspinlock.h47 return !test_and_set_bit(0, &lock->lock); in arch_spin_trylock()
Dbitops.h129 test_and_set_bit(unsigned long nr, volatile void *addr) in test_and_set_bit() function
/linux-4.1.27/arch/metag/include/asm/
Dbitops.h51 static inline int test_and_set_bit(unsigned int bit, volatile unsigned long *p) in test_and_set_bit() function
/linux-4.1.27/arch/microblaze/include/asm/
Dmmu_context_mm.h90 while (test_and_set_bit(ctx, context_map)) { in get_mmu_context()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dfail.c98 if (test_and_set_bit(CFS_FAILED_BIT, &cfs_fail_loc)) { in __cfs_fail_check_set()
/linux-4.1.27/drivers/staging/comedi/drivers/
Dcomedi_bond.c207 if (test_and_set_bit(minor, devs_opened)) { in do_dev_config()
336 if (!test_and_set_bit(bdev->minor, devs_closed)) in bonding_detach()
/linux-4.1.27/net/sunrpc/
Dxprt.c186 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) { in xprt_reserve_xprt()
237 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) { in xprt_reserve_xprt_cong()
291 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) in __xprt_lock_write_next()
319 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) in __xprt_lock_write_next_cong()
643 if (test_and_set_bit(XPRT_LOCKED, &xprt->state) == 0) in xprt_force_disconnect()
670 if (test_and_set_bit(XPRT_LOCKED, &xprt->state) == 0) in xprt_conditional_disconnect()
685 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) in xprt_init_autodisconnect()
Dsvc_xprt.c338 if (test_and_set_bit(XPT_BUSY, &xprt->xpt_flags)) { in svc_xprt_do_enqueue()
365 if (test_and_set_bit(RQ_BUSY, &rqstp->rq_flags)) { in svc_xprt_do_enqueue()
924 if (!test_and_set_bit(XPT_OLD, &xprt->xpt_flags)) in svc_age_temp_xprts()
963 if (test_and_set_bit(XPT_DEAD, &xprt->xpt_flags)) in svc_delete_xprt()
986 if (test_and_set_bit(XPT_BUSY, &xprt->xpt_flags)) in svc_close_xprt()
/linux-4.1.27/arch/blackfin/include/asm/
Dbitops.h82 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) in test_and_set_bit() function
/linux-4.1.27/arch/xtensa/include/asm/
Dbitops.h158 test_and_set_bit(unsigned int bit, volatile unsigned long *p) in test_and_set_bit() function
/linux-4.1.27/drivers/input/joystick/iforce/
Diforce-packets.c114 !test_and_set_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags)) { in iforce_send_packet()
229 if (!test_and_set_bit(FF_CORE_IS_PLAYED, iforce->core_effects[i].flags)) { in iforce_process_packet()
Diforce-serio.c36 if (test_and_set_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags)) { in iforce_serial_xmit()
/linux-4.1.27/drivers/uio/
Duio_dmem_genirq.c116 if (!test_and_set_bit(0, &priv->flags)) in uio_dmem_genirq_handler()
139 if (!test_and_set_bit(0, &priv->flags)) in uio_dmem_genirq_irqcontrol()
/linux-4.1.27/net/netfilter/
Dnf_conntrack_labels.c44 if (!test_and_set_bit(bit, labels->bits)) in nf_connlabel_set()
/linux-4.1.27/drivers/nfc/st21nfcb/
Dst21nfcb.c36 if (test_and_set_bit(ST21NFCB_NCI_RUNNING, &info->flags)) in st21nfcb_nci_open()
/linux-4.1.27/net/9p/
Dtrans_fd.c393 if ((n & POLLIN) && !test_and_set_bit(Rworksched, &m->wsched)) { in p9_read_work()
508 !test_and_set_bit(Wworksched, &m->wsched)) { in p9_write_work()
632 if (!test_and_set_bit(Rworksched, &m->wsched)) { in p9_poll_mux()
642 !test_and_set_bit(Wworksched, &m->wsched)) { in p9_poll_mux()
681 if (n & POLLOUT && !test_and_set_bit(Wworksched, &m->wsched)) in p9_fd_request()
/linux-4.1.27/arch/mn10300/include/asm/
Dbitops.h110 #define test_and_set_bit(nr, addr) __test_and_set_bit((nr), (addr)) macro
/linux-4.1.27/drivers/usb/gadget/function/
Duvc.h89 if (!test_and_set_bit(warn, &dev->warnings)) \
/linux-4.1.27/arch/parisc/include/asm/
Dbitops.h62 static __inline__ int test_and_set_bit(int nr, volatile unsigned long * addr) in test_and_set_bit() function
/linux-4.1.27/fs/afs/
Dflock.c142 if (test_and_set_bit(AFS_VNODE_LOCKING, &vnode->flags)) in afs_lock_work()
176 if (test_and_set_bit(AFS_VNODE_LOCKING, &vnode->flags)) in afs_lock_work()
244 if (test_and_set_bit(AFS_VNODE_UNLOCKING, &vnode->flags)) in afs_defer_unlock()
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-fileops.c57 if (test_and_set_bit(CX18_F_S_CLAIMED, &s->s_flags)) { in cx18_claim_stream()
516 test_and_set_bit(CX18_F_S_STREAMING, &s->s_flags)) { in cx18_start_capture()
531 !test_and_set_bit(CX18_F_S_STREAMING, &s_idx->s_flags)) { in cx18_start_capture()
540 !test_and_set_bit(CX18_F_S_STREAMING, &s_vbi->s_flags)) { in cx18_start_capture()
/linux-4.1.27/arch/x86/kernel/apic/
Dhw_nmi.c63 if (test_and_set_bit(0, &backtrace_flag)) { in arch_trigger_all_cpu_backtrace()
/linux-4.1.27/arch/arm/mach-imx/
Diomux-imx31.c108 if (test_and_set_bit(pad, mxc_pin_alloc_map)) { in mxc_iomux_alloc_pin()
/linux-4.1.27/arch/m32r/include/asm/
Dbitops.h150 static __inline__ int test_and_set_bit(int nr, volatile void * addr) in test_and_set_bit() function
Dsmp.h24 #define physid_test_and_set(physid, map) test_and_set_bit(physid, (map).mask)
/linux-4.1.27/drivers/char/pcmcia/
Dcm4000_cs.c633 test_and_set_bit(LOCK_MONITOR, in terminate_monitor()
673 if (test_and_set_bit(LOCK_MONITOR, &dev->flags)) { in monitor_card()
688 if (test_and_set_bit(LOCK_IO, (void *)&dev->flags)) { in monitor_card()
967 || (test_and_set_bit(LOCK_IO, (void *)&dev->flags) == 0)))) { in cmm_read()
1112 || (test_and_set_bit(LOCK_IO, (void *)&dev->flags) == 0)))) { in cmm_write()
1537 || (test_and_set_bit(LOCK_IO, (void *)&dev->flags) in cmm_ioctl()
1598 || (test_and_set_bit(LOCK_IO, (void *)&dev->flags) in cmm_ioctl()
/linux-4.1.27/arch/avr32/include/asm/
Dbitops.h131 static inline int test_and_set_bit(int nr, volatile void * addr) in test_and_set_bit() function
/linux-4.1.27/block/
Dblk-iopoll.c147 while (test_and_set_bit(IOPOLL_F_SCHED, &iop->state)) in blk_iopoll_disable()
/linux-4.1.27/net/atm/
Dpppoatm.c257 test_and_set_bit(BLOCKED, &pvcc->blocked); in pppoatm_may_send()
311 test_and_set_bit(BLOCKED, &pvcc->blocked); in pppoatm_send()
/linux-4.1.27/drivers/media/rc/
Dir-rx51.c371 if (test_and_set_bit(1, &lirc_rx51->device_is_open)) in lirc_rx51_open()
425 if (test_and_set_bit(1, &lirc_rx51.device_is_open)) in lirc_rx51_suspend()
/linux-4.1.27/drivers/staging/wlan-ng/
Dp80211req.c118 if (test_and_set_bit(1, &(wlandev->request_pending))) in p80211req_dorequest()
Dhfa384x_usb.c361 if (!test_and_set_bit(WORK_RX_HALT, &hw->usb_flags)) in submit_rx_urb()
2791 sched = !test_and_set_bit(WORK_TX_HALT, &hw->usb_flags); in hfa384x_tx_timeout()
2792 sched |= !test_and_set_bit(WORK_RX_HALT, &hw->usb_flags); in hfa384x_tx_timeout()
3164 if (!test_and_set_bit(WORK_RX_HALT, &hw->usb_flags)) in hfa384x_usbin_callback()
3173 if (!test_and_set_bit(THROTTLE_RX, &hw->usb_flags) && in hfa384x_usbin_callback()
3696 if (!test_and_set_bit in hfa384x_usbout_callback()
3709 if (!test_and_set_bit in hfa384x_usbout_callback()
3829 !test_and_set_bit(WORK_TX_HALT, &hw->usb_flags)) { in hfa384x_ctlxout_callback()
3992 !test_and_set_bit(WORK_RX_RESUME, &hw->usb_flags)) in hfa384x_usb_throttlefn()
3995 !test_and_set_bit(WORK_TX_RESUME, &hw->usb_flags)) in hfa384x_usb_throttlefn()
/linux-4.1.27/drivers/nfc/nfcmrvl/
Dmain.c32 if (test_and_set_bit(NFCMRVL_NCI_RUNNING, &priv->flags)) in nfcmrvl_nci_open()
/linux-4.1.27/fs/nfs/
Dpnfs.c265 if (!test_and_set_bit(fail_bit, &lo->plh_flags)) in pnfs_layout_set_fail_bit()
1499 if (test_and_set_bit(NFS_LAYOUT_FIRST_LAYOUTGET, in pnfs_update_layout()
1837 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) in pnfs_ld_handle_write_error()
1863 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { in pnfs_write_through_mds()
1953 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) in pnfs_ld_handle_read_error()
1978 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { in pnfs_read_through_mds()
2114 if (!test_and_set_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) { in pnfs_set_layoutcommit()
2121 if (!test_and_set_bit(NFS_LSEG_LAYOUTCOMMIT, &lseg->pls_flags)) { in pnfs_set_layoutcommit()
2168 if (test_and_set_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags)) { in pnfs_layoutcommit_inode()
Dnfs4state.c1152 if (test_and_set_bit(NFS4CLNT_MANAGER_RUNNING, &clp->cl_state) != 0) in nfs4_schedule_state_manager()
1786 if (test_and_set_bit(NFS4CLNT_PURGE_STATE, &clp->cl_state)) in nfs4_handle_reclaim_lease_error()
2174 if (test_and_set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) == 0) { in nfs4_reset_all_state()
2186 if (test_and_set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) == 0) { in nfs41_handle_server_reboot()
2211 if (test_and_set_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state) == 0) in nfs41_handle_backchannel_fault()
2219 if (test_and_set_bit(NFS4CLNT_BIND_CONN_TO_SESSION, in nfs41_handle_cb_path_down()
2427 if (test_and_set_bit(NFS4CLNT_MANAGER_RUNNING, &clp->cl_state) != 0) in nfs4_state_manager()
/linux-4.1.27/drivers/misc/sgi-gru/
Dgrutables.h567 return !test_and_set_bit(1, h); in __trylock_handle()
572 while (test_and_set_bit(1, h)) in __lock_handle()
/linux-4.1.27/drivers/isdn/act2000/
Dact2000_isa.c235 if (test_and_set_bit(ACT2000_LOCK_RX, (void *) &card->ilock) != 0) in act2000_isa_receive()
301 if (test_and_set_bit(ACT2000_LOCK_TX, (void *) &card->ilock) != 0) in act2000_isa_send()
/linux-4.1.27/drivers/net/ethernet/alteon/
Dacenic.c1486 if (!test_and_set_bit(0, &ap->std_refill_busy)) in ace_init()
1492 if (!test_and_set_bit(0, &ap->mini_refill_busy)) in ace_init()
1577 !test_and_set_bit(0, &ap->std_refill_busy)) { in ace_tasklet()
1587 !test_and_set_bit(0, &ap->mini_refill_busy)) { in ace_tasklet()
1598 !test_and_set_bit(0, &ap->jumbo_refill_busy)) { in ace_tasklet()
2178 !test_and_set_bit(0, &ap->std_refill_busy)) { in ace_interrupt()
2192 !test_and_set_bit(0, in ace_interrupt()
2209 !test_and_set_bit(0, in ace_interrupt()
2254 !test_and_set_bit(0, &ap->jumbo_refill_busy)) in ace_open()
2562 if (!test_and_set_bit(0, &ap->jumbo_refill_busy)) in ace_change_mtu()
[all …]
/linux-4.1.27/drivers/scsi/esas2r/
Desas2r_disc.c216 && !test_and_set_bit(AF2_DEV_SCAN, &a->flags2)) { in esas2r_disc_check_complete()
230 if (!test_and_set_bit(AF2_DEV_CNT_OK, &a->flags2)) in esas2r_disc_check_complete()
234 if (!test_and_set_bit(AF2_DEV_SCAN, &a->flags2)) { in esas2r_disc_check_complete()
251 if (!test_and_set_bit(AF2_DEV_SCAN, &a->flags2)) { in esas2r_disc_check_complete()
/linux-4.1.27/sound/isa/msnd/
Dmsnd_midi.c107 if (!test_and_set_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, in snd_msndmidi_input_trigger()
/linux-4.1.27/net/bluetooth/
Dhci_conn.c388 if (!test_and_set_bit(HCI_CONN_MODE_CHANGE_PEND, &conn->flags)) { in hci_conn_idle()
977 if (!test_and_set_bit(HCI_CONN_AUTH_PEND, &conn->flags)) { in hci_conn_auth()
1001 if (!test_and_set_bit(HCI_CONN_ENCRYPT_PEND, &conn->flags)) { in hci_conn_encrypt()
1107 if (!test_and_set_bit(HCI_CONN_RSWITCH_PEND, &conn->flags)) { in hci_conn_switch_role()
1131 if (!test_and_set_bit(HCI_CONN_MODE_CHANGE_PEND, &conn->flags)) { in hci_conn_enter_active_mode()
/linux-4.1.27/fs/f2fs/
Dsegment.h355 if (!test_and_set_bit(secno, free_i->free_secmap)) in __set_inuse()
387 if (!test_and_set_bit(segno, free_i->free_segmap)) { in __set_test_and_inuse()
389 if (!test_and_set_bit(secno, free_i->free_secmap)) in __set_test_and_inuse()
/linux-4.1.27/drivers/scsi/libsas/
Dsas_event.c47 if (!test_and_set_bit(event, pending)) { in sas_queue_event()
Dsas_discover.c384 if (!test_and_set_bit(SAS_DEV_DESTROY, &dev->state)) { in sas_unregister_dev()
544 if (!test_and_set_bit(event, pending)) { in sas_chain_event()
/linux-4.1.27/drivers/char/tpm/
Dtpm-dev.c63 if (test_and_set_bit(0, &chip->is_open)) { in tpm_open()
/linux-4.1.27/drivers/net/caif/
Dcaif_serial.c227 if (test_and_set_bit(CAIF_SENDING, &ser->state)) in handle_tx()
289 !test_and_set_bit(CAIF_FLOW_OFF_SENT, &ser->state) && in caif_xmit()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k.h360 while (test_and_set_bit(__FM10K_MBX_LOCK, &interface->state)) in fm10k_mbx_lock()
373 return !test_and_set_bit(__FM10K_MBX_LOCK, &interface->state); in fm10k_mbx_trylock()
/linux-4.1.27/arch/powerpc/include/asm/
Dbitops.h132 static __inline__ int test_and_set_bit(unsigned long nr, in test_and_set_bit() function
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
Dnotify.c62 !test_and_set_bit(NVKM_NOTIFY_USER, &notify->flags)) { in nvkm_notify_get()
/linux-4.1.27/drivers/isdn/hardware/eicon/
Ddivamnt.c137 if (test_and_set_bit(0, &opened)) in maint_open()
/linux-4.1.27/fs/ntfs/
Dinode.h202 return test_and_set_bit(NI_##flag, &(ni)->state); \
/linux-4.1.27/drivers/s390/net/
Dctcm_main.h251 return test_and_set_bit(0, in ctcm_test_and_set_busy()
/linux-4.1.27/net/x25/
Dx25_out.c155 !test_and_set_bit(X25_INTERRUPT_FLAG, &x25->flags)) { in x25_kick()
/linux-4.1.27/net/ipv4/
Dtcp_memcontrol.c98 if (!test_and_set_bit(MEMCG_SOCK_ACTIVATED, &cg_proto->flags)) in tcp_update_limit()
Dtcp_timer.c277 if (!test_and_set_bit(TCP_DELACK_TIMER_DEFERRED, &tcp_sk(sk)->tsq_flags)) in tcp_delack_timer()
547 if (!test_and_set_bit(TCP_WRITE_TIMER_DEFERRED, &tcp_sk(sk)->tsq_flags)) in tcp_write_timer()
/linux-4.1.27/drivers/platform/x86/
Ddell-smo8800.c124 if (test_and_set_bit(0, &smo8800->misc_opened)) in smo8800_misc_open()
/linux-4.1.27/arch/arm/mach-omap1/
Dboard-voiceblue.c166 if (test_and_set_bit(MACHINE_PANICED, &machine_state)) in panic_event()
/linux-4.1.27/drivers/bluetooth/
Dhci_ldisc.c125 if (test_and_set_bit(HCI_UART_SENDING, &hu->tx_state)) { in hci_uart_tx_wakeup()
581 if (!test_and_set_bit(HCI_UART_PROTO_SET, &hu->flags)) { in hci_uart_tty_ioctl()
/linux-4.1.27/drivers/net/ppp/
Dppp_async.c638 if (test_and_set_bit(XMIT_FULL, &ap->xmit_flags)) in ppp_async_send()
666 if (test_and_set_bit(XMIT_BUSY, &ap->xmit_flags)) in ppp_async_push()
706 if (test_and_set_bit(XMIT_BUSY, &ap->xmit_flags)) in ppp_async_push()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-fileops.c51 if (test_and_set_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { in ivtv_claim_stream()
90 if (!test_and_set_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags)) { in ivtv_claim_stream()
453 …if (test_bit(IVTV_F_S_STREAMOFF, &s->s_flags) || test_and_set_bit(IVTV_F_S_STREAMING, &s->s_flags)… in ivtv_start_capture()
462 !test_and_set_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags)) { in ivtv_start_capture()
/linux-4.1.27/arch/arm/common/
Dedma.c524 if (!test_and_set_bit(j, edma_cc[ctlr]->edma_inuse)) { in reserve_contiguous_slots()
682 if (!test_and_set_bit(channel, in edma_alloc_channel()
697 } else if (test_and_set_bit(channel, edma_cc[ctlr]->edma_inuse)) { in edma_alloc_channel()
779 if (!test_and_set_bit(slot, edma_cc[ctlr]->edma_inuse)) in edma_alloc_slot()
785 } else if (test_and_set_bit(slot, edma_cc[ctlr]->edma_inuse)) { in edma_alloc_slot()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40evf_main.c670 while (test_and_set_bit(__I40EVF_IN_CRITICAL_TASK, in i40evf_add_vlan()
707 while (test_and_set_bit(__I40EVF_IN_CRITICAL_TASK, in i40evf_del_vlan()
791 while (test_and_set_bit(__I40EVF_IN_CRITICAL_TASK, in i40evf_add_filter()
867 while (test_and_set_bit(__I40EVF_IN_CRITICAL_TASK, in i40evf_set_rx_mode()
990 while (test_and_set_bit(__I40EVF_IN_CRITICAL_TASK, in i40evf_down()
1315 if (test_and_set_bit(__I40EVF_IN_CRITICAL_TASK, &adapter->crit_section)) in i40evf_watchdog_task()
1494 while (test_and_set_bit(__I40EVF_IN_CRITICAL_TASK, in i40evf_reset_task()
/linux-4.1.27/fs/omfs/
Dbitmap.c104 if (map >= sbi->s_imap_size || test_and_set_bit(bit, sbi->s_imap[map])) in omfs_allocate_block()
/linux-4.1.27/drivers/sbus/char/
Dflash.c128 if (test_and_set_bit(0, (void *)&flash.busy) != 0) { in flash_open()
/linux-4.1.27/drivers/gpio/
Dgpio-lp3943.c59 if (test_and_set_bit(offset, &lp3943->pin_used)) in lp3943_gpio_request()
/linux-4.1.27/lib/
Dlru_cache.c43 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \
419 test_and_set_bit(__LC_DIRTY, &lc->flags); in __lc_get()
/linux-4.1.27/fs/ramfs/
Dinode.c262 if (test_and_set_bit(0, &once)) in init_ramfs_fs()
/linux-4.1.27/drivers/s390/cio/
Dqdio_thinint.c157 if (test_and_set_bit(QDIO_QUEUE_IRQS_DISABLED, in tiqdio_call_inq_handlers()

1234