Searched refs:currsig (Results 1 – 5 of 5) sorted by relevance
40 long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig) in rtl_signal_scale_mapping() argument44 if (currsig >= 61 && currsig <= 100) in rtl_signal_scale_mapping()45 retsig = 90 + ((currsig - 60) / 4); in rtl_signal_scale_mapping()46 else if (currsig >= 41 && currsig <= 60) in rtl_signal_scale_mapping()47 retsig = 78 + ((currsig - 40) / 2); in rtl_signal_scale_mapping()48 else if (currsig >= 31 && currsig <= 40) in rtl_signal_scale_mapping()49 retsig = 66 + (currsig - 30); in rtl_signal_scale_mapping()50 else if (currsig >= 21 && currsig <= 30) in rtl_signal_scale_mapping()51 retsig = 54 + (currsig - 20); in rtl_signal_scale_mapping()52 else if (currsig >= 5 && currsig <= 20) in rtl_signal_scale_mapping()[all …]
16 long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig);
16 static s32 odm_signal_scale_mapping(struct odm_dm_struct *dm_odm, s32 currsig) in odm_signal_scale_mapping() argument20 if (currsig >= 51 && currsig <= 100) in odm_signal_scale_mapping()22 else if (currsig >= 41 && currsig <= 50) in odm_signal_scale_mapping()23 retsig = 80 + ((currsig - 40) * 2); in odm_signal_scale_mapping()24 else if (currsig >= 31 && currsig <= 40) in odm_signal_scale_mapping()25 retsig = 66 + (currsig - 30); in odm_signal_scale_mapping()26 else if (currsig >= 21 && currsig <= 30) in odm_signal_scale_mapping()27 retsig = 54 + (currsig - 20); in odm_signal_scale_mapping()28 else if (currsig >= 10 && currsig <= 20) in odm_signal_scale_mapping()29 retsig = 42 + (((currsig - 10) * 2) / 3); in odm_signal_scale_mapping()[all …]
1289 static long _rtl92e_signal_scale_mapping(struct r8192_priv *priv, long currsig) in _rtl92e_signal_scale_mapping() argument1293 if (currsig >= 61 && currsig <= 100) in _rtl92e_signal_scale_mapping()1294 retsig = 90 + ((currsig - 60) / 4); in _rtl92e_signal_scale_mapping()1295 else if (currsig >= 41 && currsig <= 60) in _rtl92e_signal_scale_mapping()1296 retsig = 78 + ((currsig - 40) / 2); in _rtl92e_signal_scale_mapping()1297 else if (currsig >= 31 && currsig <= 40) in _rtl92e_signal_scale_mapping()1298 retsig = 66 + (currsig - 30); in _rtl92e_signal_scale_mapping()1299 else if (currsig >= 21 && currsig <= 30) in _rtl92e_signal_scale_mapping()1300 retsig = 54 + (currsig - 20); in _rtl92e_signal_scale_mapping()1301 else if (currsig >= 5 && currsig <= 20) in _rtl92e_signal_scale_mapping()[all …]
3778 static long rtl819x_signal_scale_mapping(long currsig) in rtl819x_signal_scale_mapping() argument3783 if (currsig >= 61 && currsig <= 100) in rtl819x_signal_scale_mapping()3784 retsig = 90 + ((currsig - 60) / 4); in rtl819x_signal_scale_mapping()3785 else if (currsig >= 41 && currsig <= 60) in rtl819x_signal_scale_mapping()3786 retsig = 78 + ((currsig - 40) / 2); in rtl819x_signal_scale_mapping()3787 else if (currsig >= 31 && currsig <= 40) in rtl819x_signal_scale_mapping()3788 retsig = 66 + (currsig - 30); in rtl819x_signal_scale_mapping()3789 else if (currsig >= 21 && currsig <= 30) in rtl819x_signal_scale_mapping()3790 retsig = 54 + (currsig - 20); in rtl819x_signal_scale_mapping()3791 else if (currsig >= 5 && currsig <= 20) in rtl819x_signal_scale_mapping()[all …]