• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/octeon-sdk/

Lines Matching refs:new_val

228  * stores new_val to ptr.
238 static inline uint32_t cvmx_atomic_compare_and_store32_nosync(uint32_t *ptr, uint32_t old_val, uint32_t new_val)
247 " move %[tmp], %[new_val] \n"
254 : [old] "r" (old_val), [new_val] "r" (new_val)
263 * stores new_val to ptr.
273 static inline uint32_t cvmx_atomic_compare_and_store32(uint32_t *ptr, uint32_t old_val, uint32_t new_val)
277 ret = cvmx_atomic_compare_and_store32_nosync(ptr, old_val, new_val);
286 * stores new_val to ptr.
296 static inline uint64_t cvmx_atomic_compare_and_store64_nosync(uint64_t *ptr, uint64_t old_val, uint64_t new_val)
305 " move %[tmp], %[new_val] \n"
312 : [old] "r" (old_val), [new_val] "r" (new_val)
321 * stores new_val to ptr.
331 static inline uint64_t cvmx_atomic_compare_and_store64(uint64_t *ptr, uint64_t old_val, uint64_t new_val)
335 ret = cvmx_atomic_compare_and_store64_nosync(ptr, old_val, new_val);
651 * @param new_val new value to write
655 static inline uint64_t cvmx_atomic_swap64_nosync(uint64_t *ptr, uint64_t new_val)
663 if (__builtin_constant_p(new_val) && new_val == 0)
669 else if (__builtin_constant_p(new_val) && new_val == ~0ull)
679 : "=r" (ret) : "r" (ptr), "r" (new_val) : "memory");
689 " move %[tmp], %[new_val] \n"
695 : [new_val] "r" (new_val)
713 * @param new_val new value to write
717 static inline uint32_t cvmx_atomic_swap32_nosync(uint32_t *ptr, uint32_t new_val)
725 if (__builtin_constant_p(new_val) && new_val == 0)
731 else if (__builtin_constant_p(new_val) && new_val == ~0u)
741 : "=r" (ret) : "r" (ptr), "r" (new_val) : "memory");
751 " move %[tmp], %[new_val] \n"
757 : [new_val] "r" (new_val)