Lines Matching refs:thermal_value
1626 u8 thermal_value = 0, delta, delta_lck, delta_iqk, p = 0, i = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() local
1656 thermal_value = (u8)rtl_get_rfreg(hw, RF90_PATH_A, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1661 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1674 rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermal_value; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1688 thermal_value = (u8)(thermal_value_avg / in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1692 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1699 delta = (thermal_value > rtldm->thermalvalue) ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1700 (thermal_value - rtldm->thermalvalue) : in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1701 (rtldm->thermalvalue - thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1702 delta_lck = (thermal_value > rtldm->thermalvalue_lck) ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1703 (thermal_value - rtldm->thermalvalue_lck) : in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1704 (rtldm->thermalvalue_lck - thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1705 delta_iqk = (thermal_value > rtldm->thermalvalue_iqk) ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1706 (thermal_value - rtldm->thermalvalue_iqk) : in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1707 (rtldm->thermalvalue_iqk - thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1720 rtldm->thermalvalue_lck = thermal_value; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1730 delta = thermal_value > rtlefuse->eeprom_thermalmeter ? in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1731 (thermal_value - rtlefuse->eeprom_thermalmeter) : in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1732 (rtlefuse->eeprom_thermalmeter - thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1739 if (thermal_value > rtlefuse->eeprom_thermalmeter) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1871 thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1902 if (thermal_value > rtldm->thermalvalue) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1906 delta, thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1913 delta, thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1916 } else if (thermal_value < rtldm->thermalvalue) { /*Low temperature*/ in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1920 delta, thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1927 delta, thermal_value, in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1932 if (thermal_value > rtlefuse->eeprom_thermalmeter) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1935 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1945 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1961 rtldm->thermalvalue, thermal_value); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1963 rtldm->thermalvalue = thermal_value; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1968 rtl8812ae_do_iqk(hw, delta_iqk, thermal_value, 8); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
2208 u8 thermal_value = 0, delta, delta_lck, delta_iqk, p = 0, i = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter() local
2239 thermal_value = (u8)rtl_get_rfreg(hw, in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2254 rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermal_value; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2268 thermal_value = (u8)(thermal_value_avg / in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2272 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2279 delta = (thermal_value > rtldm->thermalvalue) ? in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2280 (thermal_value - rtldm->thermalvalue) : in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2281 (rtldm->thermalvalue - thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2282 delta_lck = (thermal_value > rtldm->thermalvalue_lck) ? in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2283 (thermal_value - rtldm->thermalvalue_lck) : in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2284 (rtldm->thermalvalue_lck - thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2285 delta_iqk = (thermal_value > rtldm->thermalvalue_iqk) ? in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2286 (thermal_value - rtldm->thermalvalue_iqk) : in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2287 (rtldm->thermalvalue_iqk - thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2299 rtldm->thermalvalue_lck = thermal_value; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2309 delta = thermal_value > rtlefuse->eeprom_thermalmeter ? in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2310 (thermal_value - rtlefuse->eeprom_thermalmeter) : in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2311 (rtlefuse->eeprom_thermalmeter - thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2318 if (thermal_value > rtlefuse->eeprom_thermalmeter) { in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2417 thermal_value, in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2448 if (thermal_value > rtldm->thermalvalue) { in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2452 delta, thermal_value, in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2455 } else if (thermal_value < rtldm->thermalvalue) { /*Low temperature*/ in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2459 delta, thermal_value, in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2464 if (thermal_value > rtlefuse->eeprom_thermalmeter) { in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2467 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2477 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2492 rtldm->thermalvalue, thermal_value); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2494 rtldm->thermalvalue = thermal_value; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2505 rtl8821ae_do_iqk(hw, delta_iqk, thermal_value, 8); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()