Lines Matching refs:allocator
85 const lzma_allocator *allocator; member
365 lzma_free(thr->in, thr->allocator); in worker_decoder()
366 lzma_next_end(&thr->block_decoder, thr->allocator); in worker_decoder()
404 thr->block_decoder.coder, thr->allocator, in worker_decoder()
466 lzma_free(thr->in, thr->allocator); in worker_decoder()
511 threads_end(struct lzma_stream_coder *coder, const lzma_allocator *allocator) in threads_end() argument
523 lzma_free(coder->threads, allocator); in threads_end()
562 const lzma_allocator *allocator) in initialize_new_thread() argument
571 allocator); in initialize_new_thread()
591 thr->allocator = allocator; in initialize_new_thread()
617 get_thread(struct lzma_stream_coder *coder, const lzma_allocator *allocator) in get_thread() argument
638 return_if_error(initialize_new_thread(coder, allocator)); in get_thread()
656 const lzma_allocator *allocator, in read_output_and_wait() argument
671 ret = lzma_outq_read(&coder->outq, allocator, in read_output_and_wait()
875 const lzma_allocator *allocator, const uint8_t *restrict in, in decode_block_header() argument
913 allocator, coder->buffer)); in decode_block_header()
947 const lzma_allocator *allocator) in stream_decoder_reset() argument
950 coder->index_hash = lzma_index_hash_init(coder->index_hash, allocator); in stream_decoder_reset()
963 stream_decode_mt(void *coder_ptr, const lzma_allocator *allocator, in stream_decode_mt() argument
1080 const lzma_ret ret = decode_block_header(coder, allocator, in stream_decode_mt()
1163 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1226 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1282 lzma_next_end(&coder->block_decoder, allocator); in stream_decode_mt()
1321 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1383 lzma_outq_clear_cache2(&coder->outq, allocator, in stream_decode_mt()
1411 lzma_next_end(&thr->block_decoder, allocator); in stream_decode_mt()
1439 &coder->outq, allocator, in stream_decode_mt()
1447 ret = get_thread(coder, allocator); in stream_decode_mt()
1460 &coder->thr->block_decoder, allocator, in stream_decode_mt()
1465 lzma_filters_free(coder->filters, allocator); in stream_decode_mt()
1478 coder->thr->in = lzma_alloc(coder->thr->in_size, allocator); in stream_decode_mt()
1550 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1587 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1594 lzma_outq_clear_cache(&coder->outq, allocator); in stream_decode_mt()
1598 threads_end(coder, allocator); in stream_decode_mt()
1602 &coder->block_decoder, allocator, in stream_decode_mt()
1607 lzma_filters_free(coder->filters, allocator); in stream_decode_mt()
1625 coder->block_decoder.coder, allocator, in stream_decode_mt()
1648 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1756 return_if_error(stream_decoder_reset(coder, allocator)); in stream_decode_mt()
1769 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1794 stream_decoder_mt_end(void *coder_ptr, const lzma_allocator *allocator) in stream_decoder_mt_end() argument
1798 threads_end(coder, allocator); in stream_decoder_mt_end()
1799 lzma_outq_end(&coder->outq, allocator); in stream_decoder_mt_end()
1801 lzma_next_end(&coder->block_decoder, allocator); in stream_decoder_mt_end()
1802 lzma_filters_free(coder->filters, allocator); in stream_decoder_mt_end()
1803 lzma_index_hash_end(coder->index_hash, allocator); in stream_decoder_mt_end()
1805 lzma_free(coder, allocator); in stream_decoder_mt_end()
1891 stream_decoder_mt_init(lzma_next_coder *next, const lzma_allocator *allocator, in stream_decoder_mt_init() argument
1902 lzma_next_coder_init(&stream_decoder_mt_init, next, allocator); in stream_decoder_mt_init()
1906 coder = lzma_alloc(sizeof(struct lzma_stream_coder), allocator); in stream_decoder_mt_init()
1913 lzma_free(coder, allocator); in stream_decoder_mt_init()
1919 lzma_free(coder, allocator); in stream_decoder_mt_init()
1943 lzma_filters_free(coder->filters, allocator); in stream_decoder_mt_init()
1958 threads_end(coder, allocator); in stream_decoder_mt_init()
1999 return_if_error(lzma_outq_init(&coder->outq, allocator, in stream_decoder_mt_init()
2002 return stream_decoder_reset(coder, allocator); in stream_decoder_mt_init()