Searched refs:ref_count (Results  1 – 6 of 6) sorted by relevance
| /Zephyr-latest/lib/posix/options/ | 
| D | semaphore.c | 18 	int ref_count;  member66 	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()
 
 | 
| D | mqueue.c | 21 	atomic_t ref_count;  member155 		(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/ | 
| D | buf.c | 98 	uint8_t *ref_count;  in generic_data_ref()  local100 	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/ | 
| D | conn.c | 151 		   conn, atomic_get(&conn->ref_count), conn->recv_win,  in tcp_sent_list_cb()
 | 
| /Zephyr-latest/subsys/net/ip/ | 
| D | tcp.c | 837 	int ref_count = atomic_get(&conn->ref_count);  in tcp_conn_unref()  local839 	NET_DBG("conn: %p, ref_count=%d", conn, ref_count);  in tcp_conn_unref()
 841 	ref_count = atomic_dec(&conn->ref_count) - 1;  in tcp_conn_unref()
 842 	if (ref_count != 0) {  in tcp_conn_unref()
 845 		return ref_count;  in tcp_conn_unref()
 854 	return ref_count;  in tcp_conn_unref()
 2088 	int ref_count = atomic_inc(&conn->ref_count) + 1;  in tcp_conn_ref()  local
 2090 	NET_DBG("conn: %p, ref_count: %d", conn, ref_count);  in tcp_conn_ref()
 3607 	while (conn_handler && atomic_get(&conn->ref_count) > 0 &&  in tcp_in()
 4396 		if (atomic_get(&conn->ref_count) > 0) {  in net_tcp_foreach()
 
 | 
| D | tcp_private.h | 306 	atomic_t ref_count;  member
 |