Lines Matching refs:dlen
19 static u32 decompress_lzo(const u8 *cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_lzo() argument
35 if (tot_len == 0 && dlen) in decompress_lzo()
55 out_len = dlen; in decompress_lzo()
63 dlen -= out_len; in decompress_lzo()
86 static u32 decompress_zlib(const u8 *_cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_zlib() argument
100 stream.avail_out = dlen; in decompress_zlib()
137 static u32 decompress_zstd(const u8 *cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_zstd() argument
166 out_buf.size = dlen; in decompress_zstd()
189 u32 btrfs_decompress(u8 type, const char *c, u32 clen, char *d, u32 dlen) in btrfs_decompress() argument
200 res = dlen < clen ? dlen : clen; in btrfs_decompress()
204 return decompress_zlib(cbuf, clen, dbuf, dlen); in btrfs_decompress()
206 return decompress_lzo(cbuf, clen, dbuf, dlen); in btrfs_decompress()
208 return decompress_zstd(cbuf, clen, dbuf, dlen); in btrfs_decompress()