Home
last modified time | relevance | path

Searched refs:zip_dev (Results 1 – 8 of 8) sorted by relevance

/drivers/crypto/cavium/zip/
Dzip_device.c57 static inline u32 zip_cmd_queue_consumed(struct zip_device *zip_dev, int queue) in zip_cmd_queue_consumed() argument
59 return ((zip_dev->iq[queue].sw_head - zip_dev->iq[queue].sw_tail) * in zip_cmd_queue_consumed()
78 struct zip_device *zip_dev) in zip_load_instr() argument
98 spin_lock(&zip_dev->iq[queue].lock); in zip_load_instr()
109 zip_dbg("sw_head : %lx", zip_dev->iq[queue].sw_head); in zip_load_instr()
110 zip_dbg("sw_tail : %lx", zip_dev->iq[queue].sw_tail); in zip_load_instr()
112 consumed = zip_cmd_queue_consumed(zip_dev, queue); in zip_load_instr()
117 memcpy((u8 *)zip_dev->iq[queue].sw_head, (u8 *)instr, in zip_load_instr()
119 zip_dev->iq[queue].sw_head += 16; /* 16 64_bit words = 128B */ in zip_load_instr()
122 ncb_ptr = zip_dev->iq[queue].sw_head; in zip_load_instr()
[all …]
Dzip_inflate.c129 struct zip_device *zip_dev) in zip_inflate() argument
138 atomic64_add(zip_ops->input_len, &zip_dev->stats.decomp_in_bytes); in zip_inflate()
141 queue = zip_load_instr(zip_cmd, zip_dev); in zip_inflate()
144 atomic64_inc(&zip_dev->stats.decomp_req_submit); in zip_inflate()
150 atomic64_inc(&zip_dev->stats.decomp_req_complete); in zip_inflate()
168 atomic64_inc(&zip_dev->stats.decomp_bad_reqs); in zip_inflate()
169 zip_update_cmd_bufs(zip_dev, queue); in zip_inflate()
173 zip_update_cmd_bufs(zip_dev, queue); in zip_inflate()
182 &zip_dev->stats.decomp_out_bytes); in zip_inflate()
Dzip_deflate.c116 struct zip_device *zip_dev) in zip_deflate() argument
125 atomic64_add(zip_ops->input_len, &zip_dev->stats.comp_in_bytes); in zip_deflate()
127 queue = zip_load_instr(zip_cmd, zip_dev); in zip_deflate()
130 atomic64_inc(&zip_dev->stats.comp_req_submit); in zip_deflate()
136 atomic64_inc(&zip_dev->stats.comp_req_complete); in zip_deflate()
146 zip_update_cmd_bufs(zip_dev, queue); in zip_deflate()
186 &zip_dev->stats.comp_out_bytes); in zip_deflate()
Dzip_main.c51 static struct zip_device *zip_dev[MAX_ZIP_DEVICES]; variable
78 if (!zip_dev[idx]) in zip_alloc_device()
89 zip_dev[idx] = zip; in zip_alloc_device()
103 return zip_dev[node]; in zip_get_device()
305 zip_dev[zip->index] = NULL; in zip_probe()
339 zip_dev[zip->index] = NULL; in zip_remove()
476 if (zip_dev[index]) { in zip_stats_show()
477 zip = zip_dev[index]; in zip_stats_show()
531 if (zip_dev[index]) { in zip_clear_show()
532 memset(&zip_dev[index]->stats, 0, in zip_clear_show()
[all …]
Dzip_main.h117 void zip_update_cmd_bufs(struct zip_device *zip_dev, u32 queue);
118 u32 zip_load_instr(union zip_inst_s *instr, struct zip_device *zip_dev);
Dzip_deflate.h61 struct zip_device *zip_dev);
Dzip_inflate.h61 struct zip_device *zip_dev);
/drivers/crypto/hisilicon/zip/
Dzip_crypto.c90 struct hisi_zip *zip_dev; member
206 hisi_zip_ctx->qp_ctx[i].zip_dev = hisi_zip; in hisi_zip_ctx_init()
354 struct hisi_zip_dfx *dfx = &qp_ctx->zip_dev->dfx; in hisi_zip_acomp_cb()
529 struct hisi_zip_dfx *dfx = &qp_ctx->zip_dev->dfx; in hisi_zip_do_work()