Lines Matching full:cal
391 * For Ext A band, Disable Tx Inc dcoc Cal. in mt76x0_phy_set_chan_rf_params()
416 gain -= dev->cal.rx.lna_gain * 2; in mt76x0_phy_set_chan_bbp_params()
527 dev->cal.tssi_dc = mt76_rr(dev, MT_BBP(CORE, 35)) & 0xff; in mt76x0_phy_tssi_dc_calibrate()
776 tssi_db = mt76x0_phy_lin2db(ltssi - dev->cal.tssi_dc) * tssi_slope; in mt76x0_phy_get_delta_power()
789 ((ltssi - dev->cal.tssi_dc) < 1 && tssi_target < 0)) { in mt76x0_phy_get_delta_power()
794 if ((dev->cal.tssi_target ^ tssi_target) < 0 && in mt76x0_phy_get_delta_power()
795 dev->cal.tssi_target > -4096 && dev->cal.tssi_target < 4096 && in mt76x0_phy_get_delta_power()
798 tssi_target + dev->cal.tssi_target > 0) || in mt76x0_phy_get_delta_power()
800 tssi_target + dev->cal.tssi_target <= 0)) in mt76x0_phy_get_delta_power()
803 dev->cal.tssi_target = tssi_target; in mt76x0_phy_get_delta_power()
805 dev->cal.tssi_target = tssi_target; in mt76x0_phy_get_delta_power()
1038 val = (35 * (val - dev->cal.rx.temp_offset)) / 10 + 25; in mt76x0_phy_temp_sensor()
1040 if (abs(val - dev->cal.temp_vco) > 20) { in mt76x0_phy_temp_sensor()
1043 dev->cal.temp_vco = val; in mt76x0_phy_temp_sensor()
1045 if (abs(val - dev->cal.temp) > 30) { in mt76x0_phy_temp_sensor()
1047 dev->cal.temp = val; in mt76x0_phy_temp_sensor()
1058 u8 gain = dev->cal.agc_gain_cur[0] - dev->cal.agc_gain_adjust; in mt76x0_phy_set_gain_val()
1074 dev->cal.avg_rssi_all = mt76_get_min_avg_rssi(&dev->mt76, false); in mt76x0_phy_update_channel_gain()
1075 if (!dev->cal.avg_rssi_all) in mt76x0_phy_update_channel_gain()
1076 dev->cal.avg_rssi_all = -75; in mt76x0_phy_update_channel_gain()
1078 low_gain = (dev->cal.avg_rssi_all > mt76x02_get_rssi_gain_thresh(dev)) + in mt76x0_phy_update_channel_gain()
1079 (dev->cal.avg_rssi_all > mt76x02_get_low_rssi_gain_thresh(dev)); in mt76x0_phy_update_channel_gain()
1081 gain_change = dev->cal.low_gain < 0 || in mt76x0_phy_update_channel_gain()
1082 (dev->cal.low_gain & 2) ^ (low_gain & 2); in mt76x0_phy_update_channel_gain()
1083 dev->cal.low_gain = low_gain; in mt76x0_phy_update_channel_gain()
1091 dev->cal.agc_gain_adjust = (low_gain == 2) ? 0 : 10; in mt76x0_phy_update_channel_gain()
1094 dev->cal.agc_gain_cur[0] = dev->cal.agc_gain_init[0] - gain_delta; in mt76x0_phy_update_channel_gain()
1191 min_t(u8, dev->cal.rx.freq_offset, 0xbf)); in mt76x0_phy_rf_init()