Home
last modified time | relevance | path

Searched refs:nx_sg (Results 1 – 7 of 7) sorted by relevance

/drivers/crypto/nx/
Dnx-aes-xcbc.c63 struct nx_sg *in_sg, *out_sg; in nx_xcbc_empty()
93 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_xcbc_empty()
94 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_empty()
121 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_xcbc_empty()
122 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_empty()
172 struct nx_sg *in_sg; in nx_xcbc_update()
173 struct nx_sg *out_sg; in nx_xcbc_update()
196 max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), in nx_xcbc_update()
210 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_update()
252 sizeof(struct nx_sg); in nx_xcbc_update()
[all …]
Dnx.h13 struct nx_sg { struct
20 #define NX_MAX_SG_ENTRIES (NX_PAGE_SIZE/(sizeof(struct nx_sg))) argument
126 struct nx_sg *in_sg; /* aligned pointer into kmem to an sg list */
127 struct nx_sg *out_sg; /* aligned pointer into kmem to an sg list */
158 struct nx_sg *nx_build_sg_list(struct nx_sg *, u8 *, unsigned int *, u32);
162 struct nx_sg *nx_walk_and_build(struct nx_sg *, unsigned int,
Dnx.c78 struct nx_sg *nx_build_sg_list(struct nx_sg *sg_head, in nx_build_sg_list()
84 struct nx_sg *sg; in nx_build_sg_list()
148 struct nx_sg *nx_walk_and_build(struct nx_sg *nx_dst, in nx_walk_and_build()
155 struct nx_sg *nx_sg = nx_dst; in nx_walk_and_build() local
174 while (len && (nx_sg - nx_dst) < sglen) { in nx_walk_and_build()
184 nx_sg = nx_build_sg_list(nx_sg, dst, &n, sglen - (nx_sg - nx_dst)); in nx_walk_and_build()
195 return nx_sg; in nx_walk_and_build()
205 static long int trim_sg_list(struct nx_sg *sg, in trim_sg_list()
206 struct nx_sg *end, in trim_sg_list()
215 struct nx_sg *last = end - 1; in trim_sg_list()
[all …]
Dnx-aes-gcm.c107 struct nx_sg *nx_sg = nx_ctx->in_sg; in nx_gca() local
122 max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), in nx_gca()
137 nx_sg = nx_walk_and_build(nx_ctx->in_sg, max_sg_len, in nx_gca()
145 nx_ctx->op_aead.inlen = (nx_ctx->in_sg - nx_sg) in nx_gca()
146 * sizeof(struct nx_sg); in nx_gca()
175 struct nx_sg *nx_sg; in gmac() local
186 max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), in gmac()
204 nx_sg = nx_walk_and_build(nx_ctx->in_sg, max_sg_len, in gmac()
212 nx_ctx->op.inlen = (nx_ctx->in_sg - nx_sg) in gmac()
213 * sizeof(struct nx_sg); in gmac()
[all …]
Dnx-sha256.c62 struct nx_sg *out_sg; in nx_sha256_update()
88 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_sha256_update()
95 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha256_update()
104 struct nx_sg *in_sg = nx_ctx->in_sg; in nx_sha256_update()
135 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha256_update()
181 struct nx_sg *in_sg, *out_sg; in nx_sha256_final()
190 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_sha256_final()
226 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha256_final()
227 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha256_final()
Dnx-sha512.c62 struct nx_sg *out_sg; in nx_sha512_update()
88 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_sha512_update()
95 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha512_update()
104 struct nx_sg *in_sg = nx_ctx->in_sg; in nx_sha512_update()
134 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha512_update()
184 struct nx_sg *in_sg, *out_sg; in nx_sha512_final()
194 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_sha512_final()
231 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha512_final()
232 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha512_final()
Dnx-aes-ccm.c164 struct nx_sg *nx_insg = nx_ctx->in_sg; in generate_pat()
165 struct nx_sg *nx_outsg = nx_ctx->out_sg; in generate_pat()
253 sizeof(struct nx_sg); in generate_pat()
255 sizeof(struct nx_sg); in generate_pat()
277 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in generate_pat()
300 sizeof(struct nx_sg); in generate_pat()