Lines Matching refs:flc
79 struct caam_flc flc[NUM_OP]; member
178 struct caam_flc *flc; in aead_set_sh_desc() local
235 flc = &ctx->flc[ENCRYPT]; in aead_set_sh_desc()
236 desc = flc->sh_desc; in aead_set_sh_desc()
248 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
250 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
263 flc = &ctx->flc[DECRYPT]; in aead_set_sh_desc()
264 desc = flc->sh_desc; in aead_set_sh_desc()
269 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
271 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
593 struct caam_flc *flc; in chachapoly_set_sh_desc() local
599 flc = &ctx->flc[ENCRYPT]; in chachapoly_set_sh_desc()
600 desc = flc->sh_desc; in chachapoly_set_sh_desc()
603 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
605 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
608 flc = &ctx->flc[DECRYPT]; in chachapoly_set_sh_desc()
609 desc = flc->sh_desc; in chachapoly_set_sh_desc()
612 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
614 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
653 struct caam_flc *flc; in gcm_set_sh_desc() local
674 flc = &ctx->flc[ENCRYPT]; in gcm_set_sh_desc()
675 desc = flc->sh_desc; in gcm_set_sh_desc()
677 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
679 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
694 flc = &ctx->flc[DECRYPT]; in gcm_set_sh_desc()
695 desc = flc->sh_desc; in gcm_set_sh_desc()
697 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
699 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
745 struct caam_flc *flc; in rfc4106_set_sh_desc() local
767 flc = &ctx->flc[ENCRYPT]; in rfc4106_set_sh_desc()
768 desc = flc->sh_desc; in rfc4106_set_sh_desc()
771 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
773 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
787 flc = &ctx->flc[DECRYPT]; in rfc4106_set_sh_desc()
788 desc = flc->sh_desc; in rfc4106_set_sh_desc()
791 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
793 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
846 struct caam_flc *flc; in rfc4543_set_sh_desc() local
868 flc = &ctx->flc[ENCRYPT]; in rfc4543_set_sh_desc()
869 desc = flc->sh_desc; in rfc4543_set_sh_desc()
872 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
874 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
888 flc = &ctx->flc[DECRYPT]; in rfc4543_set_sh_desc()
889 desc = flc->sh_desc; in rfc4543_set_sh_desc()
892 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
894 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
948 struct caam_flc *flc; in skcipher_setkey() local
961 flc = &ctx->flc[ENCRYPT]; in skcipher_setkey()
962 desc = flc->sh_desc; in skcipher_setkey()
965 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
967 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
971 flc = &ctx->flc[DECRYPT]; in skcipher_setkey()
972 desc = flc->sh_desc; in skcipher_setkey()
975 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
977 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
1065 struct caam_flc *flc; in xts_skcipher_setkey() local
1089 flc = &ctx->flc[ENCRYPT]; in xts_skcipher_setkey()
1090 desc = flc->sh_desc; in xts_skcipher_setkey()
1092 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1094 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1098 flc = &ctx->flc[DECRYPT]; in xts_skcipher_setkey()
1099 desc = flc->sh_desc; in xts_skcipher_setkey()
1101 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1103 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1336 caam_req->flc = &ctx->flc[ENCRYPT]; in aead_encrypt()
1364 caam_req->flc = &ctx->flc[DECRYPT]; in aead_decrypt()
1508 caam_req->flc = &ctx->flc[ENCRYPT]; in skcipher_encrypt()
1558 caam_req->flc = &ctx->flc[DECRYPT]; in skcipher_decrypt()
1586 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, in caam_cra_init()
1595 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_cra_init()
1596 ctx->key_dma = dma_addr + NUM_OP * sizeof(ctx->flc[0]); in caam_cra_init()
3060 struct caam_flc flc[HASH_NUM_OP]; member
3138 struct caam_flc *flc; in ahash_set_sh_desc() local
3142 flc = &ctx->flc[UPDATE]; in ahash_set_sh_desc()
3143 desc = flc->sh_desc; in ahash_set_sh_desc()
3146 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3154 flc = &ctx->flc[UPDATE_FIRST]; in ahash_set_sh_desc()
3155 desc = flc->sh_desc; in ahash_set_sh_desc()
3158 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3166 flc = &ctx->flc[FINALIZE]; in ahash_set_sh_desc()
3167 desc = flc->sh_desc; in ahash_set_sh_desc()
3170 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3178 flc = &ctx->flc[DIGEST]; in ahash_set_sh_desc()
3179 desc = flc->sh_desc; in ahash_set_sh_desc()
3182 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3216 struct caam_flc *flc; in hash_digest_key() local
3228 flc = kzalloc(sizeof(*flc), GFP_KERNEL | GFP_DMA); in hash_digest_key()
3229 if (!flc) in hash_digest_key()
3238 desc = flc->sh_desc; in hash_digest_key()
3250 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in hash_digest_key()
3251 flc_dma = dma_map_single(ctx->dev, flc, sizeof(flc->flc) + in hash_digest_key()
3276 req_ctx->flc = flc; in hash_digest_key()
3291 dma_unmap_single(ctx->dev, flc_dma, sizeof(flc->flc) + desc_bytes(desc), in hash_digest_key()
3296 kfree(flc); in hash_digest_key()
3609 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3691 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3785 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3881 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3953 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
4059 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4170 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4281 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4574 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, sizeof(ctx->flc), in caam_hash_cra_init()
4588 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_hash_cra_init()
4611 dma_unmap_single_attrs(ctx->dev, ctx->flc_dma[0], sizeof(ctx->flc), in caam_hash_cra_exit()