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()
655 struct caam_flc *flc; in gcm_set_sh_desc() local
676 flc = &ctx->flc[ENCRYPT]; in gcm_set_sh_desc()
677 desc = flc->sh_desc; in gcm_set_sh_desc()
679 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
681 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
696 flc = &ctx->flc[DECRYPT]; in gcm_set_sh_desc()
697 desc = flc->sh_desc; in gcm_set_sh_desc()
699 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
701 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
747 struct caam_flc *flc; in rfc4106_set_sh_desc() local
769 flc = &ctx->flc[ENCRYPT]; in rfc4106_set_sh_desc()
770 desc = flc->sh_desc; in rfc4106_set_sh_desc()
773 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
775 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
789 flc = &ctx->flc[DECRYPT]; in rfc4106_set_sh_desc()
790 desc = flc->sh_desc; in rfc4106_set_sh_desc()
793 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
795 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
848 struct caam_flc *flc; in rfc4543_set_sh_desc() local
870 flc = &ctx->flc[ENCRYPT]; in rfc4543_set_sh_desc()
871 desc = flc->sh_desc; in rfc4543_set_sh_desc()
874 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
876 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
890 flc = &ctx->flc[DECRYPT]; in rfc4543_set_sh_desc()
891 desc = flc->sh_desc; in rfc4543_set_sh_desc()
894 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
896 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
950 struct caam_flc *flc; in skcipher_setkey() local
963 flc = &ctx->flc[ENCRYPT]; in skcipher_setkey()
964 desc = flc->sh_desc; in skcipher_setkey()
967 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
969 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
973 flc = &ctx->flc[DECRYPT]; in skcipher_setkey()
974 desc = flc->sh_desc; in skcipher_setkey()
977 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
979 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
1067 struct caam_flc *flc; in xts_skcipher_setkey() local
1091 flc = &ctx->flc[ENCRYPT]; in xts_skcipher_setkey()
1092 desc = flc->sh_desc; in xts_skcipher_setkey()
1094 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1096 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1100 flc = &ctx->flc[DECRYPT]; in xts_skcipher_setkey()
1101 desc = flc->sh_desc; in xts_skcipher_setkey()
1103 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1105 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1338 caam_req->flc = &ctx->flc[ENCRYPT]; in aead_encrypt()
1366 caam_req->flc = &ctx->flc[DECRYPT]; in aead_decrypt()
1510 caam_req->flc = &ctx->flc[ENCRYPT]; in skcipher_encrypt()
1560 caam_req->flc = &ctx->flc[DECRYPT]; in skcipher_decrypt()
1588 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, in caam_cra_init()
1597 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_cra_init()
1598 ctx->key_dma = dma_addr + NUM_OP * sizeof(ctx->flc[0]); in caam_cra_init()
3064 struct caam_flc flc[HASH_NUM_OP]; member
3142 struct caam_flc *flc; in ahash_set_sh_desc() local
3146 flc = &ctx->flc[UPDATE]; in ahash_set_sh_desc()
3147 desc = flc->sh_desc; in ahash_set_sh_desc()
3150 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3158 flc = &ctx->flc[UPDATE_FIRST]; in ahash_set_sh_desc()
3159 desc = flc->sh_desc; in ahash_set_sh_desc()
3162 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3170 flc = &ctx->flc[FINALIZE]; in ahash_set_sh_desc()
3171 desc = flc->sh_desc; in ahash_set_sh_desc()
3174 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3182 flc = &ctx->flc[DIGEST]; in ahash_set_sh_desc()
3183 desc = flc->sh_desc; in ahash_set_sh_desc()
3186 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3220 struct caam_flc *flc; in hash_digest_key() local
3232 flc = kzalloc(sizeof(*flc), GFP_KERNEL); in hash_digest_key()
3233 if (!flc) in hash_digest_key()
3242 desc = flc->sh_desc; in hash_digest_key()
3254 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in hash_digest_key()
3255 flc_dma = dma_map_single(ctx->dev, flc, sizeof(flc->flc) + in hash_digest_key()
3280 req_ctx->flc = flc; in hash_digest_key()
3295 dma_unmap_single(ctx->dev, flc_dma, sizeof(flc->flc) + desc_bytes(desc), in hash_digest_key()
3300 kfree(flc); in hash_digest_key()
3619 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3701 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3795 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3891 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3963 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
4069 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4180 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4291 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4584 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, sizeof(ctx->flc), in caam_hash_cra_init()
4598 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_hash_cra_init()
4620 dma_unmap_single_attrs(ctx->dev, ctx->flc_dma[0], sizeof(ctx->flc), in caam_hash_cra_exit()