Lines Matching refs:thermal_value

1452 	u8 thermal_value = 0, delta, delta_lck, delta_iqk, p = 0, i = 0;  in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()  local
1482 thermal_value = (u8)rtl_get_rfreg(hw, RF90_PATH_A, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1487 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1500 rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermal_value; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1514 thermal_value = (u8)(thermal_value_avg / in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1518 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1525 delta = (thermal_value > rtldm->thermalvalue) ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1526 (thermal_value - rtldm->thermalvalue) : in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1527 (rtldm->thermalvalue - thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1528 delta_lck = (thermal_value > rtldm->thermalvalue_lck) ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1529 (thermal_value - rtldm->thermalvalue_lck) : in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1530 (rtldm->thermalvalue_lck - thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1531 delta_iqk = (thermal_value > rtldm->thermalvalue_iqk) ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1532 (thermal_value - rtldm->thermalvalue_iqk) : in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1533 (rtldm->thermalvalue_iqk - thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1546 rtldm->thermalvalue_lck = thermal_value; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1556 delta = thermal_value > rtlefuse->eeprom_thermalmeter ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1557 (thermal_value - rtlefuse->eeprom_thermalmeter) : in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1558 (rtlefuse->eeprom_thermalmeter - thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1565 if (thermal_value > rtlefuse->eeprom_thermalmeter) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1697 thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1728 if (thermal_value > rtldm->thermalvalue) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1732 delta, thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1739 delta, thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1742 } else if (thermal_value < rtldm->thermalvalue) { /*Low temperature*/ in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1746 delta, thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1753 delta, thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1758 if (thermal_value > rtlefuse->eeprom_thermalmeter) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1761 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1771 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1787 rtldm->thermalvalue, thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1789 rtldm->thermalvalue = thermal_value; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1794 rtl8812ae_do_iqk(hw, delta_iqk, thermal_value, 8); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
2023 u8 thermal_value = 0, delta, delta_lck, delta_iqk, p = 0, i = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter() local
2051 thermal_value = (u8)rtl_get_rfreg(hw, in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2066 rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermal_value; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2080 thermal_value = (u8)(thermal_value_avg / in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2084 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2091 delta = (thermal_value > rtldm->thermalvalue) ? in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2092 (thermal_value - rtldm->thermalvalue) : in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2093 (rtldm->thermalvalue - thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2094 delta_lck = (thermal_value > rtldm->thermalvalue_lck) ? in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2095 (thermal_value - rtldm->thermalvalue_lck) : in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2096 (rtldm->thermalvalue_lck - thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2097 delta_iqk = (thermal_value > rtldm->thermalvalue_iqk) ? in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2098 (thermal_value - rtldm->thermalvalue_iqk) : in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2099 (rtldm->thermalvalue_iqk - thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2111 rtldm->thermalvalue_lck = thermal_value; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2121 delta = thermal_value > rtlefuse->eeprom_thermalmeter ? in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2122 (thermal_value - rtlefuse->eeprom_thermalmeter) : in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2123 (rtlefuse->eeprom_thermalmeter - thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2130 if (thermal_value > rtlefuse->eeprom_thermalmeter) { in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2229 thermal_value, in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2260 if (thermal_value > rtldm->thermalvalue) { in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2264 delta, thermal_value, in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2267 } else if (thermal_value < rtldm->thermalvalue) { /*Low temperature*/ in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2271 delta, thermal_value, in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2276 if (thermal_value > rtlefuse->eeprom_thermalmeter) { in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2279 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2289 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2304 rtldm->thermalvalue, thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2306 rtldm->thermalvalue = thermal_value; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2317 rtl8821ae_do_iqk(hw, delta_iqk, thermal_value, 8); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()