Lines Matching full:cal

35 	s8 *gain_adj = dev->cal.rx.high_gain;  in mt76x2_apply_gain_adj()
209 if (!dev->cal.tssi_cal_done) in mt76x2_phy_tssi_compensate()
212 if (!dev->cal.tssi_comp_pending) { in mt76x2_phy_tssi_compensate()
216 dev->cal.tssi_comp_pending = true; in mt76x2_phy_tssi_compensate()
221 dev->cal.tssi_comp_pending = false; in mt76x2_phy_tssi_compensate()
234 if (t.pa_mode || dev->cal.dpd_cal_done || dev->ed_tx_blocked) in mt76x2_phy_tssi_compensate()
239 dev->cal.dpd_cal_done = true; in mt76x2_phy_tssi_compensate()
250 gain_val[0] = dev->cal.agc_gain_cur[0] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
251 gain_val[1] = dev->cal.agc_gain_cur[1] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
276 u8 *gain = dev->cal.agc_gain_init; in mt76x2_phy_update_channel_gain()
283 dev->cal.avg_rssi_all = mt76_get_min_avg_rssi(&dev->mt76, false); in mt76x2_phy_update_channel_gain()
284 if (!dev->cal.avg_rssi_all) in mt76x2_phy_update_channel_gain()
285 dev->cal.avg_rssi_all = -75; in mt76x2_phy_update_channel_gain()
287 low_gain = (dev->cal.avg_rssi_all > mt76x02_get_rssi_gain_thresh(dev)) + in mt76x2_phy_update_channel_gain()
288 (dev->cal.avg_rssi_all > mt76x02_get_low_rssi_gain_thresh(dev)); in mt76x2_phy_update_channel_gain()
290 gain_change = dev->cal.low_gain < 0 || in mt76x2_phy_update_channel_gain()
291 (dev->cal.low_gain & 2) ^ (low_gain & 2); in mt76x2_phy_update_channel_gain()
292 dev->cal.low_gain = low_gain; in mt76x2_phy_update_channel_gain()
332 dev->cal.agc_gain_adjust = 0; in mt76x2_phy_update_channel_gain()
336 dev->cal.agc_gain_adjust = low_gain_delta; in mt76x2_phy_update_channel_gain()
342 dev->cal.agc_gain_cur[0] = gain[0] - gain_delta; in mt76x2_phy_update_channel_gain()
343 dev->cal.agc_gain_cur[1] = gain[1] - gain_delta; in mt76x2_phy_update_channel_gain()