Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/crypto/allwinner/sun8i-ce/
A Dsun8i-ce-hash.c32 op->ce = algt->ce; in sun8i_ce_hash_crainit()
129 algt->stat_fb++; in sun8i_ce_hash_final()
169 algt->stat_fb++; in sun8i_ce_hash_finup()
194 algt->stat_fb++; in sun8i_ce_hash_digest_fb()
210 algt->stat_fb_len0++; in sun8i_ce_hash_need_fallback()
215 algt->stat_fb_maxsg++; in sun8i_ce_hash_need_fallback()
221 algt->stat_fb_srclen++; in sun8i_ce_hash_need_fallback()
225 algt->stat_fb_srcali++; in sun8i_ce_hash_need_fallback()
257 ce = algt->ce; in sun8i_ce_hash_digest()
349 ce = algt->ce; in sun8i_ce_hash_run()
[all …]
A Dsun8i-ce-cipher.c36 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()
100 algt->stat_fb++; in sun8i_ce_cipher_fallback()
145 algt->stat_req++; in sun8i_ce_cipher_prepare()
410 op->ce = algt->ce; in sun8i_ce_cipher_init()
[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()
/linux-6.3-rc2/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-hash.c120 op->ss = algt->ss; in sun8i_ss_hash_crainit()
219 algt->stat_fb++; in sun8i_ss_hash_final()
259 algt->stat_fb++; in sun8i_ss_hash_finup()
284 algt->stat_fb++; in sun8i_ss_hash_digest_fb()
359 algt->stat_fb_len++; in sun8i_ss_hash_need_fallback()
364 algt->stat_fb_len++; in sun8i_ss_hash_need_fallback()
370 algt->stat_fb_sgnum++; in sun8i_ss_hash_need_fallback()
382 algt->stat_fb_sglen++; in sun8i_ss_hash_need_fallback()
412 ss = algt->ss; in sun8i_ss_hash_digest()
508 ss = algt->ss; in sun8i_ss_hash_run()
[all …]
A Dsun8i-ss-cipher.c34 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; in sun8i_ss_cipher_fallback() local
101 algt->stat_fb++; in sun8i_ss_cipher_fallback()
205 algt->stat_req++; in sun8i_ss_cipher()
394 op->ss = algt->ss; in sun8i_ss_cipher_init()
[all …]
A Dsun8i-ss-prng.c62 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.3-rc2/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.c39 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 …]
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-6.3-rc2/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()
375 struct crypto_attr_type *algt, in cryptd_create_skcipher() argument
644 struct crypto_attr_type *algt, in cryptd_create_hash() argument
852 struct crypto_attr_type *algt, in cryptd_create_aead() argument
909 struct crypto_attr_type *algt; in cryptd_create() local
911 algt = crypto_get_attr_type(tb); in cryptd_create()
912 if (IS_ERR(algt)) in cryptd_create()
913 return PTR_ERR(algt); in cryptd_create()
[all …]
A Dessiv.c445 struct crypto_attr_type *algt; in essiv_create() local
462 algt = crypto_get_attr_type(tb); in essiv_create()
463 if (IS_ERR(algt)) in essiv_create()
464 return PTR_ERR(algt); in essiv_create()
474 type = algt->type & algt->mask; in essiv_create()
475 mask = crypto_algt_inherited_mask(algt); in essiv_create()
A Dalgapi.c849 struct crypto_attr_type *algt; in crypto_get_attr_type() local
853 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type()
858 algt = RTA_DATA(rta); in crypto_get_attr_type()
860 return algt; in crypto_get_attr_type()
882 struct crypto_attr_type *algt; in crypto_check_attr_type() local
884 algt = crypto_get_attr_type(tb); in crypto_check_attr_type()
885 if (IS_ERR(algt)) in crypto_check_attr_type()
886 return PTR_ERR(algt); in crypto_check_attr_type()
888 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
891 *mask_ret = crypto_algt_inherited_mask(algt); in crypto_check_attr_type()
/linux-6.3-rc2/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()
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->mc; in meson_cipher_init()
/linux-6.3-rc2/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()
313 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher_init() local
321 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher); in sl3516_ce_cipher_init()
322 op->ce = algt->ce; in sl3516_ce_cipher_init()
/linux-6.3-rc2/drivers/crypto/rockchip/
A Drk3288_crypto_skcipher.c21 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_cipher_need_fallback() local
34 algt->stat_fb_align++; in rk_cipher_need_fallback()
38 algt->stat_fb_align++; in rk_cipher_need_fallback()
43 algt->stat_fb_len++; in rk_cipher_need_fallback()
48 algt->stat_fb_len++; in rk_cipher_need_fallback()
52 algt->stat_fb_sgdiff++; in rk_cipher_need_fallback()
68 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_cipher_fallback() local
71 algt->stat_fb++; in rk_cipher_fallback()
308 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_cipher_run() local
315 algt->stat_req++; in rk_cipher_run()
[all …]
A Drk3288_crypto_ahash.c44 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.hash); in rk_ahash_digest_fb() local
46 algt->stat_fb++; in rk_ahash_digest_fb()
259 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.hash); in rk_hash_run() local
272 algt->stat_req++; in rk_hash_run()
338 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.hash); in rk_cra_hash_init() local
344 dev_err(algt->dev->dev, "Could not load fallback driver.\n"); in rk_cra_hash_init()
/linux-6.3-rc2/include/crypto/
A Dalgapi.h253 static inline u32 crypto_requires_off(struct crypto_attr_type *algt, u32 off) in crypto_requires_off() argument
255 return (algt->type ^ off) & algt->mask & off; in crypto_requires_off()
273 static inline u32 crypto_algt_inherited_mask(struct crypto_attr_type *algt) in crypto_algt_inherited_mask() argument
275 return crypto_requires_off(algt, CRYPTO_ALG_INHERITED_FLAGS); in crypto_algt_inherited_mask()
/linux-6.3-rc2/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 …]

Completed in 39 milliseconds