mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 14:53:05 +00:00
rtl8188eu: Remove _func_enter_ and _func_exit_ statements
Kernel tracing is more effective. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
86fdc52e9a
commit
e91077579f
29 changed files with 671 additions and 746 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
static void _rtw_init_stainfo(struct sta_info *psta)
|
||||
{
|
||||
_func_enter_;
|
||||
|
||||
_rtw_memset((u8 *)psta, 0, sizeof (struct sta_info));
|
||||
|
||||
spin_lock_init(&psta->lock);
|
||||
|
@ -69,7 +69,7 @@ _func_enter_;
|
|||
|
||||
#endif /* CONFIG_88EU_AP_MODE */
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
u32 _rtw_init_sta_priv(struct sta_priv *pstapriv)
|
||||
|
@ -77,7 +77,7 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv)
|
|||
struct sta_info *psta;
|
||||
s32 i;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
pstapriv->pallocated_stainfo_buf = rtw_zvmalloc(sizeof(struct sta_info) * NUM_STA + 4);
|
||||
|
||||
|
@ -125,7 +125,7 @@ _func_enter_;
|
|||
pstapriv->max_num_sta = NUM_STA;
|
||||
#endif
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int
|
|||
void _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv);
|
||||
void _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv)
|
||||
{
|
||||
_func_enter_;
|
||||
|
||||
|
||||
_rtw_spinlock_free(&psta_xmitpriv->lock);
|
||||
|
||||
|
@ -159,24 +159,24 @@ _func_enter_;
|
|||
_rtw_spinlock_free(&(psta_xmitpriv->bk_q.sta_pending.lock));
|
||||
_rtw_spinlock_free(&(psta_xmitpriv->vi_q.sta_pending.lock));
|
||||
_rtw_spinlock_free(&(psta_xmitpriv->vo_q.sta_pending.lock));
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
static void _rtw_free_sta_recv_priv_lock(struct sta_recv_priv *psta_recvpriv)
|
||||
{
|
||||
_func_enter_;
|
||||
|
||||
|
||||
_rtw_spinlock_free(&psta_recvpriv->lock);
|
||||
|
||||
_rtw_spinlock_free(&(psta_recvpriv->defrag_q.lock));
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
void rtw_mfree_stainfo(struct sta_info *psta);
|
||||
void rtw_mfree_stainfo(struct sta_info *psta)
|
||||
{
|
||||
_func_enter_;
|
||||
|
||||
|
||||
if (&psta->lock != NULL)
|
||||
_rtw_spinlock_free(&psta->lock);
|
||||
|
@ -184,7 +184,7 @@ _func_enter_;
|
|||
_rtw_free_sta_xmit_priv_lock(&psta->sta_xmitpriv);
|
||||
_rtw_free_sta_recv_priv_lock(&psta->sta_recvpriv);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
/* this function is used to free the memory of lock || sema for all stainfos */
|
||||
|
@ -194,7 +194,7 @@ void rtw_mfree_all_stainfo(struct sta_priv *pstapriv)
|
|||
struct list_head *plist, *phead;
|
||||
struct sta_info *psta = NULL;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
spin_lock_bh(&pstapriv->sta_hash_lock);
|
||||
|
||||
|
@ -210,7 +210,7 @@ _func_enter_;
|
|||
|
||||
spin_unlock_bh(&pstapriv->sta_hash_lock);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
static void rtw_mfree_sta_priv_lock(struct sta_priv *pstapriv)
|
||||
|
@ -241,7 +241,7 @@ u32 _rtw_free_sta_priv(struct sta_priv *pstapriv)
|
|||
struct recv_reorder_ctrl *preorder_ctrl;
|
||||
int index;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
if (pstapriv) {
|
||||
/* delete all reordering_ctrl_timer */
|
||||
spin_lock_bh(&pstapriv->sta_hash_lock);
|
||||
|
@ -269,7 +269,7 @@ _func_enter_;
|
|||
rtw_vmfree(pstapriv->pallocated_stainfo_buf, sizeof(struct sta_info)*NUM_STA+4);
|
||||
}
|
||||
|
||||
_func_exit_;
|
||||
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -283,7 +283,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr)
|
|||
int i = 0;
|
||||
u16 wRxSeqInitialValue = 0xffff;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
pfree_sta_queue = &pstapriv->free_sta_queue;
|
||||
|
||||
|
@ -356,7 +356,7 @@ _func_enter_;
|
|||
|
||||
exit:
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return psta;
|
||||
}
|
||||
|
@ -371,7 +371,7 @@ u32 rtw_free_stainfo(struct adapter *padapter , struct sta_info *psta)
|
|||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
if (psta == NULL)
|
||||
goto exit;
|
||||
|
@ -486,7 +486,7 @@ _func_enter_;
|
|||
|
||||
exit:
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
@ -500,10 +500,8 @@ void rtw_free_all_stainfo(struct adapter *padapter)
|
|||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
struct sta_info *pbcmc_stainfo = rtw_get_bcmc_stainfo(padapter);
|
||||
|
||||
_func_enter_;
|
||||
|
||||
if (pstapriv->asoc_sta_count == 1)
|
||||
goto exit;
|
||||
return;
|
||||
|
||||
spin_lock_bh(&pstapriv->sta_hash_lock);
|
||||
|
||||
|
@ -520,12 +518,7 @@ _func_enter_;
|
|||
rtw_free_stainfo(padapter , psta);
|
||||
}
|
||||
}
|
||||
|
||||
spin_unlock_bh(&pstapriv->sta_hash_lock);
|
||||
|
||||
exit:
|
||||
|
||||
_func_exit_;
|
||||
}
|
||||
|
||||
/* any station allocated can be searched by hash list */
|
||||
|
@ -537,7 +530,7 @@ struct sta_info *rtw_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr)
|
|||
u8 *addr;
|
||||
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
if (hwaddr == NULL)
|
||||
return NULL;
|
||||
|
@ -566,7 +559,7 @@ _func_enter_;
|
|||
}
|
||||
|
||||
spin_unlock_bh(&pstapriv->sta_hash_lock);
|
||||
_func_exit_;
|
||||
|
||||
return psta;
|
||||
}
|
||||
|
||||
|
@ -577,7 +570,7 @@ u32 rtw_init_bcmc_stainfo(struct adapter *padapter)
|
|||
unsigned char bcast_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
psta = rtw_alloc_stainfo(pstapriv, bcast_addr);
|
||||
|
||||
|
@ -591,7 +584,7 @@ _func_enter_;
|
|||
psta->mac_id = 1;
|
||||
|
||||
exit:
|
||||
_func_exit_;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -600,9 +593,9 @@ struct sta_info *rtw_get_bcmc_stainfo(struct adapter *padapter)
|
|||
struct sta_info *psta;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
_func_enter_;
|
||||
|
||||
psta = rtw_get_stainfo(pstapriv, bc_addr);
|
||||
_func_exit_;
|
||||
|
||||
return psta;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue