Lines Matching defs:alg
167 struct lib80211_crypto_alg *alg;
169 alg = kzalloc(sizeof(*alg), GFP_KERNEL);
170 if (alg == NULL)
173 alg->ops = ops;
176 list_add(&alg->list, &lib80211_crypto_algs);
188 struct lib80211_crypto_alg *alg;
192 list_for_each_entry(alg, &lib80211_crypto_algs, list) {
193 if (alg->ops == ops)
202 list_del(&alg->list);
204 kfree(alg);
211 struct lib80211_crypto_alg *alg;
215 list_for_each_entry(alg, &lib80211_crypto_algs, list) {
216 if (strcmp(alg->ops->name, name) == 0)
224 return alg->ops;