Lines Matching refs:logical_offset
76 uint64_t logical_offset, in ring_buf_write_at() argument
85 if (logical_offset < r->ctail_offset in ring_buf_write_at()
86 || safe_add_u64(logical_offset, buf_len, &err) in ring_buf_write_at()
94 idx = logical_offset % r->alloc; in ring_buf_write_at()
100 if (r->head_offset < logical_offset + l) in ring_buf_write_at()
101 r->head_offset = logical_offset + l; in ring_buf_write_at()
103 logical_offset += l; in ring_buf_write_at()
147 uint64_t logical_offset, in ring_buf_get_ptr() argument
153 if (logical_offset >= r->head_offset || logical_offset < r->ctail_offset) in ring_buf_get_ptr()
155 idx = logical_offset % r->alloc; in ring_buf_get_ptr()
173 uint64_t logical_offset, in ring_buf_get_buf_at() argument
180 if (logical_offset > r->head_offset || logical_offset < r->ctail_offset) in ring_buf_get_buf_at()
189 idx = logical_offset % r->alloc; in ring_buf_get_buf_at()
190 l = (size_t)(r->head_offset - logical_offset); in ring_buf_get_buf_at()