• Home
  • Raw
  • Download

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()
1582 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()
1736 backup_bband = gphy->bbatt.att; in b43_calc_loopback_gain()
1950 struct b43_bbatt bbatt; in b43_phy_init_pctl() local
1953 memcpy(&old_bbatt, &gphy->bbatt, sizeof(old_bbatt)); in b43_phy_init_pctl()
1956 bbatt.att = 11; in b43_phy_init_pctl()
1964 b43_set_txpower_g(dev, &bbatt, &rfatt, 0); in b43_phy_init_pctl()
2522 default_baseband_attenuation(dev, &gphy->bbatt); in b43_gphy_op_prepare_hardware()
2767 int bbatt = *_bbatt; in b43_put_attenuation_into_ranges() local
2780 if (rfatt > rf_max && bbatt > bb_max - 4) in b43_put_attenuation_into_ranges()
2782 if (rfatt < rf_min && bbatt < bb_min + 4) in b43_put_attenuation_into_ranges()
2784 if (bbatt > bb_max && rfatt > rf_max - 1) in b43_put_attenuation_into_ranges()
2786 if (bbatt < bb_min && rfatt < rf_min + 1) in b43_put_attenuation_into_ranges()
2789 if (bbatt > bb_max) { in b43_put_attenuation_into_ranges()
2790 bbatt -= 4; in b43_put_attenuation_into_ranges()
2794 if (bbatt < bb_min) { in b43_put_attenuation_into_ranges()
2795 bbatt += 4; in b43_put_attenuation_into_ranges()
2801 bbatt += 4; in b43_put_attenuation_into_ranges()
2806 bbatt -= 4; in b43_put_attenuation_into_ranges()
2813 *_bbatt = clamp_val(bbatt, bb_min, bb_max); in b43_put_attenuation_into_ranges()
2820 int rfatt, bbatt; in b43_gphy_op_adjust_txpower() local
2826 bbatt = gphy->bbatt.att; in b43_gphy_op_adjust_txpower()
2827 bbatt += gphy->bbatt_delta; in b43_gphy_op_adjust_txpower()
2831 b43_put_attenuation_into_ranges(dev, &bbatt, &rfatt); in b43_gphy_op_adjust_txpower()
2840 bbatt += 2; in b43_gphy_op_adjust_txpower()
2844 bbatt += 4 * (rfatt - 2); in b43_gphy_op_adjust_txpower()
2849 if (bbatt < 3) { in b43_gphy_op_adjust_txpower()
2851 bbatt += 2; in b43_gphy_op_adjust_txpower()
2854 bbatt -= 2; in b43_gphy_op_adjust_txpower()
2860 b43_put_attenuation_into_ranges(dev, &bbatt, &rfatt); in b43_gphy_op_adjust_txpower()
2862 gphy->bbatt.att = bbatt; in b43_gphy_op_adjust_txpower()
2870 b43_set_txpower_g(dev, &gphy->bbatt, &gphy->rfatt, in b43_gphy_op_adjust_txpower()