Home
last modified time | relevance | path

Searched refs:algt (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/crypto/allwinner/sun8i-ce/
A Dsun8i-ce-hash.c25 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_crainit() local
31 op->ce = algt->ce; in sun8i_ce_hash_crainit()
118 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_final() local
128 algt->stat_fb++; in sun8i_ce_hash_final()
156 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_finup() local
168 algt->stat_fb++; in sun8i_ce_hash_finup()
193 algt->stat_fb++; in sun8i_ce_hash_digest_fb()
241 ce = algt->ce; in sun8i_ce_hash_digest()
278 ce = algt->ce; in sun8i_ce_hash_run()
305 algt->stat_req++; in sun8i_ce_hash_run()
[all …]
A Dsun8i-ce-prng.c60 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()
A Dsun8i-ce-cipher.c60 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_fallback() local
62 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_fallback()
63 algt->stat_fb++; in sun8i_ce_cipher_fallback()
86 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_prepare() local
97 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_prepare()
106 algt->stat_req++; in sun8i_ce_cipher_prepare()
117 common = ce->variant->alg_cipher[algt->ce_algo_id]; in sun8i_ce_cipher_prepare()
126 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 = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_init()
[all …]
/linux/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-hash.c25 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_crainit() local
31 op->ss = algt->ss; in sun8i_ss_hash_crainit()
118 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_final() local
128 algt->stat_fb++; in sun8i_ss_hash_final()
156 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_finup() local
168 algt->stat_fb++; in sun8i_ss_hash_finup()
193 algt->stat_fb++; in sun8i_ss_hash_digest_fb()
306 ss = algt->ss; in sun8i_ss_hash_digest()
338 ss = algt->ss; in sun8i_ss_hash_run()
362 algt->stat_req++; in sun8i_ss_hash_run()
[all …]
A Dsun8i-ss-cipher.c78 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher_fallback() local
80 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher_fallback()
81 algt->stat_fb++; in sun8i_ss_cipher_fallback()
102 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher() local
111 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher()
120 algt->stat_req++; in sun8i_ss_cipher()
123 rctx->op_mode = ss->variant->op_mode[algt->ss_blockmode]; in sun8i_ss_cipher()
124 rctx->method = ss->variant->alg_cipher[algt->ss_algo_id]; in sun8i_ss_cipher()
327 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher_init() local
335 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher_init()
[all …]
A Dsun8i-ss-prng.c60 struct sun8i_ss_alg_template *algt; in sun8i_ss_prng_generate() local
69 algt = container_of(alg, struct sun8i_ss_alg_template, alg.rng); in sun8i_ss_prng_generate()
70 ss = algt->ss; in sun8i_ss_prng_generate()
91 algt->stat_req++; in sun8i_ss_prng_generate()
92 algt->stat_bytes += todo; in sun8i_ss_prng_generate()
/linux/drivers/crypto/allwinner/sun4i-ss/
A Dsun4i-ss-prng.c7 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()
A Dsun4i-ss-cipher.c40 struct sun4i_ss_alg_template *algt; in sun4i_ss_opti_poll() local
59 algt->stat_opti++; in sun4i_ss_opti_poll()
60 algt->stat_bytes += areq->cryptlen; in sun4i_ss_opti_poll()
158 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_poll_fallback() local
162 algt->stat_fb++; in sun4i_ss_cipher_poll_fallback()
190 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_poll() local
222 if (areq->cryptlen % algt->alg.crypto.base.cra_blocksize) in sun4i_ss_cipher_poll()
254 algt->stat_req++; in sun4i_ss_cipher_poll()
255 algt->stat_bytes += areq->cryptlen; in sun4i_ss_cipher_poll()
543 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_init() local
[all …]
A Dsun4i-ss-hash.c22 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/crypto/
A Dpcrypt.c233 struct crypto_attr_type *algt) in pcrypt_create_aead() argument
238 u32 mask = crypto_algt_inherited_mask(algt); in pcrypt_create_aead()
293 struct crypto_attr_type *algt; in pcrypt_create() local
295 algt = crypto_get_attr_type(tb); in pcrypt_create()
296 if (IS_ERR(algt)) in pcrypt_create()
297 return PTR_ERR(algt); in pcrypt_create()
299 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create()
301 return pcrypt_create_aead(tmpl, tb, algt); in pcrypt_create()
A Dcryptd.c201 *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()
370 struct crypto_attr_type *algt, in cryptd_create_skcipher() argument
636 struct crypto_attr_type *algt, in cryptd_create_hash() argument
823 struct crypto_attr_type *algt, in cryptd_create_aead() argument
880 struct crypto_attr_type *algt; in cryptd_create() local
882 algt = crypto_get_attr_type(tb); in cryptd_create()
883 if (IS_ERR(algt)) in cryptd_create()
884 return PTR_ERR(algt); in cryptd_create()
[all …]
A Dessiv.c440 struct crypto_attr_type *algt; in essiv_create() local
457 algt = crypto_get_attr_type(tb); in essiv_create()
458 if (IS_ERR(algt)) in essiv_create()
459 return PTR_ERR(algt); in essiv_create()
469 type = algt->type & algt->mask; in essiv_create()
470 mask = crypto_algt_inherited_mask(algt); in essiv_create()
A Dalgapi.c810 struct crypto_attr_type *algt; in crypto_get_attr_type() local
814 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type()
819 algt = RTA_DATA(rta); in crypto_get_attr_type()
821 return algt; in crypto_get_attr_type()
843 struct crypto_attr_type *algt; in crypto_check_attr_type() local
845 algt = crypto_get_attr_type(tb); in crypto_check_attr_type()
846 if (IS_ERR(algt)) in crypto_check_attr_type()
847 return PTR_ERR(algt); in crypto_check_attr_type()
849 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
852 *mask_ret = crypto_algt_inherited_mask(algt); in crypto_check_attr_type()
/linux/drivers/crypto/gemini/
A Dsl3516-ce-cipher.c105 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher_fallback() local
108 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher); in sl3516_ce_cipher_fallback()
109 algt->stat_fb++; in sl3516_ce_cipher_fallback()
130 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher() local
139 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher); in sl3516_ce_cipher()
147 algt->stat_req++; in sl3516_ce_cipher()
220 switch (algt->mode) { in sl3516_ce_cipher()
311 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher_init() local
319 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher); in sl3516_ce_cipher_init()
320 op->ce = algt->ce; in sl3516_ce_cipher_init()
/linux/drivers/crypto/amlogic/
A Damlogic-gxl-cipher.c66 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()
312 struct meson_alg_template *algt; in meson_cipher_init() local
319 algt = container_of(alg, struct meson_alg_template, alg.skcipher); in meson_cipher_init()
320 op->mc = algt->mc; in meson_cipher_init()
/linux/include/crypto/
A Dalgapi.h207 static inline u32 crypto_requires_off(struct crypto_attr_type *algt, u32 off) in crypto_requires_off() argument
209 return (algt->type ^ off) & algt->mask & off; in crypto_requires_off()
227 static inline u32 crypto_algt_inherited_mask(struct crypto_attr_type *algt) in crypto_algt_inherited_mask() argument
229 return crypto_requires_off(algt, CRYPTO_ALG_INHERITED_FLAGS); in crypto_algt_inherited_mask()
/linux/drivers/crypto/
A Dtalitos.c3076 algt.alg.aead); in talitos_cra_init_aead()
3088 algt.alg.skcipher); in talitos_cra_init_skcipher()
3101 algt.alg.hash); in talitos_cra_init_ahash()
3147 switch (t_alg->algt.type) { in talitos_remove()
3190 t_alg->algt = *template; in talitos_alg_alloc()
3192 switch (t_alg->algt.type) { in talitos_alg_alloc()
3212 t_alg->algt.alg.aead.setkey = t_alg->algt.alg.aead.setkey ?: in talitos_alg_alloc()
3258 if (t_alg->algt.priority) in talitos_alg_alloc()
3502 switch (t_alg->algt.type) { in talitos_probe()
3511 &t_alg->algt.alg.aead); in talitos_probe()
[all …]
/linux/drivers/crypto/rockchip/
A Drk3288_crypto_ahash.c276 struct rk_crypto_tmp *algt; in rk_cra_hash_init() local
281 algt = container_of(alg, struct rk_crypto_tmp, alg.hash); in rk_cra_hash_init()
283 tctx->dev = algt->dev; in rk_cra_hash_init()
A Drk3288_crypto_skcipher.c381 struct rk_crypto_tmp *algt; in rk_ablk_init_tfm() local
383 algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_ablk_init_tfm()
385 ctx->dev = algt->dev; in rk_ablk_init_tfm()

Completed in 32 milliseconds