Lines Matching refs:head
261 chunk_list_free(&q->head); in Curl_bufq_free()
270 while(q->head) { in Curl_bufq_reset()
271 chunk = q->head; in Curl_bufq_reset()
272 q->head = chunk->next; in Curl_bufq_reset()
281 const struct buf_chunk *chunk = q->head; in Curl_bufq_len()
310 return !q->head || chunk_is_empty(q->head); in Curl_bufq_is_empty()
359 while(q->head && chunk_is_empty(q->head)) { in prune_head()
360 chunk = q->head; in prune_head()
361 q->head = chunk->next; in prune_head()
363 q->tail = q->head; in prune_head()
383 static struct buf_chunk *chunk_prev(struct buf_chunk *head, in chunk_prev() argument
386 while(head) { in chunk_prev()
387 if(head == chunk) in chunk_prev()
389 if(head->next == chunk) in chunk_prev()
390 return head; in chunk_prev()
391 head = head->next; in chunk_prev()
402 q->tail = chunk_prev(q->head, chunk); in prune_tail()
405 if(q->head == chunk) in prune_tail()
406 q->head = q->tail; in prune_tail()
440 DEBUGASSERT(!q->head); in get_non_full_tail()
441 q->head = q->tail = chunk; in get_non_full_tail()
507 while(len && q->head) { in Curl_bufq_read()
508 n = chunk_read(q->head, buf, len); in Curl_bufq_read()
536 if(q->head && chunk_is_empty(q->head)) { in Curl_bufq_peek()
539 if(q->head && !chunk_is_empty(q->head)) { in Curl_bufq_peek()
540 chunk_peek(q->head, pbuf, plen); in Curl_bufq_peek()
551 struct buf_chunk *c = q->head; in Curl_bufq_peek_at()
575 while(amount && q->head) { in Curl_bufq_skip()
576 n = chunk_skip(q->head, amount); in Curl_bufq_skip()