Lines Matching refs:flc

82 	struct caam_flc flc[NUM_OP];  member
181 struct caam_flc *flc; in aead_set_sh_desc() local
238 flc = &ctx->flc[ENCRYPT]; in aead_set_sh_desc()
239 desc = flc->sh_desc; in aead_set_sh_desc()
251 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
253 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
266 flc = &ctx->flc[DECRYPT]; in aead_set_sh_desc()
267 desc = flc->sh_desc; in aead_set_sh_desc()
272 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in aead_set_sh_desc()
274 sizeof(flc->flc) + desc_bytes(desc), in aead_set_sh_desc()
596 struct caam_flc *flc; in chachapoly_set_sh_desc() local
602 flc = &ctx->flc[ENCRYPT]; in chachapoly_set_sh_desc()
603 desc = flc->sh_desc; in chachapoly_set_sh_desc()
606 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
608 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
611 flc = &ctx->flc[DECRYPT]; in chachapoly_set_sh_desc()
612 desc = flc->sh_desc; in chachapoly_set_sh_desc()
615 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in chachapoly_set_sh_desc()
617 sizeof(flc->flc) + desc_bytes(desc), in chachapoly_set_sh_desc()
657 struct caam_flc *flc; in gcm_set_sh_desc() local
678 flc = &ctx->flc[ENCRYPT]; in gcm_set_sh_desc()
679 desc = flc->sh_desc; in gcm_set_sh_desc()
681 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
683 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
698 flc = &ctx->flc[DECRYPT]; in gcm_set_sh_desc()
699 desc = flc->sh_desc; in gcm_set_sh_desc()
701 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in gcm_set_sh_desc()
703 sizeof(flc->flc) + desc_bytes(desc), in gcm_set_sh_desc()
749 struct caam_flc *flc; in rfc4106_set_sh_desc() local
771 flc = &ctx->flc[ENCRYPT]; in rfc4106_set_sh_desc()
772 desc = flc->sh_desc; in rfc4106_set_sh_desc()
775 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
777 sizeof(flc->flc) + desc_bytes(desc), in rfc4106_set_sh_desc()
791 flc = &ctx->flc[DECRYPT]; in rfc4106_set_sh_desc()
792 desc = flc->sh_desc; in rfc4106_set_sh_desc()
795 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in rfc4106_set_sh_desc()
797 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()
952 struct caam_flc *flc; in skcipher_setkey() local
965 flc = &ctx->flc[ENCRYPT]; in skcipher_setkey()
966 desc = flc->sh_desc; in skcipher_setkey()
969 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
971 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
975 flc = &ctx->flc[DECRYPT]; in skcipher_setkey()
976 desc = flc->sh_desc; in skcipher_setkey()
979 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in skcipher_setkey()
981 sizeof(flc->flc) + desc_bytes(desc), in skcipher_setkey()
1069 struct caam_flc *flc; in xts_skcipher_setkey() local
1093 flc = &ctx->flc[ENCRYPT]; in xts_skcipher_setkey()
1094 desc = flc->sh_desc; in xts_skcipher_setkey()
1096 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1098 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1102 flc = &ctx->flc[DECRYPT]; in xts_skcipher_setkey()
1103 desc = flc->sh_desc; in xts_skcipher_setkey()
1105 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in xts_skcipher_setkey()
1107 sizeof(flc->flc) + desc_bytes(desc), in xts_skcipher_setkey()
1340 caam_req->flc = &ctx->flc[ENCRYPT]; in aead_encrypt()
1368 caam_req->flc = &ctx->flc[DECRYPT]; in aead_decrypt()
1512 caam_req->flc = &ctx->flc[ENCRYPT]; in skcipher_encrypt()
1562 caam_req->flc = &ctx->flc[DECRYPT]; in skcipher_decrypt()
1590 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, in caam_cra_init()
1599 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_cra_init()
1600 ctx->key_dma = dma_addr + NUM_OP * sizeof(ctx->flc[0]); in caam_cra_init()
3066 struct caam_flc flc[HASH_NUM_OP]; member
3144 struct caam_flc *flc; in ahash_set_sh_desc() local
3148 flc = &ctx->flc[UPDATE]; in ahash_set_sh_desc()
3149 desc = flc->sh_desc; in ahash_set_sh_desc()
3152 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3160 flc = &ctx->flc[UPDATE_FIRST]; in ahash_set_sh_desc()
3161 desc = flc->sh_desc; in ahash_set_sh_desc()
3164 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3172 flc = &ctx->flc[FINALIZE]; in ahash_set_sh_desc()
3173 desc = flc->sh_desc; in ahash_set_sh_desc()
3176 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3184 flc = &ctx->flc[DIGEST]; in ahash_set_sh_desc()
3185 desc = flc->sh_desc; in ahash_set_sh_desc()
3188 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in ahash_set_sh_desc()
3222 struct caam_flc *flc; in hash_digest_key() local
3234 flc = kzalloc(sizeof(*flc), GFP_KERNEL); in hash_digest_key()
3235 if (!flc) in hash_digest_key()
3244 desc = flc->sh_desc; in hash_digest_key()
3256 flc->flc[1] = cpu_to_caam32(desc_len(desc)); /* SDL */ in hash_digest_key()
3257 flc_dma = dma_map_single(ctx->dev, flc, sizeof(flc->flc) + in hash_digest_key()
3282 req_ctx->flc = flc; in hash_digest_key()
3297 dma_unmap_single(ctx->dev, flc_dma, sizeof(flc->flc) + desc_bytes(desc), in hash_digest_key()
3302 kfree(flc); in hash_digest_key()
3621 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3703 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3797 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3893 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3965 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
4071 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4182 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4293 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4587 dma_addr = dma_map_single_attrs(ctx->dev, ctx->flc, sizeof(ctx->flc), in caam_hash_cra_init()
4601 ctx->flc_dma[i] = dma_addr + i * sizeof(ctx->flc[i]); in caam_hash_cra_init()
4623 dma_unmap_single_attrs(ctx->dev, ctx->flc_dma[0], sizeof(ctx->flc), in caam_hash_cra_exit()