Lines Matching refs:b2
640 uint8_t *const b2 = xzalloc(MAX_COMPRESSED_SIZE(block_size)); in lzo_compress() local
686 r = lzo1x_1_compress(b1, src_len, b2, &dst_len, wrk_mem); in lzo_compress()
688 r = lzo1x_1_15_compress(b1, src_len, b2, &dst_len, wrk_mem); in lzo_compress()
691 r = lzo1x_999_compress_level(b1, src_len, b2, &dst_len, in lzo_compress()
702 r = lzo1x_optimize(b2, dst_len, b1, &new_len /*, NULL*/); in lzo_compress()
721 *wordptr++ = htonl(lzo_adler32(ADLER32_INIT_VALUE, b2, dst_len)); in lzo_compress()
723 *wordptr++ = htonl(lzo_crc32(CRC32_INIT_VALUE, b2, dst_len)); in lzo_compress()
728 xwrite(1, b2, dst_len); in lzo_compress()
740 free(b2); in lzo_compress()
774 uint8_t *b2 = NULL; in lzo_decompress() local
800 if (b2) { in lzo_decompress()
801 free(b2); in lzo_decompress()
802 b2 = NULL; in lzo_decompress()
822 if (b2 == NULL) in lzo_decompress()
823 b2 = xzalloc(mcs_block_size); in lzo_decompress()
825 b1 = b2 + mcs_block_size - src_len; in lzo_decompress()
847 r = lzo1x_decompress_safe(b1, src_len, b2, &d /*, NULL*/); in lzo_decompress()
852 dst = b2; in lzo_decompress()
874 free(b2); in lzo_decompress()