Lines Matching refs:thermalvalue
710 bool *internal_pa, u8 thermalvalue, u8 delta, in rtl92d_bandtype_5G() argument
740 if (thermalvalue > rtlefuse->eeprom_thermalmeter) in rtl92d_bandtype_5G()
756 if (thermalvalue > rtlefuse->eeprom_thermalmeter) { in rtl92d_bandtype_5G()
757 if (*internal_pa && thermalvalue > 0x12) { in rtl92d_bandtype_5G()
776 u8 thermalvalue, delta, delta_lck, delta_iqk, delta_rxgain; in rtl92d_dm_txpower_tracking_callback_thermalmeter() local
825 thermalvalue = (u8) rtl_get_rfreg(hw, RF90_PATH_A, RF_T_METER, 0xf800); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
828 thermalvalue, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
829 rtlpriv->dm.thermalvalue, rtlefuse->eeprom_thermalmeter); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
830 rtl92d_phy_ap_calibrate(hw, (thermalvalue - in rtl92d_dm_txpower_tracking_callback_thermalmeter()
833 if (!thermalvalue) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
841 if (rtlpriv->dm.thermalvalue && !rtlhal->reloadtxpowerindex) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
879 if (!rtlpriv->dm.thermalvalue) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
880 rtlpriv->dm.thermalvalue = rtlefuse->eeprom_thermalmeter; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
881 rtlpriv->dm.thermalvalue_lck = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
882 rtlpriv->dm.thermalvalue_iqk = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
900 [rtlpriv->dm.thermalvalue_avg_index] = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
911 thermalvalue = (u8)(thermalvalue_avg / thermalvalue_avg_count); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
913 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter()
914 (thermalvalue - rtlefuse->eeprom_thermalmeter) : in rtl92d_dm_txpower_tracking_callback_thermalmeter()
915 (rtlefuse->eeprom_thermalmeter - thermalvalue); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
919 delta = (thermalvalue > rtlpriv->dm.thermalvalue) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter()
920 (thermalvalue - rtlpriv->dm.thermalvalue) : in rtl92d_dm_txpower_tracking_callback_thermalmeter()
921 (rtlpriv->dm.thermalvalue - thermalvalue); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
923 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter()
924 (thermalvalue - rtlefuse->eeprom_thermalmeter) : in rtl92d_dm_txpower_tracking_callback_thermalmeter()
925 (rtlefuse->eeprom_thermalmeter - thermalvalue); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
927 delta_lck = (thermalvalue > rtlpriv->dm.thermalvalue_lck) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter()
928 (thermalvalue - rtlpriv->dm.thermalvalue_lck) : in rtl92d_dm_txpower_tracking_callback_thermalmeter()
929 (rtlpriv->dm.thermalvalue_lck - thermalvalue); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
930 delta_iqk = (thermalvalue > rtlpriv->dm.thermalvalue_iqk) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter()
931 (thermalvalue - rtlpriv->dm.thermalvalue_iqk) : in rtl92d_dm_txpower_tracking_callback_thermalmeter()
932 (rtlpriv->dm.thermalvalue_iqk - thermalvalue); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
934 (thermalvalue > rtlpriv->dm.thermalvalue_rxgain) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter()
935 (thermalvalue - rtlpriv->dm.thermalvalue_rxgain) : in rtl92d_dm_txpower_tracking_callback_thermalmeter()
936 (rtlpriv->dm.thermalvalue_rxgain - thermalvalue); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
939 thermalvalue, rtlpriv->dm.thermalvalue, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
943 rtlpriv->dm.thermalvalue_lck = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
951 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in rtl92d_dm_txpower_tracking_callback_thermalmeter()
952 (thermalvalue - rtlefuse->eeprom_thermalmeter) : in rtl92d_dm_txpower_tracking_callback_thermalmeter()
953 (rtlefuse->eeprom_thermalmeter - thermalvalue); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
960 if (thermalvalue > rtlpriv->dm.thermalvalue) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
971 &internal_pa, thermalvalue, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1152 rtlpriv->dm.thermalvalue_iqk = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1156 thermalvalue <= rtlefuse->eeprom_thermalmeter) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1157 rtlpriv->dm.thermalvalue_rxgain = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1161 rtlpriv->dm.thermalvalue = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()