Lines Matching refs:max_chunks
231 size_t chunk_size, size_t max_chunks, int opts) in bufq_init() argument
234 DEBUGASSERT(max_chunks > 0); in bufq_init()
237 q->max_chunks = max_chunks; 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()
254 size_t max_chunks, int opts) in Curl_bufq_initp() argument
256 bufq_init(q, pool, pool->chunk_size, max_chunks, opts); in Curl_bufq_initp()
302 if(q->chunk_count < q->max_chunks) { in Curl_bufq_space()
303 space += (q->max_chunks - q->chunk_count) * q->chunk_size; in Curl_bufq_space()
317 if(q->chunk_count < q->max_chunks) in Curl_bufq_is_full()
319 if(q->chunk_count > q->max_chunks) in Curl_bufq_is_full()
336 if(q->chunk_count >= q->max_chunks && (!(q->opts & BUFQ_OPT_SOFT_LIMIT))) in get_spare()
368 else if((q->chunk_count > q->max_chunks) || in prune_head()
411 else if((q->chunk_count > q->max_chunks) || in prune_tail()
455 DEBUGASSERT(q->max_chunks > 0); in Curl_bufq_write()
459 if((q->chunk_count < q->max_chunks) || (q->opts & BUFQ_OPT_SOFT_LIMIT)) { in Curl_bufq_write()
675 if(q->chunk_count < q->max_chunks) { in Curl_bufq_sipn()