Lines Matching refs:rfatt

205 			      const struct b43_rfatt *rfatt, u8 tx_control)  in b43_set_txpower_g()  argument
214 rf = rfatt->att; in b43_set_txpower_g()
223 memmove(&gphy->rfatt, rfatt, sizeof(*rfatt)); in b43_set_txpower_g()
224 gphy->rfatt.with_padmix = !!(tx_control & B43_TXCTL_TXMIX); in b43_set_txpower_g()
1570 b43_set_txpower_g(dev, &gphy->bbatt, &gphy->rfatt, gphy->tx_control); in b43_phy_initb5()
1677 b43_set_txpower_g(dev, &gphy->bbatt, &gphy->rfatt, gphy->tx_control); in b43_phy_initb6()
1937 struct b43_rfatt rfatt; in b43_phy_init_pctl() local
1940 memcpy(&old_rfatt, &gphy->rfatt, sizeof(old_rfatt)); in b43_phy_init_pctl()
1946 rfatt.att = 15; in b43_phy_init_pctl()
1947 rfatt.with_padmix = true; in b43_phy_init_pctl()
1949 rfatt.att = 9; in b43_phy_init_pctl()
1950 rfatt.with_padmix = false; in b43_phy_init_pctl()
1952 b43_set_txpower_g(dev, &bbatt, &rfatt, 0); in b43_phy_init_pctl()
2525 default_radio_attenuation(dev, &gphy->rfatt); in b43_gphy_op_prepare_hardware()
2768 int rfatt = *_rfatt; 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()
2793 rfatt += 1; in b43_put_attenuation_into_ranges()
2798 rfatt -= 1; in b43_put_attenuation_into_ranges()
2801 if (rfatt > rf_max) { in b43_put_attenuation_into_ranges()
2802 rfatt -= 1; in b43_put_attenuation_into_ranges()
2806 if (rfatt < rf_min) { in b43_put_attenuation_into_ranges()
2807 rfatt += 1; in b43_put_attenuation_into_ranges()
2814 *_rfatt = clamp_val(rfatt, rf_min, rf_max); in b43_put_attenuation_into_ranges()
2822 int rfatt, bbatt; in b43_gphy_op_adjust_txpower() local
2830 rfatt = gphy->rfatt.att; in b43_gphy_op_adjust_txpower()
2831 rfatt += gphy->rfatt_delta; in b43_gphy_op_adjust_txpower()
2833 b43_put_attenuation_into_ranges(dev, &bbatt, &rfatt); in b43_gphy_op_adjust_txpower()
2836 if (rfatt <= 1) { in b43_gphy_op_adjust_txpower()
2841 rfatt += 2; in b43_gphy_op_adjust_txpower()
2846 bbatt += 4 * (rfatt - 2); in b43_gphy_op_adjust_txpower()
2847 rfatt = 2; in b43_gphy_op_adjust_txpower()
2849 } else if (rfatt > 4 && tx_control) { in b43_gphy_op_adjust_txpower()
2852 rfatt -= 3; in b43_gphy_op_adjust_txpower()
2855 rfatt -= 2; in b43_gphy_op_adjust_txpower()
2862 b43_put_attenuation_into_ranges(dev, &bbatt, &rfatt); in b43_gphy_op_adjust_txpower()
2863 gphy->rfatt.att = rfatt; in b43_gphy_op_adjust_txpower()
2872 b43_set_txpower_g(dev, &gphy->bbatt, &gphy->rfatt, in b43_gphy_op_adjust_txpower()