Searched refs:oldval (Results 1 – 6 of 6) sorted by relevance
/lk-master/arch/or1k/include/arch/ |
A D | arch_ops.h | 52 static inline int atomic_cmpxchg(volatile int *ptr, int oldval, int newval) { 61 : "=&r"(oldval) 62 : "r"(ptr), "r"(oldval), "r"(newval) 65 return oldval;
|
/lk-master/arch/arm/include/arch/ |
A D | arch_atomic.h | 69 static inline int atomic_cmpxchg(volatile int *ptr, int oldval, int newval) { in atomic_cmpxchg() argument 76 if (temp == oldval) { in atomic_cmpxchg()
|
/lk-master/arch/include/arch/ |
A D | atomic.h | 33 static inline int atomic_cmpxchg(volatile int *ptr, int oldval, int newval) { in atomic_cmpxchg() argument
|
/lk-master/kernel/include/kernel/ |
A D | thread.h | 206 uintptr_t oldval = get_current_thread()->tls[entry]; in __tls_set() local 208 return oldval; in __tls_set()
|
/lk-master/lib/minip/ |
A D | tcp.c | 288 __UNUSED int oldval = atomic_add(&s->ref, 1); in inc_socket_ref() local 289 …ller %p, thread %p, socket %p, ref now %d\n", __GET_CALLER(), get_current_thread(), s, oldval + 1); in inc_socket_ref() 290 DEBUG_ASSERT(oldval > 0); in inc_socket_ref() 296 int oldval = atomic_add(&s->ref, -1); in dec_socket_ref() local 297 …ller %p, thread %p, socket %p, ref now %d\n", __GET_CALLER(), get_current_thread(), s, oldval - 1); in dec_socket_ref() 299 if (oldval == 1) { in dec_socket_ref() 309 return (oldval == 1); in dec_socket_ref()
|
/lk-master/lib/bio/ |
A D | bio.c | 288 int oldval = atomic_add(&dev->ref, -1); in bdev_dec_ref() local 290 LTRACEF("Dec ref \"%s\" %d -> %d\n", dev->name, oldval, dev->ref); in bdev_dec_ref() 292 if (oldval == 1) { in bdev_dec_ref()
|
Completed in 14 milliseconds