• Home
  • Raw
  • Download

Lines Matching refs:ret

44 	int ret = 0;  in deflate_comp_init()  local
50 ret = -ENOMEM; in deflate_comp_init()
54 ret = zlib_deflateInit(stream, 3); in deflate_comp_init()
56 ret = zlib_deflateInit2(stream, DEFLATE_DEF_LEVEL, Z_DEFLATED, in deflate_comp_init()
60 if (ret != Z_OK) { in deflate_comp_init()
61 ret = -EINVAL; in deflate_comp_init()
65 return ret; in deflate_comp_init()
73 int ret = 0; in deflate_decomp_init() local
78 ret = -ENOMEM; in deflate_decomp_init()
82 ret = zlib_inflateInit(stream); in deflate_decomp_init()
84 ret = zlib_inflateInit2(stream, -DEFLATE_DEF_WINBITS); in deflate_decomp_init()
85 if (ret != Z_OK) { in deflate_decomp_init()
86 ret = -EINVAL; in deflate_decomp_init()
90 return ret; in deflate_decomp_init()
110 int ret; in __deflate_init() local
112 ret = deflate_comp_init(ctx, format); in __deflate_init()
113 if (ret) in __deflate_init()
115 ret = deflate_decomp_init(ctx, format); in __deflate_init()
116 if (ret) in __deflate_init()
119 return ret; in __deflate_init()
125 int ret; in gen_deflate_alloc_ctx() local
131 ret = __deflate_init(ctx, format); in gen_deflate_alloc_ctx()
132 if (ret) { in gen_deflate_alloc_ctx()
134 return ERR_PTR(ret); in gen_deflate_alloc_ctx()
179 int ret = 0; in __deflate_compress() local
183 ret = zlib_deflateReset(stream); in __deflate_compress()
184 if (ret != Z_OK) { in __deflate_compress()
185 ret = -EINVAL; in __deflate_compress()
194 ret = zlib_deflate(stream, Z_FINISH); in __deflate_compress()
195 if (ret != Z_STREAM_END) { in __deflate_compress()
196 ret = -EINVAL; in __deflate_compress()
199 ret = 0; in __deflate_compress()
202 return ret; in __deflate_compress()
224 int ret = 0; in __deflate_decompress() local
228 ret = zlib_inflateReset(stream); in __deflate_decompress()
229 if (ret != Z_OK) { in __deflate_decompress()
230 ret = -EINVAL; in __deflate_decompress()
239 ret = zlib_inflate(stream, Z_SYNC_FLUSH); in __deflate_decompress()
245 if (ret == Z_OK && !stream->avail_in && stream->avail_out) { in __deflate_decompress()
249 ret = zlib_inflate(stream, Z_FINISH); in __deflate_decompress()
251 if (ret != Z_STREAM_END) { in __deflate_decompress()
252 ret = -EINVAL; in __deflate_decompress()
255 ret = 0; in __deflate_decompress()
258 return ret; in __deflate_decompress()
313 int ret; in deflate_mod_init() local
315 ret = crypto_register_alg(&alg); in deflate_mod_init()
316 if (ret) in deflate_mod_init()
317 return ret; in deflate_mod_init()
319 ret = crypto_register_scomps(scomp, ARRAY_SIZE(scomp)); in deflate_mod_init()
320 if (ret) { in deflate_mod_init()
322 return ret; in deflate_mod_init()
325 return ret; in deflate_mod_init()