Lines Matching refs:flc
65 * @flc: Flow Contexts array
76 struct caam_flc flc[NUM_OP];
175 struct caam_flc *flc;
232 flc = &ctx->flc[ENCRYPT];
233 desc = flc->sh_desc;
245 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
247 sizeof(flc->flc) + desc_bytes(desc),
260 flc = &ctx->flc[DECRYPT];
261 desc = flc->sh_desc;
266 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
268 sizeof(flc->flc) + desc_bytes(desc),
590 struct caam_flc *flc;
596 flc = &ctx->flc[ENCRYPT];
597 desc = flc->sh_desc;
600 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
602 sizeof(flc->flc) + desc_bytes(desc),
605 flc = &ctx->flc[DECRYPT];
606 desc = flc->sh_desc;
609 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
611 sizeof(flc->flc) + desc_bytes(desc),
651 struct caam_flc *flc;
672 flc = &ctx->flc[ENCRYPT];
673 desc = flc->sh_desc;
675 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
677 sizeof(flc->flc) + desc_bytes(desc),
692 flc = &ctx->flc[DECRYPT];
693 desc = flc->sh_desc;
695 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
697 sizeof(flc->flc) + desc_bytes(desc),
743 struct caam_flc *flc;
765 flc = &ctx->flc[ENCRYPT];
766 desc = flc->sh_desc;
769 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
771 sizeof(flc->flc) + desc_bytes(desc),
785 flc = &ctx->flc[DECRYPT];
786 desc = flc->sh_desc;
789 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
791 sizeof(flc->flc) + desc_bytes(desc),
844 struct caam_flc *flc;
866 flc = &ctx->flc[ENCRYPT];
867 desc = flc->sh_desc;
870 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
872 sizeof(flc->flc) + desc_bytes(desc),
886 flc = &ctx->flc[DECRYPT];
887 desc = flc->sh_desc;
890 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
892 sizeof(flc->flc) + desc_bytes(desc),
946 struct caam_flc *flc;
959 flc = &ctx->flc[ENCRYPT];
960 desc = flc->sh_desc;
963 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
965 sizeof(flc->flc) + desc_bytes(desc),
969 flc = &ctx->flc[DECRYPT];
970 desc = flc->sh_desc;
973 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
975 sizeof(flc->flc) + desc_bytes(desc),
1063 struct caam_flc *flc;
1087 flc = &ctx->flc[ENCRYPT];
1088 desc = flc->sh_desc;
1090 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
1092 sizeof(flc->flc) + desc_bytes(desc),
1096 flc = &ctx->flc[DECRYPT];
1097 desc = flc->sh_desc;
1099 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
1101 sizeof(flc->flc) + desc_bytes(desc),
1334 caam_req->flc = &ctx->flc[ENCRYPT];
1362 caam_req->flc = &ctx->flc[DECRYPT];
1506 caam_req->flc = &ctx->flc[ENCRYPT];
1556 caam_req->flc = &ctx->flc[DECRYPT];
1584 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc,
1593 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]);
1594 ctx->key_dma = dma_addr + NUM_OP * sizeof(ctx->flc[0]);
3050 * @flc: Flow Contexts array
3058 struct caam_flc flc[HASH_NUM_OP];
3136 struct caam_flc *flc;
3140 flc = &ctx->flc[UPDATE];
3141 desc = flc->sh_desc;
3144 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3152 flc = &ctx->flc[UPDATE_FIRST];
3153 desc = flc->sh_desc;
3156 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3164 flc = &ctx->flc[FINALIZE];
3165 desc = flc->sh_desc;
3168 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3176 flc = &ctx->flc[DIGEST];
3177 desc = flc->sh_desc;
3180 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3214 struct caam_flc *flc;
3226 flc = kzalloc(sizeof(*flc), GFP_KERNEL | GFP_DMA);
3227 if (!flc)
3236 desc = flc->sh_desc;
3248 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3249 flc_dma = dma_map_single(ctx->dev, flc, sizeof(flc->flc) +
3274 req_ctx->flc = flc;
3289 dma_unmap_single(ctx->dev, flc_dma, sizeof(flc->flc) + desc_bytes(desc),
3294 kfree(flc);
3607 req_ctx->flc = &ctx->flc[UPDATE];
3689 req_ctx->flc = &ctx->flc[FINALIZE];
3783 req_ctx->flc = &ctx->flc[FINALIZE];
3879 req_ctx->flc = &ctx->flc[DIGEST];
3951 req_ctx->flc = &ctx->flc[DIGEST];
4057 req_ctx->flc = &ctx->flc[UPDATE_FIRST];
4168 req_ctx->flc = &ctx->flc[DIGEST];
4279 req_ctx->flc = &ctx->flc[UPDATE_FIRST];
4572 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, sizeof(ctx->flc),
4586 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]);
4609 dma_unmap_single_attrs(ctx->dev, ctx->flc_dma[0], sizeof(ctx->flc),