Lines Matching refs:flc

74 	struct caam_flc flc[NUM_OP];  member
171 struct caam_flc *flc; in aead_set_sh_desc() local
228 flc = &ctx->flc[ENCRYPT]; in aead_set_sh_desc()
229 desc = flc->sh_desc; in aead_set_sh_desc()
241 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
243 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
256 flc = &ctx->flc[DECRYPT]; in aead_set_sh_desc()
257 desc = flc->sh_desc; in aead_set_sh_desc()
262 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
264 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
591 struct caam_flc *flc; in chachapoly_set_sh_desc() local
597 flc = &ctx->flc[ENCRYPT]; in chachapoly_set_sh_desc()
598 desc = flc->sh_desc; in chachapoly_set_sh_desc()
601 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
603 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
606 flc = &ctx->flc[DECRYPT]; in chachapoly_set_sh_desc()
607 desc = flc->sh_desc; in chachapoly_set_sh_desc()
610 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
612 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()
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()
850 struct caam_flc *flc; in rfc4543_set_sh_desc() local
872 flc = &ctx->flc[ENCRYPT]; in rfc4543_set_sh_desc()
873 desc = flc->sh_desc; in rfc4543_set_sh_desc()
876 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
878 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
892 flc = &ctx->flc[DECRYPT]; in rfc4543_set_sh_desc()
893 desc = flc->sh_desc; in rfc4543_set_sh_desc()
896 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4543_set_sh_desc()
898 sizeof(flc->flc) + desc_bytes(desc), in rfc4543_set_sh_desc()
954 struct caam_flc *flc; in skcipher_setkey() local
967 flc = &ctx->flc[ENCRYPT]; in skcipher_setkey()
968 desc = flc->sh_desc; in skcipher_setkey()
971 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
973 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
977 flc = &ctx->flc[DECRYPT]; in skcipher_setkey()
978 desc = flc->sh_desc; in skcipher_setkey()
981 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
983 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
1082 struct caam_flc *flc; in xts_skcipher_setkey() local
1096 flc = &ctx->flc[ENCRYPT]; in xts_skcipher_setkey()
1097 desc = flc->sh_desc; in xts_skcipher_setkey()
1099 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1101 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1105 flc = &ctx->flc[DECRYPT]; in xts_skcipher_setkey()
1106 desc = flc->sh_desc; in xts_skcipher_setkey()
1108 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1110 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1343 caam_req->flc = &ctx->flc[ENCRYPT]; in aead_encrypt()
1371 caam_req->flc = &ctx->flc[DECRYPT]; in aead_decrypt()
1488 caam_req->flc = &ctx->flc[ENCRYPT]; in skcipher_encrypt()
1518 caam_req->flc = &ctx->flc[DECRYPT]; in skcipher_decrypt()
1546 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, in caam_cra_init()
1555 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_cra_init()
1556 ctx->key_dma = dma_addr + NUM_OP * sizeof(ctx->flc[0]); in caam_cra_init()
2987 struct caam_flc flc[HASH_NUM_OP]; member
3092 struct caam_flc *flc; in ahash_set_sh_desc() local
3096 flc = &ctx->flc[UPDATE]; in ahash_set_sh_desc()
3097 desc = flc->sh_desc; in ahash_set_sh_desc()
3100 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3108 flc = &ctx->flc[UPDATE_FIRST]; in ahash_set_sh_desc()
3109 desc = flc->sh_desc; in ahash_set_sh_desc()
3112 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3120 flc = &ctx->flc[FINALIZE]; in ahash_set_sh_desc()
3121 desc = flc->sh_desc; in ahash_set_sh_desc()
3124 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3132 flc = &ctx->flc[DIGEST]; in ahash_set_sh_desc()
3133 desc = flc->sh_desc; in ahash_set_sh_desc()
3136 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3170 struct caam_flc *flc; in hash_digest_key() local
3182 flc = kzalloc(sizeof(*flc), GFP_KERNEL | GFP_DMA); in hash_digest_key()
3183 if (!flc) in hash_digest_key()
3192 desc = flc->sh_desc; in hash_digest_key()
3204 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in hash_digest_key()
3205 flc_dma = dma_map_single(ctx->dev, flc, sizeof(flc->flc) + in hash_digest_key()
3230 req_ctx->flc = flc; in hash_digest_key()
3245 dma_unmap_single(ctx->dev, flc_dma, sizeof(flc->flc) + desc_bytes(desc), in hash_digest_key()
3250 kfree(flc); in hash_digest_key()
3554 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3639 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3733 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3829 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3901 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
4013 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4127 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4241 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4543 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, sizeof(ctx->flc), in caam_hash_cra_init()
4557 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_hash_cra_init()
4576 dma_unmap_single_attrs(ctx->dev, ctx->flc_dma[0], sizeof(ctx->flc), in caam_hash_cra_exit()