Lines Matching refs:spacc_alg
114 struct spacc_alg *algs;
135 struct spacc_alg { struct
177 static inline struct spacc_alg *to_spacc_skcipher(struct skcipher_alg *alg) in to_spacc_skcipher()
179 return alg ? container_of(alg, struct spacc_alg, alg) : NULL; in to_spacc_skcipher()
512 struct spacc_aead *spacc_alg = to_spacc_aead(alg); in spacc_aead_need_fallback() local
519 if ((spacc_alg->ctrl_default & SPACC_CRYPTO_ALG_MASK) == in spacc_aead_need_fallback()
560 struct spacc_aead *spacc_alg = to_spacc_aead(alg); in spacc_aead_submit() local
590 ctrl = spacc_alg->ctrl_default | (req->ctx_id << SPA_CTRL_CTX_IDX) | in spacc_aead_submit()
697 struct spacc_aead *spacc_alg = to_spacc_aead(alg); in spacc_aead_cra_init() local
698 struct spacc_engine *engine = spacc_alg->engine; in spacc_aead_cra_init()
700 ctx->generic.flags = spacc_alg->type; in spacc_aead_cra_init()
706 ctx->generic.key_offs = spacc_alg->key_offs; in spacc_aead_cra_init()
707 ctx->generic.iv_offs = spacc_alg->iv_offs; in spacc_aead_cra_init()
837 struct spacc_alg *spacc_alg = to_spacc_skcipher(crypto_skcipher_alg(tfm)); in spacc_ablk_need_fallback() local
842 return (spacc_alg->ctrl_default & SPACC_CRYPTO_ALG_MASK) == in spacc_ablk_need_fallback()
869 struct spacc_alg *spacc_alg = to_spacc_skcipher(alg); in spacc_ablk_submit() local
887 ctrl = spacc_alg->ctrl_default | (req->ctx_id << SPA_CTRL_CTX_IDX) | in spacc_ablk_submit()
1005 struct spacc_alg *spacc_alg = to_spacc_skcipher(alg); in spacc_ablk_init_tfm() local
1006 struct spacc_engine *engine = spacc_alg->engine; in spacc_ablk_init_tfm()
1008 ctx->generic.flags = spacc_alg->type; in spacc_ablk_init_tfm()
1026 ctx->generic.key_offs = spacc_alg->key_offs; in spacc_ablk_init_tfm()
1027 ctx->generic.iv_offs = spacc_alg->iv_offs; in spacc_ablk_init_tfm()
1043 struct spacc_alg *spacc_alg = to_spacc_skcipher(alg); in spacc_ablk_encrypt() local
1045 return spacc_ablk_setup(req, spacc_alg->type, 1); in spacc_ablk_encrypt()
1052 struct spacc_alg *spacc_alg = to_spacc_skcipher(alg); in spacc_ablk_decrypt() local
1054 return spacc_ablk_setup(req, spacc_alg->type, 0); in spacc_ablk_decrypt()
1224 static struct spacc_alg ipsec_engine_algs[] = {
1566 static struct spacc_alg l2_engine_algs[] = {
1769 struct spacc_alg *alg, *next; in spacc_remove()