Lines Matching full:gphy

165 	struct b43_phy_g *gphy = phy->g;  in lo_measure_txctl_values()  local
166 struct b43_txpower_lo_control *lo = gphy->lo_control; in lo_measure_txctl_values()
187 lb_gain = gphy->max_lb_gain / 2; in lo_measure_txctl_values()
262 struct b43_phy_g *gphy = phy->g; in lo_read_power_vector() local
263 struct b43_txpower_lo_control *lo = gphy->lo_control; in lo_read_power_vector()
279 /* 802.11/LO/GPHY/MeasuringGains */
284 struct b43_phy_g *gphy = phy->g; in lo_measure_gain_values() local
294 trsw_rx_gain = gphy->trsw_rx_gain / 2; in lo_measure_gain_values()
301 gphy->lna_lod_gain = 0; in lo_measure_gain_values()
303 gphy->lna_lod_gain = 1; in lo_measure_gain_values()
307 gphy->pga_gain = trsw_rx_gain / 3; in lo_measure_gain_values()
308 if (gphy->pga_gain >= 5) { in lo_measure_gain_values()
309 gphy->pga_gain -= 5; in lo_measure_gain_values()
310 gphy->lna_gain = 2; in lo_measure_gain_values()
312 gphy->lna_gain = 0; in lo_measure_gain_values()
314 gphy->lna_gain = 0; in lo_measure_gain_values()
315 gphy->trsw_rx_gain = 0x20; in lo_measure_gain_values()
317 gphy->lna_lod_gain = 1; in lo_measure_gain_values()
318 gphy->pga_gain = 2; in lo_measure_gain_values()
320 gphy->lna_lod_gain = 1; in lo_measure_gain_values()
321 gphy->pga_gain = 1; in lo_measure_gain_values()
323 gphy->lna_lod_gain = 1; in lo_measure_gain_values()
324 gphy->pga_gain = 0; in lo_measure_gain_values()
326 gphy->lna_lod_gain = 0; in lo_measure_gain_values()
327 gphy->pga_gain = 0; in lo_measure_gain_values()
332 if (gphy->lna_lod_gain == 0) in lo_measure_gain_values()
377 struct b43_phy_g *gphy = phy->g; in lo_measure_setup() local
378 struct b43_txpower_lo_control *lo = gphy->lo_control; in lo_measure_setup()
491 struct b43_phy_g *gphy = phy->g; in lo_measure_restore() local
496 tmp = (gphy->pga_gain << 8); in lo_measure_restore()
503 tmp = (gphy->pga_gain | 0xEFA0); in lo_measure_restore()
568 struct b43_phy_g *gphy = phy->g; in lo_probe_possible_loctls() local
618 feedth = lo_measure_feedthrough(dev, gphy->lna_gain, in lo_probe_possible_loctls()
619 gphy->pga_gain, in lo_probe_possible_loctls()
620 gphy->trsw_rx_gain); in lo_probe_possible_loctls()
649 struct b43_phy_g *gphy = phy->g; in lo_probe_loctls_statemachine() local
666 feedth = lo_measure_feedthrough(dev, gphy->lna_gain, in lo_probe_loctls_statemachine()
667 gphy->pga_gain, in lo_probe_loctls_statemachine()
668 gphy->trsw_rx_gain); in lo_probe_loctls_statemachine()
674 feedth = lo_measure_feedthrough(dev, gphy->lna_gain, in lo_probe_loctls_statemachine()
675 gphy->pga_gain, in lo_probe_loctls_statemachine()
676 gphy->trsw_rx_gain); in lo_probe_loctls_statemachine()
725 struct b43_phy_g *gphy = phy->g; in b43_calibrate_lo_setting() local
752 max_rx_gain += gphy->max_lb_gain; in b43_calibrate_lo_setting()
809 struct b43_phy_g *gphy = phy->g; in b43_gphy_dc_lt_init() local
810 struct b43_txpower_lo_control *lo = gphy->lo_control; in b43_gphy_dc_lt_init()
888 struct b43_phy_g *gphy = dev->phy.g; in b43_lo_g_adjust() local
892 memcpy(&rf, &gphy->rfatt, sizeof(rf)); in b43_lo_g_adjust()
895 cal = b43_get_calib_lo_settings(dev, &gphy->bbatt, &rf); in b43_lo_g_adjust()
923 struct b43_phy_g *gphy = phy->g; in b43_lo_g_maintenance_work() local
924 struct b43_txpower_lo_control *lo = gphy->lo_control; in b43_lo_g_maintenance_work()
955 if (b43_compare_bbatt(&cal->bbatt, &gphy->bbatt) && in b43_lo_g_maintenance_work()
956 b43_compare_rfatt(&cal->rfatt, &gphy->rfatt)) { in b43_lo_g_maintenance_work()
974 cal = b43_calibrate_lo_setting(dev, &gphy->bbatt, &gphy->rfatt); in b43_lo_g_maintenance_work()