Lines Matching refs:flc

81 	struct caam_flc flc[NUM_OP];  member
180 struct caam_flc *flc; in aead_set_sh_desc() local
237 flc = &ctx->flc[ENCRYPT]; in aead_set_sh_desc()
238 desc = flc->sh_desc; in aead_set_sh_desc()
250 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
252 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
265 flc = &ctx->flc[DECRYPT]; in aead_set_sh_desc()
266 desc = flc->sh_desc; in aead_set_sh_desc()
271 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
273 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
595 struct caam_flc *flc; in chachapoly_set_sh_desc() local
601 flc = &ctx->flc[ENCRYPT]; in chachapoly_set_sh_desc()
602 desc = flc->sh_desc; in chachapoly_set_sh_desc()
605 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
607 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
610 flc = &ctx->flc[DECRYPT]; in chachapoly_set_sh_desc()
611 desc = flc->sh_desc; in chachapoly_set_sh_desc()
614 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
616 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
656 struct caam_flc *flc; in gcm_set_sh_desc() local
677 flc = &ctx->flc[ENCRYPT]; in gcm_set_sh_desc()
678 desc = flc->sh_desc; in gcm_set_sh_desc()
680 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
682 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
697 flc = &ctx->flc[DECRYPT]; in gcm_set_sh_desc()
698 desc = flc->sh_desc; in gcm_set_sh_desc()
700 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
702 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
748 struct caam_flc *flc; in rfc4106_set_sh_desc() local
770 flc = &ctx->flc[ENCRYPT]; in rfc4106_set_sh_desc()
771 desc = flc->sh_desc; in rfc4106_set_sh_desc()
774 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
776 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
790 flc = &ctx->flc[DECRYPT]; in rfc4106_set_sh_desc()
791 desc = flc->sh_desc; in rfc4106_set_sh_desc()
794 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
796 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
849 struct caam_flc *flc; in rfc4543_set_sh_desc() local
871 flc = &ctx->flc[ENCRYPT]; in rfc4543_set_sh_desc()
872 desc = flc->sh_desc; in rfc4543_set_sh_desc()
875 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
877 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
891 flc = &ctx->flc[DECRYPT]; in rfc4543_set_sh_desc()
892 desc = flc->sh_desc; in rfc4543_set_sh_desc()
895 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
897 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
951 struct caam_flc *flc; in skcipher_setkey() local
964 flc = &ctx->flc[ENCRYPT]; in skcipher_setkey()
965 desc = flc->sh_desc; in skcipher_setkey()
968 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
970 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
974 flc = &ctx->flc[DECRYPT]; in skcipher_setkey()
975 desc = flc->sh_desc; in skcipher_setkey()
978 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
980 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
1068 struct caam_flc *flc; in xts_skcipher_setkey() local
1092 flc = &ctx->flc[ENCRYPT]; in xts_skcipher_setkey()
1093 desc = flc->sh_desc; in xts_skcipher_setkey()
1095 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1097 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1101 flc = &ctx->flc[DECRYPT]; in xts_skcipher_setkey()
1102 desc = flc->sh_desc; in xts_skcipher_setkey()
1104 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1106 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1339 caam_req->flc = &ctx->flc[ENCRYPT]; in aead_encrypt()
1367 caam_req->flc = &ctx->flc[DECRYPT]; in aead_decrypt()
1511 caam_req->flc = &ctx->flc[ENCRYPT]; in skcipher_encrypt()
1561 caam_req->flc = &ctx->flc[DECRYPT]; in skcipher_decrypt()
1589 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, in caam_cra_init()
1598 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_cra_init()
1599 ctx->key_dma = dma_addr + NUM_OP * sizeof(ctx->flc[0]); in caam_cra_init()
3065 struct caam_flc flc[HASH_NUM_OP]; member
3143 struct caam_flc *flc; in ahash_set_sh_desc() local
3147 flc = &ctx->flc[UPDATE]; in ahash_set_sh_desc()
3148 desc = flc->sh_desc; in ahash_set_sh_desc()
3151 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3159 flc = &ctx->flc[UPDATE_FIRST]; in ahash_set_sh_desc()
3160 desc = flc->sh_desc; in ahash_set_sh_desc()
3163 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3171 flc = &ctx->flc[FINALIZE]; in ahash_set_sh_desc()
3172 desc = flc->sh_desc; in ahash_set_sh_desc()
3175 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3183 flc = &ctx->flc[DIGEST]; in ahash_set_sh_desc()
3184 desc = flc->sh_desc; in ahash_set_sh_desc()
3187 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3221 struct caam_flc *flc; in hash_digest_key() local
3233 flc = kzalloc(sizeof(*flc), GFP_KERNEL); in hash_digest_key()
3234 if (!flc) in hash_digest_key()
3243 desc = flc->sh_desc; in hash_digest_key()
3255 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in hash_digest_key()
3256 flc_dma = dma_map_single(ctx->dev, flc, sizeof(flc->flc) + in hash_digest_key()
3281 req_ctx->flc = flc; in hash_digest_key()
3296 dma_unmap_single(ctx->dev, flc_dma, sizeof(flc->flc) + desc_bytes(desc), in hash_digest_key()
3301 kfree(flc); in hash_digest_key()
3620 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3702 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3796 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3892 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3964 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
4070 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4181 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4292 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4586 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, sizeof(ctx->flc), in caam_hash_cra_init()
4600 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_hash_cra_init()
4622 dma_unmap_single_attrs(ctx->dev, ctx->flc_dma[0], sizeof(ctx->flc), in caam_hash_cra_exit()