| /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/tools/include/asm-generic/bitops/ |
| H A D | atomic.h | 12 #define set_bit test_and_set_bit
|
| /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/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/drivers/net/dsa/mxl862xx/ |
| H A D | mxl862xx-host.c | 252 if (!test_and_set_bit(MXL862XX_FLAG_CRC_ERR, &priv->flags)) in mxl862xx_issue_cmd() 319 !test_and_set_bit(MXL862XX_FLAG_CRC_ERR, &priv->flags)) in mxl862xx_send_cmd() 463 if (!test_and_set_bit(MXL862XX_FLAG_CRC_ERR, &priv->flags)) in mxl862xx_api_wrap()
|
| /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/fs/btrfs/ |
| H A D | messages.c | 250 if (!test_and_set_bit(BTRFS_FS_32BIT_WARN, &fs_info->flags)) { in btrfs_warn_32bit_limit() 262 if (!test_and_set_bit(BTRFS_FS_32BIT_ERROR, &fs_info->flags)) { in btrfs_err_32bit_limit()
|
| /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/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/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/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/arm/mm/ |
| H A D | copypage-xscale.c | 90 if (!test_and_set_bit(PG_dcache_clean, &src->flags.f)) in xscale_mc_copy_user_highpage()
|