Lines Matching refs:alloc
27 size_t alloc; /* size of buffer allocation in bytes */ member
50 r->alloc = 0; in OSSL_SAFE_MATH_UNSIGNED()
58 OPENSSL_clear_free(r->start, r->alloc); in ring_buf_destroy()
62 r->alloc = 0; in ring_buf_destroy()
72 return r->alloc - ring_buf_used(r); in ring_buf_avail()
94 idx = logical_offset % r->alloc; in ring_buf_write_at()
95 l = r->alloc - idx; in ring_buf_write_at()
131 idx = r->head_offset % r->alloc; in ring_buf_push()
132 l = r->alloc - idx; in ring_buf_push()
155 idx = logical_offset % r->alloc; in ring_buf_get_ptr()
156 *max_len = r->alloc - idx; in ring_buf_get_ptr()
183 if (r->alloc == 0) { in ring_buf_get_buf_at()
189 idx = logical_offset % r->alloc; in ring_buf_get_buf_at()
191 if (l > r->alloc - idx) in ring_buf_get_buf_at()
192 l = r->alloc - idx; in ring_buf_get_buf_at()
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()
216 if (l > r->alloc - idx) { in ring_buf_cpop_range()
217 OPENSSL_cleanse((unsigned char *)r->start + idx, r->alloc - idx); in ring_buf_cpop_range()
218 l -= r->alloc - idx; in ring_buf_cpop_range()
238 if (num_bytes == r->alloc) in ring_buf_resize()
248 rnew.alloc = num_bytes; in ring_buf_resize()