| /linux-6.15/drivers/crypto/allwinner/sun8i-ce/ |
| H A D | sun8i-ce-hash.c | 34 op->ce = algt->ce; in sun8i_ce_hash_init_tfm() 128 algt->stat_fb++; in sun8i_ce_hash_final() 171 algt->stat_fb++; in sun8i_ce_hash_finup() 199 algt->stat_fb++; in sun8i_ce_hash_digest_fb() 216 algt->stat_fb_len0++; in sun8i_ce_hash_need_fallback() 221 algt->stat_fb_maxsg++; in sun8i_ce_hash_need_fallback() 227 algt->stat_fb_srclen++; in sun8i_ce_hash_need_fallback() 231 algt->stat_fb_srcali++; in sun8i_ce_hash_need_fallback() 263 ce = algt->ce; in sun8i_ce_hash_digest() 355 ce = algt->ce; in sun8i_ce_hash_run() [all …]
|
| H A D | sun8i-ce-cipher.c | 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() 104 algt->stat_fb++; in sun8i_ce_cipher_fallback() 150 algt->stat_req++; in sun8i_ce_cipher_prepare() 425 op->ce = algt->ce; in sun8i_ce_cipher_init() [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()
|
| /linux-6.15/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 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 159 algt->stat_fb++; in sun4i_ss_cipher_poll_fallback() 187 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_poll() local 218 if (areq->cryptlen % algt->alg.crypto.base.cra_blocksize) in sun4i_ss_cipher_poll() 248 algt->stat_req++; in sun4i_ss_cipher_poll() 249 algt->stat_bytes += areq->cryptlen; in sun4i_ss_cipher_poll() 537 struct sun4i_ss_alg_template *algt; in 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()
|
| /linux-6.15/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-hash.c | 103 op->ss = algt->ss; in sun8i_ss_hash_init_tfm() 201 algt->stat_fb++; in sun8i_ss_hash_final() 245 algt->stat_fb++; in sun8i_ss_hash_finup() 274 algt->stat_fb++; in sun8i_ss_hash_digest_fb() 350 algt->stat_fb_len++; in sun8i_ss_hash_need_fallback() 355 algt->stat_fb_len++; in sun8i_ss_hash_need_fallback() 361 algt->stat_fb_sgnum++; in sun8i_ss_hash_need_fallback() 373 algt->stat_fb_sglen++; in sun8i_ss_hash_need_fallback() 403 ss = algt->ss; in sun8i_ss_hash_digest() 499 ss = algt->ss; in sun8i_ss_hash_run() [all …]
|
| H A D | sun8i-ss-cipher.c | 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() 104 algt->stat_fb++; in sun8i_ss_cipher_fallback() 190 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher() local 210 algt->stat_req++; in sun8i_ss_cipher() 399 op->ss = algt->ss; in sun8i_ss_cipher_init() [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()
|
| /linux-6.15/crypto/ |
| H A D | pcrypt.c | 241 struct crypto_attr_type *algt) in pcrypt_create_aead() argument 246 u32 mask = crypto_algt_inherited_mask(algt); in pcrypt_create_aead() 301 struct crypto_attr_type *algt; in pcrypt_create() local 303 algt = crypto_get_attr_type(tb); in pcrypt_create() 304 if (IS_ERR(algt)) in pcrypt_create() 305 return PTR_ERR(algt); in pcrypt_create() 307 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create() 309 return pcrypt_create_aead(tmpl, tb, algt); in pcrypt_create()
|
| H A D | cryptd.c | 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() 375 struct crypto_attr_type *algt, in cryptd_create_skcipher() argument 659 struct crypto_attr_type *algt, in cryptd_create_hash() argument 868 struct crypto_attr_type *algt, in cryptd_create_aead() argument 925 struct crypto_attr_type *algt; in cryptd_create() local 927 algt = crypto_get_attr_type(tb); in cryptd_create() 928 if (IS_ERR(algt)) in cryptd_create() 929 return PTR_ERR(algt); in cryptd_create() [all …]
|
| H A D | algapi.c | 821 struct crypto_attr_type *algt; in crypto_get_attr_type() local 825 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type() 830 algt = RTA_DATA(rta); in crypto_get_attr_type() 832 return algt; in crypto_get_attr_type() 854 struct crypto_attr_type *algt; in crypto_check_attr_type() local 856 algt = crypto_get_attr_type(tb); in crypto_check_attr_type() 857 if (IS_ERR(algt)) in crypto_check_attr_type() 858 return PTR_ERR(algt); in crypto_check_attr_type() 860 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type() 863 *mask_ret = crypto_algt_inherited_mask(algt); in crypto_check_attr_type()
|
| H A D | essiv.c | 445 struct crypto_attr_type *algt; in essiv_create() local 461 algt = crypto_get_attr_type(tb); in essiv_create() 462 if (IS_ERR(algt)) in essiv_create() 463 return PTR_ERR(algt); in essiv_create() 473 type = algt->type & algt->mask; in essiv_create() 474 mask = crypto_algt_inherited_mask(algt); in essiv_create()
|
| /linux-6.15/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->mc; in meson_cipher_init()
|
| /linux-6.15/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->ce; in sl3516_ce_cipher_init()
|
| /linux-6.15/include/crypto/ |
| H A D | algapi.h | 223 static inline u32 crypto_requires_off(struct crypto_attr_type *algt, u32 off) in crypto_requires_off() argument 225 return (algt->type ^ off) & algt->mask & off; in crypto_requires_off() 243 static inline u32 crypto_algt_inherited_mask(struct crypto_attr_type *algt) in crypto_algt_inherited_mask() argument 245 return crypto_requires_off(algt, CRYPTO_ALG_INHERITED_FLAGS); in crypto_algt_inherited_mask()
|
| /linux-6.15/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->stat_req++; in rk_cipher_run() [all …]
|
| H A D | rk3288_crypto_ahash.c | 50 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.hash.base); in rk_ahash_digest_fb() local 52 algt->stat_fb++; in rk_ahash_digest_fb() 264 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.hash.base); in rk_hash_run() local 281 algt->stat_req++; in rk_hash_run() 349 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.hash.base); in rk_hash_init_tfm() local 355 dev_err(algt->dev->dev, "Could not load fallback driver.\n"); in rk_hash_init_tfm()
|
| /linux-6.15/drivers/crypto/ |
| H A D | talitos.c | 3077 algt.alg.aead); in talitos_cra_init_aead() 3089 algt.alg.skcipher); in talitos_cra_init_skcipher() 3102 algt.alg.hash); in talitos_cra_init_ahash() 3148 switch (t_alg->algt.type) { in talitos_remove() 3189 t_alg->algt = *template; in talitos_alg_alloc() 3191 switch (t_alg->algt.type) { in talitos_alg_alloc() 3211 t_alg->algt.alg.aead.setkey = t_alg->algt.alg.aead.setkey ?: in talitos_alg_alloc() 3259 if (t_alg->algt.priority) in talitos_alg_alloc() 3503 switch (t_alg->algt.type) { in talitos_probe() 3512 &t_alg->algt.alg.aead); in talitos_probe() [all …]
|