Home
last modified time | relevance | path

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

/drivers/crypto/cavium/zip/
Dzip_main.c74 struct zip_device *zip = NULL; in zip_alloc_device() local
84 zip = devm_kzalloc(&pdev->dev, sizeof(*zip), GFP_KERNEL); in zip_alloc_device()
86 if (!zip) in zip_alloc_device()
89 zip_dev[idx] = zip; in zip_alloc_device()
90 zip->index = idx; in zip_alloc_device()
91 return zip; in zip_alloc_device()
120 static int zip_init_hw(struct zip_device *zip) in zip_init_hw() argument
134 cmd_ctl.u_reg64 = zip_reg_read(zip->reg_base + ZIP_CMD_CTL); in zip_init_hw()
136 zip_reg_write(cmd_ctl.u_reg64 & 0xFF, (zip->reg_base + ZIP_CMD_CTL)); in zip_init_hw()
139 zip_reg_read(zip->reg_base + ZIP_CMD_CTL)); in zip_init_hw()
[all …]
Dzip_mem.c57 int zip_cmd_qbuf_alloc(struct zip_device *zip, int q) in zip_cmd_qbuf_alloc() argument
59 zip->iq[q].sw_head = (u64 *)__get_free_pages((GFP_KERNEL | GFP_DMA), in zip_cmd_qbuf_alloc()
62 if (!zip->iq[q].sw_head) in zip_cmd_qbuf_alloc()
65 memset(zip->iq[q].sw_head, 0, ZIP_CMD_QBUF_SIZE); in zip_cmd_qbuf_alloc()
67 zip_dbg("cmd_qbuf_alloc[%d] Success : %p\n", q, zip->iq[q].sw_head); in zip_cmd_qbuf_alloc()
76 void zip_cmd_qbuf_free(struct zip_device *zip, int q) in zip_cmd_qbuf_free() argument
78 zip_dbg("Freeing cmd_qbuf 0x%lx\n", zip->iq[q].sw_tail); in zip_cmd_qbuf_free()
80 free_pages((u64)zip->iq[q].sw_tail, get_order(ZIP_CMD_QBUF_SIZE)); in zip_cmd_qbuf_free()
Dzip_crypto.c128 struct zip_device *zip = NULL; in zip_compress() local
134 zip = zip_get_device(zip_get_node_id()); in zip_compress()
135 if (!zip) in zip_compress()
148 ret = zip_deflate(zip_ops, zip_state, zip); in zip_compress()
164 struct zip_device *zip = NULL; in zip_decompress() local
170 zip = zip_get_device(zip_get_node_id()); in zip_decompress()
171 if (!zip) in zip_decompress()
188 ret = zip_inflate(zip_ops, zip_state, zip); in zip_decompress()
Dzip_mem.h54 void zip_cmd_qbuf_free(struct zip_device *zip, int q);
62 int zip_cmd_qbuf_alloc(struct zip_device *zip, int q);
/drivers/crypto/hisilicon/zip/
Dzip_main.c624 struct hisi_zip *zip = container_of(qm, struct hisi_zip, qm); in hisi_zip_dfx_debug_init() local
625 struct hisi_zip_dfx *dfx = &zip->dfx; in hisi_zip_dfx_debug_init()
641 struct hisi_zip *zip = container_of(qm, struct hisi_zip, qm); in hisi_zip_ctrl_debug_init() local
645 spin_lock_init(&zip->ctrl->files[i].lock); in hisi_zip_ctrl_debug_init()
646 zip->ctrl->files[i].ctrl = zip->ctrl; in hisi_zip_ctrl_debug_init()
647 zip->ctrl->files[i].index = i; in hisi_zip_ctrl_debug_init()
651 zip->ctrl->files + i, in hisi_zip_ctrl_debug_init()
/drivers/crypto/cavium/
DMakefile5 obj-$(CONFIG_CRYPTO_DEV_CAVIUM_ZIP) += zip/
/drivers/crypto/hisilicon/
DMakefile7 obj-$(CONFIG_CRYPTO_DEV_HISI_ZIP) += zip/
/drivers/staging/octeon/
Docteon-stubs.h1030 uint64_t zip:1; member
1065 uint64_t zip:1; member
1100 uint64_t zip:1; member
1131 uint64_t zip:1; member