Lines Matching defs:alg
194 struct lib80211_crypto_alg *alg;
196 alg = kzalloc(sizeof(*alg), GFP_KERNEL);
197 if (alg == NULL)
200 alg->ops = ops;
203 list_add(&alg->list, &lib80211_crypto_algs);
215 struct lib80211_crypto_alg *alg;
219 list_for_each_entry(alg, &lib80211_crypto_algs, list) {
220 if (alg->ops == ops)
229 list_del(&alg->list);
231 kfree(alg);
238 struct lib80211_crypto_alg *alg;
242 list_for_each_entry(alg, &lib80211_crypto_algs, list) {
243 if (strcmp(alg->ops->name, name) == 0)
251 return alg->ops;