Lines Matching refs:caam

55 	struct caam_alg_entry caam;  member
61 struct caam_alg_entry caam; member
188 const bool is_rfc3686 = alg->caam.rfc3686; in aead_set_sh_desc()
227 if (desc_inline_query((alg->caam.geniv ? DESC_QI_AEAD_GIVENC_LEN : in aead_set_sh_desc()
240 if (alg->caam.geniv) in aead_set_sh_desc()
268 ivsize, ctx->authsize, alg->caam.geniv, in aead_set_sh_desc()
447 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
504 if ((alg->caam.class1_alg_type & OP_ALG_ALGSEL_MASK) == in aead_edesc_alloc()
954 const bool is_rfc3686 = alg->caam.rfc3686; in skcipher_setkey()
1576 static int caam_cra_init(struct caam_ctx *ctx, struct caam_alg_entry *caam, in caam_cra_init() argument
1583 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_cra_init()
1584 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_cra_init()
1586 ctx->dev = caam->dev; in caam_cra_init()
1610 u32 alg_aai = caam_alg->caam.class1_alg_type & OP_ALG_AAI_MASK; in caam_cra_init_skcipher()
1620 dev_err(caam_alg->caam.dev, in caam_cra_init_skcipher()
1635 ret = caam_cra_init(ctx, &caam_alg->caam, false); in caam_cra_init_skcipher()
1649 return caam_cra_init(crypto_aead_ctx_dma(tfm), &caam_alg->caam, in caam_cra_init_aead()
1650 !caam_alg->caam.nodkp); in caam_cra_init_aead()
1689 .caam.class1_alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_CBC,
1705 .caam.class1_alg_type = OP_ALG_ALGSEL_3DES | OP_ALG_AAI_CBC,
1721 .caam.class1_alg_type = OP_ALG_ALGSEL_DES | OP_ALG_AAI_CBC,
1738 .caam.class1_alg_type = OP_ALG_ALGSEL_AES |
1758 .caam = {
1779 .caam.class1_alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_XTS,
1795 .caam.class1_alg_type = OP_ALG_ALGSEL_CHACHA20,
1814 .caam = {
1833 .caam = {
1853 .caam = {
1874 .caam = {
1896 .caam = {
1918 .caam = {
1940 .caam = {
1962 .caam = {
1984 .caam = {
2006 .caam = {
2029 .caam = {
2051 .caam = {
2074 .caam = {
2096 .caam = {
2119 .caam = {
2141 .caam = {
2163 .caam = {
2186 .caam = {
2209 .caam = {
2232 .caam = {
2255 .caam = {
2278 .caam = {
2301 .caam = {
2324 .caam = {
2347 .caam = {
2370 .caam = {
2393 .caam = {
2415 .caam = {
2437 .caam = {
2459 .caam = {
2481 .caam = {
2503 .caam = {
2526 .caam = {
2548 .caam = {
2571 .caam = {
2593 .caam = {
2616 .caam = {
2638 .caam = {
2661 .caam = {
2684 .caam = {
2708 .caam = {
2733 .caam = {
2757 .caam = {
2782 .caam = {
2806 .caam = {
2831 .caam = {
2855 .caam = {
2880 .caam = {
2904 .caam = {
2928 .caam = {
2951 .caam = {
2975 .caam = {
2999 .caam = {
5283 u32 alg_sel = t_alg->caam.class1_alg_type & OP_ALG_ALGSEL_MASK; in dpaa2_caam_probe()
5301 t_alg->caam.dev = dev; in dpaa2_caam_probe()
5317 u32 c1_alg_sel = t_alg->caam.class1_alg_type & in dpaa2_caam_probe()
5319 u32 c2_alg_sel = t_alg->caam.class2_alg_type & in dpaa2_caam_probe()
5351 t_alg->caam.dev = dev; in dpaa2_caam_probe()