Lines Matching refs:oldest_tail
39 ring->oldest_tail = 0; in lws_ring_create()
56 while (ring->oldest_tail != ring->head) { in lws_ring_destroy()
58 ring->oldest_tail); in lws_ring_destroy()
59 ring->oldest_tail = in lws_ring_destroy()
60 (ring->oldest_tail + ring->element_len) % in lws_ring_destroy()
83 if (ring->head == ring->oldest_tail) in lws_ring_get_count_free_elements()
86 if (ring->head < ring->oldest_tail) in lws_ring_get_count_free_elements()
87 f = (int)((ring->oldest_tail - ring->head) - in lws_ring_get_count_free_elements()
90 f = (int)((ring->buflen - ring->head) + ring->oldest_tail - in lws_ring_get_count_free_elements()
104 tail = &ring->oldest_tail; in lws_ring_get_count_waiting_elements()
208 fake_tail = ring->oldest_tail; in lws_ring_consume()
258 tail = &ring->oldest_tail; in lws_ring_get_element()
270 ring->oldest_tail = tail; in lws_ring_update_oldest_tail()
274 while (ring->oldest_tail != tail) { in lws_ring_update_oldest_tail()
275 ring->destroy_element((uint8_t *)ring->buf + ring->oldest_tail); in lws_ring_update_oldest_tail()
276 ring->oldest_tail = (ring->oldest_tail + ring->element_len) % in lws_ring_update_oldest_tail()
284 return ring->oldest_tail; in lws_ring_get_oldest_tail()
291 tail = &ring->oldest_tail; in lws_ring_dump()
295 (int)ring->head, (int)ring->oldest_tail, in lws_ring_dump()