Home
last modified time | relevance | path

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

/Zephyr-latest/lib/os/
Dfdtable.c86 atomic_val_t old_rc; in z_fd_unref() local
94 old_rc = atomic_get(&fdtable[fd].refcount); in z_fd_unref()
95 if (!old_rc) { in z_fd_unref()
98 } while (!atomic_cas(&fdtable[fd].refcount, old_rc, old_rc - 1)); in z_fd_unref()
100 if (old_rc != 1) { in z_fd_unref()
101 return old_rc - 1; in z_fd_unref()
/Zephyr-latest/subsys/net/lib/websocket/
Dwebsocket.c84 int old_rc = atomic_inc(&ctx->refcount); in websocket_context_ref() local
86 return old_rc + 1; in websocket_context_ref()
91 int old_rc = atomic_dec(&ctx->refcount); in websocket_context_unref() local
93 if (old_rc != 1) { in websocket_context_unref()
94 return old_rc - 1; in websocket_context_unref()
/Zephyr-latest/subsys/net/ip/
Dnet_context.c641 int old_rc = atomic_inc(&context->refcount); in net_context_ref() local
643 return old_rc + 1; in net_context_ref()
648 int old_rc = atomic_dec(&context->refcount); in net_context_unref() local
650 if (old_rc != 1) { in net_context_unref()
651 return old_rc - 1; in net_context_unref()