Lines Matching refs:rnew
234 struct ring_buf rnew = {0}; in ring_buf_resize() local
244 rnew.start = OPENSSL_malloc(num_bytes); in ring_buf_resize()
245 if (rnew.start == NULL) in ring_buf_resize()
248 rnew.alloc = num_bytes; in ring_buf_resize()
249 rnew.head_offset = r->head_offset - ring_buf_used(r); in ring_buf_resize()
250 rnew.ctail_offset = rnew.head_offset; in ring_buf_resize()
254 OPENSSL_free(rnew.start); in ring_buf_resize()
261 if (ring_buf_push(&rnew, src, src_len) != src_len) { in ring_buf_resize()
262 OPENSSL_free(rnew.start); in ring_buf_resize()
269 assert(rnew.head_offset == r->head_offset); in ring_buf_resize()
270 rnew.ctail_offset = r->ctail_offset; in ring_buf_resize()
273 memcpy(r, &rnew, sizeof(*r)); in ring_buf_resize()