zip_ops            48 drivers/crypto/cavium/zip/zip_crypto.c static void zip_static_init_zip_ops(struct zip_operation *zip_ops,
zip_ops            51 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->flush        = ZIP_FLUSH_FINISH;
zip_ops            54 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->speed          = 1;
zip_ops            57 drivers/crypto/cavium/zip/zip_crypto.c 		zip_ops->ccode		= 0; /* Auto Huffman */
zip_ops            58 drivers/crypto/cavium/zip/zip_crypto.c 		zip_ops->lzs_flag	= 0;
zip_ops            59 drivers/crypto/cavium/zip/zip_crypto.c 		zip_ops->format		= ZLIB_FORMAT;
zip_ops            61 drivers/crypto/cavium/zip/zip_crypto.c 		zip_ops->ccode		= 3; /* LZS Encoding */
zip_ops            62 drivers/crypto/cavium/zip/zip_crypto.c 		zip_ops->lzs_flag	= 1;
zip_ops            63 drivers/crypto/cavium/zip/zip_crypto.c 		zip_ops->format		= LZS_FORMAT;
zip_ops            65 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->begin_file   = 1;
zip_ops            66 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->history_len  = 0;
zip_ops            67 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->end_file     = 1;
zip_ops            68 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->compcode     = 0;
zip_ops            69 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->csum	      = 1; /* Adler checksum desired */
zip_ops           126 drivers/crypto/cavium/zip/zip_crypto.c 	struct zip_operation  *zip_ops   = NULL;
zip_ops           142 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops = &zip_ctx->zip_comp;
zip_ops           144 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->input_len  = slen;
zip_ops           145 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->output_len = *dlen;
zip_ops           146 drivers/crypto/cavium/zip/zip_crypto.c 	memcpy(zip_ops->input, src, slen);
zip_ops           148 drivers/crypto/cavium/zip/zip_crypto.c 	ret = zip_deflate(zip_ops, zip_state, zip);
zip_ops           151 drivers/crypto/cavium/zip/zip_crypto.c 		*dlen = zip_ops->output_len;
zip_ops           152 drivers/crypto/cavium/zip/zip_crypto.c 		memcpy(dst, zip_ops->output, *dlen);
zip_ops           162 drivers/crypto/cavium/zip/zip_crypto.c 	struct zip_operation  *zip_ops   = NULL;
zip_ops           178 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops = &zip_ctx->zip_decomp;
zip_ops           179 drivers/crypto/cavium/zip/zip_crypto.c 	memcpy(zip_ops->input, src, slen);
zip_ops           182 drivers/crypto/cavium/zip/zip_crypto.c 	if (zip_ops->ccode != 3) /* Not LZS Encoding */
zip_ops           183 drivers/crypto/cavium/zip/zip_crypto.c 		zip_ops->input[slen++] = 0;
zip_ops           185 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->input_len  = slen;
zip_ops           186 drivers/crypto/cavium/zip/zip_crypto.c 	zip_ops->output_len = *dlen;
zip_ops           188 drivers/crypto/cavium/zip/zip_crypto.c 	ret = zip_inflate(zip_ops, zip_state, zip);
zip_ops           191 drivers/crypto/cavium/zip/zip_crypto.c 		*dlen = zip_ops->output_len;
zip_ops           192 drivers/crypto/cavium/zip/zip_crypto.c 		memcpy(dst, zip_ops->output, *dlen);
zip_ops            53 drivers/crypto/cavium/zip/zip_deflate.c static int prepare_zip_command(struct zip_operation *zip_ops,
zip_ops            69 drivers/crypto/cavium/zip/zip_deflate.c 	if (zip_ops->flush == ZIP_FLUSH_FINISH) {
zip_ops            74 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.cc = zip_ops->ccode;
zip_ops            76 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.ss = zip_ops->speed;
zip_ops            80 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.adlercrc32 = zip_ops->csum;
zip_ops            81 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.historylength = zip_ops->history_len;
zip_ops            85 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.inp_ptr_addr.s.addr  = __pa(zip_ops->input);
zip_ops            86 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.inp_ptr_ctl.s.length = (zip_ops->input_len +
zip_ops            87 drivers/crypto/cavium/zip/zip_deflate.c 					   zip_ops->history_len);
zip_ops            91 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.out_ptr_addr.s.addr  = __pa(zip_ops->output);
zip_ops            92 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.out_ptr_ctl.s.length = zip_ops->output_len;
zip_ops            94 drivers/crypto/cavium/zip/zip_deflate.c 	zip_cmd->s.totaloutputlength    = zip_ops->output_len;
zip_ops           115 drivers/crypto/cavium/zip/zip_deflate.c int zip_deflate(struct zip_operation *zip_ops, struct zip_state *s,
zip_ops           123 drivers/crypto/cavium/zip/zip_deflate.c 	prepare_zip_command(zip_ops, s, zip_cmd);
zip_ops           125 drivers/crypto/cavium/zip/zip_deflate.c 	atomic64_add(zip_ops->input_len, &zip_dev->stats.comp_in_bytes);
zip_ops           138 drivers/crypto/cavium/zip/zip_deflate.c 	zip_ops->compcode = result_ptr->s.compcode;
zip_ops           139 drivers/crypto/cavium/zip/zip_deflate.c 	switch (zip_ops->compcode) {
zip_ops           155 drivers/crypto/cavium/zip/zip_deflate.c 		zip_err("Zip instruction failed. Code:%d", zip_ops->compcode);
zip_ops           160 drivers/crypto/cavium/zip/zip_deflate.c 	switch (zip_ops->format) {
zip_ops           162 drivers/crypto/cavium/zip/zip_deflate.c 		zip_dbg("RAW Format: %d ", zip_ops->format);
zip_ops           164 drivers/crypto/cavium/zip/zip_deflate.c 		zip_ops->csum = result_ptr->s.adler32;
zip_ops           168 drivers/crypto/cavium/zip/zip_deflate.c 		zip_dbg("ZLIB Format: %d ", zip_ops->format);
zip_ops           169 drivers/crypto/cavium/zip/zip_deflate.c 		zip_ops->csum = result_ptr->s.adler32;
zip_ops           173 drivers/crypto/cavium/zip/zip_deflate.c 		zip_dbg("GZIP Format: %d ", zip_ops->format);
zip_ops           174 drivers/crypto/cavium/zip/zip_deflate.c 		zip_ops->csum = result_ptr->s.crc32;
zip_ops           178 drivers/crypto/cavium/zip/zip_deflate.c 		zip_dbg("LZS Format: %d ", zip_ops->format);
zip_ops           182 drivers/crypto/cavium/zip/zip_deflate.c 		zip_err("Unknown Format:%d\n", zip_ops->format);
zip_ops           189 drivers/crypto/cavium/zip/zip_deflate.c 	if (zip_ops->output_len < result_ptr->s.totalbyteswritten) {
zip_ops           192 drivers/crypto/cavium/zip/zip_deflate.c 			zip_ops->output_len, result_ptr->s.totalbyteswritten);
zip_ops           193 drivers/crypto/cavium/zip/zip_deflate.c 		zip_ops->output_len = 0;
zip_ops           196 drivers/crypto/cavium/zip/zip_deflate.c 		zip_ops->output_len = result_ptr->s.totalbyteswritten;
zip_ops            60 drivers/crypto/cavium/zip/zip_deflate.h int zip_deflate(struct zip_operation *zip_ops, struct zip_state *s,
zip_ops            52 drivers/crypto/cavium/zip/zip_inflate.c static int prepare_inflate_zcmd(struct zip_operation *zip_ops,
zip_ops            72 drivers/crypto/cavium/zip/zip_inflate.c 	if (zip_ops->begin_file == 0)
zip_ops            79 drivers/crypto/cavium/zip/zip_inflate.c 	zip_cmd->s.cc = zip_ops->ccode;
zip_ops            84 drivers/crypto/cavium/zip/zip_inflate.c 	zip_cmd->s.adlercrc32 = zip_ops->csum;
zip_ops            94 drivers/crypto/cavium/zip/zip_inflate.c 	zip_cmd->s.out_ptr_addr.s.addr  = __pa(zip_ops->output);
zip_ops            95 drivers/crypto/cavium/zip/zip_inflate.c 	zip_cmd->s.out_ptr_ctl.s.length = zip_ops->output_len;
zip_ops            98 drivers/crypto/cavium/zip/zip_inflate.c 	zip_cmd->s.totaloutputlength    = zip_ops->output_len;
zip_ops           104 drivers/crypto/cavium/zip/zip_inflate.c 	zip_cmd->s.inp_ptr_addr.s.addr  = __pa((u8 *)zip_ops->input);
zip_ops           105 drivers/crypto/cavium/zip/zip_inflate.c 	zip_cmd->s.inp_ptr_ctl.s.length = zip_ops->input_len;
zip_ops           128 drivers/crypto/cavium/zip/zip_inflate.c int zip_inflate(struct zip_operation *zip_ops, struct zip_state *s,
zip_ops           136 drivers/crypto/cavium/zip/zip_inflate.c 	prepare_inflate_zcmd(zip_ops, s, zip_cmd);
zip_ops           138 drivers/crypto/cavium/zip/zip_inflate.c 	atomic64_add(zip_ops->input_len, &zip_dev->stats.decomp_in_bytes);
zip_ops           152 drivers/crypto/cavium/zip/zip_inflate.c 	zip_ops->compcode = result_ptr->s.compcode;
zip_ops           153 drivers/crypto/cavium/zip/zip_inflate.c 	switch (zip_ops->compcode) {
zip_ops           167 drivers/crypto/cavium/zip/zip_inflate.c 		zip_dbg("Instruction failed. Code = %d\n", zip_ops->compcode);
zip_ops           175 drivers/crypto/cavium/zip/zip_inflate.c 	if ((zip_ops->ccode == 3) && (zip_ops->flush == 4) &&
zip_ops           176 drivers/crypto/cavium/zip/zip_inflate.c 	    (zip_ops->compcode != ZIP_CMD_DYNAMIC_STOP))
zip_ops           179 drivers/crypto/cavium/zip/zip_inflate.c 	zip_ops->csum = result_ptr->s.adler32;
zip_ops           184 drivers/crypto/cavium/zip/zip_inflate.c 	if (zip_ops->output_len < result_ptr->s.totalbyteswritten) {
zip_ops           186 drivers/crypto/cavium/zip/zip_inflate.c 			zip_ops->output_len, result_ptr->s.totalbyteswritten);
zip_ops           187 drivers/crypto/cavium/zip/zip_inflate.c 		zip_ops->output_len = 0;
zip_ops           189 drivers/crypto/cavium/zip/zip_inflate.c 		zip_ops->output_len = result_ptr->s.totalbyteswritten;
zip_ops           192 drivers/crypto/cavium/zip/zip_inflate.c 	zip_ops->bytes_read = result_ptr->s.totalbytesread;
zip_ops           193 drivers/crypto/cavium/zip/zip_inflate.c 	zip_ops->bits_processed = result_ptr->s.totalbitsprocessed;
zip_ops           194 drivers/crypto/cavium/zip/zip_inflate.c 	zip_ops->end_file = result_ptr->s.ef;
zip_ops           195 drivers/crypto/cavium/zip/zip_inflate.c 	if (zip_ops->end_file) {
zip_ops           196 drivers/crypto/cavium/zip/zip_inflate.c 		switch (zip_ops->format) {
zip_ops           198 drivers/crypto/cavium/zip/zip_inflate.c 			zip_dbg("RAW Format: %d ", zip_ops->format);
zip_ops           200 drivers/crypto/cavium/zip/zip_inflate.c 			zip_ops->csum = result_ptr->s.adler32;
zip_ops           204 drivers/crypto/cavium/zip/zip_inflate.c 			zip_dbg("ZLIB Format: %d ", zip_ops->format);
zip_ops           205 drivers/crypto/cavium/zip/zip_inflate.c 			zip_ops->csum = result_ptr->s.adler32;
zip_ops           209 drivers/crypto/cavium/zip/zip_inflate.c 			zip_dbg("GZIP Format: %d ", zip_ops->format);
zip_ops           210 drivers/crypto/cavium/zip/zip_inflate.c 			zip_ops->csum = result_ptr->s.crc32;
zip_ops           214 drivers/crypto/cavium/zip/zip_inflate.c 			zip_dbg("LZS Format: %d ", zip_ops->format);
zip_ops           218 drivers/crypto/cavium/zip/zip_inflate.c 			zip_err("Format error:%d\n", zip_ops->format);
zip_ops            60 drivers/crypto/cavium/zip/zip_inflate.h int zip_inflate(struct zip_operation *zip_ops, struct zip_state *s,