Lines Matching refs:last

100 	cq->last = NULL;  in chunkqueue_init()
439 cq->last = NULL; in chunkqueue_release_chunks()
453 if (NULL == (c->next = cq->first)) cq->last = c; in chunkqueue_prepend_chunk()
459 *(cq->last ? &cq->last->next : &cq->first) = c; in chunkqueue_append_chunk()
460 cq->last = c; in chunkqueue_append_chunk()
514 chunk *c = cq->last; in chunkqueue_append_mem_extend_chunk()
569 cq->last->next = src->first; in chunkqueue_append_chunkqueue()
571 cq->last = src->last; in chunkqueue_append_chunkqueue()
575 src->last = NULL; in chunkqueue_append_chunkqueue()
608 cq->bytes_in += buffer_clen(cq->last->mem); in chunkqueue_append_buffer_commit()
615 chunk *c = cq->last; in chunkqueue_get_memory()
633 buffer *b = cq->last->mem; in chunkqueue_use_memory()
638 if (cq->last == ckpt || NULL == ckpt || MEM_CHUNK != ckpt->type in chunkqueue_use_memory()
648 chunk_release(cq->last); in chunkqueue_use_memory()
649 cq->last = ckpt; in chunkqueue_use_memory()
700 chunkqueue_dup_file_chunk_fd(dest->last, c); in chunkqueue_steal_partial_file_chunk()
716 if (c == src->last) src->last = NULL; in chunkqueue_steal()
757 chunk * const restrict last = cq->last; in chunkqueue_get_append_newtempfile() local
782 if ((cq->last = last)) in chunkqueue_get_append_newtempfile()
783 last->next = NULL; in chunkqueue_get_append_newtempfile()
799 chunk * const c = cq->last; in chunkqueue_get_append_tempfile()
856 dest->first = dest->last = NULL; in chunkqueue_to_tempfiles()
931 dest->last = ckpt; in chunkqueue_append_cqmem_to_tempfile_partial()
1045 if (cq->last && 0 == chunk_remaining_length(cq->last)) { in chunkqueue_append_drain_pipe_tempfile()
1234 chunkqueue_dup_file_chunk_fd(dst->last, c); in chunkqueue_append_cq_range()
1262 cq->first = cq->last = NULL; in chunkqueue_mark_written()
1267 if (NULL == (cq->first = c->next)) cq->last = NULL; in chunkqueue_remove_finished_chunks()
1280 if (empty == cq->last) cq->last = c; in chunkqueue_remove_empty_chunks()
1313 if (NULL == c->next) cq->last = cq->first; in chunkqueue_compact_mem()
1327 if (NULL == c->next) cq->last = fc; in chunkqueue_compact_mem()
1498 if (filec != cq->last || filec->type != FILE_CHUNK || filec->file.fd < 0) in chunkqueue_small_resp_optim()
1512 cq->last = c; in chunkqueue_small_resp_optim()
1526 cq->last = c->next = filec; in chunkqueue_small_resp_optim()