Home
last modified time | relevance | path

Searched full:zip (Results 1 – 25 of 208) sorted by relevance

123456789

/kernel/linux/linux-6.6/drivers/crypto/cavium/zip/
Dzip_main.c49 #define DRV_NAME "ThunderX-ZIP"
74 * Allocates new ZIP device structure
79 struct zip_device *zip = NULL; in zip_alloc_device() local
89 zip = devm_kzalloc(&pdev->dev, sizeof(*zip), GFP_KERNEL); in zip_alloc_device()
91 if (!zip) in zip_alloc_device()
94 zip_dev[idx] = zip; in zip_alloc_device()
95 zip->index = idx; in zip_alloc_device()
96 return zip; in zip_alloc_device()
100 * zip_get_device - Get ZIP device based on node id of cpu
103 * Return: Pointer to Zip device structure
[all …]
Dzip_mem.c52 * zip_cmd_qbuf_alloc - Allocates a cmd buffer for ZIP Instruction Queue
53 * @zip: Pointer to zip device structure
57 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()
73 * @zip: Pointer to zip device structure
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()
[all …]
Dcommon.h63 /* ZIP device definitions */
66 /* ZIP memory allocation/deallocation related definitions */
81 /* Max number of ZIP devices supported */
84 /* Configures the number of zip queues to be used */
112 * @compcode: Completion status of the ZIP invocation
159 pr_err("ZIP ERR: request timed out"); in zip_poll_result()
165 * by the ZIP coprocessor. in zip_poll_result()
173 #define zip_err(fmt, args...) pr_err("ZIP ERR:%s():%d: " \
192 #define zip_dbg(fmt, args...) pr_info("ZIP DBG: %s: %s() : %d: " \
197 #define zip_dbg(fmt, args...) pr_info("ZIP DBG: %s: %s() : %d: " \
[all …]
Dzip_mem.h51 * @zip: Pointer to zip device structure
54 void zip_cmd_qbuf_free(struct zip_device *zip, int q);
57 * zip_cmd_qbuf_alloc - Allocates a Chunk/cmd buffer for ZIP Inst(cmd) Queue
58 * @zip: Pointer to zip device structure
62 int zip_cmd_qbuf_alloc(struct zip_device *zip, int q);
Dzip_deflate.c52 /* Prepares the deflate zip command */
106 * @zip_ops: Pointer to zip operation structure
107 * @s: Pointer to the structure representing zip state
108 * @zip_dev: Pointer to zip device structure
110 * This function prepares the zip deflate command and submits it to the zip
122 /* Prepares zip command based on the input parameters */ in zip_deflate()
126 /* Loads zip command into command queues and rings door bell */ in zip_deflate()
141 zip_dbg("Zip instruction not yet completed"); in zip_deflate()
145 zip_dbg("Zip instruction completed successfully"); in zip_deflate()
155 zip_err("Zip instruction failed. Code:%d", zip_ops->compcode); in zip_deflate()
Dzip_main.h55 /* ZIP device BARs */
58 /* Maximum available zip queues */
71 /* ZIP Compression - Decompression stats */
84 /* ZIP Instruction Queue */
93 /* ZIP IQ lock */
97 /* ZIP Device */
103 /* Different ZIP Constants */
Dzip_inflate.c87 * HISTORYLENGTH must be 0x0 for any ZIP decompress operation. in prepare_inflate_zcmd()
119 * @zip_ops: Pointer to zip operation structure
120 * @s: Pointer to the structure representing zip state
121 * @zip_dev: Pointer to zip device structure
123 * This function prepares the zip inflate command and submits it to the zip
135 /* Prepare inflate zip command */ in zip_inflate()
140 /* Load inflate command to zip queue and ring the doorbell */ in zip_inflate()
155 zip_dbg("Zip Instruction not yet completed\n"); in zip_inflate()
159 zip_dbg("Zip Instruction completed successfully\n"); in zip_inflate()
Dzip_regs.h51 * Cavium ZIP.
56 /* ZIP invocation result completion status codes */
98 * enum zip_int_vec_e - ZIP MSI-X Vector Enumeration, enumerates the MSI-X
124 * union zip_zptr_addr_s - ZIP Generic Pointer Structure for ADDR.
143 * union zip_zptr_ctl_s - ZIP Generic Pointer Structure for CTL.
169 * union zip_inst_s - ZIP Instruction Structure.
170 * Each ZIP instruction has 16 words (they are called IWORD0 to IWORD15 within
268 * union zip_nptr_s - ZIP Instruction Next-Chunk-Buffer Pointer (NPTR)
271 * ZIP_NPTR structure is used to chain all the zip instruction buffers
272 * together. ZIP instruction buffers are managed (allocated and released) by
[all …]
Dzip_inflate.h51 * @zip_ops: Pointer to zip operation structure
52 * @s: Pointer to the structure representing zip state
53 * @zip_dev: Pointer to the structure representing zip device
55 * This function prepares the zip inflate command and submits it to the zip
Dzip_deflate.h51 * @zip_ops: Pointer to zip operation structure
52 * @s: Pointer to the structure representing zip state
53 * @zip_dev: Pointer to the structure representing zip device
55 * This function prepares the zip deflate command and submits it to the zip
/kernel/linux/linux-5.10/drivers/crypto/cavium/zip/
Dzip_main.c49 #define DRV_NAME "ThunderX-ZIP"
69 * Allocates new ZIP device structure
74 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()
95 * zip_get_device - Get ZIP device based on node id of cpu
98 * Return: Pointer to Zip device structure
[all …]
Dzip_mem.c52 * zip_cmd_qbuf_alloc - Allocates a cmd buffer for ZIP Instruction Queue
53 * @zip: Pointer to zip device structure
57 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()
73 * @zip: Pointer to zip device structure
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()
[all …]
Dcommon.h64 /* ZIP device definitions */
67 /* ZIP memory allocation/deallocation related definitions */
82 /* Max number of ZIP devices supported */
85 /* Configures the number of zip queues to be used */
113 * @compcode: Completion status of the ZIP invocation
160 pr_err("ZIP ERR: request timed out"); in zip_poll_result()
166 * by the ZIP coprocessor. in zip_poll_result()
174 #define zip_err(fmt, args...) pr_err("ZIP ERR:%s():%d: " \
193 #define zip_dbg(fmt, args...) pr_info("ZIP DBG: %s: %s() : %d: " \
198 #define zip_dbg(fmt, args...) pr_info("ZIP DBG: %s: %s() : %d: " \
[all …]
Dzip_mem.h51 * @zip: Pointer to zip device structure
54 void zip_cmd_qbuf_free(struct zip_device *zip, int q);
57 * zip_cmd_qbuf_alloc - Allocates a Chunk/cmd buffer for ZIP Inst(cmd) Queue
58 * @zip: Pointer to zip device structure
62 int zip_cmd_qbuf_alloc(struct zip_device *zip, int q);
Dzip_deflate.c52 /* Prepares the deflate zip command */
106 * @zip_ops: Pointer to zip operation structure
107 * @s: Pointer to the structure representing zip state
108 * @zip_dev: Pointer to zip device structure
110 * This function prepares the zip deflate command and submits it to the zip
122 /* Prepares zip command based on the input parameters */ in zip_deflate()
126 /* Loads zip command into command queues and rings door bell */ in zip_deflate()
141 zip_dbg("Zip instruction not yet completed"); in zip_deflate()
145 zip_dbg("Zip instruction completed successfully"); in zip_deflate()
155 zip_err("Zip instruction failed. Code:%d", zip_ops->compcode); in zip_deflate()
Dzip_main.h55 /* ZIP device BARs */
58 /* Maximum available zip queues */
71 /* ZIP Compression - Decompression stats */
84 /* ZIP Instruction Queue */
93 /* ZIP IQ lock */
97 /* ZIP Device */
103 /* Different ZIP Constants */
Dzip_inflate.c87 * HISTORYLENGTH must be 0x0 for any ZIP decompress operation. in prepare_inflate_zcmd()
119 * @zip_ops: Pointer to zip operation structure
120 * @s: Pointer to the structure representing zip state
121 * @zip_dev: Pointer to zip device structure
123 * This function prepares the zip inflate command and submits it to the zip
135 /* Prepare inflate zip command */ in zip_inflate()
140 /* Load inflate command to zip queue and ring the doorbell */ in zip_inflate()
155 zip_dbg("Zip Instruction not yet completed\n"); in zip_inflate()
159 zip_dbg("Zip Instruction completed successfully\n"); in zip_inflate()
Dzip_regs.h51 * Cavium ZIP.
56 /* ZIP invocation result completion status codes */
98 * enum zip_int_vec_e - ZIP MSI-X Vector Enumeration, enumerates the MSI-X
124 * union zip_zptr_addr_s - ZIP Generic Pointer Structure for ADDR.
143 * union zip_zptr_ctl_s - ZIP Generic Pointer Structure for CTL.
169 * union zip_inst_s - ZIP Instruction Structure.
170 * Each ZIP instruction has 16 words (they are called IWORD0 to IWORD15 within
268 * union zip_nptr_s - ZIP Instruction Next-Chunk-Buffer Pointer (NPTR)
271 * ZIP_NPTR structure is used to chain all the zip instruction buffers
272 * together. ZIP instruction buffers are managed (allocated and released) by
[all …]
Dzip_inflate.h51 * @zip_ops: Pointer to zip operation structure
52 * @s: Pointer to the structure representing zip state
53 * @zip_dev: Pointer to the structure representing zip device
55 * This function prepares the zip inflate command and submits it to the zip
Dzip_deflate.h51 * @zip_ops: Pointer to zip operation structure
52 * @s: Pointer to the structure representing zip state
53 * @zip_dev: Pointer to the structure representing zip device
55 * This function prepares the zip deflate command and submits it to the zip
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()
/kernel/linux/linux-6.6/tools/lib/bpf/
Dzip.h8 /* Represents an open zip archive.
9 * Only basic ZIP files are supported, in particular the following are not
13 * - multi-part ZIP files
19 * file in a zip archive.
38 /* Open a zip archive. Returns NULL in case of an error. */
41 /* Close a zip archive and release resources. */
44 /* Look up an entry corresponding to a file in given zip archive. */
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Ddebugfs-hisi-zip25 Description: One ZIP controller has one PF and multiple VFs, each function
33 ZIP driver supports to configure each function's QoS, the driver
67 Available for both PF and VF, and take no other effect on ZIP.
73 Available for both PF and VF, and take no other effect on ZIP.
79 Available for both PF and VF, and take no other effect on ZIP.
85 Available for both PF and VF, and take no other effect on ZIP.
91 Available for both PF and VF, and take no other effect on ZIP.
98 Available for both PF and VF, and take no other effect on ZIP.
110 Description: ZIP debug registers(regs) read hardware register value. This
118 Available for both PF and VF, and take no other effect on ZIP.
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Ddebugfs-hisi-zip25 Description: One ZIP controller has one PF and multiple VFs, each function
57 Available for both PF and VF, and take no other effect on ZIP.
63 Available for both PF and VF, and take no other effect on ZIP.
69 Available for both PF and VF, and take no other effect on ZIP.
75 Available for both PF and VF, and take no other effect on ZIP.
81 Available for both PF and VF, and take no other effect on ZIP.
88 Available for both PF and VF, and take no other effect on ZIP.
94 Available for both PF and VF, and take no other effect on ZIP.
100 Available for both PF and VF, and take no other effect on ZIP.
107 Available for both PF and VF, and take no other effect on ZIP.
[all …]
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/zip/
Dzip_main.c15 #include "zip.h"
157 * One ZIP controller has one PF and multiple VFs, some global configurations
313 /* clear ZIP hw error source if having */ in hisi_zip_hw_error_enable()
322 /* enable ZIP hw error interrupts */ in hisi_zip_hw_error_enable()
325 /* enable ZIP block master OOO when m-bit error occur */ in hisi_zip_hw_error_enable()
335 /* disable ZIP hw error interrupts */ in hisi_zip_hw_error_disable()
338 /* disable ZIP block master OOO when m-bit error occur */ in hisi_zip_hw_error_disable()
548 struct hisi_zip *zip = container_of(qm, struct hisi_zip, qm); in hisi_zip_dfx_debug_init() local
549 struct hisi_zip_dfx *dfx = &zip->dfx; in hisi_zip_dfx_debug_init()
565 struct hisi_zip *zip = container_of(qm, struct hisi_zip, qm); in hisi_zip_ctrl_debug_init() local
[all …]

123456789