Lines Matching refs:chunk_size
177 size_t chunk_size, size_t spare_max) in Curl_bufcp_init() argument
179 DEBUGASSERT(chunk_size > 0); in Curl_bufcp_init()
182 pool->chunk_size = chunk_size; in Curl_bufcp_init()
200 chunk = calloc(1, sizeof(*chunk) + pool->chunk_size); in bufcp_take()
205 chunk->dlen = pool->chunk_size; in bufcp_take()
231 size_t chunk_size, size_t max_chunks, int opts) in bufq_init() argument
233 DEBUGASSERT(chunk_size > 0); in bufq_init()
236 q->chunk_size = chunk_size; in bufq_init()
242 void Curl_bufq_init2(struct bufq *q, size_t chunk_size, size_t max_chunks, in Curl_bufq_init2() argument
245 bufq_init(q, NULL, chunk_size, max_chunks, opts); in Curl_bufq_init2()
248 void Curl_bufq_init(struct bufq *q, size_t chunk_size, size_t max_chunks) in Curl_bufq_init() argument
250 bufq_init(q, NULL, chunk_size, max_chunks, BUFQ_OPT_NONE); in Curl_bufq_init()
256 bufq_init(q, pool, pool->chunk_size, max_chunks, opts); in Curl_bufq_initp()
303 space += (q->max_chunks - q->chunk_count) * q->chunk_size; in Curl_bufq_space()
346 chunk = calloc(1, sizeof(*chunk) + q->chunk_size); in get_spare()
349 chunk->dlen = q->chunk_size; in get_spare()