Lines Matching refs:max_rx_gain
281 s16 max_rx_gain, int use_trsw_rx) in lo_measure_gain_values() argument
287 if (max_rx_gain < 0) in lo_measure_gain_values()
288 max_rx_gain = 0; in lo_measure_gain_values()
295 if (max_rx_gain >= trsw_rx_gain) { in lo_measure_gain_values()
296 trsw_rx_gain = max_rx_gain - trsw_rx_gain; in lo_measure_gain_values()
299 trsw_rx_gain = max_rx_gain; in lo_measure_gain_values()
316 if (max_rx_gain >= 0x14) { in lo_measure_gain_values()
319 } else if (max_rx_gain >= 0x12) { in lo_measure_gain_values()
322 } else if (max_rx_gain >= 0xF) { in lo_measure_gain_values()
646 int *max_rx_gain) in lo_probe_loctls_statemachine() argument
671 *max_rx_gain += 6; in lo_probe_loctls_statemachine()
673 *max_rx_gain += 3; in lo_probe_loctls_statemachine()
702 *max_rx_gain -= 6; in lo_probe_loctls_statemachine()
704 *max_rx_gain += 3; in lo_probe_loctls_statemachine()
714 lo_measure_gain_values(dev, *max_rx_gain, in lo_probe_loctls_statemachine()
730 int max_rx_gain; in b43_calibrate_lo_setting() local
747 max_rx_gain = rfatt->att * 2; in b43_calibrate_lo_setting()
748 max_rx_gain += bbatt->att / 2; in b43_calibrate_lo_setting()
750 max_rx_gain -= pad_mix_gain; in b43_calibrate_lo_setting()
752 max_rx_gain += gphy->max_lb_gain; in b43_calibrate_lo_setting()
753 lo_measure_gain_values(dev, max_rx_gain, in b43_calibrate_lo_setting()
757 lo_probe_loctls_statemachine(dev, &loctl, &max_rx_gain); in b43_calibrate_lo_setting()