Home
last modified time | relevance | path

Searched refs:test_and_set_bit (Results 1 – 25 of 667) sorted by relevance

12345678910>>...27

/linux/arch/hexagon/include/asm/
H A Dbitops.h55 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() function
113 test_and_set_bit(nr, addr); in set_bit()
139 test_and_set_bit(nr, addr); in arch___set_bit()
158 return test_and_set_bit(nr, addr); in arch___test_and_set_bit()
/linux/drivers/platform/surface/aggregator/
H A Dssh_request_layer.c158 if (test_and_set_bit(SSH_REQUEST_SF_PENDING_BIT, &rqst->state)) { in ssh_rtl_tx_pending_push()
522 if (test_and_set_bit(SSH_REQUEST_SF_COMPLETED_BIT, &r->state)) { in ssh_rtl_complete()
620 if (test_and_set_bit(SSH_REQUEST_SF_COMPLETED_BIT, &r->state)) in ssh_rtl_cancel_nonpending()
650 if (test_and_set_bit(SSH_REQUEST_SF_COMPLETED_BIT, &r->state)) in ssh_rtl_cancel_nonpending()
660 if (test_and_set_bit(SSH_REQUEST_SF_LOCKED_BIT, &r->state)) in ssh_rtl_cancel_pending()
675 if (test_and_set_bit(SSH_REQUEST_SF_COMPLETED_BIT, &r->state)) in ssh_rtl_cancel_pending()
695 if (test_and_set_bit(SSH_REQUEST_SF_COMPLETED_BIT, &r->state)) in ssh_rtl_cancel_pending()
733 if (test_and_set_bit(SSH_REQUEST_SF_CANCELED_BIT, &rqst->state)) in ssh_rtl_cancel()
758 if (test_and_set_bit(SSH_REQUEST_SF_COMPLETED_BIT, &r->state)) in ssh_rtl_packet_callback()
801 if (test_and_set_bit(SSH_REQUEST_SF_COMPLETED_BIT, &r->state)) in ssh_rtl_packet_callback()
[all …]
H A Dssh_packet_layer.c754 if (test_and_set_bit(SSH_PACKET_SF_QUEUED_BIT, &packet->state)) in __ssh_ptl_queue_push()
820 if (!test_and_set_bit(SSH_PACKET_SF_PENDING_BIT, &p->state)) { in ssh_ptl_pending_push()
874 if (test_and_set_bit(SSH_PACKET_SF_COMPLETED_BIT, &p->state)) in ssh_ptl_remove_and_complete()
1284 if (unlikely(test_and_set_bit(SSH_PACKET_SF_LOCKED_BIT, &p->state))) { in ssh_ptl_acknowledge()
1452 if (test_and_set_bit(SSH_PACKET_SF_CANCELED_BIT, &p->state)) in ssh_ptl_cancel()
1462 if (test_and_set_bit(SSH_PACKET_SF_LOCKED_BIT, &p->state)) in ssh_ptl_cancel()
1484 } else if (!test_and_set_bit(SSH_PACKET_SF_COMPLETED_BIT, &p->state)) { in ssh_ptl_cancel()
1557 if (test_and_set_bit(SSH_PACKET_SF_LOCKED_BIT, &p->state)) in ssh_ptl_timeout_reap()
1577 if (!test_and_set_bit(SSH_PACKET_SF_COMPLETED_BIT, &p->state)) { in ssh_ptl_timeout_reap()
1993 if (!test_and_set_bit(SSH_PACKET_SF_COMPLETED_BIT, &p->state)) in ssh_ptl_shutdown()
[all …]
/linux/drivers/isdn/mISDN/
H A Dlayer2.c196 if (test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in l2down_raw()
262 if (!test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm()
324 test_and_set_bit(FLG_PEER_BUSY, &l2->flag); in set_peer_busy()
326 test_and_set_bit(FLG_L2BLOCK, &l2->flag); in set_peer_busy()
659 test_and_set_bit(FLG_T200_RUN, &l2->flag); in start_t200()
666 test_and_set_bit(FLG_T200_RUN, &l2->flag); in restart_t200()
842 test_and_set_bit(FLG_L3_INIT, &l2->flag); in l2_establish()
853 test_and_set_bit(FLG_L3_INIT, &l2->flag); in l2_discard_i_setl3()
866 test_and_set_bit(FLG_L3_INIT, &l2->flag); in l2_l3_reestablish()
886 test_and_set_bit(FLG_PEND_REL, &l2->flag); in l2_pend_rel()
[all …]
H A Dstack.c30 test_and_set_bit(mISDN_STACK_WORK, &st->status); in _queue_message()
219 test_and_set_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
229 test_and_set_bit(mISDN_STACK_WORK, in mISDNStackd()
257 test_and_set_bit(mISDN_STACK_STOPPED, &st->status); in mISDNStackd()
261 test_and_set_bit(mISDN_STACK_RESTART, &st->status); in mISDNStackd()
265 test_and_set_bit(mISDN_STACK_RUNNING, &st->status); in mISDNStackd()
267 test_and_set_bit(mISDN_STACK_WORK, in mISDNStackd()
285 test_and_set_bit(mISDN_STACK_ACTIVE, &st->status); in mISDNStackd()
311 test_and_set_bit(mISDN_STACK_KILLED, &st->status); in mISDNStackd()
636 test_and_set_bit(mISDN_STACK_ABORT, &st->status); in delete_stack()
[all …]
H A Dhwchannel.c59 test_and_set_bit(FLG_HDLC, &ch->Flags); in mISDN_initdchannel()
168 test_and_set_bit(FLG_FILLEMPTY, &bch->Flags); in mISDN_ctrl_bchannel()
177 test_and_set_bit(FLG_RX_OFF, &bch->Flags); in mISDN_ctrl_bchannel()
417 if (test_and_set_bit(FLG_TX_BUSY, &ch->Flags)) { in dchannel_senddata()
451 if (test_and_set_bit(FLG_TX_BUSY, &ch->Flags)) { in bchannel_senddata()
452 test_and_set_bit(FLG_TX_NEXT, &ch->Flags); in bchannel_senddata()
H A Dlayer1.c131 test_and_set_bit(FLG_L1_DEACTTIMER, &l1->Flags); in l1_deact_req_s()
180 test_and_set_bit(FLG_L1_ACTTIMER, &l1->Flags); in l1_info4_ind()
207 test_and_set_bit(FLG_L1_ACTIVATED, &l1->Flags); in l1_timer_act()
230 test_and_set_bit(FLG_L1_T3RUN, &l1->Flags); in l1_activate_s()
346 test_and_set_bit(FLG_L1_ACTIVATING, &l1->Flags); in l1_event()
H A Dtei.c334 if (!test_and_set_bit(MGR_PH_NOTREADY, &mgr->options)) { in do_send()
793 test_and_set_bit(OPTION_L2_FIXEDTEI, &opt); in create_new_tei()
796 test_and_set_bit(OPTION_L2_PMX, &opt); in create_new_tei()
999 test_and_set_bit(OPTION_L2_FIXEDTEI, &opt); in create_teimgr()
1001 test_and_set_bit(OPTION_L2_PTP, &opt); in create_teimgr()
1020 test_and_set_bit(MGR_OPT_NETWORK, &mgr->options); in create_teimgr()
1022 test_and_set_bit(MGR_OPT_USER, &mgr->options); in create_teimgr()
1027 test_and_set_bit(OPTION_L2_PMX, &opt); in create_teimgr()
1116 test_and_set_bit(MGR_PH_ACTIVE, &mgr->options); in mgr_send()
1179 test_and_set_bit(OPTION_L2_CLEANUP, &mgr->options); in ctrl_teimanager()
[all …]
/linux/drivers/gpu/drm/i915/selftests/
H A Digt_reset.c21 while (test_and_set_bit(I915_RESET_BACKOFF, &gt->reset.flags)) in igt_global_reset_lock()
26 while (test_and_set_bit(I915_RESET_ENGINE + id, in igt_global_reset_lock()
/linux/drivers/isdn/hardware/mISDN/
H A DmISDNisar.c613 test_and_set_bit(FLG_LASTDATA, in isar_fill_fifo()
618 test_and_set_bit(FLG_DLEETX, in isar_fill_fifo()
684 test_and_set_bit(FLG_NMD_DATA, &ch->bch.Flags); in send_next()
688 test_and_set_bit(FLG_LASTDATA, &ch->bch.Flags); in send_next()
689 test_and_set_bit(FLG_NMD_DATA, &ch->bch.Flags); in send_next()
709 test_and_set_bit(FLG_LL_OK, &ch->bch.Flags); in send_next()
714 test_and_set_bit(FLG_TX_EMPTY, &ch->bch.Flags); in send_next()
831 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags); in isar_pump_statev_modem()
926 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags); in isar_pump_statev_fax()
931 if (test_and_set_bit(FLG_FTI_RUN, in isar_pump_statev_fax()
[all …]
H A Dhfc_multi_8xx.h105 test_and_set_bit(HFC_CHIP_CLOCK2, &hc->chip); in setup_embedded()
122 test_and_set_bit(HFC_CHIP_EMBSD, &hc->chip); in setup_embedded()
H A Dhfcmulti.c1109 test_and_set_bit(HFC_CHIP_REVISION0, &hc->chip); in init_chip()
1353 test_and_set_bit(HFC_CHIP_PCM_SLAVE, &hc->chip); in init_chip()
1404 test_and_set_bit(HFC_CHIP_PCM_MASTER, in init_chip()
3084 test_and_set_bit(FLG_TRANSPARENT, in mode_hfcmulti()
3119 test_and_set_bit(FLG_HDLC, &hc->chan[ch].bch->Flags); in mode_hfcmulti()
3274 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in hfcm_l1callback()
3459 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) { in handle_bmsg()
3731 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in ph_state_change()
3809 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in ph_state_change()
4078 if (test_and_set_bit(FLG_OPEN, &bch->Flags)) in open_bchannel()
[all …]
/linux/arch/m68k/include/asm/
H A Dbitops.h201 #define test_and_set_bit(nr, vaddr) bset_reg_test_and_set_bit(nr, vaddr) macro
203 #define test_and_set_bit(nr, vaddr) bset_mem_test_and_set_bit(nr, vaddr) macro
205 #define test_and_set_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ macro
213 return test_and_set_bit(nr, addr); in arch___test_and_set_bit()
557 #define test_and_set_bit_lock test_and_set_bit
/linux/arch/x86/kernel/cpu/
H A Dperfctr-watchdog.c117 if (!test_and_set_bit(counter, perfctr_nmi_owner)) in reserve_perfctr_nmi()
145 if (!test_and_set_bit(counter, evntsel_nmi_owner)) in reserve_evntsel_nmi()
/linux/arch/sh/boards/mach-x3proto/
H A Dilsel.c103 } while (test_and_set_bit(bit, &ilsel_level_map)); in ilsel_enable()
126 if (test_and_set_bit(bit, &ilsel_level_map)) in ilsel_enable_fixed()
/linux/arch/sparc/lib/
H A Dbitops.S14 ENTRY(test_and_set_bit) /* %o0=nr, %o1=addr */
33 ENDPROC(test_and_set_bit)
34 EXPORT_SYMBOL(test_and_set_bit)
/linux/kernel/irq/
H A Dhandle.c54 if (test_and_set_bit(IRQTF_WARNED, &action->thread_flags)) in warn_no_thread()
75 if (test_and_set_bit(IRQTF_RUNTHREAD, &action->thread_flags)) in __irq_wake_thread()
/linux/kernel/kcsan/
H A Dselftest.c160 KCSAN_CHECK_READ_BARRIER(test_and_set_bit(0, &test_var)); in test_barrier()
189 KCSAN_CHECK_WRITE_BARRIER(test_and_set_bit(0, &test_var)); in test_barrier()
221 KCSAN_CHECK_RW_BARRIER(test_and_set_bit(0, &test_var)); in test_barrier()
/linux/lib/
H A Dirq_poll.c33 if (test_and_set_bit(IRQ_POLL_F_SCHED, &iop->state)) in irq_poll_sched()
148 while (test_and_set_bit(IRQ_POLL_F_SCHED, &iop->state)) in irq_poll_disable()
/linux/include/linux/sunrpc/
H A Dxprt.h483 return test_and_set_bit(XPRT_CONNECTED, &xprt->state); in xprt_test_and_set_connected()
505 return test_and_set_bit(XPRT_CONNECTING, &xprt->state); in xprt_test_and_set_connecting()
510 test_and_set_bit(XPRT_BOUND, &xprt->state); in xprt_set_bound()
532 return test_and_set_bit(XPRT_BINDING, &xprt->state); in xprt_test_and_set_binding()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_context.h325 return test_and_set_bit(CONTEXT_BANNED, &ce->flags); in intel_context_set_banned()
343 return test_and_set_bit(CONTEXT_EXITING, &ce->flags); in intel_context_set_exiting()
386 return test_and_set_bit(CONTEXT_OWN_STATE, &ce->flags); in intel_context_set_own_state()
/linux/tools/include/asm-generic/bitops/
H A Datomic.h12 #define set_bit test_and_set_bit
/linux/drivers/watchdog/
H A Dsbc7240_wdt.c65 if (!test_and_set_bit(SBC7240_ENABLED_STATUS_BIT, &wdt_status)) { in wdt_enable()
125 if (test_and_set_bit(SBC7240_OPEN_STATUS_BIT, &wdt_status)) in fop_open()
/linux/arch/arm/include/asm/
H A Dbitops.h194 #define test_and_set_bit(nr,p) ATOMIC_BITOP(test_and_set_bit,nr,p) macro
/linux/net/core/
H A Dlink_watch.c146 if (test_and_set_bit(LW_URGENT, &linkwatch_flags)) in linkwatch_schedule_work()
313 if (!test_and_set_bit(__LINK_STATE_LINKWATCH_PENDING, &dev->state)) { in linkwatch_fire_event()

12345678910>>...27