Lines Matching refs:thermalvalue
857 u8 thermalvalue = 0, delta, delta_lck, delta_iqk, offset; in dm_txpower_track_cb_therm() local
887 thermalvalue = (u8)rtl_get_rfreg(hw, RF90_PATH_A, RF_T_METER, in dm_txpower_track_cb_therm()
889 if (!thermalvalue) in dm_txpower_track_cb_therm()
893 thermalvalue, rtlpriv->dm.thermalvalue, in dm_txpower_track_cb_therm()
942 if (!rtldm->thermalvalue) { in dm_txpower_track_cb_therm()
943 rtlpriv->dm.thermalvalue = rtlefuse->eeprom_thermalmeter; in dm_txpower_track_cb_therm()
944 rtlpriv->dm.thermalvalue_lck = thermalvalue; in dm_txpower_track_cb_therm()
945 rtlpriv->dm.thermalvalue_iqk = thermalvalue; in dm_txpower_track_cb_therm()
952 rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermalvalue; in dm_txpower_track_cb_therm()
965 thermalvalue = (u8)(thermalvalue_avg / thermalvalue_avg_count); in dm_txpower_track_cb_therm()
969 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in dm_txpower_track_cb_therm()
970 (thermalvalue - rtlefuse->eeprom_thermalmeter) : in dm_txpower_track_cb_therm()
971 (rtlefuse->eeprom_thermalmeter - thermalvalue); in dm_txpower_track_cb_therm()
975 delta = (thermalvalue > rtlpriv->dm.thermalvalue) ? in dm_txpower_track_cb_therm()
976 (thermalvalue - rtlpriv->dm.thermalvalue) : in dm_txpower_track_cb_therm()
977 (rtlpriv->dm.thermalvalue - thermalvalue); in dm_txpower_track_cb_therm()
979 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in dm_txpower_track_cb_therm()
980 (thermalvalue - rtlefuse->eeprom_thermalmeter) : in dm_txpower_track_cb_therm()
981 (rtlefuse->eeprom_thermalmeter - thermalvalue); in dm_txpower_track_cb_therm()
983 delta_lck = (thermalvalue > rtlpriv->dm.thermalvalue_lck) ? in dm_txpower_track_cb_therm()
984 (thermalvalue - rtlpriv->dm.thermalvalue_lck) : in dm_txpower_track_cb_therm()
985 (rtlpriv->dm.thermalvalue_lck - thermalvalue); in dm_txpower_track_cb_therm()
986 delta_iqk = (thermalvalue > rtlpriv->dm.thermalvalue_iqk) ? in dm_txpower_track_cb_therm()
987 (thermalvalue - rtlpriv->dm.thermalvalue_iqk) : in dm_txpower_track_cb_therm()
988 (rtlpriv->dm.thermalvalue_iqk - thermalvalue); in dm_txpower_track_cb_therm()
992 thermalvalue, rtlpriv->dm.thermalvalue, in dm_txpower_track_cb_therm()
997 rtlpriv->dm.thermalvalue_lck = thermalvalue; in dm_txpower_track_cb_therm()
1005 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in dm_txpower_track_cb_therm()
1006 (thermalvalue - rtlefuse->eeprom_thermalmeter) : in dm_txpower_track_cb_therm()
1007 (rtlefuse->eeprom_thermalmeter - thermalvalue); in dm_txpower_track_cb_therm()
1012 if (thermalvalue > rtlefuse->eeprom_thermalmeter) { in dm_txpower_track_cb_therm()
1068 rtlpriv->dm.thermalvalue_iqk = thermalvalue; in dm_txpower_track_cb_therm()
1073 rtldm->thermalvalue = thermalvalue; in dm_txpower_track_cb_therm()