Lines Matching refs:tail
246 q->tail = NULL;
259 q->tail = NULL;
276 if(q->tail)
277 space += chunk_space(q->tail);
298 if(!q->tail || q->spare)
304 /* we have no spares and cannot make more, is the tail full? */
305 return chunk_is_full(q->tail);
345 if(q->tail == chunk)
346 q->tail = q->head;
370 if(q->tail && !chunk_is_full(q->tail))
371 return q->tail;
374 /* new tail, and possibly new head */
375 if(q->tail) {
376 q->tail->next = chunk;
377 q->tail = chunk;
381 q->head = q->tail = chunk;
391 struct buf_chunk *tail;
397 tail = get_non_full_tail(q);
398 if(!tail) {
405 n = chunk_append(tail, buf, len);
579 struct buf_chunk *tail = NULL;
583 tail = get_non_full_tail(q);
584 if(!tail) {
594 nread = chunk_slurpn(tail, max_len, reader, reader_ctx, err);
646 if(q->tail && !chunk_is_full(q->tail))