Searched refs:nx_sg (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/crypto/nx/ |
H 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,
|
H 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() 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 …]
|
H 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() 206 static long int trim_sg_list(struct nx_sg *sg, in trim_sg_list() 207 struct nx_sg *end, in trim_sg_list() 216 struct nx_sg *last = end - 1; in trim_sg_list() [all …]
|
H 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 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 …]
|
H 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()
|
H 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()
|
H A D | nx-aes-ccm.c | 161 struct nx_sg *nx_insg = nx_ctx->in_sg; in generate_pat() 162 struct nx_sg *nx_outsg = nx_ctx->out_sg; in generate_pat() 250 sizeof(struct nx_sg); in generate_pat() 252 sizeof(struct nx_sg); in generate_pat() 274 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in generate_pat() 297 sizeof(struct nx_sg); in generate_pat()
|