| /linux/arch/hexagon/include/asm/ |
| H A D | bitops.h | 55 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 D | ssh_request_layer.c | 158 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 D | ssh_packet_layer.c | 754 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/gpu/drm/i915/selftests/ |
| H A D | igt_reset.c | 21 while (test_and_set_bit(I915_RESET_BACKOFF, >->reset.flags)) in igt_global_reset_lock() 26 while (test_and_set_bit(I915_RESET_ENGINE + id, in igt_global_reset_lock()
|
| /linux/arch/m68k/include/asm/ |
| H A D | bitops.h | 201 #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() 560 #define test_and_set_bit_lock test_and_set_bit
|
| /linux/net/handshake/ |
| H A D | request.c | 314 if (!test_and_set_bit(HANDSHAKE_F_REQ_COMPLETED, &req->hr_flags)) { in handshake_req_submit() 330 if (!test_and_set_bit(HANDSHAKE_F_REQ_COMPLETED, &req->hr_flags)) { in handshake_complete() 368 if (test_and_set_bit(HANDSHAKE_F_REQ_COMPLETED, &req->hr_flags)) { in handshake_req_cancel() 374 if (test_and_set_bit(HANDSHAKE_F_REQ_COMPLETED, &req->hr_flags)) { in handshake_req_cancel()
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | perfctr-watchdog.c | 117 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 D | ilsel.c | 103 } 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 D | bitops.S | 14 ENTRY(test_and_set_bit) /* %o0=nr, %o1=addr */ 33 ENDPROC(test_and_set_bit) 34 EXPORT_SYMBOL(test_and_set_bit)
|
| /linux/kernel/kcsan/ |
| H A D | selftest.c | 160 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 D | irq_poll.c | 33 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 D | xprt.h | 485 return test_and_set_bit(XPRT_CONNECTED, &xprt->state); in xprt_test_and_set_connected() 507 return test_and_set_bit(XPRT_CONNECTING, &xprt->state); in xprt_test_and_set_connecting() 512 test_and_set_bit(XPRT_BOUND, &xprt->state); in xprt_set_bound() 534 return test_and_set_bit(XPRT_BINDING, &xprt->state); in xprt_test_and_set_binding()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_context.h | 325 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 D | atomic.h | 12 #define set_bit test_and_set_bit
|
| /linux/drivers/watchdog/ |
| H A D | sbc7240_wdt.c | 65 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 D | bitops.h | 194 #define test_and_set_bit(nr,p) ATOMIC_BITOP(test_and_set_bit,nr,p) macro
|
| /linux/sound/usb/line6/ |
| H A D | pcm.c | 105 if (!test_and_set_bit(i, &pcms->unlink_urbs)) in line6_unlink_audio_urbs() 156 if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { in line6_buffer_acquire() 189 if (!test_and_set_bit(type, &pstr->running) && in line6_stream_start() 593 if (!test_and_set_bit(LINE6_FLAG_PREPARED, &line6pcm->flags)) { in snd_line6_prepare()
|
| /linux/drivers/md/ |
| H A D | dm-raid.c | 1201 if (test_and_set_bit(__CTR_FLAG_NOSYNC, &rs->ctr_flags)) { in parse_raid_params() 1208 if (test_and_set_bit(__CTR_FLAG_SYNC, &rs->ctr_flags)) { in parse_raid_params() 1215 if (test_and_set_bit(__CTR_FLAG_RAID10_USE_NEAR_SETS, &rs->ctr_flags)) { in parse_raid_params() 1234 if (test_and_set_bit(__CTR_FLAG_RAID10_FORMAT, &rs->ctr_flags)) { in parse_raid_params() 1255 if (test_and_set_bit(__CTR_FLAG_JOURNAL_DEV, &rs->ctr_flags)) { in parse_raid_params() 1291 if (test_and_set_bit(__CTR_FLAG_JOURNAL_MODE, &rs->ctr_flags)) { in parse_raid_params() 1323 if (test_and_set_bit(value, (void *) rs->rebuild_disks)) { in parse_raid_params() 1353 if (test_and_set_bit(__CTR_FLAG_MAX_WRITE_BEHIND, &rs->ctr_flags)) { in parse_raid_params() 1365 if (test_and_set_bit(__CTR_FLAG_DAEMON_SLEEP, &rs->ctr_flags)) { in parse_raid_params() 1376 if (test_and_set_bit(__CTR_FLAG_DATA_OFFSET, &rs->ctr_flags)) { in parse_raid_params() [all …]
|
| /linux/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_io.c | 79 if (!(test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, in bnx2fc_cmd_timeout() 94 if (test_and_set_bit(BNX2FC_FLAG_IO_COMPL, in bnx2fc_cmd_timeout() 101 if (!test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, in bnx2fc_cmd_timeout() 122 if (!test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, in bnx2fc_cmd_timeout() 137 if (test_and_set_bit(BNX2FC_FLAG_ELS_DONE, in bnx2fc_cmd_timeout() 1204 if (test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { in bnx2fc_eh_abort() 1256 } else if (!(test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, in bnx2fc_eh_abort() 1366 if (test_and_set_bit(BNX2FC_FLAG_ABTS_DONE, in bnx2fc_process_abts_compl() 1384 if (test_and_set_bit(BNX2FC_FLAG_IO_CLEANUP, in bnx2fc_process_abts_compl() 1473 if (!test_and_set_bit(BNX2FC_FLAG_ISSUE_ABTS, in bnx2fc_lun_reset_cmpl() [all …]
|
| /linux/arch/arm64/include/asm/ |
| H A D | sync_bitops.h | 21 #define sync_test_and_set_bit(nr, p) test_and_set_bit(nr, p)
|
| /linux/arch/sparc/include/asm/ |
| H A D | bitops_64.h | 19 int test_and_set_bit(unsigned long nr, volatile unsigned long *addr);
|
| /linux/drivers/hsi/clients/ |
| H A D | hsi_char.c | 306 if (test_and_set_bit(HSC_RXBREAK, &cl_data->flags)) in hsc_break_request() 427 if (test_and_set_bit(HSC_CH_READ, &channel->flags)) in hsc_read() 484 if (test_and_set_bit(HSC_CH_WRITE, &channel->flags)) in hsc_write() 541 if (test_and_set_bit(HSC_CH_WLINE, &channel->flags)) in hsc_ioctl() 601 if (test_and_set_bit(HSC_CH_OPEN, &channel->flags)) { in hsc_open()
|
| /linux/tools/arch/x86/include/asm/ |
| H A D | atomic.h | 74 static inline int test_and_set_bit(long nr, unsigned long *addr) in test_and_set_bit() function
|
| /linux/include/asm-generic/bitops/ |
| H A D | le.h | 46 return test_and_set_bit(nr ^ BITOP_LE_SWIZZLE, addr); in test_and_set_bit_le()
|
| /linux/drivers/char/tpm/ |
| H A D | tpm-dev.c | 28 if (test_and_set_bit(0, &chip->is_open)) { in tpm_open()
|