/freebsd/sys/dev/ixgbe/ |
H A D | if_bypass.c | 47 while (atomic_cmpset_int(&sc->bypass.low, 0, 1) == 0) in ixgbe_bypass_mutex_enter() 49 while (atomic_cmpset_int(&sc->bypass.high, 0, 1) == 0) in ixgbe_bypass_mutex_enter() 60 while (atomic_cmpset_int(&sc->bypass.high, 1, 0) == 0) in ixgbe_bypass_mutex_clear() 62 while (atomic_cmpset_int(&sc->bypass.low, 1, 0) == 0) in ixgbe_bypass_mutex_clear() 75 while (atomic_cmpset_int(&sc->bypass.high, 0, 1) == 0) in ixgbe_bypass_wd_mutex_enter() 86 while (atomic_cmpset_int(&sc->bypass.high, 1, 0) == 0) in ixgbe_bypass_wd_mutex_clear() 565 while (atomic_cmpset_int(&sc->bypass.log, 0, 1) == 0) in ixgbe_bp_log() 695 while (atomic_cmpset_int(&sc->bypass.log, 1, 0) == 0) in ixgbe_bp_log() 702 while (atomic_cmpset_int(&sc->bypass.log, 1, 0) == 0) in ixgbe_bp_log()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_once.c | 78 if (atomic_cmpset_int(&once_control->state, state, in _thr_once() 82 if (atomic_cmpset_int(&once_control->state, state, in _thr_once()
|
/freebsd/sys/dev/acpica/Osd/ |
H A D | OsdSchedule.c | 121 if (atomic_cmpset_int(&acpi_tasks[i].at_flag, ACPI_TASK_USED, in acpi_taskq_init() 152 if (atomic_cmpset_int(&acpi_tasks[i].at_flag, ACPI_TASK_FREE, in acpi_task_enqueue() 160 atomic_cmpset_int(&acpi_tasks_hiwater, acpi_tasks_hiwater, i); in acpi_task_enqueue()
|
/freebsd/sys/i386/include/ |
H A D | atomic.h | 614 return (atomic_cmpset_int((volatile u_int *)dst, (u_int)expect, in atomic_cmpset_long() 701 #define atomic_cmpset_acq_int atomic_cmpset_int 702 #define atomic_cmpset_rel_int atomic_cmpset_int 782 #define atomic_cmpset_32 atomic_cmpset_int 840 atomic_cmpset_int((volatile u_int *)(dst), (u_int)(old), (u_int)(new))
|
H A D | pmap_nopae.h | 79 #define pde_cmpset(pdep, old, new) atomic_cmpset_int(pdep, old, new)
|
/freebsd/sys/amd64/include/ |
H A D | atomic.h | 448 #define atomic_cmpset_acq_int atomic_cmpset_int 449 #define atomic_cmpset_rel_int atomic_cmpset_int 529 #define atomic_cmpset_32 atomic_cmpset_int
|
/freebsd/sys/powerpc/include/ |
H A D | atomic.h | 643 atomic_cmpset_int(volatile u_int* p, u_int cmpval, u_int newval) in atomic_cmpset_int() function 734 #define atomic_cmpset_32 atomic_cmpset_int 747 #define atomic_cmpset_ptr atomic_cmpset_int 930 } while (!atomic_cmpset_int(p, value, value + v)); in atomic_fetchadd_int()
|
/freebsd/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.h | 64 } while (atomic_cmpset_int(addr, val, val | (1 << nr)) == 0); in test_and_set_bit() 75 } while (atomic_cmpset_int(addr, val, val & ~(1 << nr)) == 0); in test_and_clear_bit()
|
/freebsd/sys/netinet/ |
H A D | sctp_bsd_addr.c | 426 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) { in sctp_packet_log() 440 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) { in sctp_packet_log()
|
/freebsd/sys/dev/drm2/ |
H A D | drm_atomic.h | 77 (atomic_cmpset_int((volatile u_int *)(ptr),(old),(new)) ? (old) : (0))
|
/freebsd/sys/libkern/ |
H A D | arc4random.c | 206 atomic_cmpset_int(&arc4rand_iniseed_state, ARC4_ENTR_HAVE, ARC4_ENTR_SEED))))
|
/freebsd/lib/libc/amd64/string/ |
H A D | amd64_archlevel.c | 219 if (atomic_cmpset_int(&amd64_archlevel, islevel, wantlevel)) in archlevel()
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_osdep.h | 132 #define test_and_clear_bit(bit, p) atomic_cmpset_int((p), ((*(p)) | (1<<bit)), ((*(p)) & ~(1<<bit)))
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_tasklet.c | 43 atomic_cmpset_int((volatile u_int *)&(ts)->tasklet_state, old, new)
|
/freebsd/sys/amd64/vmm/io/ |
H A D | iommu.c | 266 if (atomic_cmpset_int(&iommu_initted, 0, 1)) { in iommu_create_domain()
|
/freebsd/sys/dev/random/ |
H A D | randomdev.c | 372 (void)atomic_cmpset_int(&arc4rand_iniseed_state, ARC4_ENTR_NONE, ARC4_ENTR_HAVE); in randomdev_unblock()
|
/freebsd/sys/kern/ |
H A D | subr_smr.c | 455 atomic_cmpset_int(&s->s_rd_seq, s_rd_seq, rd_seq); in smr_poll_scan()
|
H A D | kern_boottrace.c | 351 } while (!atomic_cmpset_int(&btp->curr, idx, nxt)); in dotrace()
|
H A D | kern_synch.c | 381 if (atomic_cmpset_int(&bc->__count, _BLOCKCOUNT_WAITERS_FLAG, 0)) in wakeup_any()
|
/freebsd/sys/dev/qcom_ess_edma/ |
H A D | qcom_ess_edma_gmac.c | 232 if (atomic_cmpset_int(&txs->enqueue_is_running, 0, 1) == 1) { in qcom_ess_edma_gmac_transmit()
|
/freebsd/sys/dev/adb/ |
H A D | adb_bus.c | 320 while (!atomic_cmpset_int(&sc->sync_packet, 0xffff, command_byte)) in adb_send_raw_packet_sync()
|
/freebsd/sys/netipsec/ |
H A D | subr_ipsec.c | 150 while (atomic_cmpset_int(cntr, 0, 0) == 0) in ipsec_kmod_drain()
|
H A D | ipsec_offload.c | 700 if (atomic_cmpset_int(&tq->adddel_scheduled, 0, 1) == 0) in ipsec_accel_spdadd_impl() 758 if (atomic_cmpset_int(&tq->adddel_scheduled, 0, 1) == 0) in ipsec_accel_spddel_impl()
|
/freebsd/sys/riscv/include/ |
H A D | atomic.h | 299 #define atomic_cmpset_int atomic_cmpset_32 macro
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_sge.c | 1328 if (atomic_cmpset_int(&iq->state, IQS_IDLE, IQS_BUSY)) { in t4_intr_evt() 1330 (void) atomic_cmpset_int(&iq->state, IQS_BUSY, IQS_IDLE); in t4_intr_evt() 1342 if (atomic_cmpset_int(&iq->state, IQS_IDLE, IQS_BUSY)) { in t4_intr() 1344 (void) atomic_cmpset_int(&iq->state, IQS_BUSY, IQS_IDLE); in t4_intr() 1357 if (atomic_cmpset_int(&nm_rxq->nm_state, NM_ON, NM_BUSY)) { in t4_nm_intr() 1359 (void) atomic_cmpset_int(&nm_rxq->nm_state, NM_BUSY, NM_ON); in t4_nm_intr() 1442 if (atomic_cmpset_int(&q->state, IQS_IDLE, in service_iq() 1445 (void) atomic_cmpset_int(&q->state, in service_iq() 1493 (void) atomic_cmpset_int(&q->state, IQS_BUSY, IQS_IDLE); in service_iq() 2194 atomic_cmpset_int(&eq->equiq, 0, 1)) { in drain_wrq_wr_list() [all …]
|