mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-15 01:19:36 +00:00
rtl8188eu: Fix most sparse warnings in hal/phydm/rtl8188e/halphyrf_8188e_ce.c
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
80c723e738
commit
029a86c581
1 changed files with 17 additions and 31 deletions
|
@ -35,7 +35,7 @@
|
||||||
* 3============================================================ */
|
* 3============================================================ */
|
||||||
|
|
||||||
|
|
||||||
void set_iqk_matrix_8188e(
|
static void set_iqk_matrix_8188e(
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
u8 OFDM_index,
|
u8 OFDM_index,
|
||||||
u8 rf_path,
|
u8 rf_path,
|
||||||
|
@ -568,7 +568,7 @@ void configure_txpower_track_8188e(
|
||||||
#define MAX_TOLERANCE 5
|
#define MAX_TOLERANCE 5
|
||||||
#define IQK_DELAY_TIME 1 /* ms */
|
#define IQK_DELAY_TIME 1 /* ms */
|
||||||
|
|
||||||
u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
||||||
phy_path_a_iqk_8188e(
|
phy_path_a_iqk_8188e(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
|
@ -644,7 +644,7 @@ phy_path_a_iqk_8188e(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
||||||
phy_path_a_rx_iqk(
|
phy_path_a_rx_iqk(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
|
@ -786,7 +786,7 @@ phy_path_a_rx_iqk(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
||||||
phy_path_b_iqk_8188e(
|
phy_path_b_iqk_8188e(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm
|
struct PHY_DM_STRUCT *p_dm_odm
|
||||||
|
@ -849,8 +849,7 @@ phy_path_b_iqk_8188e(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void _phy_path_a_fill_iqk_matrix(
|
||||||
_phy_path_a_fill_iqk_matrix(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -922,8 +921,7 @@ _phy_path_a_fill_iqk_matrix(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void _phy_path_b_fill_iqk_matrix(
|
||||||
_phy_path_b_fill_iqk_matrix(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -993,8 +991,7 @@ _phy_path_b_fill_iqk_matrix(
|
||||||
*
|
*
|
||||||
* MP Already declare in odm.c */
|
* MP Already declare in odm.c */
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_WIN)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_WIN)
|
||||||
bool
|
static bool odm_check_power_status(
|
||||||
odm_check_power_status(
|
|
||||||
struct _ADAPTER *adapter)
|
struct _ADAPTER *adapter)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -1055,8 +1052,7 @@ _phy_save_adda_registers(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
static void _phy_save_mac_registers(
|
||||||
_phy_save_mac_registers(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -1084,8 +1080,7 @@ _phy_save_mac_registers(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
static void _phy_reload_adda_registers(
|
||||||
_phy_reload_adda_registers(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -1112,8 +1107,7 @@ _phy_reload_adda_registers(
|
||||||
odm_set_bb_reg(p_dm_odm, adda_reg[i], MASKDWORD, adda_backup[i]);
|
odm_set_bb_reg(p_dm_odm, adda_reg[i], MASKDWORD, adda_backup[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void _phy_reload_mac_registers(
|
||||||
_phy_reload_mac_registers(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -1233,8 +1227,7 @@ _phy_path_a_stand_by(
|
||||||
odm_set_bb_reg(p_dm_odm, REG_FPGA0_IQK, MASKH3BYTES, 0x808000);
|
odm_set_bb_reg(p_dm_odm, REG_FPGA0_IQK, MASKH3BYTES, 0x808000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void _phy_pi_mode_switch(
|
||||||
_phy_pi_mode_switch(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -1260,8 +1253,7 @@ _phy_pi_mode_switch(
|
||||||
odm_set_bb_reg(p_dm_odm, REG_FPGA0_XB_HSSI_PARAMETER1, MASKDWORD, mode);
|
odm_set_bb_reg(p_dm_odm, REG_FPGA0_XB_HSSI_PARAMETER1, MASKDWORD, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
static bool phy_simularity_compare_8188e(
|
||||||
phy_simularity_compare_8188e(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -1272,7 +1264,7 @@ phy_simularity_compare_8188e(
|
||||||
u8 c2
|
u8 c2
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i, j, diff, simularity_bit_map, bound = 0;
|
u32 i, j, diff, simularity_bit_map, bound;
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
HAL_DATA_TYPE *p_hal_data = GET_HAL_DATA(p_adapter);
|
HAL_DATA_TYPE *p_hal_data = GET_HAL_DATA(p_adapter);
|
||||||
#if (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
#if (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
||||||
|
@ -1343,8 +1335,7 @@ phy_simularity_compare_8188e(
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void
|
static void _phy_iq_calibrate_8188e(
|
||||||
_phy_iq_calibrate_8188e(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -1614,11 +1605,7 @@ _phy_iq_calibrate_8188e(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
static void _phy_lc_calibrate_8188e(struct PHY_DM_STRUCT *p_dm_odm, bool is2T)
|
||||||
_phy_lc_calibrate_8188e(
|
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
|
||||||
bool is2T
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
u8 tmp_reg;
|
u8 tmp_reg;
|
||||||
u32 rf_amode = 0, rf_bmode = 0, lc_cal;
|
u32 rf_amode = 0, rf_bmode = 0, lc_cal;
|
||||||
|
@ -1690,8 +1677,7 @@ _phy_lc_calibrate_8188e(
|
||||||
#define APK_CURVE_REG_NUM 4
|
#define APK_CURVE_REG_NUM 4
|
||||||
#define PATH_NUM 2
|
#define PATH_NUM 2
|
||||||
|
|
||||||
void
|
static void _phy_ap_calibrate_8188e(
|
||||||
_phy_ap_calibrate_8188e(
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
@ -2525,7 +2511,7 @@ phy_ap_calibrate_8188e(
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void _phy_set_rf_path_switch_8188e(
|
static void _phy_set_rf_path_switch_8188e(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
struct PHY_DM_STRUCT *p_dm_odm,
|
struct PHY_DM_STRUCT *p_dm_odm,
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue