Lines Matching refs:psta

25 static void _init_stainfo(struct sta_info *psta)
27 memset((u8 *)psta, 0, sizeof(struct sta_info));
28 spin_lock_init(&psta->lock);
29 INIT_LIST_HEAD(&psta->list);
30 INIT_LIST_HEAD(&psta->hash_list);
31 _r8712_init_sta_xmit_priv(&psta->sta_xmitpriv);
32 _r8712_init_sta_recv_priv(&psta->sta_recvpriv);
33 INIT_LIST_HEAD(&psta->asoc_list);
34 INIT_LIST_HEAD(&psta->auth_list);
39 struct sta_info *psta;
53 psta = (struct sta_info *)(pstapriv->pstainfo_buf);
55 _init_stainfo(psta);
57 list_add_tail(&psta->list, &pstapriv->free_sta_queue.queue);
58 psta++;
93 struct sta_info *psta;
102 psta = list_first_entry_or_null(&pfree_sta_queue->queue,
104 if (psta) {
105 list_del_init(&psta->list);
106 _init_stainfo(psta);
107 memcpy(psta->hwaddr, hwaddr, ETH_ALEN);
110 psta = NULL;
114 list_add_tail(&psta->hash_list, phash_list);
123 memcpy(&psta->sta_recvpriv.rxcache.tid_rxseq[i],
127 preorder_ctrl = &psta->recvreorder_ctrl[i];
138 return psta;
142 void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta)
152 if (!psta)
155 pstaxmitpriv = &psta->sta_xmitpriv;
172 list_del_init(&psta->hash_list);
175 _r8712_init_sta_xmit_priv(&psta->sta_xmitpriv);
176 _r8712_init_sta_recv_priv(&psta->sta_recvpriv);
181 preorder_ctrl = &psta->recvreorder_ctrl[i];
186 list_add_tail(&psta->list, &pfree_sta_queue->queue);
196 struct sta_info *psta = NULL;
207 psta = container_of(plist,
210 if (pbcmc_stainfo != psta)
211 r8712_free_stainfo(padapter, psta);
222 struct sta_info *psta = NULL;
232 psta = container_of(plist, struct sta_info, hash_list);
233 if ((!memcmp(psta->hwaddr, hwaddr, ETH_ALEN))) {
237 psta = NULL;
241 return psta;