Lines Matching refs:alg
27 struct crypto_alg alg; member
62 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) in crypto_cipher_ctxsize() argument
64 return alg->cra_ctxsize; in crypto_cipher_ctxsize()
67 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) in crypto_compress_ctxsize() argument
69 return alg->cra_ctxsize; in crypto_compress_ctxsize()
72 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
76 void crypto_larval_kill(struct crypto_alg *alg);
80 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
83 void crypto_shoot_alg(struct crypto_alg *alg);
84 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
86 void *crypto_create_tfm_node(struct crypto_alg *alg,
89 static inline void *crypto_create_tfm(struct crypto_alg *alg, in crypto_create_tfm() argument
92 return crypto_create_tfm_node(alg, frontend, NUMA_NO_NODE); in crypto_create_tfm()
111 unsigned int crypto_alg_extsize(struct crypto_alg *alg);
116 static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) in crypto_alg_get() argument
118 refcount_inc(&alg->cra_refcnt); in crypto_alg_get()
119 return alg; in crypto_alg_get()
122 static inline void crypto_alg_put(struct crypto_alg *alg) in crypto_alg_put() argument
124 if (refcount_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy) in crypto_alg_put()
125 alg->cra_destroy(alg); in crypto_alg_put()
138 static inline int crypto_is_larval(struct crypto_alg *alg) in crypto_is_larval() argument
140 return alg->cra_flags & CRYPTO_ALG_LARVAL; in crypto_is_larval()
143 static inline int crypto_is_dead(struct crypto_alg *alg) in crypto_is_dead() argument
145 return alg->cra_flags & CRYPTO_ALG_DEAD; in crypto_is_dead()
148 static inline int crypto_is_moribund(struct crypto_alg *alg) in crypto_is_moribund() argument
150 return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING); in crypto_is_moribund()
166 return larval->alg.cra_driver_name[0]; in crypto_is_test_larval()