Searched refs:atomic_cas_ptr (Results 1 - 25 of 43) sorted by relevance

12

/illumos-gate/usr/src/uts/sparc/v9/syscall/
H A Dinstall_utrap.c82 * trap handlers, which must later be freed. Use atomic_cas_ptr to
88 tmp = atomic_cas_ptr(&p->p_utraps, NULL, sv);
97 * Use atomic_cas_ptr to atomically install the handler.
102 tmp = atomic_cas_ptr(&p->p_utraps[idx], ov, nv);
226 * trap handlers, which must later be freed. Use atomic_cas_ptr to
232 tmp = atomic_cas_ptr(&p->p_utraps, NULL, sv);
241 * Use atomic_cas_ptr to atomically install the handlers.
246 tmp = atomic_cas_ptr(&p->p_utraps[idx], ov, nvp);
/illumos-gate/usr/src/uts/common/dtrace/
H A Dsystrace.c167 (void) atomic_cas_ptr(&sysent[sysnum].sy_callc,
171 (void) atomic_cas_ptr(&sysent32[sysnum].sy_callc,
187 (void) atomic_cas_ptr(&sysent[sysnum].sy_callc,
192 (void) atomic_cas_ptr(&sysent32[sysnum].sy_callc,
/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_main.c100 osp = atomic_cas_ptr(&ao_shared[chipid], NULL, sp);
/illumos-gate/usr/src/uts/i86pc/cpu/generic_cpu/
H A Dgcpu_main.c87 osp = atomic_cas_ptr(&gcpu_shared[chipid], NULL, sp);
/illumos-gate/usr/src/uts/i86pc/os/
H A Dx_call.c54 * instruction, aka atomic_cas_ptr(), to implement simple efficient work
67 * atomic_cas_ptr(), atomic_cas_32() and atomic_dec_32() for the message
172 } while (atomic_cas_ptr(queue, old_head, msg) != old_head);
189 } while (atomic_cas_ptr(queue, old_head, old_head->xc_next) !=
613 (void) atomic_cas_ptr(&cpup->cpu_m.xc_msgbox,
/illumos-gate/usr/src/uts/sun4/os/
H A Dprom_subr.c274 prcp = atomic_cas_ptr((void *)&prom_cpu, NULL, cp);
311 prcp = atomic_cas_ptr((void *)&prom_cpu, NULL, cp);
/illumos-gate/usr/src/common/atomic/amd64/
H A Datomic.s39 ANSI_PRAGMA_WEAK2(casptr,atomic_cas_ptr,function)
477 ALTENTRY(atomic_cas_ptr) function
482 SET_SIZE(atomic_cas_ptr)
/illumos-gate/usr/src/uts/common/os/
H A Derrorq.c558 if (atomic_cas_ptr(&eqp->eq_pend, old, eep) == old)
599 * eq_pend has all the pending errors. If atomic_cas_ptr fails or
601 * errors. If atomic_cas_ptr succeeds (1C), eq_ptail has all the
608 if (atomic_cas_ptr(&eqp->eq_pend, eep, NULL) == eep)
755 * atomic_cas_ptr may not have been executed yet or may have
795 * However, we must use atomic_cas_ptr to update the
920 if (atomic_cas_ptr(&eqp->eq_pend, old, eqep) == old)
H A Dmutex.c246 if (atomic_cas_ptr(&panic_mutex_addr, NULL, lp) == NULL)
H A Drwlock.c220 if (atomic_cas_ptr(&panic_rwlock_addr, NULL, lp) == NULL)
/illumos-gate/usr/src/uts/sun4u/os/
H A Dppage.c190 if (atomic_cas_ptr(&ppmap_vaddrs[index],
320 if (atomic_cas_ptr(myslot, NULL, va) == NULL)
/illumos-gate/usr/src/uts/common/io/
H A Dsmbios.c81 if (atomic_cas_ptr(&smb_clones[c].c_hdl, NULL, ksmbios) == NULL)
H A Dksyms.c250 if (atomic_cas_ptr(&ksyms_clones[clone].ksyms_base, 0, addr) ==
/illumos-gate/usr/src/uts/common/sys/
H A Datomic.h202 extern void *atomic_cas_ptr(volatile void *, void *, void *);
/illumos-gate/usr/src/uts/sun4v/os/
H A Dppage.c162 if (atomic_cas_ptr(&ppmap_vaddrs[nset], va, NULL) ==
/illumos-gate/usr/src/uts/intel/asm/
H A Datomic.h193 * We don't use the above macro here because atomic_cas_ptr has an
198 atomic_cas_ptr(volatile void *target, void *cmp, void *new) function
/illumos-gate/usr/src/uts/common/inet/nca/
H A Dnca.h698 } while (atomic_cas_ptr(&node_tp, _p, _np) != _p); \
788 } while (atomic_cas_ptr(&door_tp, _p, _np) != _p); \
1546 } while (atomic_cas_ptr(&conn_tp, _p, _np) != _p); \
1768 } while (atomic_cas_ptr((void *)&nca_counter_tp, (void *)_otp, \
/illumos-gate/usr/src/uts/sun4v/cpu/
H A Dmach_cpu_module.c610 atomic_cas_ptr(volatile void *target, void *cmp, void *new) function
/illumos-gate/usr/src/common/atomic/i386/
H A Datomic.s40 ANSI_PRAGMA_WEAK2(casptr,atomic_cas_ptr,function)
584 ALTENTRY(atomic_cas_ptr) function
591 SET_SIZE(atomic_cas_ptr)
/illumos-gate/usr/src/common/atomic/sparc/
H A Datomic.s40 ANSI_PRAGMA_WEAK2(casptr,atomic_cas_ptr,function)
626 ALTENTRY(atomic_cas_ptr) function
632 SET_SIZE(atomic_cas_ptr)
/illumos-gate/usr/src/common/atomic/sparcv9/
H A Datomic.s49 ANSI_PRAGMA_WEAK2(casptr,atomic_cas_ptr,function)
766 ALTENTRY(atomic_cas_ptr) function
772 SET_SIZE(atomic_cas_ptr)
/illumos-gate/usr/src/common/atomic/
H A Datomic.c434 atomic_cas_ptr(volatile void *target, void *cmp, void *new) function
/illumos-gate/usr/src/lib/fm/libfmevent/common/
H A Dfmev_publish.c114 if (atomic_cas_ptr(evcpp, NULL, evc) != NULL)
/illumos-gate/usr/src/uts/common/disp/
H A Dsysdc.c685 } while (atomic_cas_ptr(headp, head, sdc) != head);
806 } while (atomic_cas_ptr(headp, tail, head) != tail);
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_fop.c296 if (atomic_cas_ptr(&fop_femop, NULL, femp) != NULL) {
314 if (atomic_cas_ptr(&fop_fsemop, NULL, fsemp) != NULL) {
1090 if (atomic_cas_ptr(&vp->v_fopdata, NULL, npvp) != NULL) {

Completed in 123 milliseconds

12