Lines Matching refs:gains

847 	struct lpphy_tx_gains gains;  in lpphy_get_tx_gains()  local
850 gains.dac = (b43_phy_read(dev, B43_LPPHY_AFE_DAC_CTL) & 0x380) >> 7; in lpphy_get_tx_gains()
854 gains.gm = tmp & 0x0007; in lpphy_get_tx_gains()
855 gains.pga = (tmp & 0x0078) >> 3; in lpphy_get_tx_gains()
856 gains.pad = (tmp & 0x780) >> 7; in lpphy_get_tx_gains()
859 gains.pad = b43_phy_read(dev, B43_PHY_OFDM(0xFB)) & 0xFF; in lpphy_get_tx_gains()
860 gains.gm = tmp & 0xFF; in lpphy_get_tx_gains()
861 gains.pga = (tmp >> 8) & 0xFF; in lpphy_get_tx_gains()
864 return gains; in lpphy_get_tx_gains()
886 struct lpphy_tx_gains gains) in lpphy_set_tx_gains() argument
891 rf_gain = (gains.pad << 7) | (gains.pga << 3) | gains.gm; in lpphy_set_tx_gains()
897 (gains.pga << 8) | gains.gm); in lpphy_set_tx_gains()
903 0x8000, gains.pad | (pa_gain << 6)); in lpphy_set_tx_gains()
905 (gains.pga << 8) | gains.gm); in lpphy_set_tx_gains()
907 0x8000, gains.pad | (pa_gain << 8)); in lpphy_set_tx_gains()
909 lpphy_set_dac_gain(dev, gains.dac); in lpphy_set_tx_gains()
1372 struct lpphy_tx_gains gains; in lpphy_set_tx_power_by_index() local
1382 gains.pad = (tx_gain >> 16) & 0xFF; in lpphy_set_tx_power_by_index()
1383 gains.gm = tx_gain & 0xFF; in lpphy_set_tx_power_by_index()
1384 gains.pga = (tx_gain >> 8) & 0xFF; in lpphy_set_tx_power_by_index()
1385 gains.dac = (iq_comp >> 28) & 0xFF; in lpphy_set_tx_power_by_index()
1386 lpphy_set_tx_gains(dev, gains); in lpphy_set_tx_power_by_index()
1537 struct lpphy_tx_gains gains; in lpphy_tx_pctl_init_sw() local
1540 gains.gm = 4; in lpphy_tx_pctl_init_sw()
1541 gains.pad = 12; in lpphy_tx_pctl_init_sw()
1542 gains.pga = 12; in lpphy_tx_pctl_init_sw()
1543 gains.dac = 0; in lpphy_tx_pctl_init_sw()
1545 gains.gm = 7; in lpphy_tx_pctl_init_sw()
1546 gains.pad = 14; in lpphy_tx_pctl_init_sw()
1547 gains.pga = 15; in lpphy_tx_pctl_init_sw()
1548 gains.dac = 0; in lpphy_tx_pctl_init_sw()
1550 lpphy_set_tx_gains(dev, gains); in lpphy_tx_pctl_init_sw()
1840 bool rx, bool pa, struct lpphy_tx_gains *gains) in lpphy_rx_iq_cal() argument
1899 if (!gains) in lpphy_rx_iq_cal()
1900 gains = &nogains; in lpphy_rx_iq_cal()
1901 lpphy_set_tx_gains(dev, *gains); in lpphy_rx_iq_cal()