| /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/x86/x86/ |
| H A D | cpu_machdep.c | 136 atomic_cmpset_int(&a->error, 0, error); in x86_msr_op_one_safe() 144 atomic_cmpset_int(&a->error, 0, error); in x86_msr_op_one_safe() 149 atomic_cmpset_int(&a->error, 0, error); in x86_msr_op_one_safe() 157 atomic_cmpset_int(&a->error, 0, error); in x86_msr_op_one_safe() 162 atomic_cmpset_int(&a->error, 0, error); in x86_msr_op_one_safe() 170 atomic_cmpset_int(&a->error, 0, error); in x86_msr_op_one_safe()
|
| /freebsd/sys/powerpc/include/ |
| H A D | atomic.h | 697 atomic_cmpset_int(volatile u_int* p, u_int cmpval, u_int newval) in atomic_cmpset_int() function 788 #define atomic_cmpset_32 atomic_cmpset_int 801 #define atomic_cmpset_ptr atomic_cmpset_int 984 } while (!atomic_cmpset_int(p, value, value + v)); in atomic_fetchadd_int()
|
| /freebsd/sys/netinet/ |
| H A D | sctp_bsd_addr.c | 428 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) { in sctp_packet_log() 442 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) { in sctp_packet_log()
|
| /freebsd/sys/geom/ |
| H A D | geom_vfs.c | 147 if (atomic_cmpset_int(&sc->sc_enxio_active, 0, 1)) in g_vfs_done() 154 atomic_cmpset_int(&sc->sc_enxio_reported, 0, 1)) { in g_vfs_done()
|
| /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/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 | 285 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/amd64/pt/ |
| H A D | pt.c | 543 while (atomic_cmpset_int(&cpu->in_pcint_handler, 1, 0)) in pt_backend_disable() 592 while (atomic_cmpset_int(&cpu->in_pcint_handler, 1, 0)) in pt_backend_disable_smp()
|
| /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 | 350 } while (!atomic_cmpset_int(&btp->curr, idx, nxt)); in dotrace()
|
| /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/netipsec/ |
| H A D | subr_ipsec.c | 150 while (atomic_cmpset_int(cntr, 0, 0) == 0) in ipsec_kmod_drain()
|
| /freebsd/sys/dev/vmm/ |
| H A D | vmm_vm.c | 383 if (atomic_cmpset_int(&vm->suspend, 0, how) == 0) in vm_suspend()
|
| /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()
|