Lines Matching refs:tail
263 q->tail = NULL; in Curl_bufq_free()
276 q->tail = NULL; in Curl_bufq_reset()
293 if(q->tail) in Curl_bufq_space()
294 space += chunk_space(q->tail); in Curl_bufq_space()
315 if(!q->tail || q->spare) in Curl_bufq_is_full()
322 return chunk_is_full(q->tail); in Curl_bufq_is_full()
362 if(q->tail == chunk) in prune_head()
363 q->tail = q->head; in prune_head()
400 while(q->tail && chunk_is_empty(q->tail)) { in prune_tail()
401 chunk = q->tail; in prune_tail()
402 q->tail = chunk_prev(q->head, chunk); in prune_tail()
403 if(q->tail) in prune_tail()
404 q->tail->next = NULL; in prune_tail()
406 q->head = q->tail; in prune_tail()
430 if(q->tail && !chunk_is_full(q->tail)) in get_non_full_tail()
431 return q->tail; in get_non_full_tail()
435 if(q->tail) { in get_non_full_tail()
436 q->tail->next = chunk; in get_non_full_tail()
437 q->tail = chunk; in get_non_full_tail()
441 q->head = q->tail = chunk; in get_non_full_tail()
451 struct buf_chunk *tail; in Curl_bufq_write() local
457 tail = get_non_full_tail(q); in Curl_bufq_write()
458 if(!tail) { in Curl_bufq_write()
465 n = chunk_append(tail, buf, len); in Curl_bufq_write()
493 while(len && q->tail) { in Curl_bufq_unwrite()
494 len -= chunk_unwrite(q->tail, len); in Curl_bufq_unwrite()
669 struct buf_chunk *tail = NULL; in Curl_bufq_sipn() local
673 tail = get_non_full_tail(q); in Curl_bufq_sipn()
674 if(!tail) { in Curl_bufq_sipn()
684 nread = chunk_slurpn(tail, max_len, reader, reader_ctx, err); in Curl_bufq_sipn()
736 if(q->tail && !chunk_is_full(q->tail)) in bufq_slurpn()