| /freebsd-11-stable/sys/dev/ixgbe/ |
| HD | if_bypass.c | 48 while (atomic_cmpset_int(&adapter->bypass.low, 0, 1) == 0) in ixgbe_bypass_mutex_enter() 50 while (atomic_cmpset_int(&adapter->bypass.high, 0, 1) == 0) in ixgbe_bypass_mutex_enter() 61 while (atomic_cmpset_int(&adapter->bypass.high, 1, 0) == 0) in ixgbe_bypass_mutex_clear() 63 while (atomic_cmpset_int(&adapter->bypass.low, 1, 0) == 0) in ixgbe_bypass_mutex_clear() 76 while (atomic_cmpset_int(&adapter->bypass.high, 0, 1) == 0) in ixgbe_bypass_wd_mutex_enter() 87 while (atomic_cmpset_int(&adapter->bypass.high, 1, 0) == 0) in ixgbe_bypass_wd_mutex_clear() 577 while (atomic_cmpset_int(&adapter->bypass.log, 0, 1) == 0) in ixgbe_bp_log() 704 while (atomic_cmpset_int(&adapter->bypass.log, 1, 0) == 0) in ixgbe_bp_log() 711 while (atomic_cmpset_int(&adapter->bypass.log, 1, 0) == 0) in ixgbe_bp_log()
|
| /freebsd-11-stable/sys/dev/drm/ |
| HD | drm_lock.c | 147 } while (!atomic_cmpset_int(lock, old, new)); in drm_lock_take() 176 } while (!atomic_cmpset_int(lock, old, new)); in drm_lock_transfer() 190 } while (!atomic_cmpset_int(lock, old, new)); in drm_lock_free()
|
| HD | drm_auth.c | 155 if (!atomic_cmpset_int(&sequence, old, auth->magic)) in drm_getmagic()
|
| /freebsd-11-stable/lib/libthr/thread/ |
| HD | thr_once.c | 78 if (atomic_cmpset_int(&once_control->state, state, in _pthread_once() 82 if (atomic_cmpset_int(&once_control->state, state, in _pthread_once()
|
| /freebsd-11-stable/sys/dev/acpica/Osd/ |
| HD | OsdSchedule.c | 123 if (atomic_cmpset_int(&acpi_tasks[i].at_flag, ACPI_TASK_USED, in acpi_taskq_init() 154 if (atomic_cmpset_int(&acpi_tasks[i].at_flag, ACPI_TASK_FREE, in acpi_task_enqueue() 162 atomic_cmpset_int(&acpi_tasks_hiwater, acpi_tasks_hiwater, i); in acpi_task_enqueue()
|
| /freebsd-11-stable/sys/powerpc/include/ |
| HD | atomic.h | 566 atomic_cmpset_int(volatile u_int* p, u_int cmpval, u_int newval) 632 retval = atomic_cmpset_int(p, cmpval, newval); in atomic_cmpset_acq_int() 641 return (atomic_cmpset_int(p, cmpval, newval)); in atomic_cmpset_rel_int() 661 #define atomic_cmpset_32 atomic_cmpset_int 674 #define atomic_cmpset_ptr atomic_cmpset_int 809 } while (!atomic_cmpset_int(p, value, value + v)); in atomic_fetchadd_int()
|
| /freebsd-11-stable/sys/i386/include/ |
| HD | atomic.h | 112 int atomic_cmpset_int(volatile u_int *dst, u_int expect, u_int src); 695 return (atomic_cmpset_int((volatile u_int *)dst, (u_int)expect, in atomic_cmpset_long() 791 #define atomic_cmpset_acq_int atomic_cmpset_int 792 #define atomic_cmpset_rel_int atomic_cmpset_int 871 #define atomic_cmpset_32 atomic_cmpset_int 925 atomic_cmpset_int((volatile u_int *)(dst), (u_int)(old), (u_int)(new))
|
| HD | pmap.h | 263 #define pde_cmpset(pdep, old, new) atomic_cmpset_int(pdep, old, new)
|
| /freebsd-11-stable/sys/amd64/include/ |
| HD | atomic.h | 104 int atomic_cmpset_int(volatile u_int *dst, u_int expect, u_int src); 535 #define atomic_cmpset_acq_int atomic_cmpset_int 536 #define atomic_cmpset_rel_int atomic_cmpset_int 615 #define atomic_cmpset_32 atomic_cmpset_int
|
| /freebsd-11-stable/tools/KSE/ksetest/ |
| HD | simplelock.h | 48 while (!atomic_cmpset_int(&lock->s_lock, 0, 1)) in simplelock_lock()
|
| /freebsd-11-stable/tools/KSE/rr/ |
| HD | simplelock.h | 48 while (!atomic_cmpset_int(&lock->s_lock, 0, 1)) in simplelock_lock()
|
| /freebsd-11-stable/sys/mips/cavium/octe/ |
| HD | ethernet-rx.c | 80 if (atomic_cmpset_int(&cvm_oct_rx_active, 0, 1)) in cvm_oct_do_interrupt() 348 if (!atomic_cmpset_int(&cvm_oct_rx_active, 1, 0)) in cvm_oct_tasklet_rx()
|
| /freebsd-11-stable/sys/arm/include/ |
| HD | atomic.h | 88 #define atomic_cmpset_int atomic_cmpset_32 macro
|
| /freebsd-11-stable/sys/netinet/ |
| HD | sctp_bsd_addr.c | 444 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) { in sctp_packet_log() 458 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) { in sctp_packet_log()
|
| /freebsd-11-stable/sys/contrib/vchiq/interface/compat/ |
| HD | 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-11-stable/sys/dev/drm2/ |
| HD | drm_atomic.h | 79 (atomic_cmpset_int((volatile u_int *)(ptr),(old),(new)) ? (old) : (0))
|
| /freebsd-11-stable/sys/libkern/ |
| HD | arc4random.c | 166 if (reseed || atomic_cmpset_int(&arc4rand_iniseed_state, in arc4rand()
|
| /freebsd-11-stable/sys/kern/ |
| HD | kern_loginclass.c | 88 if (old > 1 && atomic_cmpset_int(&lc->lc_refcount, old, old - 1)) in loginclass_free()
|
| /freebsd-11-stable/sys/dev/cxgb/ |
| HD | cxgb_osdep.h | 169 #define test_and_clear_bit(bit, p) atomic_cmpset_int((p), ((*(p)) | (1<<bit)), ((*(p)) & ~(1<<bit)))
|
| /freebsd-11-stable/sys/amd64/vmm/io/ |
| HD | iommu.c | 267 if (atomic_cmpset_int(&iommu_initted, 0, 1)) { in iommu_create_domain()
|
| /freebsd-11-stable/sys/netipsec/ |
| HD | subr_ipsec.c | 170 while (atomic_cmpset_int(cntr, 0, 0) == 0) in ipsec_kmod_drain()
|
| /freebsd-11-stable/sys/arm64/include/ |
| HD | atomic.h | 373 #define atomic_cmpset_int atomic_cmpset_32 macro
|
| /freebsd-11-stable/sys/dev/random/ |
| HD | randomdev.c | 296 (void)atomic_cmpset_int(&arc4rand_iniseed_state, ARC4_ENTR_NONE, ARC4_ENTR_HAVE); in randomdev_unblock()
|
| /freebsd-11-stable/sys/dev/cxgbe/ |
| HD | t4_sge.c | 1367 if (atomic_cmpset_int(&iq->state, IQS_IDLE, IQS_BUSY)) { in t4_intr_evt() 1369 (void) atomic_cmpset_int(&iq->state, IQS_BUSY, IQS_IDLE); in t4_intr_evt() 1381 if (atomic_cmpset_int(&iq->state, IQS_IDLE, IQS_BUSY)) { in t4_intr() 1383 (void) atomic_cmpset_int(&iq->state, IQS_BUSY, IQS_IDLE); in t4_intr() 1396 if (atomic_cmpset_int(&nm_rxq->nm_state, NM_ON, NM_BUSY)) { in t4_nm_intr() 1398 (void) atomic_cmpset_int(&nm_rxq->nm_state, NM_BUSY, NM_ON); in t4_nm_intr() 1481 if (atomic_cmpset_int(&q->state, IQS_IDLE, in service_iq() 1484 (void) atomic_cmpset_int(&q->state, in service_iq() 1532 (void) atomic_cmpset_int(&q->state, IQS_BUSY, IQS_IDLE); in service_iq() 2061 atomic_cmpset_int(&eq->equiq, 0, 1)) { in drain_wrq_wr_list() [all …]
|
| /freebsd-11-stable/sys/vm/ |
| HD | vm_page.c | 812 if (atomic_cmpset_int(&m->busy_lock, x, in vm_page_sunbusy() 820 if (atomic_cmpset_int(&m->busy_lock, in vm_page_sunbusy() 829 if (!atomic_cmpset_int(&m->busy_lock, x, VPB_UNBUSIED)) { in vm_page_sunbusy() 859 !atomic_cmpset_int(&m->busy_lock, x, x | VPB_BIT_WAITERS))) { in vm_page_busy_sleep() 958 if (atomic_cmpset_int(&m->busy_lock, x, in vm_page_flash()
|