/linux-4.1.27/arch/mn10300/lib/ |
H A D | bitops.c | 23 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 D | bitops-llsc.h | 67 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 D | bitops-grb.h | 74 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 D | bitmap.h | 50 * 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 D | arcofi.c | 23 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 D | hscx.c | 109 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 D | jade.c | 144 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 D | hfc_2bds0.c | 343 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 D | hfc_sx.c | 455 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 D | isar.c | 701 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 D | isdnl2.c | 111 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 D | hfc_pci.c | 184 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 D | netjet.c | 145 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 D | hfc_2bs0.c | 377 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 D | isdnl1.c | 480 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 D | w6692.c | 187 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 D | callc.c | 1051 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 D | elsa_ser.c | 301 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 D | avm_pci.c | 436 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 D | amd7930_fn.c | 396 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 D | icc.c | 167 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 D | isac.c | 170 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 D | config.c | 1051 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 D | diva.c | 557 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 D | hscx_irq.c | 215 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hscx_interrupt()
|
H A D | isurf.c | 292 test_and_set_bit(HW_ISAR, &cs->HW_Flags); setup_isurf()
|
H A D | jade_irq.c | 193 test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); jade_interrupt()
|
H A D | nj_s.c | 78 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { netjet_s_interrupt()
|
H A D | nj_u.c | 63 if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { netjet_u_interrupt()
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | sync_bitops.h | 20 #define sync_test_and_set_bit(nr, p) test_and_set_bit(nr, p)
|
H A D | bitops.h | 32 extern int test_and_set_bit(int nr, volatile unsigned long *p);
|
/linux-4.1.27/include/asm-generic/bitops/ |
H A D | lock.h | 12 #define test_and_set_bit_lock(nr, addr) test_and_set_bit(nr, addr)
|
H A D | le.h | 79 return test_and_set_bit(nr ^ BITOP_LE_SWIZZLE, addr); test_and_set_bit_le()
|
H A D | atomic.h | 119 * 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 D | blk-iopoll.h | 29 return test_and_set_bit(IOPOLL_F_SCHED, &iop->state); blk_iopoll_sched_prep()
|
H A D | thread_info.h | 81 return test_and_set_bit(flag, (unsigned long *)&ti->flags); test_and_set_ti_thread_flag()
|
H A D | nfs_page.h | 152 return !test_and_set_bit(PG_BUSY, &req->wb_flags); nfs_lock_request()
|
H A D | interrupt.h | 509 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 D | mISDNhw.h | 83 test_and_set_bit(ev, &((s)->Flags)); \
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | irq.c | 44 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 D | bitops.h | 65 * 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 D | perfctr-watchdog.c | 115 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 D | perf_event_intel_uncore.h | 293 if (!test_and_set_bit(UNCORE_BOX_FLAG_INITIATED, &box->flags)) { uncore_box_init()
|
/linux-4.1.27/drivers/isdn/mISDN/ |
H A D | stack.c | 36 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 D | layer2.c | 205 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 D | layer1.c | 140 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 D | hwchannel.c | 68 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 D | tei.c | 343 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 D | core.c | 219 if (!test_and_set_bit(i, (u_long *)&device_ids)) get_free_devid()
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
H A D | mISDNisar.c | 626 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 D | hfc_multi_8xx.h | 104 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 D | mISDNipac.c | 170 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 D | w6692.c | 310 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 D | hfcmulti.c | 1153 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 D | hfcpci.c | 959 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 D | avmfritz.c | 382 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 D | netjet.c | 237 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 D | bitops_64.h | 18 int test_and_set_bit(unsigned long nr, volatile unsigned long *addr);
|
H A D | bitops_32.h | 31 static inline int test_and_set_bit(unsigned long nr, volatile unsigned long *addr) test_and_set_bit() function
|
H A D | parport.h | 128 if (!test_and_set_bit(slot, dma_slot_map)) ecpp_probe()
|
/linux-4.1.27/crypto/ |
H A D | chainiv.c | 133 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 D | arm64ksyms.c | 59 EXPORT_SYMBOL(test_and_set_bit); variable
|
/linux-4.1.27/net/rxrpc/ |
H A D | ar-accept.c | 137 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 D | ar-call.c | 455 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 D | ar-input.c | 185 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 D | bitops.h | 221 * 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 D | bitops_32.h | 76 * 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 D | bitops_64.h | 55 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 D | ilsel.c | 106 } 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 D | ip27-init.c | 65 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 D | ip27-hubio.c | 47 if (test_and_set_bit(i, hub_data(cnode)->h_bigwin_used)) hub_pio_map()
|
/linux-4.1.27/net/core/ |
H A D | link_watch.c | 124 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 D | handle.c | 48 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 D | smp.h | 24 #define physid_test_and_set(physid, map) test_and_set_bit(physid, (map).mask)
|
H A D | bitops.h | 143 * 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 D | bitops.h | 195 #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 D | bitops.h | 51 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 D | spinlock.h | 47 return !test_and_set_bit(0, &lock->lock); arch_spin_trylock()
|
/linux-4.1.27/fs/gfs2/ |
H A D | log.h | 57 if (!test_and_set_bit(GIF_ORDERED, &ip->i_flags)) gfs2_ordered_add_inode()
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_conntrack_labels.c | 44 if (!test_and_set_bit(bit, labels->bits)) nf_connlabel_set()
|
/linux-4.1.27/drivers/dma-buf/ |
H A D | fence.c | 79 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 D | perf_event_xscale.c | 272 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 D | perf_event_v6.c | 387 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 D | lowcomms.c | 430 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 D | cache.c | 244 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 D | bnx2fc_io.c | 81 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 D | fail.c | 98 if (test_and_set_bit(CFS_FAILED_BIT, &cfs_fail_loc)) { __cfs_fail_check_set()
|
/linux-4.1.27/drivers/nfc/nfcmrvl/ |
H A D | main.c | 32 if (test_and_set_bit(NFCMRVL_NCI_RUNNING, &priv->flags)) nfcmrvl_nci_open()
|
/linux-4.1.27/drivers/nfc/st21nfcb/ |
H A D | st21nfcb.c | 36 if (test_and_set_bit(ST21NFCB_NCI_RUNNING, &info->flags)) st21nfcb_nci_open()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | mpspec.h | 102 test_and_set_bit(physid, (map).mask)
|
H A D | bitops.h | 197 * 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 D | ksyms.c | 122 EXPORT_SYMBOL(test_and_set_bit);
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | uvc.h | 89 if (!test_and_set_bit(warn, &dev->warnings)) \
|
/linux-4.1.27/drivers/watchdog/ |
H A D | ixp4xx_wdt.c | 63 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) ixp4xx_wdt_open()
|
H A D | sbc7240_wdt.c | 74 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 D | geodewdt.c | 88 if (test_and_set_bit(WDT_FLAGS_OPEN, &wdt_flags)) geodewdt_open()
|
H A D | indydog.c | 68 if (test_and_set_bit(0, &indydog_alive)) indydog_open()
|
H A D | iop_wdt.c | 98 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) iop_wdt_open()
|
H A D | it87_wdt.c | 400 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 D | lantiq_wdt.c | 153 if (test_and_set_bit(0, <q_wdt_in_use)) ltq_wdt_open()
|
H A D | m54xx_wdt.c | 83 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) m54xx_wdt_open()
|
H A D | mtx-1_wdt.c | 128 if (test_and_set_bit(0, &mtx1_wdt_device.inuse)) mtx1_wdt_open()
|
H A D | sa1100_wdt.c | 53 if (test_and_set_bit(1, &sa1100wdt_users)) sa1100dog_open()
|
H A D | sbc_fitpc2_wdt.c | 71 if (test_and_set_bit(WDT_IN_USE, &wdt_status)) fitpc2_wdt_open()
|
H A D | scx200_wdt.c | 101 if (test_and_set_bit(0, &open_lock)) scx200_wdt_open()
|
H A D | wdt285.c | 79 if (test_and_set_bit(1, &timer_alive)) watchdog_open()
|
H A D | acquirewdt.c | 195 if (test_and_set_bit(0, &acq_is_open)) acq_open()
|
H A D | advantechwdt.c | 195 if (test_and_set_bit(0, &advwdt_is_open)) advwdt_open()
|
H A D | ar7_wdt.c | 173 if (test_and_set_bit(0, &wdt_is_open)) ar7_wdt_open()
|
H A D | at91rm9200_wdt.c | 112 if (test_and_set_bit(0, &at91wdt_busy)) at91_wdt_open()
|
H A D | ath79_wdt.c | 128 if (test_and_set_bit(WDT_FLAGS_BUSY, &wdt_flags)) ath79_wdt_open()
|
H A D | bcm63xx_wdt.c | 118 if (test_and_set_bit(0, &bcm63xx_wdt_device.inuse)) bcm63xx_wdt_open()
|
H A D | cpu5wdt.c | 141 if (test_and_set_bit(0, &cpu5wdt_device.inuse)) cpu5wdt_open()
|
H A D | diag288_wdt.c | 224 if (test_and_set_bit(WDOG_DEV_OPEN, &wdt_dev.status)) { wdt_suspend()
|
H A D | dw_wdt.c | 174 if (test_and_set_bit(0, &dw_wdt.in_use)) dw_wdt_open()
|
H A D | gef_wdt.c | 224 if (test_and_set_bit(GEF_WDOG_FLAG_OPENED, &wdt_flags)) gef_wdt_open()
|
H A D | ib700wdt.c | 234 if (test_and_set_bit(0, &ibwdt_is_open)) ibwdt_open()
|
H A D | ibmasr.c | 320 if (test_and_set_bit(0, &asr_is_open)) asr_open()
|
H A D | ks8695_wdt.c | 141 if (test_and_set_bit(0, &ks8695wdt_busy)) ks8695_wdt_open()
|
H A D | mixcomwd.c | 135 if (test_and_set_bit(0, &mixcomwd_opened)) mixcomwd_open()
|
H A D | mv64x60_wdt.c | 128 if (test_and_set_bit(MV64x60_WDOG_FLAG_OPENED, &wdt_flags)) mv64x60_wdt_open()
|
/linux-4.1.27/include/net/irda/ |
H A D | irmod.h | 97 #define irda_lock(lock) (! test_and_set_bit(0, (void *) (lock)))
|
/linux-4.1.27/include/linux/sunrpc/ |
H A D | xprt.h | 382 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 D | mmu_context_hash32.c | 68 while (test_and_set_bit(ctx, context_map)) { __init_new_context()
|
/linux-4.1.27/arch/arm64/mm/ |
H A D | flush.c | 81 if (!test_and_set_bit(PG_dcache_clean, &page->flags)) { __sync_icache_dcache()
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | bitops.h | 82 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 D | bitops.h | 192 * 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 D | copypage-v4mc.c | 72 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) v4_mc_copy_user_highpage()
|
H A D | copypage-v6.c | 78 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) v6_copy_user_highpage_aliasing()
|
H A D | copypage-xscale.c | 92 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 D | iomux-imx31.c | 108 if (test_and_set_bit(pad, mxc_pin_alloc_map)) { mxc_iomux_alloc_pin()
|
/linux-4.1.27/sound/usb/line6/ |
H A D | pcm.c | 110 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 D | iforce-packets.c | 114 !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 D | iforce-serio.c | 36 if (test_and_set_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags)) { iforce_serial_xmit()
|
/linux-4.1.27/drivers/uio/ |
H A D | uio_dmem_genirq.c | 116 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 D | bitops.h | 124 * 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 D | bitops.h | 191 #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 D | hsi_char.c | 319 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 D | xprt.c | 186 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 D | divamnt.c | 137 if (test_and_set_bit(0, &opened)) maint_open()
|
/linux-4.1.27/drivers/scsi/libsas/ |
H A D | sas_event.c | 47 if (!test_and_set_bit(event, pending)) { sas_queue_event()
|
H A D | sas_discover.c | 384 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 D | qdio_thinint.c | 157 if (test_and_set_bit(QDIO_QUEUE_IRQS_DISABLED, for_each_input_queue()
|
/linux-4.1.27/drivers/sbus/char/ |
H A D | flash.c | 128 if (test_and_set_bit(0, (void *)&flash.busy) != 0) { flash_open()
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpio-lp3943.c | 59 if (test_and_set_bit(offset, &lp3943->pin_used)) lp3943_gpio_request()
|
/linux-4.1.27/arch/x86/kernel/apic/ |
H A D | hw_nmi.c | 63 if (test_and_set_bit(0, &backtrace_flag)) { arch_trigger_all_cpu_backtrace()
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | bitops.h | 158 test_and_set_bit(unsigned int bit, volatile unsigned long *p) test_and_set_bit() function
|
/linux-4.1.27/block/ |
H A D | blk-iopoll.c | 147 while (test_and_set_bit(IOPOLL_F_SCHED, &iop->state)) blk_iopoll_disable()
|
H A D | blk-mq-tag.c | 64 !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 D | blk.h | 101 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 D | notify.c | 62 !test_and_set_bit(NVKM_NOTIFY_USER, ¬ify->flags)) { nvkm_notify_get()
|
/linux-4.1.27/drivers/char/tpm/ |
H A D | tpm-dev.c | 63 if (test_and_set_bit(0, &chip->is_open)) { tpm_open()
|
/linux-4.1.27/arch/microblaze/include/asm/ |
H A D | mmu_context_mm.h | 90 while (test_and_set_bit(ctx, context_map)) { get_mmu_context()
|
/linux-4.1.27/fs/omfs/ |
H A D | bitmap.c | 104 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 D | dell-smo8800.c | 124 if (test_and_set_bit(0, &smo8800->misc_opened)) smo8800_misc_open()
|
/linux-4.1.27/arch/mips/lib/ |
H A D | bitops.c | 82 * called by test_and_set_bit() if it cannot find a faster solution.
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | bitops.h | 110 #define test_and_set_bit(nr, addr) __test_and_set_bit((nr), (addr)) macro
|
/linux-4.1.27/arch/arm/mach-omap1/ |
H A D | board-voiceblue.c | 166 if (test_and_set_bit(MACHINE_PANICED, &machine_state)) panic_event()
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_memcontrol.c | 98 if (!test_and_set_bit(MEMCG_SOCK_ACTIVATED, &cg_proto->flags)) tcp_update_limit()
|
/linux-4.1.27/net/x25/ |
H A D | x25_out.c | 155 !test_and_set_bit(X25_INTERRUPT_FLAG, &x25->flags)) { x25_kick()
|
/linux-4.1.27/sound/isa/msnd/ |
H A D | msnd_midi.c | 107 if (!test_and_set_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, snd_msndmidi_input_trigger()
|
/linux-4.1.27/drivers/isdn/act2000/ |
H A D | act2000_isa.c | 235 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 D | caif_serial.c | 227 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 D | ir-rx51.c | 371 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 D | comedi_bond.c | 207 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 D | bitops.h | 117 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 D | cm4000_cs.c | 633 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 D | pnfs.c | 265 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 D | ordered-data.c | 302 * 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 D | hci_conn.c | 388 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 D | trans_fd.c | 393 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 D | catc.c | 337 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 D | flock.c | 142 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 D | segment.h | 355 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 D | lru_cache.c | 43 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 D | pppoatm.c | 251 * 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 D | fm10k.h | 360 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 D | pmu.c | 112 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 D | bfusb.c | 167 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 D | hci_ldisc.c | 125 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 D | btsdio.c | 197 if (test_and_set_bit(HCI_RUNNING, &hdev->flags)) btsdio_open()
|
H A D | btwilink.c | 158 if (test_and_set_bit(HCI_RUNNING, &hdev->flags)) ti_st_open()
|
/linux-4.1.27/drivers/net/ethernet/alteon/ |
H A D | acenic.c | 1486 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 D | cx18-alsa-pcm.c | 175 test_and_set_bit(CX18_F_S_STREAMING, &s->s_flags)) { snd_cx18_pcm_capture_open()
|
H A D | cx18-fileops.c | 57 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 D | ivtv-alsa-pcm.c | 182 test_and_set_bit(IVTV_F_S_STREAMING, &s->s_flags)) { snd_ivtv_pcm_capture_open()
|
H A D | ivtv-fileops.c | 51 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 D | esas2r_disc.c | 216 && !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 D | pwm-lp3943.c | 55 if (test_and_set_bit(offset, &lp3943->pin_used)) { lp3943_pwm_request_map()
|
H A D | sysfs.c | 186 if (test_and_set_bit(PWMF_EXPORTED, &pwm->flags)) pwm_export_child()
|
/linux-4.1.27/drivers/s390/net/ |
H A D | ctcm_main.h | 251 return test_and_set_bit(0, ctcm_test_and_set_busy()
|
/linux-4.1.27/drivers/staging/wlan-ng/ |
H A D | p80211req.c | 118 if (test_and_set_bit(1, &(wlandev->request_pending))) p80211req_dorequest()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | ps.c | 91 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 D | atl1c_ethtool.c | 74 while (test_and_set_bit(__AT_RESETTING, &adapter->flags)) atl1c_set_settings()
|
/linux-4.1.27/drivers/input/serio/ |
H A D | serport.c | 172 if (test_and_set_bit(SERPORT_BUSY, &serport->flags)) serport_ldisc_read()
|
/linux-4.1.27/arch/sh/mm/ |
H A D | cache.c | 145 int dirty = !test_and_set_bit(PG_dcache_clean, &page->flags); __update_cache()
|
/linux-4.1.27/arch/tile/lib/ |
H A D | atomic_asm_32.S | 64 * can safely race with an atomic test_and_set_bit(); this example is
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvif/ |
H A D | notify.c | 85 !test_and_set_bit(NVIF_NOTIFY_USER, ¬ify->flags)) nvif_notify_get()
|
/linux-4.1.27/drivers/block/drbd/ |
H A D | drbd_actlog.c | 238 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 D | inode.c | 262 if (test_and_set_bit(0, &once)) init_ramfs_fs()
|