Lines Matching refs:gphy
178 struct b43_phy_g *gphy = phy->g; in lo_measure_txctl_values() local
179 struct b43_txpower_lo_control *lo = gphy->lo_control; in lo_measure_txctl_values()
200 lb_gain = gphy->max_lb_gain / 2; in lo_measure_txctl_values()
275 struct b43_phy_g *gphy = phy->g; in lo_read_power_vector() local
276 struct b43_txpower_lo_control *lo = gphy->lo_control; in lo_read_power_vector()
297 struct b43_phy_g *gphy = phy->g; in lo_measure_gain_values() local
307 trsw_rx_gain = gphy->trsw_rx_gain / 2; in lo_measure_gain_values()
314 gphy->lna_lod_gain = 0; in lo_measure_gain_values()
316 gphy->lna_lod_gain = 1; in lo_measure_gain_values()
320 gphy->pga_gain = trsw_rx_gain / 3; in lo_measure_gain_values()
321 if (gphy->pga_gain >= 5) { in lo_measure_gain_values()
322 gphy->pga_gain -= 5; in lo_measure_gain_values()
323 gphy->lna_gain = 2; in lo_measure_gain_values()
325 gphy->lna_gain = 0; in lo_measure_gain_values()
327 gphy->lna_gain = 0; in lo_measure_gain_values()
328 gphy->trsw_rx_gain = 0x20; in lo_measure_gain_values()
330 gphy->lna_lod_gain = 1; in lo_measure_gain_values()
331 gphy->pga_gain = 2; in lo_measure_gain_values()
333 gphy->lna_lod_gain = 1; in lo_measure_gain_values()
334 gphy->pga_gain = 1; in lo_measure_gain_values()
336 gphy->lna_lod_gain = 1; in lo_measure_gain_values()
337 gphy->pga_gain = 0; in lo_measure_gain_values()
339 gphy->lna_lod_gain = 0; in lo_measure_gain_values()
340 gphy->pga_gain = 0; in lo_measure_gain_values()
345 if (gphy->lna_lod_gain == 0) in lo_measure_gain_values()
390 struct b43_phy_g *gphy = phy->g; in lo_measure_setup() local
391 struct b43_txpower_lo_control *lo = gphy->lo_control; in lo_measure_setup()
504 struct b43_phy_g *gphy = phy->g; in lo_measure_restore() local
509 tmp = (gphy->pga_gain << 8); in lo_measure_restore()
516 tmp = (gphy->pga_gain | 0xEFA0); in lo_measure_restore()
581 struct b43_phy_g *gphy = phy->g; in lo_probe_possible_loctls() local
631 feedth = lo_measure_feedthrough(dev, gphy->lna_gain, in lo_probe_possible_loctls()
632 gphy->pga_gain, in lo_probe_possible_loctls()
633 gphy->trsw_rx_gain); in lo_probe_possible_loctls()
662 struct b43_phy_g *gphy = phy->g; in lo_probe_loctls_statemachine() local
679 feedth = lo_measure_feedthrough(dev, gphy->lna_gain, in lo_probe_loctls_statemachine()
680 gphy->pga_gain, in lo_probe_loctls_statemachine()
681 gphy->trsw_rx_gain); in lo_probe_loctls_statemachine()
687 feedth = lo_measure_feedthrough(dev, gphy->lna_gain, in lo_probe_loctls_statemachine()
688 gphy->pga_gain, in lo_probe_loctls_statemachine()
689 gphy->trsw_rx_gain); in lo_probe_loctls_statemachine()
738 struct b43_phy_g *gphy = phy->g; in b43_calibrate_lo_setting() local
765 max_rx_gain += gphy->max_lb_gain; in b43_calibrate_lo_setting()
822 struct b43_phy_g *gphy = phy->g; in b43_gphy_dc_lt_init() local
823 struct b43_txpower_lo_control *lo = gphy->lo_control; in b43_gphy_dc_lt_init()
901 struct b43_phy_g *gphy = dev->phy.g; in b43_lo_g_adjust() local
905 memcpy(&rf, &gphy->rfatt, sizeof(rf)); in b43_lo_g_adjust()
908 cal = b43_get_calib_lo_settings(dev, &gphy->bbatt, &rf); in b43_lo_g_adjust()
936 struct b43_phy_g *gphy = phy->g; in b43_lo_g_maintenance_work() local
937 struct b43_txpower_lo_control *lo = gphy->lo_control; in b43_lo_g_maintenance_work()
968 if (b43_compare_bbatt(&cal->bbatt, &gphy->bbatt) && in b43_lo_g_maintenance_work()
969 b43_compare_rfatt(&cal->rfatt, &gphy->rfatt)) { in b43_lo_g_maintenance_work()
987 cal = b43_calibrate_lo_setting(dev, &gphy->bbatt, &gphy->rfatt); in b43_lo_g_maintenance_work()