Searched refs:test_and_set_bit (Results 1 - 200 of 682) sorted by relevance

1234

/linux-4.1.27/arch/mn10300/lib/
H A Dbitops.c23 if (!test_and_set_bit(nr, addr)) change_bit()
42 if (!test_and_set_bit(nr, addr)) test_and_change_bit()
/linux-4.1.27/arch/sh/include/asm/
H A Dbitops-llsc.h67 static inline int test_and_set_bit(int nr, volatile void *addr) test_and_set_bit() function
78 "movli.l @%2, %0 ! test_and_set_bit \n\t" test_and_set_bit()
H A Dbitops-grb.h74 static inline int test_and_set_bit(int nr, volatile void * addr) test_and_set_bit() function
/linux-4.1.27/tools/perf/util/include/linux/
H A Dbitmap.h50 * test_and_set_bit - Set a bit and return its old value
54 static inline int test_and_set_bit(int nr, unsigned long *addr) test_and_set_bit() function
/linux-4.1.27/drivers/isdn/hisax/
H A Darcofi.c23 if (test_and_set_bit(FLG_ARCOFI_TIMER, &cs->HW_Flags)) { add_arcofi_timer()
59 test_and_set_bit(FLG_ARCOFI_ERROR, &cs->HW_Flags); arcofi_fsm()
132 test_and_set_bit(HW_ARCOFI, &cs->HW_Flags); init_arcofi()
H A Dhscx.c109 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hscx_l2l1()
120 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hscx_l2l1()
132 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hscx_l2l1()
136 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); hscx_l2l1()
177 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_hscxstate()
H A Djade.c144 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); jade_l2l1()
155 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); jade_l2l1()
167 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); jade_l2l1()
171 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); jade_l2l1()
212 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_jadestate()
H A Dhfc_2bds0.c343 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfc_send_data()
361 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { main_rec_2bds0()
466 // test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfc_l2l1()
476 // test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfc_l2l1()
487 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hfc_l2l1()
491 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); hfc_l2l1()
528 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_hfcstate()
597 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { receive_dmsg()
815 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfc2bds0_interrupt()
822 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfc2bds0_interrupt()
839 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfc2bds0_interrupt()
846 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfc2bds0_interrupt()
867 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfc2bds0_interrupt()
882 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfc2bds0_interrupt()
929 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { HFCD_l1hw()
957 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { HFCD_l1hw()
973 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); HFCD_l1hw()
H A Dhfc_sx.c455 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { receive_dmsg()
484 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { main_rec_hfcsx()
658 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { receive_emsg()
770 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcsx_interrupt()
777 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcsx_interrupt()
794 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcsx_interrupt()
801 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcsx_interrupt()
822 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcsx_interrupt()
837 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcsx_interrupt()
897 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { HFCSX_l1hw()
925 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { HFCSX_l1hw()
941 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); HFCSX_l1hw()
1020 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcsx_send_data()
1154 // test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfcsx_l2l1()
1165 // test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfcsx_l2l1()
1176 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hfcsx_l2l1()
1180 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); hfcsx_l2l1()
1223 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_hfcsxstate()
H A Disar.c701 test_and_set_bit(BC_FLG_LASTDATA, isar_fill_fifo()
776 test_and_set_bit(BC_FLG_NMD_DATA, &bcs->Flag); send_frames()
780 test_and_set_bit(BC_FLG_LASTDATA, &bcs->Flag); send_frames()
781 test_and_set_bit(BC_FLG_NMD_DATA, &bcs->Flag); send_frames()
792 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); send_frames()
802 test_and_set_bit(BC_FLG_LL_OK, &bcs->Flag); send_frames()
932 test_and_set_bit(ISAR_RATE_REQ, &bcs->hw.isar.reg->Flags); isar_pump_statev_modem()
1056 test_and_set_bit(ISAR_RATE_REQ, &bcs->hw.isar.reg->Flags); isar_pump_statev_fax()
1060 if (test_and_set_bit(BC_FLG_FTI_RUN, &bcs->Flag)) isar_pump_statev_fax()
1065 test_and_set_bit(BC_FLG_LL_CONN, isar_pump_statev_fax()
1324 test_and_set_bit(BC_FLG_FTI_RUN, &bcs->Flag); setup_pump()
1413 if (!test_and_set_bit(ISAR_DP2_USE, modeisar()
1416 else if (!test_and_set_bit(ISAR_DP1_USE, modeisar()
1427 if (!test_and_set_bit(ISAR_DP1_USE, modeisar()
1537 test_and_set_bit(BC_FLG_FRH_WAIT, &bcs->Flag); isar_pump_cmd()
1605 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); isar_l2l1()
1618 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); isar_l2l1()
1632 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); isar_l2l1()
1636 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); isar_l2l1()
1639 test_and_set_bit(BC_FLG_ORIG, &bcs->Flag); isar_l2l1()
1712 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_isarstate()
1762 test_and_set_bit(BC_FLG_DLEETX, isar_auxcmd()
1788 if (!test_and_set_bit(BC_FLG_FTI_RUN, &bcs->Flag)) { isar_auxcmd()
1792 test_and_set_bit(BC_FLG_FTI_FTS, &bcs->Flag); isar_auxcmd()
H A Disdnl2.c111 test_and_set_bit(FLG_PEER_BUSY, &l2->flag); set_peer_busy()
114 test_and_set_bit(FLG_L2BLOCK, &l2->flag); set_peer_busy()
460 test_and_set_bit(FLG_T200_RUN, &st->l2.flag); start_t200()
467 test_and_set_bit(FLG_T200_RUN, &st->l2.flag); restart_t200()
638 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); l2_establish()
647 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); l2_discard_i_setl3()
658 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); l2_l3_reestablish()
674 test_and_set_bit(FLG_PEND_REL, &st->l2.flag); l2_pend_rel()
844 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); l2_reestablish()
1095 test_and_set_bit(FLG_ACK_PEND, &l2->flag); l2_got_iframe()
1101 if (test_and_set_bit(FLG_REJEXC, &l2->flag)) { l2_got_iframe()
1140 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); l2_got_tei()
1301 if (!test_and_set_bit(FLG_T200_RUN, &st->l2.flag)) { l2_pull_iqueue()
1498 if (!test_and_set_bit(FLG_OWN_BUSY, &st->l2.flag)) { l2_set_own_busy()
1685 test_and_set_bit(FLG_DCHAN_BUSY, &st->l2.flag); isdnl2_l1l2()
1692 test_and_set_bit(FLG_L1_ACTIV, &st->l2.flag); isdnl2_l1l2()
1730 test_and_set_bit(FLG_ESTAB_PEND, &st->l2.flag); isdnl2_l3l2()
H A Dhfc_pci.c184 test_and_set_bit(event, &cs->event); sched_event_D_pci()
194 test_and_set_bit(event, &bcs->event); hfcpci_sched_event()
340 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { receive_dmsg()
472 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { main_rec_hfcpci()
844 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { receive_emsg()
1005 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcpci_interrupt()
1012 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcpci_interrupt()
1029 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcpci_interrupt()
1036 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcpci_interrupt()
1057 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcpci_interrupt()
1072 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcpci_interrupt()
1132 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { HFCPCI_l1hw()
1160 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { HFCPCI_l1hw()
1176 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); HFCPCI_l1hw()
1257 if (!test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { hfcpci_send_data()
1402 // test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfcpci_l2l1()
1414 // test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfcpci_l2l1()
1424 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hfcpci_l2l1()
1428 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); hfcpci_l2l1()
1471 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_hfcpcistate()
H A Dnetjet.c145 test_and_set_bit(BC_FLG_EMPTY, &bcs->Flag); mode_tiger()
389 test_and_set_bit(B_RCVBUFREADY, &bcs->event); got_frame()
617 if (test_and_set_bit(BC_FLG_BUSY, &bcs->Flag)) netjet_fill_dma()
727 test_and_set_bit(BC_FLG_HALF, &bcs->Flag); write_raw()
730 test_and_set_bit(BC_FLG_NOFRAME, &bcs->Flag); write_raw()
746 test_and_set_bit(B_XMTBUFREADY, &bcs->event); write_raw()
751 test_and_set_bit(BC_FLG_HALF, &bcs->Flag); write_raw()
757 test_and_set_bit(BC_FLG_EMPTY, &bcs->Flag); write_raw()
825 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); tiger_l2l1()
829 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); tiger_l2l1()
875 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_tigerstate()
H A Dhfc_2bs0.c377 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); main_irq_hfc()
384 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); main_irq_hfc()
466 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfc_l2l1()
476 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfc_l2l1()
487 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hfc_l2l1()
491 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); hfc_l2l1()
530 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_hfcstate()
H A Disdnl1.c480 test_and_set_bit(FLG_L1_DEACTTIMER, &st->l1.Flags); l1_deact_req_s()
492 test_and_set_bit(FLG_L1_T3RUN, &st->l1.Flags); l1_power_up_s()
541 test_and_set_bit(FLG_L1_ACTTIMER, &st->l1.Flags); l1_info4_ind()
569 test_and_set_bit(FLG_L1_ACTIVATED, &st->l1.Flags); l1_timer_act()
659 test_and_set_bit(FLG_L1_DEACTTIMER, &st->l1.Flags); l1_deact_req_u()
669 test_and_set_bit(FLG_L1_T3RUN, &st->l1.Flags); l1_power_up_u()
818 test_and_set_bit(FLG_L1_ACTIVATING, &st->l1.Flags); dch_l2l1()
H A Dw6692.c187 if (test_and_set_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) { W6692_fill_fifo()
392 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); W6692B_interrupt()
621 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); W6692_l1hw()
698 test_and_set_bit(FLG_L1_DBUSY, &cs->HW_Flags); dbusy_timer_handler()
769 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); W6692_l2l1()
781 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); W6692_l2l1()
792 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); W6692_l2l1()
796 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); W6692_l2l1()
837 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_w6692state()
H A Dcallc.c1051 test_and_set_bit(FLG_MOD128, &st->l2.flag); init_d_st()
1052 test_and_set_bit(FLG_LAPD, &st->l2.flag); init_d_st()
1053 test_and_set_bit(FLG_ORIG, &st->l2.flag); init_d_st()
1296 test_and_set_bit(FLG_LAPB, &st->l2.flag); init_b_st()
1299 test_and_set_bit(FLG_ORIG, &st->l2.flag); init_b_st()
1313 test_and_set_bit(FLG_LLI_L2WAKEUP, &st->lli.flag); init_b_st()
1324 test_and_set_bit(FLG_LLI_L1WAKEUP, &st->lli.flag); init_b_st()
1330 test_and_set_bit(FLG_START_B, &chanp->Flags); init_b_st()
1637 test_and_set_bit(FLG_PTP, &csta->channel[0].d_st->l2.flag); HiSax_command()
1638 test_and_set_bit(FLG_FIXED_TEI, &csta->channel[0].d_st->l2.flag); HiSax_command()
1662 test_and_set_bit(FLG_FIXED_TEI, &chanp->d_st->l2.flag); HiSax_command()
H A Delsa_ser.c301 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); modem_fill()
560 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); modem_l2l1()
566 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); modem_l2l1()
598 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { setstack_elsa()
H A Davm_pci.c436 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); HDLC_irq()
495 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hdlc_l2l1()
506 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hdlc_l2l1()
518 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); hdlc_l2l1()
522 test_and_set_bit(BC_FLG_ACTIV, &bcs->Flag); hdlc_l2l1()
563 if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { open_hdlcstate()
H A Damd7930_fn.c396 if (test_and_set_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) { Amd7930_fill_Dfifo()
624 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); Amd7930_l1hw()
712 test_and_set_bit(FLG_L1_DBUSY, &cs->HW_Flags); dbusy_timer_handler()
H A Dicc.c167 if (test_and_set_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) { icc_fill_fifo()
497 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); ICC_l1hw()
595 test_and_set_bit(FLG_L1_DBUSY, &cs->HW_Flags); dbusy_timer_handler()
H A Disac.c170 if (test_and_set_bit(FLG_DBUSY_TIMER, &cs->HW_Flags)) { isac_fill_fifo()
499 test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); ISAC_l1hw()
594 test_and_set_bit(FLG_L1_DBUSY, &cs->HW_Flags); dbusy_timer_handler()
H A Dconfig.c1051 test_and_set_bit(FLG_TWO_DCHAN, &cs->HW_Flags); hisax_cs_new()
1053 test_and_set_bit(FLG_TWO_DCHAN, &cs->HW_Flags); hisax_cs_new()
1647 test_and_set_bit(event, &cs->event); hisax_sched_event()
1675 test_and_set_bit(event, &bcs->event); hisax_b_sched_event()
1797 if (!test_and_set_bit(FLG_L1_DBUSY, &cs->HW_Flags)) hisax_d_l2l1()
1831 if (!test_and_set_bit(BC_FLG_BUSY, &bcs->Flag)) { hisax_b_l2l1()
H A Ddiva.c557 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); Memhscx_interrupt()
1020 test_and_set_bit(HW_IPAC, &cs->HW_Flags); setup_diva_isa()
1115 test_and_set_bit(HW_IPAC, &cs->HW_Flags); setup_diva_isapnp()
1220 test_and_set_bit(HW_IPAC, &cs->HW_Flags); setup_diva_pci()
H A Dhscx_irq.c215 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hscx_interrupt()
H A Disurf.c292 test_and_set_bit(HW_ISAR, &cs->HW_Flags); setup_isurf()
H A Djade_irq.c193 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); jade_interrupt()
H A Dnj_s.c78 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { netjet_s_interrupt()
H A Dnj_u.c63 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { netjet_u_interrupt()
/linux-4.1.27/arch/arm64/include/asm/
H A Dsync_bitops.h20 #define sync_test_and_set_bit(nr, p) test_and_set_bit(nr, p)
H A Dbitops.h32 extern int test_and_set_bit(int nr, volatile unsigned long *p);
/linux-4.1.27/include/asm-generic/bitops/
H A Dlock.h12 #define test_and_set_bit_lock(nr, addr) test_and_set_bit(nr, addr)
H A Dle.h79 return test_and_set_bit(nr ^ BITOP_LE_SWIZZLE, addr); test_and_set_bit_le()
H A Datomic.h119 * test_and_set_bit - Set a bit and return its old value
127 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) test_and_set_bit() function
/linux-4.1.27/include/linux/
H A Dblk-iopoll.h29 return test_and_set_bit(IOPOLL_F_SCHED, &iop->state); blk_iopoll_sched_prep()
H A Dthread_info.h81 return test_and_set_bit(flag, (unsigned long *)&ti->flags); test_and_set_ti_thread_flag()
H A Dnfs_page.h152 return !test_and_set_bit(PG_BUSY, &req->wb_flags); nfs_lock_request()
H A Dinterrupt.h509 return !test_and_set_bit(TASKLET_STATE_RUN, &(t)->state); tasklet_trylock()
532 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) tasklet_schedule()
540 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) tasklet_hi_schedule()
554 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) tasklet_hi_schedule_first()
H A DmISDNhw.h83 test_and_set_bit(ev, &((s)->Flags)); \
/linux-4.1.27/arch/mips/kernel/
H A Dirq.c44 if (test_and_set_bit(irq, irq_map)) allocate_irqno()
60 BUG_ON(test_and_set_bit(i, irq_map)); alloc_legacy_irqno()
/linux-4.1.27/arch/hexagon/include/asm/
H A Dbitops.h65 * test_and_set_bit - set a bit and return its old value
69 static inline int test_and_set_bit(int nr, volatile void *addr) test_and_set_bit() function
127 test_and_set_bit(nr, addr); set_bit()
151 test_and_set_bit(nr, addr); __set_bit()
167 return test_and_set_bit(nr, addr); __test_and_set_bit()
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dperfctr-watchdog.c115 if (!test_and_set_bit(counter, perfctr_nmi_owner)) reserve_perfctr_nmi()
143 if (!test_and_set_bit(counter, evntsel_nmi_owner)) reserve_evntsel_nmi()
H A Dperf_event_intel_uncore.h293 if (!test_and_set_bit(UNCORE_BOX_FLAG_INITIATED, &box->flags)) { uncore_box_init()
/linux-4.1.27/drivers/isdn/mISDN/
H A Dstack.c36 test_and_set_bit(mISDN_STACK_WORK, &st->status); _queue_message()
227 test_and_set_bit(mISDN_STACK_RUNNING, &st->status); mISDNStackd()
237 test_and_set_bit(mISDN_STACK_WORK, mISDNStackd()
265 test_and_set_bit(mISDN_STACK_STOPPED, &st->status); mISDNStackd()
269 test_and_set_bit(mISDN_STACK_RESTART, &st->status); mISDNStackd()
273 test_and_set_bit(mISDN_STACK_RUNNING, &st->status); mISDNStackd()
275 test_and_set_bit(mISDN_STACK_WORK, mISDNStackd()
293 test_and_set_bit(mISDN_STACK_ACTIVE, &st->status); mISDNStackd()
319 test_and_set_bit(mISDN_STACK_KILLED, &st->status); mISDNStackd()
643 test_and_set_bit(mISDN_STACK_ABORT, &st->status); delete_stack()
644 test_and_set_bit(mISDN_STACK_WAKEUP, &st->status); delete_stack()
H A Dlayer2.c205 if (test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { l2down_raw()
271 if (!test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { ph_data_confirm()
333 test_and_set_bit(FLG_PEER_BUSY, &l2->flag); set_peer_busy()
335 test_and_set_bit(FLG_L2BLOCK, &l2->flag); set_peer_busy()
668 test_and_set_bit(FLG_T200_RUN, &l2->flag); start_t200()
675 test_and_set_bit(FLG_T200_RUN, &l2->flag); restart_t200()
851 test_and_set_bit(FLG_L3_INIT, &l2->flag); l2_establish()
862 test_and_set_bit(FLG_L3_INIT, &l2->flag); l2_discard_i_setl3()
875 test_and_set_bit(FLG_L3_INIT, &l2->flag); l2_l3_reestablish()
895 test_and_set_bit(FLG_PEND_REL, &l2->flag); l2_pend_rel()
1070 test_and_set_bit(FLG_L3_INIT, &l2->flag); l2_reestablish()
1317 test_and_set_bit(FLG_ACK_PEND, &l2->flag); l2_got_iframe()
1323 if (test_and_set_bit(FLG_REJEXC, &l2->flag)) { l2_got_iframe()
1365 test_and_set_bit(FLG_L3_INIT, &l2->flag); l2_got_tei()
1533 if (!test_and_set_bit(FLG_T200_RUN, &l2->flag)) { l2_pull_iqueue()
1744 if (!test_and_set_bit(FLG_OWN_BUSY, &l2->flag)) { l2_set_own_busy()
1994 test_and_set_bit(FLG_L1_ACTIV, &l2->flag); l2_send()
2018 test_and_set_bit(FLG_ORIG, &l2->flag); l2_send()
2027 test_and_set_bit(FLG_ESTAB_PEND, l2_send()
2153 test_and_set_bit(FLG_LAPD, &l2->flag); create_l2()
2154 test_and_set_bit(FLG_LAPD_NET, &l2->flag); create_l2()
2155 test_and_set_bit(FLG_MOD128, &l2->flag); create_l2()
2163 test_and_set_bit(FLG_PTP, &l2->flag); create_l2()
2165 test_and_set_bit(FLG_FIXED_TEI, &l2->flag); create_l2()
2178 test_and_set_bit(FLG_LAPD, &l2->flag); create_l2()
2179 test_and_set_bit(FLG_MOD128, &l2->flag); create_l2()
2180 test_and_set_bit(FLG_ORIG, &l2->flag); create_l2()
2188 test_and_set_bit(FLG_PTP, &l2->flag); create_l2()
2190 test_and_set_bit(FLG_FIXED_TEI, &l2->flag); create_l2()
2203 test_and_set_bit(FLG_LAPB, &l2->flag); create_l2()
H A Dlayer1.c140 test_and_set_bit(FLG_L1_DEACTTIMER, &l1->Flags); l1_deact_req_s()
189 test_and_set_bit(FLG_L1_ACTTIMER, &l1->Flags); l1_info4_ind()
216 test_and_set_bit(FLG_L1_ACTIVATED, &l1->Flags); l1_timer_act()
239 test_and_set_bit(FLG_L1_T3RUN, &l1->Flags); l1_activate_s()
355 test_and_set_bit(FLG_L1_ACTIVATING, &l1->Flags); l1_event()
H A Dhwchannel.c68 test_and_set_bit(FLG_HDLC, &ch->Flags); mISDN_initdchannel()
177 test_and_set_bit(FLG_FILLEMPTY, &bch->Flags); mISDN_ctrl_bchannel()
186 test_and_set_bit(FLG_RX_OFF, &bch->Flags); mISDN_ctrl_bchannel()
426 if (test_and_set_bit(FLG_TX_BUSY, &ch->Flags)) { dchannel_senddata()
460 if (test_and_set_bit(FLG_TX_BUSY, &ch->Flags)) { bchannel_senddata()
461 test_and_set_bit(FLG_TX_NEXT, &ch->Flags); bchannel_senddata()
H A Dtei.c343 if (!test_and_set_bit(MGR_PH_NOTREADY, &mgr->options)) { do_send()
802 test_and_set_bit(OPTION_L2_FIXEDTEI, &opt); create_new_tei()
805 test_and_set_bit(OPTION_L2_PMX, &opt); create_new_tei()
1008 test_and_set_bit(OPTION_L2_FIXEDTEI, &opt); create_teimgr()
1010 test_and_set_bit(OPTION_L2_PTP, &opt); create_teimgr()
1029 test_and_set_bit(MGR_OPT_NETWORK, &mgr->options); create_teimgr()
1031 test_and_set_bit(MGR_OPT_USER, &mgr->options); create_teimgr()
1036 test_and_set_bit(OPTION_L2_PMX, &opt); create_teimgr()
1125 test_and_set_bit(MGR_PH_ACTIVE, &mgr->options); mgr_send()
1189 test_and_set_bit(OPTION_L2_CLEANUP, &mgr->options); ctrl_teimanager()
1195 test_and_set_bit(OPTION_L1_HOLD, &mgr->options); ctrl_teimanager()
H A Dcore.c219 if (!test_and_set_bit(i, (u_long *)&device_ids)) get_free_devid()
/linux-4.1.27/drivers/isdn/hardware/mISDN/
H A DmISDNisar.c626 test_and_set_bit(FLG_LASTDATA, isar_fill_fifo()
631 test_and_set_bit(FLG_DLEETX, isar_fill_fifo()
697 test_and_set_bit(FLG_NMD_DATA, &ch->bch.Flags); send_next()
701 test_and_set_bit(FLG_LASTDATA, &ch->bch.Flags); send_next()
702 test_and_set_bit(FLG_NMD_DATA, &ch->bch.Flags); send_next()
723 test_and_set_bit(FLG_LL_OK, &ch->bch.Flags); send_next()
728 test_and_set_bit(FLG_TX_EMPTY, &ch->bch.Flags); send_next()
845 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags); isar_pump_statev_modem()
940 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags); isar_pump_statev_fax()
945 if (test_and_set_bit(FLG_FTI_RUN, isar_pump_statev_fax()
950 test_and_set_bit(FLG_LL_CONN, isar_pump_statev_fax()
1209 test_and_set_bit(FLG_FTI_RUN, &ch->bch.Flags); setup_pump()
1299 if (!test_and_set_bit(ISAR_DP2_USE, &ch->is->Flags)) modeisar()
1301 else if (!test_and_set_bit(ISAR_DP1_USE, modeisar()
1309 test_and_set_bit(FLG_HDLC, &ch->bch.Flags); modeisar()
1311 test_and_set_bit(FLG_TRANSPARENT, modeisar()
1318 if (!test_and_set_bit(ISAR_DP1_USE, &ch->is->Flags)) modeisar()
1499 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) isar_l2l1()
1557 test_and_set_bit(FLG_DLEETX, &bch->Flags); isar_l2l1()
1641 test_and_set_bit(FLG_INITIALIZED, &isar->ch[0].bch.Flags); init_isar()
1645 test_and_set_bit(FLG_INITIALIZED, &isar->ch[1].bch.Flags); init_isar()
1659 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) isar_open()
H A Dhfc_multi_8xx.h104 test_and_set_bit(HFC_CHIP_CLOCK2, &hc->chip); setup_embedded()
121 test_and_set_bit(HFC_CHIP_EMBSD, &hc->chip); setup_embedded()
H A DmISDNipac.c170 if (test_and_set_bit(FLG_BUSY_TIMER, &isac->dch.Flags)) { isac_fill_fifo()
244 test_and_set_bit(FLG_TX_BUSY, &isac->dch.Flags); isac_retransmit()
690 test_and_set_bit(FLG_ACTIVE, &dch->Flags); isac_l1cmd()
740 test_and_set_bit(FLG_L1_BUSY, &isac->dch.Flags); dbusy_timer_handler()
1153 test_and_set_bit(FLG_TX_EMPTY, &hx->bch.Flags); ipac_irq()
1256 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags); hscx_mode()
1263 test_and_set_bit(FLG_HDLC, &hscx->bch.Flags); hscx_mode()
1292 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags); hscx_mode()
1299 test_and_set_bit(FLG_HDLC, &hscx->bch.Flags); hscx_mode()
1328 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags); hscx_mode()
1335 test_and_set_bit(FLG_HDLC, &hscx->bch.Flags); hscx_mode()
1369 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) hscx_l2l1()
1506 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) open_bchannel()
H A Dw6692.c310 if (test_and_set_bit(FLG_BUSY_TIMER, &dch->Flags)) { W6692_fill_Dfifo()
341 test_and_set_bit(FLG_TX_BUSY, &dch->Flags); d_retransmit()
630 test_and_set_bit(FLG_TRANSPARENT, &wch->bch.Flags); w6692_mode()
640 test_and_set_bit(FLG_HDLC, &wch->bch.Flags); w6692_mode()
780 test_and_set_bit(FLG_TX_EMPTY, &wch->bch.Flags); W6692B_interrupt()
835 test_and_set_bit(FLG_L1_BUSY, &dch->Flags); dbusy_timer_handler()
973 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) w6692_l2l1B()
1017 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) open_bchannel()
1161 test_and_set_bit(FLG_ACTIVE, &dch->Flags); w6692_l1callback()
H A Dhfcmulti.c1153 test_and_set_bit(HFC_CHIP_REVISION0, &hc->chip); init_chip()
1397 test_and_set_bit(HFC_CHIP_PCM_SLAVE, &hc->chip); init_chip()
1448 test_and_set_bit(HFC_CHIP_PCM_MASTER, init_chip()
3130 test_and_set_bit(FLG_TRANSPARENT, mode_hfcmulti()
3165 test_and_set_bit(FLG_HDLC, &hc->chan[ch].bch->Flags); mode_hfcmulti()
3317 test_and_set_bit(FLG_ACTIVE, &dch->Flags); hfcm_l1callback()
3498 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) { handle_bmsg()
3770 test_and_set_bit(FLG_ACTIVE, &dch->Flags); ph_state_change()
3848 test_and_set_bit(FLG_ACTIVE, &dch->Flags); ph_state_change()
4121 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) open_bchannel()
4371 test_and_set_bit(HFC_CHIP_CLOCK2, &hc->chip); setup_pci()
4374 test_and_set_bit(HFC_CHIP_B410P, &hc->chip); setup_pci()
4375 test_and_set_bit(HFC_CHIP_PCM_MASTER, &hc->chip); setup_pci()
4401 test_and_set_bit(HFC_CHIP_PLXSD, &hc->chip); setup_pci()
4721 test_and_set_bit(HFC_CFG_OPTICAL, init_e1_port_hw()
4731 test_and_set_bit(HFC_CFG_REPORT_LOS, init_e1_port_hw()
4740 test_and_set_bit(HFC_CFG_REPORT_AIS, init_e1_port_hw()
4750 test_and_set_bit(HFC_CFG_REPORT_SLIP, init_e1_port_hw()
4760 test_and_set_bit(HFC_CFG_REPORT_RDI, init_e1_port_hw()
4769 test_and_set_bit(HFC_CFG_CRC4, init_e1_port_hw()
4783 test_and_set_bit(HFC_CHIP_E1CLOCK_GET, &hc->chip); init_e1_port_hw()
4790 test_and_set_bit(HFC_CHIP_E1CLOCK_PUT, &hc->chip); init_e1_port_hw()
4798 test_and_set_bit(HFC_CHIP_RX_SYNC, &hc->chip); init_e1_port_hw()
4973 test_and_set_bit(HFC_CFG_NONCAP_TX, init_multi_port()
4983 test_and_set_bit(HFC_CFG_DIS_ECHANNEL, init_multi_port()
5083 test_and_set_bit(HFC_CHIP_ULAW, &hc->chip); hfcmulti_init()
5098 test_and_set_bit(HFC_CHIP_DTMF, &hc->chip); hfcmulti_init()
5099 test_and_set_bit(HFC_CHIP_CONF, &hc->chip); hfcmulti_init()
5103 test_and_set_bit(HFC_CHIP_PCM_SLAVE, &hc->chip); hfcmulti_init()
5105 test_and_set_bit(HFC_CHIP_PCM_MASTER, &hc->chip); hfcmulti_init()
5109 test_and_set_bit(HFC_CHIP_EXRAM_128, &hc->chip); hfcmulti_init()
5111 test_and_set_bit(HFC_CHIP_EXRAM_512, &hc->chip); hfcmulti_init()
5118 test_and_set_bit(HFC_CHIP_WATCHDOG, &hc->chip); hfcmulti_init()
H A Dhfcpci.c959 test_and_set_bit(FLG_ACTIVE, &dch->Flags); handle_nt_timer3()
998 test_and_set_bit(FLG_HFC_TIMER_T1, &dch->Flags); ph_state_nt()
1026 if (!test_and_set_bit(FLG_HFC_TIMER_T3, &dch->Flags)) { ph_state_nt()
1108 test_and_set_bit(FLG_ACTIVE, &dch->Flags); hfc_l1callback()
1361 test_and_set_bit(FLG_TRANSPARENT, &bch->Flags); mode_hfcpci()
1390 test_and_set_bit(FLG_HDLC, &bch->Flags); mode_hfcpci()
1623 test_and_set_bit(FLG_L2_ACTIVATED, &dch->Flags); hfcpci_l2l1D()
1691 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) hfcpci_l2l1B()
1950 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) open_bchannel()
2051 test_and_set_bit(HFC_CFG_MASTER, &hc->cfg); setup_hw()
H A Davmfritz.c382 test_and_set_bit(FLG_TRANSPARENT, &bch->Flags); modehdlc()
392 test_and_set_bit(FLG_HDLC, &bch->Flags); modehdlc()
596 test_and_set_bit(FLG_TX_EMPTY, &bch->Flags); HDLC_irq()
713 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) avm_l2l1B()
917 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) open_bchannel()
H A Dnetjet.c237 test_and_set_bit(FLG_TRANSPARENT, &bc->bch.Flags); mode_tiger()
251 test_and_set_bit(FLG_HDLC, &bc->bch.Flags); mode_tiger()
629 test_and_set_bit(FLG_TX_EMPTY, &bc->bch.Flags); bc_next_frame()
772 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) nj_l2l1B()
872 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) open_bchannel()
/linux-4.1.27/arch/sparc/include/asm/
H A Dbitops_64.h18 int test_and_set_bit(unsigned long nr, volatile unsigned long *addr);
H A Dbitops_32.h31 static inline int test_and_set_bit(unsigned long nr, volatile unsigned long *addr) test_and_set_bit() function
H A Dparport.h128 if (!test_and_set_bit(slot, dma_slot_map)) ecpp_probe()
/linux-4.1.27/crypto/
H A Dchainiv.c133 test_and_set_bit(CHAINIV_STATE_INUSE, &ctx->state)) async_chainiv_schedule_work()
154 if (test_and_set_bit(CHAINIV_STATE_INUSE, &ctx->state)) async_chainiv_postpone_request()
194 if (test_and_set_bit(CHAINIV_STATE_INUSE, &ctx->state)) async_chainiv_givencrypt()
214 if (test_and_set_bit(CHAINIV_STATE_INUSE, &ctx->state)) async_chainiv_givencrypt_first()
/linux-4.1.27/arch/arm64/kernel/
H A Darm64ksyms.c59 EXPORT_SYMBOL(test_and_set_bit); variable
/linux-4.1.27/net/rxrpc/
H A Dar-accept.c137 if (!test_and_set_bit(RXRPC_CALL_INIT_ACCEPT, &call->flags)) { rxrpc_accept_incoming_call()
189 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) { rxrpc_accept_incoming_call()
380 if (test_and_set_bit(RXRPC_CALL_HAS_USERID, &call->flags)) rxrpc_accept_call()
382 if (test_and_set_bit(RXRPC_CALL_ACCEPTED, &call->events)) rxrpc_accept_call()
398 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) rxrpc_accept_call()
437 if (test_and_set_bit(RXRPC_CALL_REJECT_BUSY, &call->events)) rxrpc_reject_call()
461 !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) rxrpc_reject_call()
H A Dar-call.c455 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) rxrpc_incoming_call()
624 if (test_and_set_bit(RXRPC_CALL_RELEASED, &call->flags)) rxrpc_release_call()
766 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) rxrpc_mark_call_released()
769 if (!test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) rxrpc_mark_call_released()
998 if (!test_and_set_bit(RXRPC_CALL_RESEND_TIMER, &call->events)) rxrpc_resend_time_expired()
1016 !test_and_set_bit(RXRPC_CALL_ACK, &call->events)) rxrpc_ack_time_expired()
H A Dar-input.c185 if (test_and_set_bit(RXRPC_CALL_EXPECT_OOS, &call->flags)) { rxrpc_fast_process_data()
234 !test_and_set_bit(RXRPC_CALL_DRAIN_RX_OOS, &call->events)) rxrpc_fast_process_data()
533 if (!test_and_set_bit(RXRPC_CALL_ABORT, &call->events)) { rxrpc_post_packet_to_call()
/linux-4.1.27/arch/mips/include/asm/
H A Dbitops.h221 * test_and_set_bit - Set a bit and return its old value
228 static inline int test_and_set_bit(unsigned long nr, test_and_set_bit() function
242 "1: " __LL "%0, %1 # test_and_set_bit \n" test_and_set_bit()
258 " " __LL "%0, %1 # test_and_set_bit \n" test_and_set_bit()
296 "1: " __LL "%0, %1 # test_and_set_bit \n" test_and_set_bit_lock()
312 " " __LL "%0, %1 # test_and_set_bit \n" test_and_set_bit_lock()
/linux-4.1.27/arch/tile/include/asm/
H A Dbitops_32.h76 * test_and_set_bit - Set a bit and return its old value
83 static inline int test_and_set_bit(unsigned nr, volatile unsigned long *addr) test_and_set_bit() function
H A Dbitops_64.h55 static inline int test_and_set_bit(unsigned nr, volatile unsigned long *addr) test_and_set_bit() function
/linux-4.1.27/arch/sh/boards/mach-x3proto/
H A Dilsel.c106 } while (test_and_set_bit(bit, &ilsel_level_map)); ilsel_enable()
129 if (test_and_set_bit(bit, &ilsel_level_map)) ilsel_enable_fixed()
/linux-4.1.27/arch/mips/sgi-ip27/
H A Dip27-init.c65 if (test_and_set_bit(cnode, hub_init_mask)) per_hub_init()
122 if (test_and_set_bit(slice, &hub->slice_map)) per_cpu_init()
H A Dip27-hubio.c47 if (test_and_set_bit(i, hub_data(cnode)->h_bigwin_used)) hub_pio_map()
/linux-4.1.27/net/core/
H A Dlink_watch.c124 if (test_and_set_bit(LW_URGENT, &linkwatch_flags)) linkwatch_schedule_work()
246 if (!test_and_set_bit(__LINK_STATE_LINKWATCH_PENDING, &dev->state)) { linkwatch_fire_event()
/linux-4.1.27/kernel/irq/
H A Dhandle.c48 if (test_and_set_bit(IRQTF_WARNED, &action->thread_flags)) warn_no_thread()
69 if (test_and_set_bit(IRQTF_RUNTHREAD, &action->thread_flags)) __irq_wake_thread()
/linux-4.1.27/arch/m32r/include/asm/
H A Dsmp.h24 #define physid_test_and_set(physid, map) test_and_set_bit(physid, (map).mask)
H A Dbitops.h143 * test_and_set_bit - Set a bit and return its old value
150 static __inline__ int test_and_set_bit(int nr, volatile void * addr) test_and_set_bit() function
/linux-4.1.27/arch/m68k/include/asm/
H A 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/arch/metag/include/asm/
H A Dbitops.h51 static inline int test_and_set_bit(unsigned int bit, volatile unsigned long *p) test_and_set_bit() function
/linux-4.1.27/arch/alpha/include/asm/
H A Dspinlock.h47 return !test_and_set_bit(0, &lock->lock); arch_spin_trylock()
/linux-4.1.27/fs/gfs2/
H A Dlog.h57 if (!test_and_set_bit(GIF_ORDERED, &ip->i_flags)) gfs2_ordered_add_inode()
/linux-4.1.27/net/netfilter/
H A Dnf_conntrack_labels.c44 if (!test_and_set_bit(bit, labels->bits)) nf_connlabel_set()
/linux-4.1.27/drivers/dma-buf/
H A Dfence.c79 if (test_and_set_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) { fence_signal_locked()
119 if (test_and_set_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) fence_signal()
205 if (!test_and_set_bit(FENCE_FLAG_ENABLE_SIGNAL_BIT, &fence->flags) && fence_enable_sw_signaling()
259 was_set = test_and_set_bit(FENCE_FLAG_ENABLE_SIGNAL_BIT, &fence->flags); fence_add_callback()
358 was_set = test_and_set_bit(FENCE_FLAG_ENABLE_SIGNAL_BIT, &fence->flags); fence_default_wait()
/linux-4.1.27/arch/arm/kernel/
H A Dperf_event_xscale.c272 if (test_and_set_bit(XSCALE_CYCLE_COUNTER, cpuc->used_mask)) xscale1pmu_get_event_idx()
277 if (!test_and_set_bit(XSCALE_COUNTER1, cpuc->used_mask)) xscale1pmu_get_event_idx()
280 if (!test_and_set_bit(XSCALE_COUNTER0, cpuc->used_mask)) xscale1pmu_get_event_idx()
643 if (!test_and_set_bit(XSCALE_COUNTER3, cpuc->used_mask)) xscale2pmu_get_event_idx()
645 else if (!test_and_set_bit(XSCALE_COUNTER2, cpuc->used_mask)) xscale2pmu_get_event_idx()
H A Dperf_event_v6.c387 if (test_and_set_bit(ARMV6_CYCLE_COUNTER, cpuc->used_mask)) armv6pmu_get_event_idx()
396 if (!test_and_set_bit(ARMV6_COUNTER1, cpuc->used_mask)) armv6pmu_get_event_idx()
399 if (!test_and_set_bit(ARMV6_COUNTER0, cpuc->used_mask)) armv6pmu_get_event_idx()
/linux-4.1.27/fs/dlm/
H A Dlowcomms.c430 if (con && !test_and_set_bit(CF_READ_PENDING, &con->flags)) lowcomms_data_ready()
448 if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) lowcomms_write_space()
456 if (!test_and_set_bit(CF_CONNECT_PENDING, &con->flags)) lowcomms_connect_sock()
593 if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) sctp_init_failed_foreach()
646 if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) retry_failed_sctp_send()
751 if (!test_and_set_bit(CF_WRITE_PENDING, &new_con->flags)) { process_sctp_notification()
754 if (!test_and_set_bit(CF_READ_PENDING, &new_con->flags)) process_sctp_notification()
887 if (!test_and_set_bit(CF_READ_PENDING, &con->flags)) receive_from_sock()
1021 if (!test_and_set_bit(CF_READ_PENDING, &addcon->flags)) tcp_accept_from_sock()
1080 if (test_and_set_bit(CF_INIT_PENDING, &con->flags)) sctp_init_assoc()
1544 if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) { dlm_lowcomms_commit_buffer()
1586 !test_and_set_bit(CF_APP_LIMITED, &con->flags)) { send_to_sock()
/linux-4.1.27/fs/fscache/
H A Dcache.c244 if (test_and_set_bit(FSCACHE_TAG_RESERVED, &tag->flags)) fscache_add_cache()
319 if (!test_and_set_bit(FSCACHE_IOERROR, &cache->flags)) fscache_io_error()
375 if (test_and_set_bit(FSCACHE_CACHE_WITHDRAWN, &cache->flags)) fscache_withdraw_cache()
/linux-4.1.27/drivers/scsi/bnx2fc/
H A Dbnx2fc_io.c81 if (!(test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, bnx2fc_cmd_timeout()
86 logo_issued = test_and_set_bit( bnx2fc_cmd_timeout()
107 if (test_and_set_bit(BNX2FC_FLAG_IO_COMPL, bnx2fc_cmd_timeout()
114 if (!test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, bnx2fc_cmd_timeout()
125 logo_issued = test_and_set_bit( bnx2fc_cmd_timeout()
153 if (!test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, bnx2fc_cmd_timeout()
157 logo_issued = test_and_set_bit( bnx2fc_cmd_timeout()
181 if (test_and_set_bit(BNX2FC_FLAG_ELS_DONE, bnx2fc_cmd_timeout()
1121 logo_issued = test_and_set_bit(BNX2FC_FLAG_EXPL_LOGO, bnx2fc_expl_logo()
1245 if (test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { bnx2fc_eh_abort()
1285 } else if (!(test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, bnx2fc_eh_abort()
1373 if (test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, bnx2fc_process_abts_compl()
1381 if (test_and_set_bit(BNX2FC_FLAG_IO_CLEANUP, bnx2fc_process_abts_compl()
1469 if (!test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, bnx2fc_lun_reset_cmpl()
1502 if (!test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, bnx2fc_tgt_reset_cmpl()
1915 if (test_and_set_bit(BNX2FC_FLAG_IO_COMPL, &io_req->req_flags)) { bnx2fc_process_scsi_cmd_compl()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
H A Dfail.c98 if (test_and_set_bit(CFS_FAILED_BIT, &cfs_fail_loc)) { __cfs_fail_check_set()
/linux-4.1.27/drivers/nfc/nfcmrvl/
H A Dmain.c32 if (test_and_set_bit(NFCMRVL_NCI_RUNNING, &priv->flags)) nfcmrvl_nci_open()
/linux-4.1.27/drivers/nfc/st21nfcb/
H A Dst21nfcb.c36 if (test_and_set_bit(ST21NFCB_NCI_RUNNING, &info->flags)) st21nfcb_nci_open()
/linux-4.1.27/arch/x86/include/asm/
H A Dmpspec.h102 test_and_set_bit(physid, (map).mask)
H A Dbitops.h197 * test_and_set_bit - Set a bit and return its old value
204 static inline int test_and_set_bit(long nr, volatile unsigned long *addr) test_and_set_bit() function
214 * This is the same as test_and_set_bit on x86.
219 return test_and_set_bit(nr, addr); test_and_set_bit_lock()
/linux-4.1.27/arch/sparc/lib/
H A Dksyms.c122 EXPORT_SYMBOL(test_and_set_bit);
/linux-4.1.27/drivers/usb/gadget/function/
H A Duvc.h89 if (!test_and_set_bit(warn, &dev->warnings)) \
/linux-4.1.27/drivers/watchdog/
H A Dixp4xx_wdt.c63 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) ixp4xx_wdt_open()
H A Dsbc7240_wdt.c74 if (!test_and_set_bit(SBC7240_ENABLED_STATUS_BIT, &wdt_status)) { wdt_enable()
134 if (test_and_set_bit(SBC7240_OPEN_STATUS_BIT, &wdt_status)) fop_open()
H A Dgeodewdt.c88 if (test_and_set_bit(WDT_FLAGS_OPEN, &wdt_flags)) geodewdt_open()
H A Dindydog.c68 if (test_and_set_bit(0, &indydog_alive)) indydog_open()
H A Diop_wdt.c98 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) iop_wdt_open()
H A Dit87_wdt.c400 if (exclusive && test_and_set_bit(WDTS_DEV_OPEN, &wdt_status)) wdt_open()
402 if (!test_and_set_bit(WDTS_TIMER_RUN, &wdt_status)) { wdt_open()
404 if (nowayout && !test_and_set_bit(WDTS_LOCKED, &wdt_status)) wdt_open()
551 if (!test_and_set_bit(WDTS_TIMER_RUN, &wdt_status)) { wdt_ioctl()
H A Dlantiq_wdt.c153 if (test_and_set_bit(0, &ltq_wdt_in_use)) ltq_wdt_open()
H A Dm54xx_wdt.c83 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) m54xx_wdt_open()
H A Dmtx-1_wdt.c128 if (test_and_set_bit(0, &mtx1_wdt_device.inuse)) mtx1_wdt_open()
H A Dsa1100_wdt.c53 if (test_and_set_bit(1, &sa1100wdt_users)) sa1100dog_open()
H A Dsbc_fitpc2_wdt.c71 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) fitpc2_wdt_open()
H A Dscx200_wdt.c101 if (test_and_set_bit(0, &open_lock)) scx200_wdt_open()
H A Dwdt285.c79 if (test_and_set_bit(1, &timer_alive)) watchdog_open()
H A Dacquirewdt.c195 if (test_and_set_bit(0, &acq_is_open)) acq_open()
H A Dadvantechwdt.c195 if (test_and_set_bit(0, &advwdt_is_open)) advwdt_open()
H A Dar7_wdt.c173 if (test_and_set_bit(0, &wdt_is_open)) ar7_wdt_open()
H A Dat91rm9200_wdt.c112 if (test_and_set_bit(0, &at91wdt_busy)) at91_wdt_open()
H A Dath79_wdt.c128 if (test_and_set_bit(WDT_FLAGS_BUSY, &wdt_flags)) ath79_wdt_open()
H A Dbcm63xx_wdt.c118 if (test_and_set_bit(0, &bcm63xx_wdt_device.inuse)) bcm63xx_wdt_open()
H A Dcpu5wdt.c141 if (test_and_set_bit(0, &cpu5wdt_device.inuse)) cpu5wdt_open()
H A Ddiag288_wdt.c224 if (test_and_set_bit(WDOG_DEV_OPEN, &wdt_dev.status)) { wdt_suspend()
H A Ddw_wdt.c174 if (test_and_set_bit(0, &dw_wdt.in_use)) dw_wdt_open()
H A Dgef_wdt.c224 if (test_and_set_bit(GEF_WDOG_FLAG_OPENED, &wdt_flags)) gef_wdt_open()
H A Dib700wdt.c234 if (test_and_set_bit(0, &ibwdt_is_open)) ibwdt_open()
H A Dibmasr.c320 if (test_and_set_bit(0, &asr_is_open)) asr_open()
H A Dks8695_wdt.c141 if (test_and_set_bit(0, &ks8695wdt_busy)) ks8695_wdt_open()
H A Dmixcomwd.c135 if (test_and_set_bit(0, &mixcomwd_opened)) mixcomwd_open()
H A Dmv64x60_wdt.c128 if (test_and_set_bit(MV64x60_WDOG_FLAG_OPENED, &wdt_flags)) mv64x60_wdt_open()
/linux-4.1.27/include/net/irda/
H A Dirmod.h97 #define irda_lock(lock) (! test_and_set_bit(0, (void *) (lock)))
/linux-4.1.27/include/linux/sunrpc/
H A Dxprt.h382 return test_and_set_bit(XPRT_CONNECTED, &xprt->state); xprt_test_and_set_connected()
404 return test_and_set_bit(XPRT_CONNECTING, &xprt->state); xprt_test_and_set_connecting()
409 test_and_set_bit(XPRT_BOUND, &xprt->state); xprt_set_bound()
431 return test_and_set_bit(XPRT_BINDING, &xprt->state); xprt_test_and_set_binding()
/linux-4.1.27/arch/powerpc/mm/
H A Dmmu_context_hash32.c68 while (test_and_set_bit(ctx, context_map)) { __init_new_context()
/linux-4.1.27/arch/arm64/mm/
H A Dflush.c81 if (!test_and_set_bit(PG_dcache_clean, &page->flags)) { __sync_icache_dcache()
/linux-4.1.27/arch/blackfin/include/asm/
H A Dbitops.h82 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) test_and_set_bit() function
/linux-4.1.27/arch/ia64/include/asm/
H A Dbitops.h192 * test_and_set_bit - Set a bit and return its old value
200 test_and_set_bit (int nr, volatile void *addr) test_and_set_bit() function
221 * This is the same as test_and_set_bit on ia64
223 #define test_and_set_bit_lock test_and_set_bit
/linux-4.1.27/arch/arm/mm/
H A Dcopypage-v4mc.c72 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) v4_mc_copy_user_highpage()
H A Dcopypage-v6.c78 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) v6_copy_user_highpage_aliasing()
H A Dcopypage-xscale.c92 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) xscale_mc_copy_user_highpage()
/linux-4.1.27/arch/arm/mach-imx/
H A Diomux-imx31.c108 if (test_and_set_bit(pad, mxc_pin_alloc_map)) { mxc_iomux_alloc_pin()
/linux-4.1.27/sound/usb/line6/
H A Dpcm.c110 if (!test_and_set_bit(i, &pcms->unlink_urbs)) line6_unlink_audio_urbs()
156 if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { line6_buffer_acquire()
189 if (!test_and_set_bit(type, &pstr->running) && line6_stream_start()
571 if (!test_and_set_bit(LINE6_FLAG_PREPARED, &line6pcm->flags)) { snd_line6_prepare()
/linux-4.1.27/drivers/input/joystick/iforce/
H A Diforce-packets.c114 !test_and_set_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags)) { iforce_send_packet()
229 if (!test_and_set_bit(FF_CORE_IS_PLAYED, iforce->core_effects[i].flags)) { iforce_process_packet()
H A Diforce-serio.c36 if (test_and_set_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags)) { iforce_serial_xmit()
/linux-4.1.27/drivers/uio/
H A Duio_dmem_genirq.c116 if (!test_and_set_bit(0, &priv->flags)) uio_dmem_genirq_handler()
139 if (!test_and_set_bit(0, &priv->flags)) uio_dmem_genirq_irqcontrol()
/linux-4.1.27/arch/avr32/include/asm/
H A Dbitops.h124 * test_and_set_bit - Set a bit and return its old value
131 static inline int test_and_set_bit(int nr, volatile void * addr) test_and_set_bit() function
/linux-4.1.27/arch/arm/include/asm/
H A Dbitops.h191 #define test_and_set_bit(nr,p) ATOMIC_BITOP(test_and_set_bit,nr,p) macro
/linux-4.1.27/drivers/hsi/clients/
H A Dhsi_char.c319 if (test_and_set_bit(HSC_RXBREAK, &cl_data->flags)) hsc_break_request()
440 if (test_and_set_bit(HSC_CH_READ, &channel->flags)) hsc_read()
497 if (test_and_set_bit(HSC_CH_WRITE, &channel->flags)) hsc_write()
554 if (test_and_set_bit(HSC_CH_WLINE, &channel->flags)) hsc_ioctl()
614 if (test_and_set_bit(HSC_CH_OPEN, &channel->flags)) { hsc_open()
/linux-4.1.27/net/sunrpc/
H A Dxprt.c186 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) { xprt_reserve_xprt()
237 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) { xprt_reserve_xprt_cong()
291 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) __xprt_lock_write_next()
319 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) __xprt_lock_write_next_cong()
643 if (test_and_set_bit(XPRT_LOCKED, &xprt->state) == 0) xprt_force_disconnect()
670 if (test_and_set_bit(XPRT_LOCKED, &xprt->state) == 0) xprt_conditional_disconnect()
685 if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) xprt_init_autodisconnect()
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A Ddivamnt.c137 if (test_and_set_bit(0, &opened)) maint_open()
/linux-4.1.27/drivers/scsi/libsas/
H A Dsas_event.c47 if (!test_and_set_bit(event, pending)) { sas_queue_event()
H A Dsas_discover.c384 if (!test_and_set_bit(SAS_DEV_DESTROY, &dev->state)) { sas_unregister_dev()
544 if (!test_and_set_bit(event, pending)) { sas_chain_event()
/linux-4.1.27/drivers/s390/cio/
H A Dqdio_thinint.c157 if (test_and_set_bit(QDIO_QUEUE_IRQS_DISABLED, for_each_input_queue()
/linux-4.1.27/drivers/sbus/char/
H A Dflash.c128 if (test_and_set_bit(0, (void *)&flash.busy) != 0) { flash_open()
/linux-4.1.27/drivers/gpio/
H A Dgpio-lp3943.c59 if (test_and_set_bit(offset, &lp3943->pin_used)) lp3943_gpio_request()
/linux-4.1.27/arch/x86/kernel/apic/
H A Dhw_nmi.c63 if (test_and_set_bit(0, &backtrace_flag)) { arch_trigger_all_cpu_backtrace()
/linux-4.1.27/arch/xtensa/include/asm/
H A Dbitops.h158 test_and_set_bit(unsigned int bit, volatile unsigned long *p) test_and_set_bit() function
/linux-4.1.27/block/
H A Dblk-iopoll.c147 while (test_and_set_bit(IOPOLL_F_SCHED, &iop->state)) blk_iopoll_disable()
H A Dblk-mq-tag.c64 !test_and_set_bit(BLK_MQ_S_TAG_ACTIVE, &hctx->state)) __blk_mq_tag_busy()
163 if (!test_and_set_bit(tag, &bm->word)) __bt_get_word()
H A Dblk.h101 return test_and_set_bit(REQ_ATOM_COMPLETE, &rq->atomic_flags); blk_mark_rq_complete()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
H A Dnotify.c62 !test_and_set_bit(NVKM_NOTIFY_USER, &notify->flags)) { nvkm_notify_get()
/linux-4.1.27/drivers/char/tpm/
H A Dtpm-dev.c63 if (test_and_set_bit(0, &chip->is_open)) { tpm_open()
/linux-4.1.27/arch/microblaze/include/asm/
H A Dmmu_context_mm.h90 while (test_and_set_bit(ctx, context_map)) { get_mmu_context()
/linux-4.1.27/fs/omfs/
H A Dbitmap.c104 if (map >= sbi->s_imap_size || test_and_set_bit(bit, sbi->s_imap[map])) omfs_allocate_block()
/linux-4.1.27/drivers/platform/x86/
H A Ddell-smo8800.c124 if (test_and_set_bit(0, &smo8800->misc_opened)) smo8800_misc_open()
/linux-4.1.27/arch/mips/lib/
H A Dbitops.c82 * called by test_and_set_bit() if it cannot find a faster solution.
/linux-4.1.27/arch/mn10300/include/asm/
H A Dbitops.h110 #define test_and_set_bit(nr, addr) __test_and_set_bit((nr), (addr)) macro
/linux-4.1.27/arch/arm/mach-omap1/
H A Dboard-voiceblue.c166 if (test_and_set_bit(MACHINE_PANICED, &machine_state)) panic_event()
/linux-4.1.27/net/ipv4/
H A Dtcp_memcontrol.c98 if (!test_and_set_bit(MEMCG_SOCK_ACTIVATED, &cg_proto->flags)) tcp_update_limit()
/linux-4.1.27/net/x25/
H A Dx25_out.c155 !test_and_set_bit(X25_INTERRUPT_FLAG, &x25->flags)) { x25_kick()
/linux-4.1.27/sound/isa/msnd/
H A Dmsnd_midi.c107 if (!test_and_set_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, snd_msndmidi_input_trigger()
/linux-4.1.27/drivers/isdn/act2000/
H A Dact2000_isa.c235 if (test_and_set_bit(ACT2000_LOCK_RX, (void *) &card->ilock) != 0) act2000_isa_receive()
301 if (test_and_set_bit(ACT2000_LOCK_TX, (void *) &card->ilock) != 0) act2000_isa_send()
/linux-4.1.27/drivers/net/caif/
H A Dcaif_serial.c227 if (test_and_set_bit(CAIF_SENDING, &ser->state)) handle_tx()
289 !test_and_set_bit(CAIF_FLOW_OFF_SENT, &ser->state) && caif_xmit()
/linux-4.1.27/drivers/media/rc/
H A Dir-rx51.c371 if (test_and_set_bit(1, &lirc_rx51->device_is_open)) lirc_rx51_open()
425 if (test_and_set_bit(1, &lirc_rx51.device_is_open)) lirc_rx51_suspend()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dcomedi_bond.c207 if (test_and_set_bit(minor, devs_opened)) { do_dev_config()
336 if (!test_and_set_bit(bdev->minor, devs_closed)) bonding_detach()
/linux-4.1.27/arch/frv/include/asm/
H A Dbitops.h117 static inline int test_and_set_bit(unsigned long nr, volatile void *addr) test_and_set_bit() function
140 test_and_set_bit(nr, addr); set_bit()
/linux-4.1.27/drivers/char/pcmcia/
H A Dcm4000_cs.c633 test_and_set_bit(LOCK_MONITOR,
673 if (test_and_set_bit(LOCK_MONITOR, &dev->flags)) {
688 if (test_and_set_bit(LOCK_IO, (void *)&dev->flags)) {
967 || (test_and_set_bit(LOCK_IO, (void *)&dev->flags) == 0)))) {
1112 || (test_and_set_bit(LOCK_IO, (void *)&dev->flags) == 0)))) {
1537 || (test_and_set_bit(LOCK_IO, (void *)&dev->flags)
1598 || (test_and_set_bit(LOCK_IO, (void *)&dev->flags)
/linux-4.1.27/fs/nfs/
H A Dpnfs.c265 if (!test_and_set_bit(fail_bit, &lo->plh_flags)) pnfs_layout_set_fail_bit()
1499 if (test_and_set_bit(NFS_LAYOUT_FIRST_LAYOUTGET, pnfs_update_layout()
1837 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) pnfs_ld_handle_write_error()
1863 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { pnfs_write_through_mds()
1953 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) pnfs_ld_handle_read_error()
1978 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { pnfs_read_through_mds()
2114 if (!test_and_set_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) { pnfs_set_layoutcommit()
2121 if (!test_and_set_bit(NFS_LSEG_LAYOUTCOMMIT, &lseg->pls_flags)) { pnfs_set_layoutcommit()
2168 if (test_and_set_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags)) { pnfs_layoutcommit_inode()
/linux-4.1.27/fs/btrfs/
H A Dordered-data.c302 * test_and_set_bit on a flag in the struct btrfs_ordered_extent is used
354 ret = test_and_set_bit(BTRFS_ORDERED_IO_DONE, &entry->flags); btrfs_dec_test_first_ordered_pending()
375 * test_and_set_bit on a flag in the struct btrfs_ordered_extent is used
418 ret = test_and_set_bit(BTRFS_ORDERED_IO_DONE, &entry->flags); btrfs_dec_test_ordered_pending()
455 if (test_and_set_bit(BTRFS_ORDERED_LOGGED, &ordered->flags)) btrfs_get_logged_extents()
/linux-4.1.27/net/bluetooth/
H A Dhci_conn.c388 if (!test_and_set_bit(HCI_CONN_MODE_CHANGE_PEND, &conn->flags)) { hci_conn_idle()
977 if (!test_and_set_bit(HCI_CONN_AUTH_PEND, &conn->flags)) { hci_conn_auth()
1001 if (!test_and_set_bit(HCI_CONN_ENCRYPT_PEND, &conn->flags)) { hci_conn_encrypt()
1107 if (!test_and_set_bit(HCI_CONN_RSWITCH_PEND, &conn->flags)) { hci_conn_switch_role()
1131 if (!test_and_set_bit(HCI_CONN_MODE_CHANGE_PEND, &conn->flags)) { hci_conn_enter_active_mode()
/linux-4.1.27/net/9p/
H A Dtrans_fd.c393 if ((n & POLLIN) && !test_and_set_bit(Rworksched, &m->wsched)) { p9_read_work()
508 !test_and_set_bit(Wworksched, &m->wsched)) { p9_write_work()
632 if (!test_and_set_bit(Rworksched, &m->wsched)) { p9_poll_mux()
642 !test_and_set_bit(Wworksched, &m->wsched)) { p9_poll_mux()
681 if (n & POLLOUT && !test_and_set_bit(Wworksched, &m->wsched)) p9_fd_request()
/linux-4.1.27/drivers/net/usb/
H A Dcatc.c337 if (test_and_set_bit(RX_RUNNING, &catc->flags)) { catc_irq_done()
439 if (!test_and_set_bit(TX_RUNNING, &catc->flags)) { catc_start_xmit()
571 if (!test_and_set_bit(CTRL_RUNNING, &catc->flags)) catc_ctrl_async()
/linux-4.1.27/fs/afs/
H A Dflock.c142 if (test_and_set_bit(AFS_VNODE_LOCKING, &vnode->flags)) afs_lock_work()
176 if (test_and_set_bit(AFS_VNODE_LOCKING, &vnode->flags)) afs_lock_work()
244 if (test_and_set_bit(AFS_VNODE_UNLOCKING, &vnode->flags)) afs_defer_unlock()
/linux-4.1.27/fs/f2fs/
H A Dsegment.h355 if (!test_and_set_bit(secno, free_i->free_secmap)) __set_inuse()
387 if (!test_and_set_bit(segno, free_i->free_segmap)) { __set_test_and_inuse()
389 if (!test_and_set_bit(secno, free_i->free_secmap)) __set_test_and_inuse()
/linux-4.1.27/lib/
H A Dlru_cache.c43 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \
418 * (using test_and_set_bit, as it implies memory barriers), ... */ __lc_get()
419 test_and_set_bit(__LC_DIRTY, &lc->flags); __lc_get()
/linux-4.1.27/net/atm/
H A Dpppoatm.c251 * We use test_and_set_bit() rather than set_bit() here because pppoatm_may_send()
257 test_and_set_bit(BLOCKED, &pvcc->blocked); pppoatm_may_send()
311 test_and_set_bit(BLOCKED, &pvcc->blocked); pppoatm_send()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k.h360 while (test_and_set_bit(__FM10K_MBX_LOCK, &interface->state)) fm10k_mbx_lock()
373 return !test_and_set_bit(__FM10K_MBX_LOCK, &interface->state); fm10k_mbx_trylock()
/linux-4.1.27/arch/x86/kvm/
H A Dpmu.c112 if (!test_and_set_bit(pmc->idx, (unsigned long *)&pmu->reprogram_pmi)) { kvm_perf_overflow()
123 if (!test_and_set_bit(pmc->idx, (unsigned long *)&pmu->reprogram_pmi)) { kvm_perf_overflow_intr()
/linux-4.1.27/drivers/bluetooth/
H A Dbfusb.c167 if (test_and_set_bit(BFUSB_TX_PROCESS, &data->state)) { bfusb_tx_wakeup()
425 if (test_and_set_bit(HCI_RUNNING, &hdev->flags)) bfusb_open()
H A Dhci_ldisc.c125 if (test_and_set_bit(HCI_UART_SENDING, &hu->tx_state)) { hci_uart_tx_wakeup()
581 if (!test_and_set_bit(HCI_UART_PROTO_SET, &hu->flags)) { hci_uart_tty_ioctl()
H A Dbtsdio.c197 if (test_and_set_bit(HCI_RUNNING, &hdev->flags)) btsdio_open()
H A Dbtwilink.c158 if (test_and_set_bit(HCI_RUNNING, &hdev->flags)) ti_st_open()
/linux-4.1.27/drivers/net/ethernet/alteon/
H A Dacenic.c1486 if (!test_and_set_bit(0, &ap->std_refill_busy)) ace_init()
1492 if (!test_and_set_bit(0, &ap->mini_refill_busy)) ace_init()
1577 !test_and_set_bit(0, &ap->std_refill_busy)) { ace_tasklet()
1587 !test_and_set_bit(0, &ap->mini_refill_busy)) { ace_tasklet()
1598 !test_and_set_bit(0, &ap->jumbo_refill_busy)) { ace_tasklet()
2178 !test_and_set_bit(0, &ap->std_refill_busy)) { ace_interrupt()
2192 !test_and_set_bit(0, ace_interrupt()
2209 !test_and_set_bit(0, ace_interrupt()
2254 !test_and_set_bit(0, &ap->jumbo_refill_busy)) ace_open()
2562 if (!test_and_set_bit(0, &ap->jumbo_refill_busy)) ace_change_mtu()
2567 while (test_and_set_bit(0, &ap->jumbo_refill_busy)); ace_change_mtu()
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-alsa-pcm.c175 test_and_set_bit(CX18_F_S_STREAMING, &s->s_flags)) { snd_cx18_pcm_capture_open()
H A Dcx18-fileops.c57 if (test_and_set_bit(CX18_F_S_CLAIMED, &s->s_flags)) { cx18_claim_stream()
516 test_and_set_bit(CX18_F_S_STREAMING, &s->s_flags)) { cx18_start_capture()
531 !test_and_set_bit(CX18_F_S_STREAMING, &s_idx->s_flags)) { cx18_start_capture()
540 !test_and_set_bit(CX18_F_S_STREAMING, &s_vbi->s_flags)) { cx18_start_capture()
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-alsa-pcm.c182 test_and_set_bit(IVTV_F_S_STREAMING, &s->s_flags)) { snd_ivtv_pcm_capture_open()
H A Divtv-fileops.c51 if (test_and_set_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { ivtv_claim_stream()
90 if (!test_and_set_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags)) { 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)) { ivtv_start_capture()
462 !test_and_set_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags)) { ivtv_start_capture()
/linux-4.1.27/drivers/scsi/esas2r/
H A Desas2r_disc.c216 && !test_and_set_bit(AF2_DEV_SCAN, &a->flags2)) { esas2r_disc_check_complete()
230 if (!test_and_set_bit(AF2_DEV_CNT_OK, &a->flags2)) esas2r_disc_check_complete()
234 if (!test_and_set_bit(AF2_DEV_SCAN, &a->flags2)) { esas2r_disc_check_complete()
251 if (!test_and_set_bit(AF2_DEV_SCAN, &a->flags2)) { esas2r_disc_check_complete()
/linux-4.1.27/drivers/pwm/
H A Dpwm-lp3943.c55 if (test_and_set_bit(offset, &lp3943->pin_used)) { lp3943_pwm_request_map()
H A Dsysfs.c186 if (test_and_set_bit(PWMF_EXPORTED, &pwm->flags)) pwm_export_child()
/linux-4.1.27/drivers/s390/net/
H A Dctcm_main.h251 return test_and_set_bit(0, ctcm_test_and_set_busy()
/linux-4.1.27/drivers/staging/wlan-ng/
H A Dp80211req.c118 if (test_and_set_bit(1, &(wlandev->request_pending))) p80211req_dorequest()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A Dps.c91 if (WARN_ON(test_and_set_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags))) wl1271_ps_elp_sleep()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_ethtool.c74 while (test_and_set_bit(__AT_RESETTING, &adapter->flags)) atl1c_set_settings()
/linux-4.1.27/drivers/input/serio/
H A Dserport.c172 if (test_and_set_bit(SERPORT_BUSY, &serport->flags)) serport_ldisc_read()
/linux-4.1.27/arch/sh/mm/
H A Dcache.c145 int dirty = !test_and_set_bit(PG_dcache_clean, &page->flags); __update_cache()
/linux-4.1.27/arch/tile/lib/
H A Datomic_asm_32.S64 * can safely race with an atomic test_and_set_bit(); this example is
/linux-4.1.27/drivers/gpu/drm/nouveau/nvif/
H A Dnotify.c85 !test_and_set_bit(NVIF_NOTIFY_USER, &notify->flags)) nvif_notify_get()
/linux-4.1.27/drivers/block/drbd/
H A Ddrbd_actlog.c238 wake = !test_and_set_bit(BME_PRIORITY, &bm_ext->flags); _al_get()
298 * This uses test_and_set_bit, memory barrier is implicit. drbd_al_begin_io_commit()
379 if (!test_and_set_bit(BME_PRIORITY, &bm_ext->flags)) drbd_al_begin_io_nonblock()
1049 if (!test_and_set_bit(BME_NO_WRITES, &bm_ext->flags)) { drbd_try_rs_begin_io()
/linux-4.1.27/fs/ramfs/
H A Dinode.c262 if (test_and_set_bit(0, &once)) init_ramfs_fs()

Completed in 14323 milliseconds

1234