Lines Matching refs:allocator

91 	const lzma_allocator *allocator;  member
392 lzma_free(thr->in, thr->allocator); in worker_decoder()
393 lzma_next_end(&thr->block_decoder, thr->allocator); in worker_decoder()
442 thr->block_decoder.coder, thr->allocator, in worker_decoder()
487 lzma_free(thr->in, thr->allocator); in worker_decoder()
523 threads_end(struct lzma_stream_coder *coder, const lzma_allocator *allocator) in threads_end() argument
535 lzma_free(coder->threads, allocator); in threads_end()
569 const lzma_allocator *allocator) in initialize_new_thread() argument
578 allocator); in initialize_new_thread()
598 thr->allocator = allocator; in initialize_new_thread()
624 get_thread(struct lzma_stream_coder *coder, const lzma_allocator *allocator) in get_thread() argument
645 return_if_error(initialize_new_thread(coder, allocator)); in get_thread()
663 const lzma_allocator *allocator, in read_output_and_wait() argument
678 ret = lzma_outq_read(&coder->outq, allocator, in read_output_and_wait()
882 const lzma_allocator *allocator, const uint8_t *restrict in, in decode_block_header() argument
920 allocator, coder->buffer)); in decode_block_header()
954 const lzma_allocator *allocator) in stream_decoder_reset() argument
957 coder->index_hash = lzma_index_hash_init(coder->index_hash, allocator); in stream_decoder_reset()
970 stream_decode_mt(void *coder_ptr, const lzma_allocator *allocator, in stream_decode_mt() argument
1087 const lzma_ret ret = decode_block_header(coder, allocator, in stream_decode_mt()
1170 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1234 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1290 lzma_next_end(&coder->block_decoder, allocator); in stream_decode_mt()
1330 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1392 lzma_outq_clear_cache2(&coder->outq, allocator, in stream_decode_mt()
1420 lzma_next_end(&thr->block_decoder, allocator); in stream_decode_mt()
1448 &coder->outq, allocator, in stream_decode_mt()
1456 ret = get_thread(coder, allocator); in stream_decode_mt()
1469 &coder->thr->block_decoder, allocator, in stream_decode_mt()
1474 lzma_filters_free(coder->filters, allocator); in stream_decode_mt()
1487 coder->thr->in = lzma_alloc(coder->thr->in_size, allocator); in stream_decode_mt()
1554 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1586 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1593 lzma_outq_clear_cache(&coder->outq, allocator); in stream_decode_mt()
1597 threads_end(coder, allocator); in stream_decode_mt()
1601 &coder->block_decoder, allocator, in stream_decode_mt()
1606 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()
1759 return_if_error(stream_decoder_reset(coder, allocator)); in stream_decode_mt()
1772 return_if_error(read_output_and_wait(coder, allocator, in stream_decode_mt()
1797 stream_decoder_mt_end(void *coder_ptr, const lzma_allocator *allocator) in stream_decoder_mt_end() argument
1801 threads_end(coder, allocator); in stream_decoder_mt_end()
1802 lzma_outq_end(&coder->outq, allocator); in stream_decoder_mt_end()
1804 lzma_next_end(&coder->block_decoder, allocator); in stream_decoder_mt_end()
1805 lzma_filters_free(coder->filters, allocator); in stream_decoder_mt_end()
1806 lzma_index_hash_end(coder->index_hash, allocator); in stream_decoder_mt_end()
1808 lzma_free(coder, allocator); in stream_decoder_mt_end()
1894 stream_decoder_mt_init(lzma_next_coder *next, const lzma_allocator *allocator, in stream_decoder_mt_init() argument
1905 lzma_next_coder_init(&stream_decoder_mt_init, next, allocator); in stream_decoder_mt_init()
1909 coder = lzma_alloc(sizeof(struct lzma_stream_coder), allocator); in stream_decoder_mt_init()
1916 lzma_free(coder, allocator); in stream_decoder_mt_init()
1922 lzma_free(coder, allocator); in stream_decoder_mt_init()
1946 lzma_filters_free(coder->filters, allocator); in stream_decoder_mt_init()
1961 threads_end(coder, allocator); in stream_decoder_mt_init()
2002 return_if_error(lzma_outq_init(&coder->outq, allocator, in stream_decoder_mt_init()
2005 return stream_decoder_reset(coder, allocator); in stream_decoder_mt_init()