Home
last modified time | relevance | path

Searched refs:pstapriv (Results 1 – 25 of 40) sorted by relevance

12

/drivers/staging/rtl8188eu/core/
Drtw_sta_mgt.c72 u32 _rtw_init_sta_priv(struct sta_priv *pstapriv) in _rtw_init_sta_priv() argument
78 pstapriv->pallocated_stainfo_buf = vzalloc(sizeof(struct sta_info) * NUM_STA + 4); in _rtw_init_sta_priv()
80 if (!pstapriv->pallocated_stainfo_buf) in _rtw_init_sta_priv()
83 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _rtw_init_sta_priv()
84 ((size_t)(pstapriv->pallocated_stainfo_buf) & 3); in _rtw_init_sta_priv()
86 _rtw_init_queue(&pstapriv->free_sta_queue); in _rtw_init_sta_priv()
88 spin_lock_init(&pstapriv->sta_hash_lock); in _rtw_init_sta_priv()
90 pstapriv->asoc_sta_count = 0; in _rtw_init_sta_priv()
91 _rtw_init_queue(&pstapriv->sleep_q); in _rtw_init_sta_priv()
92 _rtw_init_queue(&pstapriv->wakeup_q); in _rtw_init_sta_priv()
[all …]
Drtw_ap.c35 struct sta_priv *pstapriv = &padapter->stapriv; in init_mlme_ap_info() local
36 struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; in init_mlme_ap_info()
50 struct sta_priv *pstapriv = &padapter->stapriv; in free_mlme_ap_info() local
67 spin_lock_bh(&(pstapriv->sta_hash_lock)); in free_mlme_ap_info()
69 spin_unlock_bh(&(pstapriv->sta_hash_lock)); in free_mlme_ap_info()
74 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local
131 if ((pstapriv->tim_bitmap&0xff00) && in update_BCNTIM()
132 (pstapriv->tim_bitmap&0x00fc)) in update_BCNTIM()
142 if (pstapriv->tim_bitmap&BIT(0))/* for bc/mc frames */ in update_BCNTIM()
148 *dst_ie++ = pstapriv->tim_bitmap & 0xff; in update_BCNTIM()
[all …]
Drtw_recv.c480 struct sta_priv *pstapriv; in portctrl() local
487 pstapriv = &adapter->stapriv; in portctrl()
495 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
582 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local
585 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
607 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local
610 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
701 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
769 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
789 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
[all …]
Drtw_mlme_ext.c1652 struct sta_priv *pstapriv = &padapter->stapriv; in issue_action_BA() local
1707 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA()
1924 struct sta_priv *pstapriv = &padapter->stapriv; in send_delba() local
1935 psta = rtw_get_stainfo(pstapriv, addr); in send_delba()
2667 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local
2704 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
2718 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
2761 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local
2800 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth()
2804 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth()
[all …]
Drtw_xmit.c437 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local
503 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib()
1602 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_xmit_classifier() local
1610 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in rtw_xmit_classifier()
1770 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local
1781 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in xmitframe_enqueue_for_sleeping_sta()
1795 if (pstapriv->sta_dz_bitmap) {/* if any one sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta()
1802 pstapriv->tim_bitmap |= BIT(0);/* */ in xmitframe_enqueue_for_sleeping_sta()
1803 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
1820 if (pstapriv->sta_dz_bitmap&BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta()
[all …]
Drtw_mlme.c777 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_free_assoc_resources_locked() local
790 spin_lock_bh(&(pstapriv->sta_hash_lock)); in rtw_free_assoc_resources_locked()
792 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources_locked()
801 spin_lock_bh(&(pstapriv->sta_hash_lock)); in rtw_free_assoc_resources_locked()
803 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources_locked()
907 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_joinbss_update_stainfo() local
909 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
911 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
1033 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_joinbss_event_prehandle() local
1074 pcur_sta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in rtw_joinbss_event_prehandle()
[all …]
Drtw_debug.c253 struct sta_priv *pstapriv = &padapter->stapriv; in proc_get_ap_info() local
256 psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in proc_get_ap_info()
842 struct sta_priv *pstapriv = &padapter->stapriv; in proc_get_all_sta_info() local
849 … len, count - len, "sta_dz_bitmap=0x%x, tim_bitmap=0x%x\n", pstapriv->sta_dz_bitmap, pstapriv->tim… in proc_get_all_sta_info()
851 spin_lock_bh(&pstapriv->sta_hash_lock); in proc_get_all_sta_info()
854 phead = &(pstapriv->sta_hash[i]); in proc_get_all_sta_info()
885 spin_unlock_bh(&pstapriv->sta_hash_lock); in proc_get_all_sta_info()
/drivers/staging/rtl8712/
Drtl871x_sta_mgt.c49 u32 _r8712_init_sta_priv(struct sta_priv *pstapriv) in _r8712_init_sta_priv() argument
54 pstapriv->pallocated_stainfo_buf = kmalloc(sizeof(struct sta_info) * in _r8712_init_sta_priv()
56 if (pstapriv->pallocated_stainfo_buf == NULL) in _r8712_init_sta_priv()
58 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _r8712_init_sta_priv()
59 ((addr_t)(pstapriv->pallocated_stainfo_buf) & 3); in _r8712_init_sta_priv()
60 _init_queue(&pstapriv->free_sta_queue); in _r8712_init_sta_priv()
61 spin_lock_init(&pstapriv->sta_hash_lock); in _r8712_init_sta_priv()
62 pstapriv->asoc_sta_count = 0; in _r8712_init_sta_priv()
63 _init_queue(&pstapriv->sleep_q); in _r8712_init_sta_priv()
64 _init_queue(&pstapriv->wakeup_q); in _r8712_init_sta_priv()
[all …]
Dsta_info.h134 u32 _r8712_init_sta_priv(struct sta_priv *pstapriv);
135 u32 _r8712_free_sta_priv(struct sta_priv *pstapriv);
136 struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv,
140 struct sta_info *r8712_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
Drtl871x_recv.c256 struct sta_priv *pstapriv; in r8712_portctrl() local
260 pstapriv = &adapter->stapriv; in r8712_portctrl()
264 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl()
322 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
373 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
388 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
422 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
433 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
447 struct sta_priv *pstapriv = &adapter->stapriv; in sta2ap_data_frame() local
457 *psta = r8712_get_stainfo(pstapriv, pattrib->src); in sta2ap_data_frame()
Drtl871x_mlme.c632 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_free_assoc_resources() local
644 spin_lock_irqsave(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources()
646 spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources()
711 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_joinbss_event_callback() local
785 pcur_sta = r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback()
787 spin_lock_irqsave(&pstapriv-> in r8712_joinbss_event_callback()
790 spin_unlock_irqrestore(&(pstapriv-> in r8712_joinbss_event_callback()
821 r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback()
825 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback()
829 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback()
[all …]
/drivers/staging/rtl8723au/core/
Drtw_sta_mgt.c54 int _rtw_init_sta_priv23a(struct sta_priv *pstapriv) in _rtw_init_sta_priv23a() argument
58 spin_lock_init(&pstapriv->sta_hash_lock); in _rtw_init_sta_priv23a()
59 pstapriv->asoc_sta_count = 0; in _rtw_init_sta_priv23a()
61 INIT_LIST_HEAD(&pstapriv->sta_hash[i]); in _rtw_init_sta_priv23a()
64 pstapriv->sta_dz_bitmap = 0; in _rtw_init_sta_priv23a()
65 pstapriv->tim_bitmap = 0; in _rtw_init_sta_priv23a()
66 INIT_LIST_HEAD(&pstapriv->asoc_list); in _rtw_init_sta_priv23a()
67 INIT_LIST_HEAD(&pstapriv->auth_list); in _rtw_init_sta_priv23a()
68 spin_lock_init(&pstapriv->asoc_list_lock); in _rtw_init_sta_priv23a()
69 spin_lock_init(&pstapriv->auth_list_lock); in _rtw_init_sta_priv23a()
[all …]
Drtw_ap.c29 struct sta_priv *pstapriv = &padapter->stapriv; in init_mlme_ap_info23a() local
30 struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; in init_mlme_ap_info23a()
43 struct sta_priv *pstapriv = &padapter->stapriv; in free_mlme_ap_info23a() local
60 spin_lock_bh(&pstapriv->sta_hash_lock); in free_mlme_ap_info23a()
62 spin_unlock_bh(&pstapriv->sta_hash_lock); in free_mlme_ap_info23a()
67 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local
125 if ((pstapriv->tim_bitmap&0xff00) && (pstapriv->tim_bitmap&0x00fc)) in update_BCNTIM()
135 if (pstapriv->tim_bitmap & BIT(0)) /* for bc/mc frames */ in update_BCNTIM()
141 *dst_ie++ = pstapriv->tim_bitmap & 0xff; in update_BCNTIM()
143 put_unaligned_le16(pstapriv->tim_bitmap, dst_ie); in update_BCNTIM()
[all …]
Drtw_recv.c537 struct sta_priv *pstapriv ; in portctrl() local
543 pstapriv = &adapter->stapriv; in portctrl()
550 psta = rtw_get_stainfo23a(pstapriv, psta_addr); in portctrl()
628 struct sta_priv *pstapriv = &padapter->stapriv; in process23a_pwrbit_data() local
631 psta = rtw_get_stainfo23a(pstapriv, pattrib->src); in process23a_pwrbit_data()
655 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local
658 psta = rtw_get_stainfo23a(pstapriv, pattrib->src); in process_wmmps_data()
748 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
825 *psta = rtw_get_stainfo23a(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
850 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
[all …]
Drtw_xmit.c421 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local
491 psta = rtw_get_stainfo23a(pstapriv, pattrib->ra); in update_attrib()
1715 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_xmit23a_classifier() local
1724 psta = rtw_get_stainfo23a(pstapriv, pattrib->ra); in rtw_xmit23a_classifier()
1918 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta23a() local
1930 psta = rtw_get_stainfo23a(pstapriv, pattrib->ra); in xmitframe_enqueue_for_sleeping_sta23a()
1953 if (pstapriv->sta_dz_bitmap) { in xmitframe_enqueue_for_sleeping_sta23a()
1963 pstapriv->tim_bitmap |= BIT(0);/* */ in xmitframe_enqueue_for_sleeping_sta23a()
1964 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta23a()
1988 if (pstapriv->sta_dz_bitmap & CHKBIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta23a()
[all …]
Drtw_mlme_ext.c789 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon23a() local
852 psta = rtw_get_stainfo23a(pstapriv, mgmt->sa); in OnBeacon23a()
871 psta = rtw_get_stainfo23a(pstapriv, mgmt->sa); in OnBeacon23a()
914 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth23a() local
967 pstat = rtw_get_stainfo23a(pstapriv, sa); in OnAuth23a()
971 pstat = rtw_alloc_stainfo23a(pstapriv, sa, GFP_ATOMIC); in OnAuth23a()
985 spin_lock_bh(&pstapriv->asoc_list_lock); in OnAuth23a()
988 pstapriv->asoc_list_cnt--; in OnAuth23a()
993 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnAuth23a()
1000 spin_lock_bh(&pstapriv->auth_list_lock); in OnAuth23a()
[all …]
Drtw_mlme.c739 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_free_assoc_resources23a() local
754 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources23a()
756 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources23a()
764 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources23a()
766 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources23a()
892 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_joinbss_update_stainfo() local
894 psta = rtw_get_stainfo23a(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
896 psta = rtw_alloc_stainfo23a(pstapriv, in rtw_joinbss_update_stainfo()
1062 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_joinbss_event_prehandle23a() local
1112 pcur_sta = rtw_get_stainfo23a(pstapriv, cur_network->network.MacAddress); in rtw_joinbss_event_prehandle23a()
[all …]
Drtw_cmd.c1073 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_chk_hi_queue_hdl() local
1096 pstapriv->tim_bitmap &= ~BIT(0); in rtw_chk_hi_queue_hdl()
1097 pstapriv->sta_dz_bitmap &= ~BIT(0); in rtw_chk_hi_queue_hdl()
1420 struct sta_priv *pstapriv; in rtw_setstaKey_cmdrsp_callback23a() local
1424 pstapriv = &padapter->stapriv; in rtw_setstaKey_cmdrsp_callback23a()
1426 psta = rtw_get_stainfo23a(pstapriv, psetstakey_rsp->addr); in rtw_setstaKey_cmdrsp_callback23a()
1442 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_setassocsta_cmdrsp_callback23a() local
1450 psta = rtw_get_stainfo23a(pstapriv, passocsta_parm->addr); in rtw_setassocsta_cmdrsp_callback23a()
/drivers/staging/rtl8188eu/os_dep/
Dxmit_linux.c168 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_mlcst2unicst() local
175 spin_lock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
176 phead = &pstapriv->asoc_list; in rtw_mlcst2unicst()
205 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
210 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
Dmlme_linux.c152 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_assoc_event() local
160 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event()
176 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_disassoc_event() local
184 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_disassoc_event()
Drecv_linux.c127 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_recv_indicatepkt() local
137 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()
/drivers/staging/rtl8723au/include/
Dsta_info.h362 int _rtw_init_sta_priv23a(struct sta_priv *pstapriv);
363 int _rtw_free_sta_priv23a(struct sta_priv *pstapriv);
365 struct sta_info *rtw_alloc_stainfo23a(struct sta_priv *pstapriv, const u8 *hwaddr, gfp_t gfp);
368 struct sta_info *rtw_get_stainfo23a(struct sta_priv *pstapriv, const u8 *hwaddr);
/drivers/staging/rtl8188eu/hal/
Drtl8188e_rxdesc.c153 struct sta_priv *pstapriv; in update_recvframe_phyinfo_88e() local
182 pstapriv = &padapter->stapriv; in update_recvframe_phyinfo_88e()
184 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e()
/drivers/staging/rtl8723au/os_dep/
Drecv_linux.c101 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_recv_indicatepkt23a() local
114 psta = rtw_get_stainfo23a(pstapriv, pattrib->dst); in rtw_recv_indicatepkt23a()
/drivers/staging/rtl8723au/hal/
Drtl8723au_recv.c190 struct sta_priv *pstapriv; in update_recvframe_phyinfo() local
241 pstapriv = &padapter->stapriv; in update_recvframe_phyinfo()
242 psta = rtw_get_stainfo23a(pstapriv, sa); in update_recvframe_phyinfo()

12