Lines Matching refs:rlen
245 size_t rlen; in sshbuf_set_max_size() local
262 rlen = SSHBUF_SIZE_INIT; in sshbuf_set_max_size()
264 rlen = ROUNDUP(buf->size, SSHBUF_SIZE_INC); in sshbuf_set_max_size()
265 if (rlen > max_size) in sshbuf_set_max_size()
266 rlen = max_size; in sshbuf_set_max_size()
267 SSHBUF_DBG(("new alloc = %zu", rlen)); in sshbuf_set_max_size()
268 if ((dp = recallocarray(buf->d, buf->alloc, rlen, 1)) == NULL) in sshbuf_set_max_size()
271 buf->alloc = rlen; in sshbuf_set_max_size()
331 size_t rlen, need; in sshbuf_allocate() local
352 rlen = ROUNDUP(buf->alloc + need, SSHBUF_SIZE_INC); in sshbuf_allocate()
353 SSHBUF_DBG(("need %zu initial rlen %zu", need, rlen)); in sshbuf_allocate()
354 if (rlen > buf->max_size) in sshbuf_allocate()
355 rlen = buf->alloc + need; in sshbuf_allocate()
356 SSHBUF_DBG(("adjusted rlen %zu", rlen)); in sshbuf_allocate()
357 if ((dp = recallocarray(buf->d, buf->alloc, rlen, 1)) == NULL) { in sshbuf_allocate()
361 buf->alloc = rlen; in sshbuf_allocate()