/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-hash.c | 25 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_crainit() local 30 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash); in sun8i_ce_hash_crainit() 31 op->ce = algt->ce; in sun8i_ce_hash_crainit() 41 dev_err(algt->ce->dev, "Fallback driver could no be loaded\n"); in sun8i_ce_hash_crainit() 45 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ce_hash_crainit() 46 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ce_hash_crainit() 118 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_final() local 127 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash); in sun8i_ce_hash_final() 128 algt->stat_fb++; in sun8i_ce_hash_final() 156 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_finup() local 181 struct sun8i_ce_alg_template *algt; sun8i_ce_hash_digest_fb() local 222 struct sun8i_ce_alg_template *algt; sun8i_ce_hash_digest() local 256 struct sun8i_ce_alg_template *algt; sun8i_ce_hash_run() local [all...] |
H A D | sun8i-ce-prng.c | 62 struct sun8i_ce_alg_template *algt; in sun8i_ce_prng_generate() local 73 algt = container_of(alg, struct sun8i_ce_alg_template, alg.rng); in sun8i_ce_prng_generate() 74 ce = algt->ce; in sun8i_ce_prng_generate() 95 algt->stat_req++; in sun8i_ce_prng_generate() 96 algt->stat_bytes += todo; in sun8i_ce_prng_generate()
|
H A D | sun8i-ce-cipher.c | 61 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_fallback() local 63 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_fallback() 64 algt->stat_fb++; in sun8i_ce_cipher_fallback() 87 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_prepare() local 98 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_prepare() 107 algt->stat_req++; in sun8i_ce_cipher_prepare() 118 common = ce->variant->alg_cipher[algt->ce_algo_id]; in sun8i_ce_cipher_prepare() 127 sym = ce->variant->op_mode[algt->ce_blockmode]; in sun8i_ce_cipher_prepare() 377 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_init() local 385 algt in sun8i_ce_cipher_init() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-hash.c | 30 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_init_tfm() local 33 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash.base); in sun8i_ce_hash_init_tfm() 34 op->ce = algt->ce; in sun8i_ce_hash_init_tfm() 40 dev_err(algt->ce->dev, "Fallback driver could no be loaded\n"); in sun8i_ce_hash_init_tfm() 51 memcpy(algt->fbname, crypto_ahash_driver_name(op->fallback_tfm), in sun8i_ce_hash_init_tfm() 122 struct sun8i_ce_alg_template *algt __maybe_unused; in sun8i_ce_hash_final() 125 algt = container_of(alg, struct sun8i_ce_alg_template, in sun8i_ce_hash_final() 128 algt->stat_fb++; in sun8i_ce_hash_final() 165 struct sun8i_ce_alg_template *algt __maybe_unused; in sun8i_ce_hash_finup() 168 algt in sun8i_ce_hash_finup() 210 struct sun8i_ce_alg_template *algt; sun8i_ce_hash_need_fallback() local 244 struct sun8i_ce_alg_template *algt; sun8i_ce_hash_digest() local 336 struct sun8i_ce_alg_template *algt; sun8i_ce_hash_run() local [all...] |
H A D | sun8i-ce-cipher.c | 29 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_need_fallback() local 32 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher.base); in sun8i_ce_cipher_need_fallback() 36 algt->stat_fb_maxsg++; in sun8i_ce_cipher_need_fallback() 41 algt->stat_fb_leniv++; in sun8i_ce_cipher_need_fallback() 46 algt->stat_fb_len0++; in sun8i_ce_cipher_need_fallback() 51 algt->stat_fb_mod16++; in sun8i_ce_cipher_need_fallback() 59 algt->stat_fb_srcali++; in sun8i_ce_cipher_need_fallback() 64 algt->stat_fb_srclen++; in sun8i_ce_cipher_need_fallback() 75 algt->stat_fb_dstali++; in sun8i_ce_cipher_need_fallback() 80 algt in sun8i_ce_cipher_need_fallback() 128 struct sun8i_ce_alg_template *algt; sun8i_ce_cipher_prepare() local 416 struct sun8i_ce_alg_template *algt; sun8i_ce_cipher_init() local [all...] |
H A D | sun8i-ce-prng.c | 60 struct sun8i_ce_alg_template *algt; in sun8i_ce_prng_generate() local 71 algt = container_of(alg, struct sun8i_ce_alg_template, alg.rng); in sun8i_ce_prng_generate() 72 ce = algt->ce; in sun8i_ce_prng_generate() 93 algt->stat_req++; in sun8i_ce_prng_generate() 94 algt->stat_bytes += todo; in sun8i_ce_prng_generate()
|
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-prng.c | 7 struct sun4i_ss_alg_template *algt; in sun4i_ss_prng_seed() local 10 algt = container_of(alg, struct sun4i_ss_alg_template, alg.rng); in sun4i_ss_prng_seed() 11 memcpy(algt->ss->seed, seed, slen); in sun4i_ss_prng_seed() 19 struct sun4i_ss_alg_template *algt; in sun4i_ss_prng_generate() local 29 algt = container_of(alg, struct sun4i_ss_alg_template, alg.rng); in sun4i_ss_prng_generate() 30 ss = algt->ss; in sun4i_ss_prng_generate() 37 algt->stat_req++; in sun4i_ss_prng_generate() 38 algt->stat_bytes += todo; in sun4i_ss_prng_generate()
|
H A D | sun4i-ss-cipher.c | 39 struct sun4i_ss_alg_template *algt; in sun4i_ss_opti_poll() local 55 algt = container_of(alg, struct sun4i_ss_alg_template, alg.crypto); in sun4i_ss_opti_poll() 56 algt->stat_opti++; in sun4i_ss_opti_poll() 57 algt->stat_bytes += areq->cryptlen; in sun4i_ss_opti_poll() 155 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_poll_fallback() local 158 algt = container_of(alg, struct sun4i_ss_alg_template, alg.crypto); in sun4i_ss_cipher_poll_fallback() 159 algt->stat_fb++; in sun4i_ss_cipher_poll_fallback() 187 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_poll() local 217 algt = container_of(alg, struct sun4i_ss_alg_template, alg.crypto); in sun4i_ss_cipher_poll() 218 if (areq->cryptlen % algt in sun4i_ss_cipher_poll() 537 struct sun4i_ss_alg_template *algt; sun4i_ss_cipher_init() local [all...] |
H A D | sun4i-ss-hash.c | 22 struct sun4i_ss_alg_template *algt; in sun4i_hash_crainit() local 27 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash_crainit() 28 op->ss = algt->ss; in sun4i_hash_crainit() 52 struct sun4i_ss_alg_template *algt; in sun4i_hash_init() local 56 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash_init() 57 op->mode = algt->mode; in sun4i_hash_init() 197 struct sun4i_ss_alg_template *algt; in sun4i_hash() local 404 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash() 405 algt->stat_req++; in sun4i_hash()
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-hash.c | 25 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_crainit() local 30 algt = container_of(alg, struct sun8i_ss_alg_template, alg.hash); in sun8i_ss_hash_crainit() 31 op->ss = algt->ss; in sun8i_ss_hash_crainit() 41 dev_err(algt->ss->dev, "Fallback driver could no be loaded\n"); in sun8i_ss_hash_crainit() 45 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ss_hash_crainit() 46 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ss_hash_crainit() 118 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_final() local 127 algt = container_of(alg, struct sun8i_ss_alg_template, alg.hash); in sun8i_ss_hash_final() 128 algt->stat_fb++; in sun8i_ss_hash_final() 156 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_finup() local 181 struct sun8i_ss_alg_template *algt; sun8i_ss_hash_digest_fb() local 287 struct sun8i_ss_alg_template *algt; sun8i_ss_hash_digest() local 324 struct sun8i_ss_alg_template *algt; sun8i_ss_hash_run() local [all...] |
H A D | sun8i-ss-prng.c | 62 struct sun8i_ss_alg_template *algt; in sun8i_ss_prng_generate() local 71 algt = container_of(alg, struct sun8i_ss_alg_template, alg.rng); in sun8i_ss_prng_generate() 72 ss = algt->ss; in sun8i_ss_prng_generate() 93 algt->stat_req++; in sun8i_ss_prng_generate() 94 algt->stat_bytes += todo; in sun8i_ss_prng_generate()
|
H A D | sun8i-ss-cipher.c | 79 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher_fallback() local 81 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher_fallback() 82 algt->stat_fb++; in sun8i_ss_cipher_fallback() 166 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher() local 175 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher() 184 algt->stat_req++; in sun8i_ss_cipher() 187 rctx->op_mode = ss->variant->op_mode[algt->ss_blockmode]; in sun8i_ss_cipher() 188 rctx->method = ss->variant->alg_cipher[algt->ss_algo_id]; in sun8i_ss_cipher() 367 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher_init() local 375 algt in sun8i_ss_cipher_init() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-hash.c | 116 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_init_tfm() local 119 algt = container_of(alg, struct sun8i_ss_alg_template, alg.hash.base); in sun8i_ss_hash_init_tfm() 120 op->ss = algt->ss; in sun8i_ss_hash_init_tfm() 126 dev_err(algt->ss->dev, "Fallback driver could no be loaded\n"); in sun8i_ss_hash_init_tfm() 137 memcpy(algt->fbname, crypto_ahash_driver_name(op->fallback_tfm), in sun8i_ss_hash_init_tfm() 212 struct sun8i_ss_alg_template *algt __maybe_unused; in sun8i_ss_hash_final() 214 algt = container_of(alg, struct sun8i_ss_alg_template, in sun8i_ss_hash_final() 218 algt->stat_fb++; in sun8i_ss_hash_final() 256 struct sun8i_ss_alg_template *algt __maybe_unused; in sun8i_ss_hash_finup() 258 algt in sun8i_ss_hash_finup() 361 struct sun8i_ss_alg_template *algt; sun8i_ss_hash_need_fallback() local 411 struct sun8i_ss_alg_template *algt; sun8i_ss_hash_digest() local 497 struct sun8i_ss_alg_template *algt; sun8i_ss_hash_run() local [all...] |
H A D | sun8i-ss-cipher.c | 27 struct sun8i_ss_alg_template *algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher.base); in sun8i_ss_need_fallback() local 34 algt->stat_fb_len++; in sun8i_ss_need_fallback() 40 algt->stat_fb_sgnum++; in sun8i_ss_need_fallback() 49 algt->stat_fb_sglen++; in sun8i_ss_need_fallback() 53 algt->stat_fb_align++; in sun8i_ss_need_fallback() 64 algt->stat_fb_sglen++; in sun8i_ss_need_fallback() 68 algt->stat_fb_align++; in sun8i_ss_need_fallback() 98 struct sun8i_ss_alg_template *algt __maybe_unused; in sun8i_ss_cipher_fallback() 100 algt = container_of(alg, struct sun8i_ss_alg_template, in sun8i_ss_cipher_fallback() 104 algt in sun8i_ss_cipher_fallback() 190 struct sun8i_ss_alg_template *algt; sun8i_ss_cipher() local 390 struct sun8i_ss_alg_template *algt; sun8i_ss_cipher_init() local [all...] |
H A D | sun8i-ss-prng.c | 62 struct sun8i_ss_alg_template *algt; in sun8i_ss_prng_generate() local 72 algt = container_of(alg, struct sun8i_ss_alg_template, alg.rng); in sun8i_ss_prng_generate() 73 ss = algt->ss; in sun8i_ss_prng_generate() 98 algt->stat_req++; in sun8i_ss_prng_generate() 99 algt->stat_bytes += todo; in sun8i_ss_prng_generate()
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-prng.c | 6 struct sun4i_ss_alg_template *algt; in sun4i_ss_prng_seed() local 9 algt = container_of(alg, struct sun4i_ss_alg_template, alg.rng); in sun4i_ss_prng_seed() 10 memcpy(algt->ss->seed, seed, slen); in sun4i_ss_prng_seed() 18 struct sun4i_ss_alg_template *algt; in sun4i_ss_prng_generate() local 28 algt = container_of(alg, struct sun4i_ss_alg_template, alg.rng); in sun4i_ss_prng_generate() 29 ss = algt->ss; in sun4i_ss_prng_generate()
|
/kernel/linux/linux-5.10/drivers/crypto/amlogic/ |
H A D | amlogic-gxl-cipher.c | 66 struct meson_alg_template *algt; in meson_cipher_do_fallback() local 68 algt = container_of(alg, struct meson_alg_template, alg.skcipher); in meson_cipher_do_fallback() 69 algt->stat_fb++; in meson_cipher_do_fallback() 91 struct meson_alg_template *algt; in meson_cipher() local 104 algt = container_of(alg, struct meson_alg_template, alg.skcipher); in meson_cipher() 113 algt->stat_req++; in meson_cipher() 213 v = (op->keymode << 20) | DESC_OWN | todo | (algt->blockmode << 26); in meson_cipher() 314 struct meson_alg_template *algt; in meson_cipher_init() local 321 algt = container_of(alg, struct meson_alg_template, alg.skcipher); in meson_cipher_init() 322 op->mc = algt in meson_cipher_init() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/amlogic/ |
H A D | amlogic-gxl-cipher.c | 66 struct meson_alg_template *algt; in meson_cipher_do_fallback() local 68 algt = container_of(alg, struct meson_alg_template, alg.skcipher.base); in meson_cipher_do_fallback() 69 algt->stat_fb++; in meson_cipher_do_fallback() 91 struct meson_alg_template *algt; in meson_cipher() local 104 algt = container_of(alg, struct meson_alg_template, alg.skcipher.base); in meson_cipher() 113 algt->stat_req++; in meson_cipher() 213 v = (op->keymode << 20) | DESC_OWN | todo | (algt->blockmode << 26); in meson_cipher() 313 struct meson_alg_template *algt; in meson_cipher_init() local 320 algt = container_of(alg, struct meson_alg_template, alg.skcipher.base); in meson_cipher_init() 321 op->mc = algt in meson_cipher_init() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/gemini/ |
H A D | sl3516-ce-cipher.c | 109 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher_fallback() local 112 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher.base); in sl3516_ce_cipher_fallback() 113 algt->stat_fb++; in sl3516_ce_cipher_fallback() 134 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher() local 143 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher.base); in sl3516_ce_cipher() 151 algt->stat_req++; in sl3516_ce_cipher() 224 switch (algt->mode) { in sl3516_ce_cipher() 317 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher_init() local 325 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher.base); in sl3516_ce_cipher_init() 326 op->ce = algt in sl3516_ce_cipher_init() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_skcipher.c | 27 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); in rk_cipher_need_fallback() local 40 algt->stat_fb_align++; in rk_cipher_need_fallback() 44 algt->stat_fb_align++; in rk_cipher_need_fallback() 49 algt->stat_fb_len++; in rk_cipher_need_fallback() 54 algt->stat_fb_len++; in rk_cipher_need_fallback() 58 algt->stat_fb_sgdiff++; in rk_cipher_need_fallback() 74 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); in rk_cipher_fallback() local 77 algt->stat_fb++; in rk_cipher_fallback() 314 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); in rk_cipher_run() local 321 algt in rk_cipher_run() 439 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); rk_cipher_tfm_init() local [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | pcrypt.c | 237 struct crypto_attr_type *algt) in pcrypt_create_aead() 242 u32 mask = crypto_algt_inherited_mask(algt); in pcrypt_create_aead() 297 struct crypto_attr_type *algt; in pcrypt_create() local 299 algt = crypto_get_attr_type(tb); in pcrypt_create() 300 if (IS_ERR(algt)) in pcrypt_create() 301 return PTR_ERR(algt); in pcrypt_create() 303 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create() 305 return pcrypt_create_aead(tmpl, tb, algt); in pcrypt_create() 236 pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, struct crypto_attr_type *algt) pcrypt_create_aead() argument
|
H A D | cryptd.c | 194 static void cryptd_type_and_mask(struct crypto_attr_type *algt, in cryptd_type_and_mask() argument 201 *type = algt->type & CRYPTO_ALG_INTERNAL; in cryptd_type_and_mask() 202 *mask = algt->mask & CRYPTO_ALG_INTERNAL; in cryptd_type_and_mask() 207 *mask |= crypto_algt_inherited_mask(algt); in cryptd_type_and_mask() 371 struct crypto_attr_type *algt, in cryptd_create_skcipher() 381 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_skcipher() 637 struct crypto_attr_type *algt, in cryptd_create_hash() 647 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_hash() 824 struct crypto_attr_type *algt, in cryptd_create_aead() 834 cryptd_type_and_mask(algt, in cryptd_create_aead() 369 cryptd_create_skcipher(struct crypto_template *tmpl, struct rtattr **tb, struct crypto_attr_type *algt, struct cryptd_queue *queue) cryptd_create_skcipher() argument 636 cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, struct crypto_attr_type *algt, struct cryptd_queue *queue) cryptd_create_hash() argument 822 cryptd_create_aead(struct crypto_template *tmpl, struct rtattr **tb, struct crypto_attr_type *algt, struct cryptd_queue *queue) cryptd_create_aead() argument 881 struct crypto_attr_type *algt; cryptd_create() local [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | pcrypt.c | 237 struct crypto_attr_type *algt) in pcrypt_create_aead() 242 u32 mask = crypto_algt_inherited_mask(algt); in pcrypt_create_aead() 297 struct crypto_attr_type *algt; in pcrypt_create() local 299 algt = crypto_get_attr_type(tb); in pcrypt_create() 300 if (IS_ERR(algt)) in pcrypt_create() 301 return PTR_ERR(algt); in pcrypt_create() 303 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create() 305 return pcrypt_create_aead(tmpl, tb, algt); in pcrypt_create() 236 pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, struct crypto_attr_type *algt) pcrypt_create_aead() argument
|
/kernel/linux/linux-5.10/include/crypto/ |
H A D | algapi.h | 241 static inline u32 crypto_requires_off(struct crypto_attr_type *algt, u32 off) in crypto_requires_off() argument 243 return (algt->type ^ off) & algt->mask & off; in crypto_requires_off() 261 static inline u32 crypto_algt_inherited_mask(struct crypto_attr_type *algt) in crypto_algt_inherited_mask() argument 263 return crypto_requires_off(algt, CRYPTO_ALG_INHERITED_FLAGS); in crypto_algt_inherited_mask()
|
/kernel/linux/linux-6.6/include/crypto/ |
H A D | algapi.h | 236 static inline u32 crypto_requires_off(struct crypto_attr_type *algt, u32 off) in crypto_requires_off() argument 238 return (algt->type ^ off) & algt->mask & off; in crypto_requires_off() 256 static inline u32 crypto_algt_inherited_mask(struct crypto_attr_type *algt) in crypto_algt_inherited_mask() argument 258 return crypto_requires_off(algt, CRYPTO_ALG_INHERITED_FLAGS); in crypto_algt_inherited_mask()
|