Lines Matching refs:alg

31 	struct crypto_alg alg;
67 int alg_test(const char *driver, const char *alg, u32 type, u32 mask);
99 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg)
101 return alg->cra_ctxsize;
104 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg)
106 return alg->cra_ctxsize;
109 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
113 void crypto_larval_kill(struct crypto_alg *alg);
117 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
120 void crypto_shoot_alg(struct crypto_alg *alg);
121 struct crypto_tfm *__crypto_alloc_tfmgfp(struct crypto_alg *alg, u32 type,
123 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
125 void *crypto_create_tfm_node(struct crypto_alg *alg,
134 static inline void *crypto_create_tfm(struct crypto_alg *alg,
137 return crypto_create_tfm_node(alg, frontend, NUMA_NO_NODE);
156 unsigned int crypto_alg_extsize(struct crypto_alg *alg);
161 static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg)
163 refcount_inc(&alg->cra_refcnt);
164 return alg;
167 static inline void crypto_alg_put(struct crypto_alg *alg)
169 if (refcount_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy)
170 alg->cra_destroy(alg);
183 static inline int crypto_is_larval(struct crypto_alg *alg)
185 return alg->cra_flags & CRYPTO_ALG_LARVAL;
188 static inline int crypto_is_dead(struct crypto_alg *alg)
190 return alg->cra_flags & CRYPTO_ALG_DEAD;
193 static inline int crypto_is_moribund(struct crypto_alg *alg)
195 return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING);
211 return larval->alg.cra_driver_name[0];