Lines Matching refs:flc
76 struct caam_flc flc[NUM_OP]; member
175 struct caam_flc *flc; in aead_set_sh_desc() local
232 flc = &ctx->flc[ENCRYPT]; in aead_set_sh_desc()
233 desc = flc->sh_desc; in aead_set_sh_desc()
245 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
247 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
260 flc = &ctx->flc[DECRYPT]; in aead_set_sh_desc()
261 desc = flc->sh_desc; in aead_set_sh_desc()
266 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
268 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
590 struct caam_flc *flc; in chachapoly_set_sh_desc() local
596 flc = &ctx->flc[ENCRYPT]; in chachapoly_set_sh_desc()
597 desc = flc->sh_desc; in chachapoly_set_sh_desc()
600 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
602 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
605 flc = &ctx->flc[DECRYPT]; in chachapoly_set_sh_desc()
606 desc = flc->sh_desc; in chachapoly_set_sh_desc()
609 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
611 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
650 struct caam_flc *flc; in gcm_set_sh_desc() local
671 flc = &ctx->flc[ENCRYPT]; in gcm_set_sh_desc()
672 desc = flc->sh_desc; in gcm_set_sh_desc()
674 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
676 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
691 flc = &ctx->flc[DECRYPT]; in gcm_set_sh_desc()
692 desc = flc->sh_desc; in gcm_set_sh_desc()
694 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
696 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
742 struct caam_flc *flc; in rfc4106_set_sh_desc() local
764 flc = &ctx->flc[ENCRYPT]; in rfc4106_set_sh_desc()
765 desc = flc->sh_desc; in rfc4106_set_sh_desc()
768 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
770 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
784 flc = &ctx->flc[DECRYPT]; in rfc4106_set_sh_desc()
785 desc = flc->sh_desc; in rfc4106_set_sh_desc()
788 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
790 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
843 struct caam_flc *flc; in rfc4543_set_sh_desc() local
865 flc = &ctx->flc[ENCRYPT]; in rfc4543_set_sh_desc()
866 desc = flc->sh_desc; in rfc4543_set_sh_desc()
869 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
871 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
885 flc = &ctx->flc[DECRYPT]; in rfc4543_set_sh_desc()
886 desc = flc->sh_desc; in rfc4543_set_sh_desc()
889 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
891 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
945 struct caam_flc *flc; in skcipher_setkey() local
958 flc = &ctx->flc[ENCRYPT]; in skcipher_setkey()
959 desc = flc->sh_desc; in skcipher_setkey()
962 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
964 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
968 flc = &ctx->flc[DECRYPT]; in skcipher_setkey()
969 desc = flc->sh_desc; in skcipher_setkey()
972 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
974 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
1062 struct caam_flc *flc; in xts_skcipher_setkey() local
1086 flc = &ctx->flc[ENCRYPT]; in xts_skcipher_setkey()
1087 desc = flc->sh_desc; in xts_skcipher_setkey()
1089 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1091 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1095 flc = &ctx->flc[DECRYPT]; in xts_skcipher_setkey()
1096 desc = flc->sh_desc; in xts_skcipher_setkey()
1098 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1100 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1333 caam_req->flc = &ctx->flc[ENCRYPT]; in aead_encrypt()
1361 caam_req->flc = &ctx->flc[DECRYPT]; in aead_decrypt()
1505 caam_req->flc = &ctx->flc[ENCRYPT]; in skcipher_encrypt()
1555 caam_req->flc = &ctx->flc[DECRYPT]; in skcipher_decrypt()
1583 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, in caam_cra_init()
1592 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_cra_init()
1593 ctx->key_dma = dma_addr + NUM_OP * sizeof(ctx->flc[0]); in caam_cra_init()
3057 struct caam_flc flc[HASH_NUM_OP]; member
3135 struct caam_flc *flc; in ahash_set_sh_desc() local
3139 flc = &ctx->flc[UPDATE]; in ahash_set_sh_desc()
3140 desc = flc->sh_desc; in ahash_set_sh_desc()
3143 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3151 flc = &ctx->flc[UPDATE_FIRST]; in ahash_set_sh_desc()
3152 desc = flc->sh_desc; in ahash_set_sh_desc()
3155 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3163 flc = &ctx->flc[FINALIZE]; in ahash_set_sh_desc()
3164 desc = flc->sh_desc; in ahash_set_sh_desc()
3167 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3175 flc = &ctx->flc[DIGEST]; in ahash_set_sh_desc()
3176 desc = flc->sh_desc; in ahash_set_sh_desc()
3179 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3213 struct caam_flc *flc; in hash_digest_key() local
3225 flc = kzalloc(sizeof(*flc), GFP_KERNEL | GFP_DMA); in hash_digest_key()
3226 if (!flc) in hash_digest_key()
3235 desc = flc->sh_desc; in hash_digest_key()
3247 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in hash_digest_key()
3248 flc_dma = dma_map_single(ctx->dev, flc, sizeof(flc->flc) + in hash_digest_key()
3273 req_ctx->flc = flc; in hash_digest_key()
3288 dma_unmap_single(ctx->dev, flc_dma, sizeof(flc->flc) + desc_bytes(desc), in hash_digest_key()
3293 kfree(flc); in hash_digest_key()
3606 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3688 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3782 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3878 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3950 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
4056 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4167 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4278 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4571 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, sizeof(ctx->flc), in caam_hash_cra_init()
4585 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_hash_cra_init()
4608 dma_unmap_single_attrs(ctx->dev, ctx->flc_dma[0], sizeof(ctx->flc), in caam_hash_cra_exit()