Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/
Dcntr.c61 static uint8_t refcount; variable
66 if (refcount++) { in cntr_start()
78 LL_ASSERT(refcount); in cntr_stop()
80 if (--refcount) { in cntr_stop()
/Zephyr-latest/drivers/wifi/esp_at/
Desp_socket.c38 atomic_inc(&sock->refcount); in esp_socket_get()
59 ref = atomic_get(&sock->refcount); in esp_socket_ref()
63 } while (!atomic_cas(&sock->refcount, ref, ref + 1)); in esp_socket_ref()
73 ref = atomic_get(&sock->refcount); in esp_socket_unref()
77 } while (!atomic_cas(&sock->refcount, ref, ref - 1)); in esp_socket_unref()
91 atomic_clear(&sock->refcount); in esp_socket_init()
Desp.h171 atomic_t refcount; member
/Zephyr-latest/lib/os/
Dfdtable.c33 atomic_t refcount; member
54 .refcount = ATOMIC_INIT(1),
61 .refcount = ATOMIC_INIT(1),
68 .refcount = ATOMIC_INIT(1),
81 return atomic_inc(&fdtable[fd].refcount) + 1; in z_fd_ref()
94 old_rc = atomic_get(&fdtable[fd].refcount); in z_fd_unref()
98 } while (!atomic_cas(&fdtable[fd].refcount, old_rc, old_rc - 1)); in z_fd_unref()
115 if (!atomic_get(&fdtable[fd].refcount)) { in _find_fd_entry()
133 if (!atomic_get(&fdtable[fd].refcount)) { in _check_fd()
/Zephyr-latest/subsys/net/lib/websocket/
Dwebsocket_internal.h66 atomic_t refcount; member
Dwebsocket.c84 int old_rc = atomic_inc(&ctx->refcount); in websocket_context_ref()
91 int old_rc = atomic_dec(&ctx->refcount); in websocket_context_unref()
102 return !!atomic_get(&ctx->refcount); in websocket_context_is_used()
/Zephyr-latest/doc/develop/test/
Dztest.rst491 ``zassert_equal(buf->ref, 2, "Invalid refcount")``:
495 … Assertion failed at main.c:62: test_get_single_buffer: Invalid refcount (buf->ref not equal to 2)
514 zexpect_equal(buf->ref, 2, "Invalid refcount");
515 zexpect_equal(buf->ref, 1337, "Invalid refcount");
522 …Expectation failed at main.c:62: test_get_single_buffer: Invalid refcount (buf->ref not equal to 2)
523 …Expectation failed at main.c:63: test_get_single_buffer: Invalid refcount (buf->ref not equal to 1…
538 ``zassume_equal(buf->ref, 2, "Invalid refcount")``:
543 … Assumption failed at main.c:62: test_get_single_buffer: Invalid refcount (buf->ref not equal to 2)
/Zephyr-latest/include/zephyr/net/
Dnet_context.h218 atomic_t refcount; member
/Zephyr-latest/subsys/net/ip/
Dnet_context.c549 atomic_set(&contexts[i].refcount, 1); in net_context_get()
641 int old_rc = atomic_inc(&context->refcount); in net_context_ref()
648 int old_rc = atomic_dec(&context->refcount); in net_context_unref()
/Zephyr-latest/scripts/
Dspelling.txt1294 refcounf||refcount