Lines Matching refs:zip_ops

52 static int prepare_inflate_zcmd(struct zip_operation *zip_ops,  in prepare_inflate_zcmd()  argument
72 if (zip_ops->begin_file == 0) in prepare_inflate_zcmd()
79 zip_cmd->s.cc = zip_ops->ccode; in prepare_inflate_zcmd()
84 zip_cmd->s.adlercrc32 = zip_ops->csum; in prepare_inflate_zcmd()
94 zip_cmd->s.out_ptr_addr.s.addr = __pa(zip_ops->output); in prepare_inflate_zcmd()
95 zip_cmd->s.out_ptr_ctl.s.length = zip_ops->output_len; in prepare_inflate_zcmd()
98 zip_cmd->s.totaloutputlength = zip_ops->output_len; in prepare_inflate_zcmd()
104 zip_cmd->s.inp_ptr_addr.s.addr = __pa((u8 *)zip_ops->input); in prepare_inflate_zcmd()
105 zip_cmd->s.inp_ptr_ctl.s.length = zip_ops->input_len; in prepare_inflate_zcmd()
128 int zip_inflate(struct zip_operation *zip_ops, struct zip_state *s, in zip_inflate() argument
136 prepare_inflate_zcmd(zip_ops, s, zip_cmd); in zip_inflate()
138 atomic64_add(zip_ops->input_len, &zip_dev->stats.decomp_in_bytes); in zip_inflate()
152 zip_ops->compcode = result_ptr->s.compcode; in zip_inflate()
153 switch (zip_ops->compcode) { in zip_inflate()
167 zip_dbg("Instruction failed. Code = %d\n", zip_ops->compcode); in zip_inflate()
175 if ((zip_ops->ccode == 3) && (zip_ops->flush == 4) && in zip_inflate()
176 (zip_ops->compcode != ZIP_CMD_DYNAMIC_STOP)) in zip_inflate()
179 zip_ops->csum = result_ptr->s.adler32; in zip_inflate()
184 if (zip_ops->output_len < result_ptr->s.totalbyteswritten) { in zip_inflate()
186 zip_ops->output_len, result_ptr->s.totalbyteswritten); in zip_inflate()
187 zip_ops->output_len = 0; in zip_inflate()
189 zip_ops->output_len = result_ptr->s.totalbyteswritten; in zip_inflate()
192 zip_ops->bytes_read = result_ptr->s.totalbytesread; in zip_inflate()
193 zip_ops->bits_processed = result_ptr->s.totalbitsprocessed; in zip_inflate()
194 zip_ops->end_file = result_ptr->s.ef; in zip_inflate()
195 if (zip_ops->end_file) { in zip_inflate()
196 switch (zip_ops->format) { in zip_inflate()
198 zip_dbg("RAW Format: %d ", zip_ops->format); in zip_inflate()
200 zip_ops->csum = result_ptr->s.adler32; in zip_inflate()
204 zip_dbg("ZLIB Format: %d ", zip_ops->format); in zip_inflate()
205 zip_ops->csum = result_ptr->s.adler32; in zip_inflate()
209 zip_dbg("GZIP Format: %d ", zip_ops->format); in zip_inflate()
210 zip_ops->csum = result_ptr->s.crc32; in zip_inflate()
214 zip_dbg("LZS Format: %d ", zip_ops->format); in zip_inflate()
218 zip_err("Format error:%d\n", zip_ops->format); in zip_inflate()