| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-hash.c | 99 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_init_tfm() local 102 algt = container_of(alg, struct sun8i_ss_alg_template, alg.hash.base); in sun8i_ss_hash_init_tfm() 103 op->ss = algt->ss; in sun8i_ss_hash_init_tfm() 109 dev_err(algt->ss->dev, "Fallback driver could no be loaded\n"); in sun8i_ss_hash_init_tfm() 120 memcpy(algt->fbname, crypto_ahash_driver_name(op->fallback_tfm), in sun8i_ss_hash_init_tfm() 202 struct sun8i_ss_alg_template *algt __maybe_unused; in sun8i_ss_hash_final() 204 algt = container_of(alg, struct sun8i_ss_alg_template, in sun8i_ss_hash_final() 208 algt->stat_fb++; in sun8i_ss_hash_final() 245 struct sun8i_ss_alg_template *algt __maybe_unused; in sun8i_ss_hash_finup() 247 algt = container_of(alg, struct sun8i_ss_alg_template, in sun8i_ss_hash_finup() [all …]
|
| /linux/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/drivers/crypto/allwinner/sun4i-ss/ |
| 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->alg.crypto.base.cra_blocksize) in sun4i_ss_cipher_poll() [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/include/crypto/ |
| H A D | algapi.h | 232 static inline u32 crypto_requires_off(struct crypto_attr_type *algt, u32 off) in crypto_requires_off() argument 234 return (algt->type ^ off) & algt->mask & off; in crypto_requires_off() 252 static inline u32 crypto_algt_inherited_mask(struct crypto_attr_type *algt) in crypto_algt_inherited_mask() argument 254 return crypto_requires_off(algt, CRYPTO_ALG_INHERITED_FLAGS); in crypto_algt_inherited_mask()
|
| /linux/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 …]
|
| /linux/drivers/crypto/ |
| H A D | talitos.c | 3123 struct talitos_alg_template algt; member 3140 ctx->desc_hdr_template = talitos_alg->algt.desc_hdr_template; in talitos_init_common() 3155 algt.alg.aead); in talitos_cra_init_aead() 3167 algt.alg.skcipher); in talitos_cra_init_skcipher() 3180 algt.alg.hash); in talitos_cra_init_ahash() 3226 switch (t_alg->algt.type) { in talitos_remove() 3228 crypto_unregister_skcipher(&t_alg->algt.alg.skcipher); in talitos_remove() 3231 crypto_unregister_aead(&t_alg->algt.alg.aead); in talitos_remove() 3234 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove() 3265 t_alg->algt = *template; in talitos_alg_alloc() [all …]
|
| /linux/crypto/ |
| H A D | essiv.c | 443 struct crypto_attr_type *algt; in essiv_create() local 459 algt = crypto_get_attr_type(tb); in essiv_create() 460 if (IS_ERR(algt)) in essiv_create() 461 return PTR_ERR(algt); in essiv_create() 471 type = algt->type & algt->mask; in essiv_create() 472 mask = crypto_algt_inherited_mask(algt); in essiv_create()
|