Lines Matching refs:ctx
45 static int deflate_comp_init(struct deflate_ctx *ctx) in deflate_comp_init() argument
48 struct z_stream_s *stream = &ctx->comp_stream; in deflate_comp_init()
70 static int deflate_decomp_init(struct deflate_ctx *ctx) in deflate_decomp_init() argument
73 struct z_stream_s *stream = &ctx->decomp_stream; in deflate_decomp_init()
92 static void deflate_comp_exit(struct deflate_ctx *ctx) in deflate_comp_exit() argument
94 zlib_deflateEnd(&ctx->comp_stream); in deflate_comp_exit()
95 vfree(ctx->comp_stream.workspace); in deflate_comp_exit()
98 static void deflate_decomp_exit(struct deflate_ctx *ctx) in deflate_decomp_exit() argument
100 zlib_inflateEnd(&ctx->decomp_stream); in deflate_decomp_exit()
101 vfree(ctx->decomp_stream.workspace); in deflate_decomp_exit()
106 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_init() local
109 ret = deflate_comp_init(ctx); in deflate_init()
112 ret = deflate_decomp_init(ctx); in deflate_init()
114 deflate_comp_exit(ctx); in deflate_init()
121 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_exit() local
123 deflate_comp_exit(ctx); in deflate_exit()
124 deflate_decomp_exit(ctx); in deflate_exit()