Lines Matching refs:alg
29 struct crypto_alg alg; member
37 unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask);
38 unsigned int (*extsize)(struct crypto_alg *alg);
40 void (*show)(struct seq_file *m, struct crypto_alg *alg);
41 int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
43 void (*destroy)(struct crypto_alg *alg);
68 int alg_test(const char *driver, const char *alg, u32 type, u32 mask);
102 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) in crypto_cipher_ctxsize() argument
104 return alg->cra_ctxsize; in crypto_cipher_ctxsize()
107 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) in crypto_compress_ctxsize() argument
109 return alg->cra_ctxsize; in crypto_compress_ctxsize()
112 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
119 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
122 void crypto_shoot_alg(struct crypto_alg *alg);
123 struct crypto_tfm *__crypto_alloc_tfmgfp(struct crypto_alg *alg, u32 type,
125 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
127 void *crypto_create_tfm_node(struct crypto_alg *alg,
132 static inline void *crypto_create_tfm(struct crypto_alg *alg, in crypto_create_tfm() argument
135 return crypto_create_tfm_node(alg, frontend, NUMA_NO_NODE); in crypto_create_tfm()
154 unsigned int crypto_alg_extsize(struct crypto_alg *alg);
159 static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) in crypto_alg_get() argument
161 refcount_inc(&alg->cra_refcnt); in crypto_alg_get()
162 return alg; in crypto_alg_get()
165 void crypto_destroy_alg(struct crypto_alg *alg);
167 static inline void crypto_alg_put(struct crypto_alg *alg) in crypto_alg_put() argument
169 if (refcount_dec_and_test(&alg->cra_refcnt)) in crypto_alg_put()
170 crypto_destroy_alg(alg); in crypto_alg_put()
183 static inline int crypto_is_larval(struct crypto_alg *alg) in crypto_is_larval() argument
185 return alg->cra_flags & CRYPTO_ALG_LARVAL; in crypto_is_larval()
188 static inline int crypto_is_dead(struct crypto_alg *alg) in crypto_is_dead() argument
190 return alg->cra_flags & CRYPTO_ALG_DEAD; in crypto_is_dead()
193 static inline int crypto_is_moribund(struct crypto_alg *alg) in crypto_is_moribund() argument
195 return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING); in crypto_is_moribund()
211 return larval->alg.cra_driver_name[0]; in crypto_is_test_larval()