Lines Matching refs:bbatt
216 const struct b43_bbatt *bbatt, in b43_set_txpower_g() argument
225 bb = bbatt->att; in b43_set_txpower_g()
237 memmove(&gphy->bbatt, bbatt, sizeof(*bbatt)); in b43_set_txpower_g()
1583 b43_set_txpower_g(dev, &gphy->bbatt, &gphy->rfatt, gphy->tx_control); in b43_phy_initb5()
1689 b43_set_txpower_g(dev, &gphy->bbatt, &gphy->rfatt, gphy->tx_control); in b43_phy_initb6()
1737 backup_bband = gphy->bbatt.att; in b43_calc_loopback_gain()
1952 struct b43_bbatt bbatt; in b43_phy_init_pctl() local
1955 memcpy(&old_bbatt, &gphy->bbatt, sizeof(old_bbatt)); in b43_phy_init_pctl()
1958 bbatt.att = 11; in b43_phy_init_pctl()
1966 b43_set_txpower_g(dev, &bbatt, &rfatt, 0); in b43_phy_init_pctl()
2524 default_baseband_attenuation(dev, &gphy->bbatt); in b43_gphy_op_prepare_hardware()
2769 int bbatt = *_bbatt; in b43_put_attenuation_into_ranges() local
2782 if (rfatt > rf_max && bbatt > bb_max - 4) in b43_put_attenuation_into_ranges()
2784 if (rfatt < rf_min && bbatt < bb_min + 4) in b43_put_attenuation_into_ranges()
2786 if (bbatt > bb_max && rfatt > rf_max - 1) in b43_put_attenuation_into_ranges()
2788 if (bbatt < bb_min && rfatt < rf_min + 1) in b43_put_attenuation_into_ranges()
2791 if (bbatt > bb_max) { in b43_put_attenuation_into_ranges()
2792 bbatt -= 4; in b43_put_attenuation_into_ranges()
2796 if (bbatt < bb_min) { in b43_put_attenuation_into_ranges()
2797 bbatt += 4; in b43_put_attenuation_into_ranges()
2803 bbatt += 4; in b43_put_attenuation_into_ranges()
2808 bbatt -= 4; in b43_put_attenuation_into_ranges()
2815 *_bbatt = clamp_val(bbatt, bb_min, bb_max); in b43_put_attenuation_into_ranges()
2822 int rfatt, bbatt; in b43_gphy_op_adjust_txpower() local
2828 bbatt = gphy->bbatt.att; in b43_gphy_op_adjust_txpower()
2829 bbatt += gphy->bbatt_delta; in b43_gphy_op_adjust_txpower()
2833 b43_put_attenuation_into_ranges(dev, &bbatt, &rfatt); in b43_gphy_op_adjust_txpower()
2842 bbatt += 2; in b43_gphy_op_adjust_txpower()
2846 bbatt += 4 * (rfatt - 2); in b43_gphy_op_adjust_txpower()
2851 if (bbatt < 3) { in b43_gphy_op_adjust_txpower()
2853 bbatt += 2; in b43_gphy_op_adjust_txpower()
2856 bbatt -= 2; in b43_gphy_op_adjust_txpower()
2862 b43_put_attenuation_into_ranges(dev, &bbatt, &rfatt); in b43_gphy_op_adjust_txpower()
2864 gphy->bbatt.att = bbatt; in b43_gphy_op_adjust_txpower()
2872 b43_set_txpower_g(dev, &gphy->bbatt, &gphy->rfatt, in b43_gphy_op_adjust_txpower()