Lines Matching refs:sa
595 struct dynamic_sa_ctl *sa = (struct dynamic_sa_ctl *) ctx->sa_in; in crypto4xx_copy_digest_to_dst() local
599 if (sa->sa_command_0.bf.hash_alg == SA_HASH_ALG_SHA1) { in crypto4xx_copy_digest_to_dst()
788 struct dynamic_sa_ctl *sa; in crypto4xx_build_pd() local
863 pd->sa = pd_uinfo->sa_pa; in crypto4xx_build_pd()
864 sa = (struct dynamic_sa_ctl *) pd_uinfo->sa_va; in crypto4xx_build_pd()
866 memcpy(sa, ctx->sa_in, ctx->sa_len * 4); in crypto4xx_build_pd()
868 memcpy(sa, ctx->sa_out, ctx->sa_len * 4); in crypto4xx_build_pd()
870 memcpy((void *) sa + ctx->offset_to_sr_ptr, in crypto4xx_build_pd()
877 pd->sa = ctx->sa_in_dma_addr; in crypto4xx_build_pd()
878 sa = (struct dynamic_sa_ctl *) ctx->sa_in; in crypto4xx_build_pd()
880 pd->sa = ctx->sa_out_dma_addr; in crypto4xx_build_pd()
881 sa = (struct dynamic_sa_ctl *) ctx->sa_out; in crypto4xx_build_pd()
893 sa->sa_command_0.bf.gather = 1; in crypto4xx_build_pd()
918 sa->sa_command_0.bf.gather = 0; in crypto4xx_build_pd()
935 sa->sa_command_0.bf.scatter = 0; in crypto4xx_build_pd()
946 sa->sa_command_0.bf.scatter = 1; in crypto4xx_build_pd()
979 sa->sa_command_1.bf.hash_crypto_offset = 0; in crypto4xx_build_pd()