Searched refs:nx_sg (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/crypto/nx/ |
A D | nx-aes-xcbc.c | 63 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() 252 sizeof(struct nx_sg); in nx_xcbc_update() 297 struct nx_sg *in_sg, *out_sg; in nx_xcbc_final() [all …]
|
A D | nx.h | 13 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,
|
A D | nx.c | 78 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() 207 struct nx_sg *end, in trim_sg_list() 216 struct nx_sg *last = end - 1; in trim_sg_list() 269 struct nx_sg *nx_insg = nx_ctx->in_sg; in nx_build_sg_lists() [all …]
|
A D | nx-aes-gcm.c | 107 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 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() 249 struct nx_sg *in_sg, *out_sg; in gcm_empty() [all …]
|
A D | nx-sha256.c | 67 struct nx_sg *out_sg; in nx_sha256_update() 93 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_sha256_update() 100 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha256_update() 109 struct nx_sg *in_sg = nx_ctx->in_sg; in nx_sha256_update() 140 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha256_update() 186 struct nx_sg *in_sg, *out_sg; in nx_sha256_final() 195 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_sha256_final() 231 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha256_final() 232 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha256_final()
|
A D | nx-sha512.c | 67 struct nx_sg *out_sg; in nx_sha512_update() 93 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_sha512_update() 100 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha512_update() 109 struct nx_sg *in_sg = nx_ctx->in_sg; in nx_sha512_update() 139 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha512_update() 189 struct nx_sg *in_sg, *out_sg; in nx_sha512_final() 199 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_sha512_final() 236 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha512_final() 237 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha512_final()
|
A D | nx-aes-ccm.c | 164 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()
|
Completed in 14 milliseconds