Lines Matching refs:ctail_offset
40 uint64_t ctail_offset; member
51 r->head_offset = r->ctail_offset = 0; in OSSL_SAFE_MATH_UNSIGNED()
67 return (size_t)(r->head_offset - r->ctail_offset); in ring_buf_used()
85 if (logical_offset < r->ctail_offset in ring_buf_write_at()
153 if (logical_offset >= r->head_offset || logical_offset < r->ctail_offset) in ring_buf_get_ptr()
180 if (logical_offset > r->head_offset || logical_offset < r->ctail_offset) in ring_buf_get_buf_at()
205 if (start > r->ctail_offset || end >= MAX_OFFSET) in ring_buf_cpop_range()
208 if (cleanse && r->alloc > 0 && end > r->ctail_offset) { in ring_buf_cpop_range()
209 size_t idx = r->ctail_offset % r->alloc; in ring_buf_cpop_range()
215 l = (size_t)(cleanse_end - r->ctail_offset); in ring_buf_cpop_range()
225 r->ctail_offset = end + 1; in ring_buf_cpop_range()
227 if (r->head_offset < r->ctail_offset) in ring_buf_cpop_range()
228 r->head_offset = r->ctail_offset; in ring_buf_cpop_range()
250 rnew.ctail_offset = rnew.head_offset; in ring_buf_resize()
253 if (!ring_buf_get_buf_at(r, r->ctail_offset + copied, &src, &src_len)) { in ring_buf_resize()
270 rnew.ctail_offset = r->ctail_offset; in ring_buf_resize()