Lines Matching refs:to_alloc
160 size_t to_alloc; in evbuffer_chain_new() local
169 to_alloc = MIN_BUFFER_SIZE; in evbuffer_chain_new()
170 while (to_alloc < size) { in evbuffer_chain_new()
171 to_alloc <<= 1; in evbuffer_chain_new()
174 to_alloc = size; in evbuffer_chain_new()
178 if ((chain = mm_malloc(to_alloc)) == NULL) in evbuffer_chain_new()
183 chain->buffer_len = to_alloc - EVBUFFER_CHAIN_SIZE; in evbuffer_chain_new()
638 size_t to_alloc; in evbuffer_add_iovec() local
642 res = to_alloc = 0; in evbuffer_add_iovec()
645 to_alloc += vec[n].iov_len; in evbuffer_add_iovec()
648 if (evbuffer_expand_fast_(buf, to_alloc, 2) < 0) { in evbuffer_add_iovec()
1732 size_t remain, to_alloc; in evbuffer_add() local
1791 to_alloc = chain->buffer_len; in evbuffer_add()
1792 if (to_alloc <= EVBUFFER_CHAIN_MAX_AUTO_SIZE/2) in evbuffer_add()
1793 to_alloc <<= 1; in evbuffer_add()
1794 if (datlen > to_alloc) in evbuffer_add()
1795 to_alloc = datlen; in evbuffer_add()
1796 tmp = evbuffer_chain_new(to_alloc); in evbuffer_add()