Searched refs:old_rc (Results 1 – 3 of 3) sorted by relevance
67 atomic_val_t old_rc; in z_fd_unref() local75 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()
79 int old_rc = atomic_inc(&ctx->refcount); in websocket_context_ref() local81 return old_rc + 1; in websocket_context_ref()86 int old_rc = atomic_dec(&ctx->refcount); in websocket_context_unref() local88 if (old_rc != 1) { in websocket_context_unref()89 return old_rc - 1; in websocket_context_unref()
354 int old_rc = atomic_inc(&context->refcount); in net_context_ref() local356 return old_rc + 1; in net_context_ref()361 int old_rc = atomic_dec(&context->refcount); in net_context_unref() local363 if (old_rc != 1) { in net_context_unref()364 return old_rc - 1; in net_context_unref()