Searched refs:old_rc (Results 1 – 3 of 3) sorted by relevance
86 atomic_val_t old_rc; in z_fd_unref() local94 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()
84 int old_rc = atomic_inc(&ctx->refcount); in websocket_context_ref() local86 return old_rc + 1; in websocket_context_ref()91 int old_rc = atomic_dec(&ctx->refcount); in websocket_context_unref() local93 if (old_rc != 1) { in websocket_context_unref()94 return old_rc - 1; in websocket_context_unref()
641 int old_rc = atomic_inc(&context->refcount); in net_context_ref() local643 return old_rc + 1; in net_context_ref()648 int old_rc = atomic_dec(&context->refcount); in net_context_unref() local650 if (old_rc != 1) { in net_context_unref()651 return old_rc - 1; in net_context_unref()