zip_dev 116 drivers/crypto/cavium/zip/zip_deflate.c struct zip_device *zip_dev) zip_dev 125 drivers/crypto/cavium/zip/zip_deflate.c atomic64_add(zip_ops->input_len, &zip_dev->stats.comp_in_bytes); zip_dev 127 drivers/crypto/cavium/zip/zip_deflate.c queue = zip_load_instr(zip_cmd, zip_dev); zip_dev 130 drivers/crypto/cavium/zip/zip_deflate.c atomic64_inc(&zip_dev->stats.comp_req_submit); zip_dev 136 drivers/crypto/cavium/zip/zip_deflate.c atomic64_inc(&zip_dev->stats.comp_req_complete); zip_dev 146 drivers/crypto/cavium/zip/zip_deflate.c zip_update_cmd_bufs(zip_dev, queue); zip_dev 186 drivers/crypto/cavium/zip/zip_deflate.c &zip_dev->stats.comp_out_bytes); zip_dev 61 drivers/crypto/cavium/zip/zip_deflate.h struct zip_device *zip_dev); zip_dev 57 drivers/crypto/cavium/zip/zip_device.c static inline u32 zip_cmd_queue_consumed(struct zip_device *zip_dev, int queue) zip_dev 59 drivers/crypto/cavium/zip/zip_device.c return ((zip_dev->iq[queue].sw_head - zip_dev->iq[queue].sw_tail) * zip_dev 78 drivers/crypto/cavium/zip/zip_device.c struct zip_device *zip_dev) zip_dev 98 drivers/crypto/cavium/zip/zip_device.c spin_lock(&zip_dev->iq[queue].lock); zip_dev 109 drivers/crypto/cavium/zip/zip_device.c zip_dbg("sw_head : %lx", zip_dev->iq[queue].sw_head); zip_dev 110 drivers/crypto/cavium/zip/zip_device.c zip_dbg("sw_tail : %lx", zip_dev->iq[queue].sw_tail); zip_dev 112 drivers/crypto/cavium/zip/zip_device.c consumed = zip_cmd_queue_consumed(zip_dev, queue); zip_dev 117 drivers/crypto/cavium/zip/zip_device.c memcpy((u8 *)zip_dev->iq[queue].sw_head, (u8 *)instr, zip_dev 119 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].sw_head += 16; /* 16 64_bit words = 128B */ zip_dev 122 drivers/crypto/cavium/zip/zip_device.c ncb_ptr = zip_dev->iq[queue].sw_head; zip_dev 125 drivers/crypto/cavium/zip/zip_device.c ncb_ptr, zip_dev->iq[queue].sw_head - 16); zip_dev 128 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].sw_head = zip_dev->iq[queue].sw_tail; zip_dev 130 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].free_flag = 1; zip_dev 134 drivers/crypto/cavium/zip/zip_device.c ncp.s.addr = __pa(zip_dev->iq[queue].sw_head); zip_dev 137 drivers/crypto/cavium/zip/zip_device.c *ncb_ptr, __pa(zip_dev->iq[queue].sw_head)); zip_dev 139 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].pend_cnt++; zip_dev 144 drivers/crypto/cavium/zip/zip_device.c memcpy((u8 *)zip_dev->iq[queue].sw_head, (u8 *)instr, zip_dev 146 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].sw_head += 16; /* 16 64_bit words = 128B */ zip_dev 148 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].pend_cnt++; zip_dev 151 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].sw_head, zip_dev->iq[queue].sw_tail, zip_dev 152 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].hw_tail); zip_dev 155 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].pend_cnt); zip_dev 161 drivers/crypto/cavium/zip/zip_device.c (zip_dev->reg_base + ZIP_QUEX_DOORBELL(queue))); zip_dev 164 drivers/crypto/cavium/zip/zip_device.c spin_unlock(&zip_dev->iq[queue].lock); zip_dev 175 drivers/crypto/cavium/zip/zip_device.c void zip_update_cmd_bufs(struct zip_device *zip_dev, u32 queue) zip_dev 178 drivers/crypto/cavium/zip/zip_device.c spin_lock(&zip_dev->iq[queue].lock); zip_dev 181 drivers/crypto/cavium/zip/zip_device.c if (zip_dev->iq[queue].free_flag == 1) { zip_dev 184 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].free_flag = 0; zip_dev 187 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].hw_tail = zip_dev->iq[queue].sw_head; zip_dev 190 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].hw_tail += 16; /* 16 64_bit words = 128B */ zip_dev 193 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].done_cnt++; zip_dev 194 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].pend_cnt--; zip_dev 197 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].sw_head, zip_dev->iq[queue].sw_tail, zip_dev 198 drivers/crypto/cavium/zip/zip_device.c zip_dev->iq[queue].hw_tail); zip_dev 199 drivers/crypto/cavium/zip/zip_device.c zip_dbg(" Got CC : pend_cnt : %d\n", zip_dev->iq[queue].pend_cnt); zip_dev 201 drivers/crypto/cavium/zip/zip_device.c spin_unlock(&zip_dev->iq[queue].lock); zip_dev 129 drivers/crypto/cavium/zip/zip_inflate.c struct zip_device *zip_dev) zip_dev 138 drivers/crypto/cavium/zip/zip_inflate.c atomic64_add(zip_ops->input_len, &zip_dev->stats.decomp_in_bytes); zip_dev 141 drivers/crypto/cavium/zip/zip_inflate.c queue = zip_load_instr(zip_cmd, zip_dev); zip_dev 144 drivers/crypto/cavium/zip/zip_inflate.c atomic64_inc(&zip_dev->stats.decomp_req_submit); zip_dev 150 drivers/crypto/cavium/zip/zip_inflate.c atomic64_inc(&zip_dev->stats.decomp_req_complete); zip_dev 168 drivers/crypto/cavium/zip/zip_inflate.c atomic64_inc(&zip_dev->stats.decomp_bad_reqs); zip_dev 169 drivers/crypto/cavium/zip/zip_inflate.c zip_update_cmd_bufs(zip_dev, queue); zip_dev 173 drivers/crypto/cavium/zip/zip_inflate.c zip_update_cmd_bufs(zip_dev, queue); zip_dev 182 drivers/crypto/cavium/zip/zip_inflate.c &zip_dev->stats.decomp_out_bytes); zip_dev 61 drivers/crypto/cavium/zip/zip_inflate.h struct zip_device *zip_dev); zip_dev 51 drivers/crypto/cavium/zip/zip_main.c static struct zip_device *zip_dev[MAX_ZIP_DEVICES]; zip_dev 78 drivers/crypto/cavium/zip/zip_main.c if (!zip_dev[idx]) zip_dev 89 drivers/crypto/cavium/zip/zip_main.c zip_dev[idx] = zip; zip_dev 103 drivers/crypto/cavium/zip/zip_main.c return zip_dev[node]; zip_dev 305 drivers/crypto/cavium/zip/zip_main.c zip_dev[zip->index] = NULL; zip_dev 339 drivers/crypto/cavium/zip/zip_main.c zip_dev[zip->index] = NULL; zip_dev 476 drivers/crypto/cavium/zip/zip_main.c if (zip_dev[index]) { zip_dev 477 drivers/crypto/cavium/zip/zip_main.c zip = zip_dev[index]; zip_dev 531 drivers/crypto/cavium/zip/zip_main.c if (zip_dev[index]) { zip_dev 532 drivers/crypto/cavium/zip/zip_main.c memset(&zip_dev[index]->stats, 0, zip_dev 567 drivers/crypto/cavium/zip/zip_main.c if (zip_dev[index]) { zip_dev 576 drivers/crypto/cavium/zip/zip_main.c val = zip_reg_read((zip_dev[index]->reg_base + zip_dev 117 drivers/crypto/cavium/zip/zip_main.h void zip_update_cmd_bufs(struct zip_device *zip_dev, u32 queue); zip_dev 118 drivers/crypto/cavium/zip/zip_main.h u32 zip_load_instr(union zip_inst_s *instr, struct zip_device *zip_dev); zip_dev 69 drivers/crypto/hisilicon/zip/zip_crypto.c struct hisi_zip *zip_dev; zip_dev 162 drivers/crypto/hisilicon/zip/zip_crypto.c hisi_zip_ctx->qp_ctx[i].zip_dev = hisi_zip;