Home
last modified time | relevance | path

Searched refs:element_len (Results 1 – 3 of 3) sorted by relevance

/third_party/libwebsockets/lib/misc/
Dlws-ring.c28 lws_ring_create(size_t element_len, size_t count, in lws_ring_create() argument
36 ring->buflen = (uint32_t)(count * element_len); in lws_ring_create()
37 ring->element_len = (uint32_t)element_len; in lws_ring_create()
60 (ring->oldest_tail + ring->element_len) % in lws_ring_destroy()
84 f = (int)(ring->buflen - ring->element_len); in lws_ring_get_count_free_elements()
88 ring->element_len); in lws_ring_get_count_free_elements()
91 ring->element_len); in lws_ring_get_count_free_elements()
96 return (unsigned int)f / ring->element_len; in lws_ring_get_count_free_elements()
122 return (unsigned int)f / ring->element_len; in lws_ring_get_count_waiting_elements()
132 n = (int)(lws_ring_get_count_free_elements(ring) * ring->element_len); in lws_ring_next_linear_insert_range()
[all …]
/third_party/libwebsockets/include/libwebsockets/
Dlws-ring.h100 lws_ring_create(size_t element_len, size_t count,
/third_party/libwebsockets/lib/core/
Dprivate-lib-core.h303 uint32_t element_len; member