Lines Matching refs:hcrypt
38 static struct ieee80211_crypto *hcrypt;
108 if (hcrypt == NULL)
117 spin_lock_irqsave(&hcrypt->lock, flags);
118 list_add(&alg->list, &hcrypt->algs);
119 spin_unlock_irqrestore(&hcrypt->lock, flags);
133 if (hcrypt == NULL)
136 spin_lock_irqsave(&hcrypt->lock, flags);
137 for (ptr = hcrypt->algs.next; ptr != &hcrypt->algs; ptr = ptr->next) {
146 spin_unlock_irqrestore(&hcrypt->lock, flags);
164 if (hcrypt == NULL)
167 spin_lock_irqsave(&hcrypt->lock, flags);
168 for (ptr = hcrypt->algs.next; ptr != &hcrypt->algs; ptr = ptr->next) {
176 spin_unlock_irqrestore(&hcrypt->lock, flags);
207 hcrypt = kzalloc(sizeof(*hcrypt), GFP_KERNEL);
208 if (!hcrypt)
211 INIT_LIST_HEAD(&hcrypt->algs);
212 spin_lock_init(&hcrypt->lock);
216 kfree(hcrypt);
217 hcrypt = NULL;
228 if (hcrypt == NULL)
231 list_for_each_safe(ptr, n, &hcrypt->algs) {
241 kfree(hcrypt);