Lines Matching refs:ctxt
28 int sqfs_decompressor_init(struct squashfs_ctxt *ctxt) in sqfs_decompressor_init() argument
30 u16 comp_type = get_unaligned_le16(&ctxt->sblk->compression); in sqfs_decompressor_init()
43 ctxt->zstd_workspace = malloc(ZSTD_DCtxWorkspaceBound()); in sqfs_decompressor_init()
44 if (!ctxt->zstd_workspace) in sqfs_decompressor_init()
56 void sqfs_decompressor_cleanup(struct squashfs_ctxt *ctxt) in sqfs_decompressor_cleanup() argument
58 u16 comp_type = get_unaligned_le16(&ctxt->sblk->compression); in sqfs_decompressor_cleanup()
71 free(ctxt->zstd_workspace); in sqfs_decompressor_cleanup()
95 static int sqfs_zstd_decompress(struct squashfs_ctxt *ctxt, void *dest, in sqfs_zstd_decompress() argument
103 ctx = ZSTD_initDCtx(ctxt->zstd_workspace, wsize); in sqfs_zstd_decompress()
110 int sqfs_decompress(struct squashfs_ctxt *ctxt, void *dest, in sqfs_decompress() argument
113 u16 comp_type = get_unaligned_le16(&ctxt->sblk->compression); in sqfs_decompress()
141 ret = sqfs_zstd_decompress(ctxt, dest, *dest_len, source, src_len); in sqfs_decompress()