Lines Matching refs:hcrypt
39 static struct ieee80211_crypto *hcrypt;
109 if (hcrypt == NULL)
118 spin_lock_irqsave(&hcrypt->lock, flags);
119 list_add(&alg->list, &hcrypt->algs);
120 spin_unlock_irqrestore(&hcrypt->lock, flags);
134 if (hcrypt == NULL)
137 spin_lock_irqsave(&hcrypt->lock, flags);
138 for (ptr = hcrypt->algs.next; ptr != &hcrypt->algs; ptr = ptr->next) {
147 spin_unlock_irqrestore(&hcrypt->lock, flags);
165 if (hcrypt == NULL)
168 spin_lock_irqsave(&hcrypt->lock, flags);
169 for (ptr = hcrypt->algs.next; ptr != &hcrypt->algs; ptr = ptr->next) {
177 spin_unlock_irqrestore(&hcrypt->lock, flags);
209 hcrypt = kzalloc(sizeof(*hcrypt), GFP_KERNEL);
210 if (!hcrypt)
213 INIT_LIST_HEAD(&hcrypt->algs);
214 spin_lock_init(&hcrypt->lock);
218 kfree(hcrypt);
219 hcrypt = NULL;
231 if (hcrypt == NULL)
234 list_for_each_safe(ptr, n, &hcrypt->algs) {
244 kfree(hcrypt);