Home
last modified time | relevance | path

Searched refs:old_rc (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-2.7.6/lib/os/
Dfdtable.c67 atomic_val_t old_rc; in z_fd_unref() local
75 old_rc = atomic_get(&fdtable[fd].refcount); in z_fd_unref()
76 if (!old_rc) { in z_fd_unref()
79 } while (!atomic_cas(&fdtable[fd].refcount, old_rc, old_rc - 1)); in z_fd_unref()
81 if (old_rc != 1) { in z_fd_unref()
82 return old_rc - 1; in z_fd_unref()
/Zephyr-Core-2.7.6/subsys/net/lib/websocket/
Dwebsocket.c79 int old_rc = atomic_inc(&ctx->refcount); in websocket_context_ref() local
81 return old_rc + 1; in websocket_context_ref()
86 int old_rc = atomic_dec(&ctx->refcount); in websocket_context_unref() local
88 if (old_rc != 1) { in websocket_context_unref()
89 return old_rc - 1; in websocket_context_unref()
/Zephyr-Core-2.7.6/subsys/net/ip/
Dnet_context.c354 int old_rc = atomic_inc(&context->refcount); in net_context_ref() local
356 return old_rc + 1; in net_context_ref()
361 int old_rc = atomic_dec(&context->refcount); in net_context_unref() local
363 if (old_rc != 1) { in net_context_unref()
364 return old_rc - 1; in net_context_unref()