Lines Matching refs:flc

67  * @flc: Flow Contexts array
81 struct caam_flc flc[NUM_OP];
180 struct caam_flc *flc;
237 flc = &ctx->flc[ENCRYPT];
238 desc = flc->sh_desc;
250 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
252 sizeof(flc->flc) + desc_bytes(desc),
265 flc = &ctx->flc[DECRYPT];
266 desc = flc->sh_desc;
271 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
273 sizeof(flc->flc) + desc_bytes(desc),
595 struct caam_flc *flc;
601 flc = &ctx->flc[ENCRYPT];
602 desc = flc->sh_desc;
605 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
607 sizeof(flc->flc) + desc_bytes(desc),
610 flc = &ctx->flc[DECRYPT];
611 desc = flc->sh_desc;
614 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
616 sizeof(flc->flc) + desc_bytes(desc),
656 struct caam_flc *flc;
677 flc = &ctx->flc[ENCRYPT];
678 desc = flc->sh_desc;
680 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
682 sizeof(flc->flc) + desc_bytes(desc),
697 flc = &ctx->flc[DECRYPT];
698 desc = flc->sh_desc;
700 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
702 sizeof(flc->flc) + desc_bytes(desc),
748 struct caam_flc *flc;
770 flc = &ctx->flc[ENCRYPT];
771 desc = flc->sh_desc;
774 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
776 sizeof(flc->flc) + desc_bytes(desc),
790 flc = &ctx->flc[DECRYPT];
791 desc = flc->sh_desc;
794 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
796 sizeof(flc->flc) + desc_bytes(desc),
849 struct caam_flc *flc;
871 flc = &ctx->flc[ENCRYPT];
872 desc = flc->sh_desc;
875 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
877 sizeof(flc->flc) + desc_bytes(desc),
891 flc = &ctx->flc[DECRYPT];
892 desc = flc->sh_desc;
895 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
897 sizeof(flc->flc) + desc_bytes(desc),
951 struct caam_flc *flc;
964 flc = &ctx->flc[ENCRYPT];
965 desc = flc->sh_desc;
968 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
970 sizeof(flc->flc) + desc_bytes(desc),
974 flc = &ctx->flc[DECRYPT];
975 desc = flc->sh_desc;
978 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
980 sizeof(flc->flc) + desc_bytes(desc),
1068 struct caam_flc *flc;
1092 flc = &ctx->flc[ENCRYPT];
1093 desc = flc->sh_desc;
1095 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
1097 sizeof(flc->flc) + desc_bytes(desc),
1101 flc = &ctx->flc[DECRYPT];
1102 desc = flc->sh_desc;
1104 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
1106 sizeof(flc->flc) + desc_bytes(desc),
1339 caam_req->flc = &ctx->flc[ENCRYPT];
1367 caam_req->flc = &ctx->flc[DECRYPT];
1511 caam_req->flc = &ctx->flc[ENCRYPT];
1561 caam_req->flc = &ctx->flc[DECRYPT];
1589 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc,
1598 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]);
1599 ctx->key_dma = dma_addr + NUM_OP * sizeof(ctx->flc[0]);
3057 * @flc: Flow Contexts array
3065 struct caam_flc flc[HASH_NUM_OP];
3143 struct caam_flc *flc;
3147 flc = &ctx->flc[UPDATE];
3148 desc = flc->sh_desc;
3151 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3159 flc = &ctx->flc[UPDATE_FIRST];
3160 desc = flc->sh_desc;
3163 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3171 flc = &ctx->flc[FINALIZE];
3172 desc = flc->sh_desc;
3175 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3183 flc = &ctx->flc[DIGEST];
3184 desc = flc->sh_desc;
3187 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3221 struct caam_flc *flc;
3233 flc = kzalloc(sizeof(*flc), GFP_KERNEL);
3234 if (!flc)
3243 desc = flc->sh_desc;
3255 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */
3256 flc_dma = dma_map_single(ctx->dev, flc, sizeof(flc->flc) +
3281 req_ctx->flc = flc;
3296 dma_unmap_single(ctx->dev, flc_dma, sizeof(flc->flc) + desc_bytes(desc),
3301 kfree(flc);
3620 req_ctx->flc = &ctx->flc[UPDATE];
3702 req_ctx->flc = &ctx->flc[FINALIZE];
3796 req_ctx->flc = &ctx->flc[FINALIZE];
3892 req_ctx->flc = &ctx->flc[DIGEST];
3964 req_ctx->flc = &ctx->flc[DIGEST];
4070 req_ctx->flc = &ctx->flc[UPDATE_FIRST];
4181 req_ctx->flc = &ctx->flc[DIGEST];
4292 req_ctx->flc = &ctx->flc[UPDATE_FIRST];
4585 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, sizeof(ctx->flc),
4599 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]);
4621 dma_unmap_single_attrs(ctx->dev, ctx->flc_dma[0], sizeof(ctx->flc),