/freebsd-11-stable/tools/KSE/ksetest/ |
H A D | simplelock.h | 48 while (!atomic_cmpset_int(&lock->s_lock, 0, 1))
|
/freebsd-11-stable/tools/KSE/rr/ |
H A D | simplelock.h | 48 while (!atomic_cmpset_int(&lock->s_lock, 0, 1))
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_once.c | 78 if (atomic_cmpset_int(&once_control->state, state, 82 if (atomic_cmpset_int(&once_control->state, state,
|
/freebsd-11-stable/sys/dev/drm/ |
H A D | drm_lock.c | 147 } while (!atomic_cmpset_int(lock, old, new)); 176 } while (!atomic_cmpset_int(lock, old, new)); 190 } while (!atomic_cmpset_int(lock, old, new));
|
H A D | drm_auth.c | 155 if (!atomic_cmpset_int(&sequence, old, auth->magic))
|
/freebsd-11-stable/sys/dev/acpica/Osd/ |
H A D | OsdSchedule.c | 123 if (atomic_cmpset_int(&acpi_tasks[i].at_flag, ACPI_TASK_USED, 154 if (atomic_cmpset_int(&acpi_tasks[i].at_flag, ACPI_TASK_FREE, 162 atomic_cmpset_int(&acpi_tasks_hiwater, acpi_tasks_hiwater, i);
|
/freebsd-11-stable/sys/arm/include/ |
H A D | atomic.h | 88 #define atomic_cmpset_int atomic_cmpset_32 macro
|
/freebsd-11-stable/sys/dev/ixgbe/ |
H A D | if_bypass.c | 48 while (atomic_cmpset_int(&adapter->bypass.low, 0, 1) == 0) 50 while (atomic_cmpset_int(&adapter->bypass.high, 0, 1) == 0) 61 while (atomic_cmpset_int(&adapter->bypass.high, 1, 0) == 0) 63 while (atomic_cmpset_int(&adapter->bypass.low, 1, 0) == 0) 76 while (atomic_cmpset_int(&adapter->bypass.high, 0, 1) == 0) 87 while (atomic_cmpset_int(&adapter->bypass.high, 1, 0) == 0) 577 while (atomic_cmpset_int(&adapter->bypass.log, 0, 1) == 0) 704 while (atomic_cmpset_int(&adapter->bypass.log, 1, 0) == 0) 711 while (atomic_cmpset_int(&adapter->bypass.log, 1, 0) == 0)
|
/freebsd-11-stable/sys/powerpc/include/ |
H A D | atomic.h | 566 atomic_cmpset_int(volatile u_int* p, u_int cmpval, u_int newval) function 632 retval = atomic_cmpset_int(p, cmpval, newval); 641 return (atomic_cmpset_int(p, cmpval, newval)); 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));
|
/freebsd-11-stable/sys/dev/drm2/ |
H A D | drm_atomic.h | 79 (atomic_cmpset_int((volatile u_int *)(ptr),(old),(new)) ? (old) : (0))
|
/freebsd-11-stable/sys/amd64/include/ |
H A D | 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/sys/mips/cavium/octe/ |
H A D | ethernet-rx.c | 80 if (atomic_cmpset_int(&cvm_oct_rx_active, 0, 1)) 348 if (!atomic_cmpset_int(&cvm_oct_rx_active, 1, 0))
|
/freebsd-11-stable/sys/kern/ |
H A D | kern_loginclass.c | 88 if (old > 1 && atomic_cmpset_int(&lc->lc_refcount, old, old - 1))
|
/freebsd-11-stable/sys/libkern/ |
H A D | arc4random.c | 166 if (reseed || atomic_cmpset_int(&arc4rand_iniseed_state,
|
/freebsd-11-stable/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.h | 64 } while (atomic_cmpset_int(addr, val, val | (1 << nr)) == 0); 75 } while (atomic_cmpset_int(addr, val, val & ~(1 << nr)) == 0);
|
/freebsd-11-stable/sys/netinet/ |
H A D | sctp_bsd_addr.c | 444 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) { 458 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) {
|
/freebsd-11-stable/sys/i386/include/ |
H A D | 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, 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))
|
H A D | pmap.h | 263 #define pde_cmpset(pdep, old, new) atomic_cmpset_int(pdep, old, new)
|
/freebsd-11-stable/sys/dev/cxgb/ |
H A D | 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/ |
H A D | iommu.c | 267 if (atomic_cmpset_int(&iommu_initted, 0, 1)) {
|
/freebsd-11-stable/sys/dev/random/ |
H A D | randomdev.c | 296 (void)atomic_cmpset_int(&arc4rand_iniseed_state, ARC4_ENTR_NONE, ARC4_ENTR_HAVE);
|
/freebsd-11-stable/sys/netipsec/ |
H A D | subr_ipsec.c | 170 while (atomic_cmpset_int(cntr, 0, 0) == 0)
|
/freebsd-11-stable/sys/arm64/include/ |
H A D | atomic.h | 373 #define atomic_cmpset_int atomic_cmpset_32 macro
|
/freebsd-11-stable/sys/riscv/include/ |
H A D | atomic.h | 181 #define atomic_cmpset_int atomic_cmpset_32 macro
|
/freebsd-11-stable/sys/dev/cxgbe/ |
H A D | t4_sge.c | 1367 if (atomic_cmpset_int(&iq->state, IQS_IDLE, IQS_BUSY)) { 1369 (void) atomic_cmpset_int(&iq->state, IQS_BUSY, IQS_IDLE); 1381 if (atomic_cmpset_int(&iq->state, IQS_IDLE, IQS_BUSY)) { 1383 (void) atomic_cmpset_int(&iq->state, IQS_BUSY, IQS_IDLE); 1396 if (atomic_cmpset_int(&nm_rxq->nm_state, NM_ON, NM_BUSY)) { 1398 (void) atomic_cmpset_int(&nm_rxq->nm_state, NM_BUSY, NM_ON); 1481 if (atomic_cmpset_int(&q->state, IQS_IDLE, 1484 (void) atomic_cmpset_int(&q->state, 1532 (void) atomic_cmpset_int(&q->state, IQS_BUSY, IQS_IDLE); 2061 atomic_cmpset_int( [all...] |