Lines Matching refs:NULL

70 static const array *chunkqueue_default_tempdirs = NULL;
83 chunkqueue_default_tempdirs = NULL; in chunkqueue_set_tempdirs_default_reset()
95 if (NULL == cq) in chunkqueue_init()
99 cq->first = NULL; in chunkqueue_init()
100 cq->last = NULL; in chunkqueue_init()
115 c->next = NULL; in chunk_init()
119 c->file.view = NULL; in chunk_init()
157 return NULL; in __attribute_nonnull__()
202 c->file.ref = NULL; in chunk_reset_file_chunk()
237 return NULL; in chunk_pop_oversized()
250 buffer * const tb = chunks_oversized ? chunks_oversized->mem : NULL; in chunk_push_oversized()
275 if (NULL == c) { in chunk_buffer_acquire_sz()
287 c->mem = NULL; in chunk_buffer_acquire_sz()
296 if (NULL == b) return; in chunk_buffer_release()
400 chunks = NULL; in chunkqueue_chunk_pool_clear()
405 chunks_oversized = NULL; in chunkqueue_chunk_pool_clear()
411 chunks_filechunk = NULL; in chunkqueue_chunk_pool_clear()
426 chunk_buffers = NULL; in chunkqueue_chunk_pool_free()
439 cq->last = NULL; in chunkqueue_release_chunks()
447 if (NULL == cq) return; in chunkqueue_free()
453 if (NULL == (c->next = cq->first)) cq->last = c; in chunkqueue_prepend_chunk()
458 c->next = NULL; in chunkqueue_append_chunk()
516 if (c != NULL && c->type == MEM_CHUNK in chunkqueue_append_mem_extend_chunk()
564 if (NULL == src->first) return; in chunkqueue_append_chunkqueue()
566 if (NULL == cq->first) { in chunkqueue_append_chunkqueue()
574 src->first = NULL; in chunkqueue_append_chunkqueue()
575 src->last = NULL; in chunkqueue_append_chunkqueue()
616 if (NULL != c && MEM_CHUNK == c->type) { in chunkqueue_get_memory()
638 if (cq->last == ckpt || NULL == ckpt || MEM_CHUNK != ckpt->type in chunkqueue_use_memory()
650 *(ckpt ? &ckpt->next : &cq->first) = NULL; in chunkqueue_use_memory()
709 if (__builtin_expect( (NULL == c), 0)) break; in chunkqueue_steal()
716 if (c == src->last) src->last = NULL; in chunkqueue_steal()
783 last->next = NULL; in chunkqueue_get_append_newtempfile()
785 cq->first = NULL; in chunkqueue_get_append_newtempfile()
787 return NULL; in chunkqueue_get_append_newtempfile()
800 if (NULL != c && c->file.is_temp && c->file.fd >= 0) { in chunkqueue_get_append_tempfile()
812 return NULL; in chunkqueue_get_append_tempfile()
856 dest->first = dest->last = NULL; in chunkqueue_to_tempfiles()
885 if (NULL == dst_c) in chunkqueue_append_mem_to_tempfile()
930 ckpt->next = NULL; in chunkqueue_append_cqmem_to_tempfile_partial()
960 if (__builtin_expect( (c != NULL), 0) && dest->first->type == MEM_CHUNK) { in chunkqueue_append_cqmem_to_tempfile()
986 if (NULL == c) in chunkqueue_append_cqmem_to_tempfile()
1066 if (__builtin_expect( (NULL == c), 0)) return -errno; in chunkqueue_append_splice_pipe_tempfile()
1069 ssize_t wr = splice(fd, NULL, c->file.fd, &off, len, in chunkqueue_append_splice_pipe_tempfile()
1153 ssize_t wr = splice(fd, NULL, pipes[1], NULL, len, in chunkqueue_append_splice_sock_tempfile()
1174 if (__builtin_expect( (NULL == c), 0)) break; in chunkqueue_steal_with_tempfiles()
1221 for (const chunk *c = src->first; len > 0 && c != NULL; c = c->next) { 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()
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()
1426 if (NULL != cfv) { in chunkqueue_write_chunk_file()
1473 ? splice(c->file.fd, &abs_offset, fd, NULL, len, SPLICE_F_NONBLOCK) in chunkqueue_write_chunk_to_pipe()
1511 c->next = NULL; in chunkqueue_small_resp_optim()
1603 : NULL; in chunkqueue_peek_data()
1646 if (NULL == c) in chunkqueue_peek_data()
1681 if (cqlen >= UINT32_MAX) return NULL; in chunkqueue_read_squash()
1683 if (cq->first && NULL == cq->first->next && cq->first->type == MEM_CHUNK) in chunkqueue_read_squash()
1692 return NULL; in chunkqueue_read_squash()
1710 if (NULL == cfv) { in chunkqueue_chunk_file_viewadj()
1720 return NULL; in chunkqueue_chunk_file_viewadj()
1742 cfv->mptr = mmap(NULL, (size_t)cfv->mlen, PROT_READ, in chunkqueue_chunk_file_viewadj()
1750 cfv->mptr = mmap(NULL, (size_t)cfv->mlen, PROT_READ, in chunkqueue_chunk_file_viewadj()
1755 return NULL; in chunkqueue_chunk_file_viewadj()