Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/lib/posix/options/
Dsemaphore.c18 int ref_count; member
66 nsem->ref_count -= 1; in nsem_unref()
67 __ASSERT(nsem->ref_count >= 0, "ref_count may not be negative"); in nsem_unref()
69 if (nsem->ref_count == 0) { in nsem_unref()
263 __ASSERT_NO_MSG(nsem->ref_count != INT_MAX); in sem_open()
264 nsem->ref_count++; in sem_open()
292 nsem->ref_count = 2; in sem_open()
365 int ref_count; in nsem_get_ref_count() local
371 ref_count = nsem->ref_count; in nsem_get_ref_count()
374 return ref_count; in nsem_get_ref_count()
Dmqueue.c21 atomic_t ref_count; member
155 (void)atomic_set(&msg_queue->ref_count, 1); in mq_open()
164 atomic_inc(&msg_queue->ref_count); in mq_open()
196 atomic_dec(&mqd->mqueue->ref_count); in mq_close()
511 if (atomic_cas(&msg_queue->ref_count, 0, 0)) { in remove_mq()
/Zephyr-latest/lib/net_buf/
Dbuf.c98 uint8_t *ref_count; in generic_data_ref() local
100 ref_count = data - sizeof(void *); in generic_data_ref()
101 (*ref_count)++; in generic_data_ref()
111 uint8_t *ref_count; in mem_pool_data_alloc() local
120 ref_count = (uint8_t *)b; in mem_pool_data_alloc()
121 *ref_count = 1U; in mem_pool_data_alloc()
124 return ref_count + sizeof(void *); in mem_pool_data_alloc()
131 uint8_t *ref_count; in mem_pool_data_unref() local
133 ref_count = data - sizeof(void *); in mem_pool_data_unref()
134 if (--(*ref_count)) { in mem_pool_data_unref()
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dconn.c151 conn, atomic_get(&conn->ref_count), conn->recv_win, in tcp_sent_list_cb()
/Zephyr-latest/subsys/net/ip/
Dtcp.c836 int ref_count = atomic_get(&conn->ref_count); in tcp_conn_unref() local
838 NET_DBG("conn: %p, ref_count=%d", conn, ref_count); in tcp_conn_unref()
840 ref_count = atomic_dec(&conn->ref_count) - 1; in tcp_conn_unref()
841 if (ref_count != 0) { in tcp_conn_unref()
844 return ref_count; in tcp_conn_unref()
853 return ref_count; in tcp_conn_unref()
2087 int ref_count = atomic_inc(&conn->ref_count) + 1; in tcp_conn_ref() local
2089 NET_DBG("conn: %p, ref_count: %d", conn, ref_count); in tcp_conn_ref()
3605 while (conn_handler && atomic_get(&conn->ref_count) > 0 && in tcp_in()
4386 if (atomic_get(&conn->ref_count) > 0) { in net_tcp_foreach()
Dtcp_private.h306 atomic_t ref_count; member