atomic_cas_32
(void) atomic_cas_32((uint32_t *)&boot_time, 0, btime);
extern uint32_t atomic_cas_32(volatile uint32_t *, uint32_t, uint32_t);
if (atomic_cas_32(rwstate, readers, readers + 1) == readers) {
if (atomic_cas_32(rwstate, readers, readers - 1) == readers) {
if (atomic_cas_32(rwstate, readers, readers | URW_WRITE_LOCKED)
if (atomic_cas_32(rwstate, readers, 0) == readers) {
} while (atomic_cas_32(lockword, old, new) != old);
} while (atomic_cas_32(lockword, old, new) != old);
} while (atomic_cas_32(lockword, old, new) != old);
} while (atomic_cas_32(&DBLK_RTFU_WORD(dbp), oldrtfu, newrtfu) !=
atomic_cas_32((uint32_t *)(v), (uint32_t)(match_value), \
tmp = atomic_cas_32(target, cmp, new);
tmp = atomic_cas_32(target, cmp, new);
tmp = atomic_cas_32(target, cmp, new);
tmp = atomic_cas_32(target, cmp, new);
if (fssexists == 0 && atomic_cas_32(&fssexists, 0, 1) == 0)
if (tspexists == 0 && atomic_cas_32(&tspexists, 0, 1) == 0)
uint32_t cas = atomic_cas_32(
uint32_t cas = atomic_cas_32(
(void) atomic_cas_32(&connp->conn_flags,
} while (atomic_cas_32(sp, oldval, newval) != oldval);
atomic_cas_32((volatile uint32_t *)(_p), (uint32_t)_old_val, (uint32_t)_new_val)
} while (atomic_cas_32(&iport->iport_next_free_slot, old, new) != old);
} while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
} while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
} while (atomic_cas_32(&iport->iport_next_free_slot,
} while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
} while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
} while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
} while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
} while (atomic_cas_32(count_p, oldval, newval) != oldval);
(void) atomic_cas_32((uint32_t *)&tx_ring_p->queueing, 0, 1);
(void) atomic_cas_32((uint32_t *)&tx_ring_p->queueing,
tmp = atomic_cas_32(target, cmp, new);
tmp = atomic_cas_32(target, cmp, new);
tmp = atomic_cas_32(target, cmp, new);
} while (atomic_cas_32(count_p, oldval, newval) != oldval);
} while (atomic_cas_32(count_p, oldval, newval) != oldval);
} while (atomic_cas_32(sp, oldval, newval) != oldval);
was_dead = atomic_cas_32((volatile uint32_t *)&nvme->n_dead, B_FALSE,
(void) atomic_cas_32(
(void) atomic_cas_32((uint32_t *)&tx_ring_p->queueing,
if (atomic_cas_32(&qede->detach_unsafe, 2, 2)) {
buf_upstream = atomic_cas_32(&rx_buf_area->buf_upstream, 1, 1);
buf_upstream = atomic_cas_32(&rx_buf_area->buf_upstream, 1, 1);
} while (atomic_cas_32(sp, oldval, newval) != oldval);
} while (atomic_cas_32(count_p, oldval, newval) != oldval);
} while (atomic_cas_32(count_p, oldval, newval) != oldval);
if (atomic_cas_32((uint32_t *)&bp->ix, ix, nix) == ix) {
} while (atomic_cas_32(&DBLK_RTFU_WORD(dbp), oldrtfu, newrtfu) !=
atomic_cas_32((uint32_t *)targetp, cmp, newval) : \
} while (atomic_cas_32(&lwp->lwp_oweupc, ticks, 0) != ticks);
atomic_cas_32(&delay_from_interrupt_msg, m ? m : 1, m-1)) { \
atomic_cas_32(&lb_info->lbi_token, 0, 1) == 0) {
atomic_cas_32(&lb_info->lbi_token, 0, 1) == 0) {
if (atomic_cas_32(&prop->refcnt, 1, 0) == 1) {
atomic_cas_32(&cyclic->cy_pend, pend, npend)) !=
} while (atomic_cas_32(&cpu->cyp_modify_levels, lev, nlev) !=
} while (atomic_cas_32((uint32_t *)&dtrace_vtime_active,
} while (atomic_cas_32((uint32_t *)&dtrace_vtime_active,
if (atomic_cas_32(&kcpc_initialized, 0, 1) != 0)
} while (atomic_cas_32((uint_t *)&kdi_dtrace_state, cur, new) != cur);
atomic_cas_32(flag, 0, 1) != 0)
} while (atomic_cas_32((lgrp_load_t *)&lpl->lpl_loadavg,
} while (atomic_cas_32((lgrp_load_t *)&lpl->lpl_loadavg,
} while (atomic_cas_32(
} while (atomic_cas_32((lgrp_load_t *)&lpl->lpl_loadavg,
} while (atomic_cas_32(&t->t_pctcpu, pctcpu, npctcpu) != pctcpu);
} while (atomic_cas_32(&panicbuf_index, old, new) != old);
extern uint32_t atomic_cas_32(volatile uint32_t *, uint32_t, uint32_t);
(void) atomic_cas_32(&red_closest, red_closest,
if (atomic_cas_32((uint32_t *)&p->p_tr_lgrpid, olid, nlid) !=
} while (atomic_cas_32(&fipe_gbl_ctrl.cpu_count,
} while (atomic_cas_32(&fipe_gbl_ctrl.cpu_count,
if (atomic_cas_32(refcntp, refcnt, refcnt + 1) == refcnt)
if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists,
if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists, 0, 1)) {
} while (atomic_cas_32(&mcpu->xc_work_cnt, old, old + 1) != old);
atomic_cas_32((uint32_t *)(ptr), (uint32_t)(x), (uint32_t)(y)))
__ATOMIC_OPXX(atomic_cas_32, uint32_t, "cmpxchg" SUF_32, "r")
newshw_mask = atomic_cas_32(&shw_hblkp->hblk_shw_mask,
newshw_mask = atomic_cas_32(&shw_hblkp->hblk_shw_mask,
newshw_mask = atomic_cas_32(&hmeblkp->hblk_shw_mask, shw_mask,
if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists,
if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists, 0, 1)) {
} while (atomic_cas_32(&color_start_current, old, new) != old);
if (atomic_cas_32(&sendmondo_in_recover, 0, 1) != 0) {
while (atomic_cas_32(&sendmondo_in_recover, 1, 0) != 1)
return ((atomic_cas_32(&px_p->px_lup_pending, 1, 0) == 0) ?