Home
last modified time | relevance | path

Searched refs:atomic_cmpset_int (Results 1 – 25 of 56) sorted by relevance

123

/freebsd/sys/dev/ixgbe/
H A Dif_bypass.c47 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 Dthr_once.c78 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 DOsdSchedule.c121 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 Datomic.h614 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 Dpmap_nopae.h79 #define pde_cmpset(pdep, old, new) atomic_cmpset_int(pdep, old, new)
/freebsd/sys/amd64/include/
H A Datomic.h448 #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 Datomic.h643 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 Dvchi_bsd.h64 } 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 Dsctp_bsd_addr.c426 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 Ddrm_atomic.h77 (atomic_cmpset_int((volatile u_int *)(ptr),(old),(new)) ? (old) : (0))
/freebsd/sys/libkern/
H A Darc4random.c206 atomic_cmpset_int(&arc4rand_iniseed_state, ARC4_ENTR_HAVE, ARC4_ENTR_SEED))))
/freebsd/lib/libc/amd64/string/
H A Damd64_archlevel.c219 if (atomic_cmpset_int(&amd64_archlevel, islevel, wantlevel)) in archlevel()
/freebsd/sys/dev/cxgb/
H A Dcxgb_osdep.h132 #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 Dlinux_tasklet.c43 atomic_cmpset_int((volatile u_int *)&(ts)->tasklet_state, old, new)
/freebsd/sys/amd64/vmm/io/
H A Diommu.c266 if (atomic_cmpset_int(&iommu_initted, 0, 1)) { in iommu_create_domain()
/freebsd/sys/dev/random/
H A Drandomdev.c372 (void)atomic_cmpset_int(&arc4rand_iniseed_state, ARC4_ENTR_NONE, ARC4_ENTR_HAVE); in randomdev_unblock()
/freebsd/sys/kern/
H A Dsubr_smr.c455 atomic_cmpset_int(&s->s_rd_seq, s_rd_seq, rd_seq); in smr_poll_scan()
H A Dkern_boottrace.c351 } while (!atomic_cmpset_int(&btp->curr, idx, nxt)); in dotrace()
H A Dkern_synch.c381 if (atomic_cmpset_int(&bc->__count, _BLOCKCOUNT_WAITERS_FLAG, 0)) in wakeup_any()
/freebsd/sys/dev/qcom_ess_edma/
H A Dqcom_ess_edma_gmac.c232 if (atomic_cmpset_int(&txs->enqueue_is_running, 0, 1) == 1) { in qcom_ess_edma_gmac_transmit()
/freebsd/sys/dev/adb/
H A Dadb_bus.c320 while (!atomic_cmpset_int(&sc->sync_packet, 0xffff, command_byte)) in adb_send_raw_packet_sync()
/freebsd/sys/netipsec/
H A Dsubr_ipsec.c150 while (atomic_cmpset_int(cntr, 0, 0) == 0) in ipsec_kmod_drain()
H A Dipsec_offload.c700 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 Datomic.h299 #define atomic_cmpset_int atomic_cmpset_32 macro
/freebsd/sys/dev/cxgbe/
H A Dt4_sge.c1328 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 …]

123