Lines Matching refs:to_alloc
159 size_t to_alloc; in evbuffer_chain_new() local
168 to_alloc = MIN_BUFFER_SIZE; in evbuffer_chain_new()
169 while (to_alloc < size) { in evbuffer_chain_new()
170 to_alloc <<= 1; in evbuffer_chain_new()
173 to_alloc = size; in evbuffer_chain_new()
177 if ((chain = mm_malloc(to_alloc)) == NULL) in evbuffer_chain_new()
182 chain->buffer_len = to_alloc - EVBUFFER_CHAIN_SIZE; in evbuffer_chain_new()
637 size_t to_alloc; in evbuffer_add_iovec() local
641 res = to_alloc = 0; in evbuffer_add_iovec()
644 to_alloc += vec[n].iov_len; in evbuffer_add_iovec()
647 if (evbuffer_expand_fast_(buf, to_alloc, 2) < 0) { in evbuffer_add_iovec()
1727 size_t remain, to_alloc; in evbuffer_add() local
1786 to_alloc = chain->buffer_len; in evbuffer_add()
1787 if (to_alloc <= EVBUFFER_CHAIN_MAX_AUTO_SIZE/2) in evbuffer_add()
1788 to_alloc <<= 1; in evbuffer_add()
1789 if (datlen > to_alloc) in evbuffer_add()
1790 to_alloc = datlen; in evbuffer_add()
1791 tmp = evbuffer_chain_new(to_alloc); in evbuffer_add()