Lines Matching refs:newval

346  * two values are equal, update the value of *p with newval. Returns
350 atomic_cmpset_32(__volatile uint32_t *p, uint32_t cmpval, uint32_t newval)
365 : "r" (cmpval), "r" (newval), "m" (*p)
373 * two values are equal, update the value of *p with newval. Returns
377 atomic_cmpset_acq_32(__volatile uint32_t *p, uint32_t cmpval, uint32_t newval)
381 retval = atomic_cmpset_32(p, cmpval, newval);
387 atomic_cmpset_rel_32(__volatile uint32_t *p, uint32_t cmpval, uint32_t newval)
390 return (atomic_cmpset_32(p, cmpval, newval));
394 atomic_fcmpset_32(__volatile uint32_t *p, uint32_t *cmpval, uint32_t newval)
411 : "r" (newval), "r" (*cmpval)
417 atomic_fcmpset_acq_32(__volatile uint32_t *p, uint32_t *cmpval, uint32_t newval)
421 retval = atomic_fcmpset_32(p, cmpval, newval);
427 atomic_fcmpset_rel_32(__volatile uint32_t *p, uint32_t *cmpval, uint32_t newval)
430 return (atomic_fcmpset_32(p, cmpval, newval));
455 * two values are equal, update the value of *p with newval. Returns
459 atomic_cmpset_64(__volatile uint64_t *p, uint64_t cmpval, uint64_t newval)
475 : "r" (cmpval), "r" (newval), "m" (*p)
483 * two values are equal, update the value of *p with newval. Returns
487 atomic_cmpset_acq_64(__volatile uint64_t *p, uint64_t cmpval, uint64_t newval)
491 retval = atomic_cmpset_64(p, cmpval, newval);
497 atomic_cmpset_rel_64(__volatile uint64_t *p, uint64_t cmpval, uint64_t newval)
500 return (atomic_cmpset_64(p, cmpval, newval));
504 atomic_fcmpset_64(__volatile uint64_t *p, uint64_t *cmpval, uint64_t newval)
521 : "r" (newval), "r" (*cmpval)
528 atomic_fcmpset_acq_64(__volatile uint64_t *p, uint64_t *cmpval, uint64_t newval)
532 retval = atomic_fcmpset_64(p, cmpval, newval);
538 atomic_fcmpset_rel_64(__volatile uint64_t *p, uint64_t *cmpval, uint64_t newval)
541 return (atomic_fcmpset_64(p, cmpval, newval));
704 #define atomic_cmpset_long(p, cmpval, newval) \
706 (u_int)(newval))
707 #define atomic_cmpset_acq_long(p, cmpval, newval) \
709 (u_int)(newval))
710 #define atomic_cmpset_rel_long(p, cmpval, newval) \
712 (u_int)(newval))
713 #define atomic_fcmpset_long(p, cmpval, newval) \
715 (u_int)(newval))
716 #define atomic_fcmpset_acq_long(p, cmpval, newval) \
718 (u_int)(newval))
719 #define atomic_fcmpset_rel_long(p, cmpval, newval) \
721 (u_int)(newval))