mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33: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
|
@ -116,7 +116,7 @@ uint rtw_hal_deinit(struct adapter *adapt)
|
|||
{
|
||||
uint status = _SUCCESS;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
status = adapt->HalFunc.hal_deinit(adapt);
|
||||
|
||||
|
@ -125,7 +125,7 @@ _func_enter_;
|
|||
else
|
||||
DBG_88E("\n rtw_hal_deinit: hal_init fail\n");
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return status;
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ static s32 FillH2CCmd_88E(struct adapter *adapt, u8 ElementID, u32 CmdLen, u8 *p
|
|||
u32 h2c_cmd_ex = 0;
|
||||
s32 ret = _FAIL;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
if (!adapt->bFWReady) {
|
||||
DBG_88E("FillH2CCmd_88E(): return H2C cmd because fw is not ready\n");
|
||||
|
@ -125,7 +125,7 @@ _func_enter_;
|
|||
|
||||
exit:
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ u8 rtl8188e_set_rssi_cmd(struct adapter *adapt, u8 *param)
|
|||
{
|
||||
u8 res = _SUCCESS;
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(adapt);
|
||||
_func_enter_;
|
||||
|
||||
|
||||
if (haldata->fw_ractrl) {
|
||||
;
|
||||
|
@ -143,7 +143,7 @@ _func_enter_;
|
|||
res = _FAIL;
|
||||
}
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ u8 rtl8188e_set_raid_cmd(struct adapter *adapt, u32 mask)
|
|||
u8 res = _SUCCESS;
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(adapt);
|
||||
|
||||
_func_enter_;
|
||||
|
||||
if (haldata->fw_ractrl) {
|
||||
__le32 lmask;
|
||||
|
||||
|
@ -168,7 +168,7 @@ _func_enter_;
|
|||
res = _FAIL;
|
||||
}
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ void rtl8188e_set_FwPwrMode_cmd(struct adapter *adapt, u8 Mode)
|
|||
struct setpwrmode_parm H2CSetPwrMode;
|
||||
struct pwrctrl_priv *pwrpriv = &adapt->pwrctrlpriv;
|
||||
u8 RLBM = 0; /* 0:Min, 1:Max, 2:User define */
|
||||
_func_enter_;
|
||||
|
||||
|
||||
DBG_88E("%s: Mode=%d SmartPS=%d UAPSD=%d\n", __func__,
|
||||
Mode, pwrpriv->smart_ps, adapt->registrypriv.uapsd_enable);
|
||||
|
@ -256,7 +256,7 @@ _func_enter_;
|
|||
|
||||
FillH2CCmd_88E(adapt, H2C_PS_PWR_MODE, sizeof(H2CSetPwrMode), (u8 *)&H2CSetPwrMode);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
void rtl8188e_set_FwMediaStatus_cmd(struct adapter *adapt, __le16 mstatus_rpt)
|
||||
|
@ -617,7 +617,7 @@ void rtl8188e_set_FwJoinBssReport_cmd(struct adapter *adapt, u8 mstatus)
|
|||
u8 DLBcnCount = 0;
|
||||
u32 poll = 0;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
DBG_88E("%s mstatus(%x)\n", __func__, mstatus);
|
||||
|
||||
|
@ -701,7 +701,7 @@ _func_enter_;
|
|||
haldata->RegCR_1 &= (~BIT0);
|
||||
rtw_write8(adapt, REG_CR+1, haldata->RegCR_1);
|
||||
}
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
void rtl8188e_set_p2p_ps_offload_cmd(struct adapter *adapt, u8 p2p_ps_state)
|
||||
|
@ -712,7 +712,7 @@ void rtl8188e_set_p2p_ps_offload_cmd(struct adapter *adapt, u8 p2p_ps_state)
|
|||
struct P2P_PS_Offload_t *p2p_ps_offload = &haldata->p2p_ps_offload;
|
||||
u8 i;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
switch (p2p_ps_state) {
|
||||
case P2P_PS_DISABLE:
|
||||
|
@ -775,5 +775,5 @@ _func_enter_;
|
|||
FillH2CCmd_88E(adapt, H2C_PS_P2P_OFFLOAD, 1, (u8 *)p2p_ps_offload);
|
||||
#endif
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
|
|
@ -165,7 +165,7 @@ void rtl8188e_HalDmWatchDog(struct adapter *Adapter)
|
|||
u8 hw_init_completed = false;
|
||||
struct hal_data_8188e *hal_data = GET_HAL_DATA(Adapter);
|
||||
|
||||
_func_enter_;
|
||||
|
||||
hw_init_completed = Adapter->hw_init_completed;
|
||||
|
||||
if (!hw_init_completed)
|
||||
|
@ -183,7 +183,7 @@ void rtl8188e_HalDmWatchDog(struct adapter *Adapter)
|
|||
/* Calculate Tx/Rx statistics. */
|
||||
dm_CheckStatistics(Adapter);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
/* ODM */
|
||||
|
|
|
@ -715,10 +715,10 @@ void rtl8188e_InitializeFirmwareVars(struct adapter *padapter)
|
|||
|
||||
static void rtl8188e_free_hal_data(struct adapter *padapter)
|
||||
{
|
||||
_func_enter_;
|
||||
|
||||
kfree(padapter->HalData);
|
||||
padapter->HalData = NULL;
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
/* */
|
||||
|
|
|
@ -709,7 +709,7 @@ static u32 rtl8188eu_hal_init(struct adapter *Adapter)
|
|||
|
||||
#define HAL_INIT_PROFILE_TAG(stage) do {} while (0)
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_BEGIN);
|
||||
|
||||
|
@ -967,7 +967,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_END);
|
|||
|
||||
DBG_88E("%s in %dms\n", __func__, rtw_get_passing_time_ms(init_start_time));
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return status;
|
||||
}
|
||||
|
@ -1084,7 +1084,7 @@ static unsigned int rtl8188eu_inirp_init(struct adapter *Adapter)
|
|||
struct recv_priv *precvpriv = &(Adapter->recvpriv);
|
||||
u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
_read_port = pintfhdl->io_ops._read_port;
|
||||
|
||||
|
@ -1112,7 +1112,7 @@ exit:
|
|||
|
||||
RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("<=== usb_inirp_init\n"));
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return status;
|
||||
}
|
||||
|
@ -1402,7 +1402,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
|||
struct hal_data_8188e *haldata = GET_HAL_DATA(Adapter);
|
||||
struct dm_priv *pdmpriv = &haldata->dmpriv;
|
||||
struct odm_dm_struct *podmpriv = &haldata->odmpriv;
|
||||
_func_enter_;
|
||||
|
||||
|
||||
switch (variable) {
|
||||
case HW_VAR_MEDIA_STATUS:
|
||||
|
@ -1921,14 +1921,14 @@ _func_enter_;
|
|||
default:
|
||||
break;
|
||||
}
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
static void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
||||
{
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(Adapter);
|
||||
struct odm_dm_struct *podmpriv = &haldata->odmpriv;
|
||||
_func_enter_;
|
||||
|
||||
|
||||
switch (variable) {
|
||||
case HW_VAR_BASIC_RATE:
|
||||
|
@ -1980,7 +1980,7 @@ _func_enter_;
|
|||
break;
|
||||
}
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
/* */
|
||||
|
@ -2302,7 +2302,7 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
|
|||
{
|
||||
struct hal_ops *halfunc = &adapt->HalFunc;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
adapt->HalData = rtw_zmalloc(sizeof(struct hal_data_8188e));
|
||||
if (adapt->HalData == NULL)
|
||||
|
@ -2342,5 +2342,5 @@ _func_enter_;
|
|||
halfunc->interface_ps_func = &rtl8188eu_ps_func;
|
||||
|
||||
rtl8188e_set_hal_ops(halfunc);
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ static u8 usb_read8(struct intf_hdl *pintfhdl, u32 addr)
|
|||
u16 len;
|
||||
u8 data = 0;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x01;/* read_in */
|
||||
|
@ -136,7 +136,7 @@ static u8 usb_read8(struct intf_hdl *pintfhdl, u32 addr)
|
|||
|
||||
usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return data;
|
||||
|
||||
|
@ -151,14 +151,14 @@ static u16 usb_read16(struct intf_hdl *pintfhdl, u32 addr)
|
|||
u16 len;
|
||||
__le32 data;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x01;/* read_in */
|
||||
index = 0;/* n/a */
|
||||
wvalue = (u16)(addr&0x0000ffff);
|
||||
len = 2;
|
||||
usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return (u16)(le32_to_cpu(data)&0xffff);
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ static u32 usb_read32(struct intf_hdl *pintfhdl, u32 addr)
|
|||
u16 len;
|
||||
__le32 data;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x01;/* read_in */
|
||||
|
@ -183,7 +183,7 @@ _func_enter_;
|
|||
|
||||
usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return le32_to_cpu(data);
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ static int usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val)
|
|||
u8 data;
|
||||
int ret;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x00;/* write_out */
|
||||
index = 0;/* n/a */
|
||||
|
@ -206,7 +206,7 @@ static int usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val)
|
|||
len = 1;
|
||||
data = val;
|
||||
ret = usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
|
||||
_func_exit_;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ static int usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val)
|
|||
__le32 data;
|
||||
int ret;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x00;/* write_out */
|
||||
|
@ -233,7 +233,7 @@ static int usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val)
|
|||
|
||||
ret = usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -248,7 +248,7 @@ static int usb_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val)
|
|||
__le32 data;
|
||||
int ret;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x00;/* write_out */
|
||||
|
@ -260,7 +260,7 @@ static int usb_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val)
|
|||
|
||||
ret = usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ static int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata
|
|||
u8 buf[VENDOR_CMD_MAX_DATA_LEN] = {0};
|
||||
int ret;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x00;/* write_out */
|
||||
|
@ -287,7 +287,7 @@ static int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata
|
|||
|
||||
ret = usbctrl_vendorreq(pintfhdl, request, wvalue, index, buf, len, requesttype);
|
||||
|
||||
_func_exit_;
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -519,7 +519,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
DBG_88E("%s() RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
|
||||
__func__, adapt->bDriverStopped,
|
||||
adapt->bSurpriseRemoved, adapt->bReadPortCancel);
|
||||
goto exit;
|
||||
return;
|
||||
}
|
||||
|
||||
if (purb->status == 0) { /* SUCCESS */
|
||||
|
@ -579,9 +579,6 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
exit:
|
||||
_func_exit_;
|
||||
}
|
||||
|
||||
static u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
|
||||
|
@ -598,7 +595,7 @@ static u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
|
|||
size_t alignment = 0;
|
||||
u32 ret = _SUCCESS;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
if (adapter->bDriverStopped || adapter->bSurpriseRemoved ||
|
||||
adapter->pwrctrlpriv.pnp_bstop_trx) {
|
||||
|
@ -672,7 +669,7 @@ _func_enter_;
|
|||
ret = _FAIL;
|
||||
}
|
||||
|
||||
_func_exit_;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -702,7 +699,7 @@ void rtl8188eu_xmit_tasklet(void *priv)
|
|||
|
||||
void rtl8188eu_set_intf_ops(struct _io_ops *pops)
|
||||
{
|
||||
_func_enter_;
|
||||
|
||||
_rtw_memset((u8 *)pops, 0, sizeof(struct _io_ops));
|
||||
pops->_read8 = &usb_read8;
|
||||
pops->_read16 = &usb_read16;
|
||||
|
@ -717,7 +714,7 @@ void rtl8188eu_set_intf_ops(struct _io_ops *pops)
|
|||
pops->_write_port = &usb_write_port;
|
||||
pops->_read_port_cancel = &usb_read_port_cancel;
|
||||
pops->_write_port_cancel = &usb_write_port_cancel;
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
void rtl8188eu_set_hw_type(struct adapter *adapt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue