Searched refs:lpphy (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/net/wireless/b43/ |
H A D | phy_lp.c | 56 struct b43_phy_lp *lpphy; b43_lpphy_op_allocate() local 58 lpphy = kzalloc(sizeof(*lpphy), GFP_KERNEL); b43_lpphy_op_allocate() 59 if (!lpphy) b43_lpphy_op_allocate() 61 dev->phy.lp = lpphy; b43_lpphy_op_allocate() 69 struct b43_phy_lp *lpphy = phy->lp; b43_lpphy_op_prepare_structs() local 71 memset(lpphy, 0, sizeof(*lpphy)); b43_lpphy_op_prepare_structs() 72 lpphy->antenna = B43_ANTENNA_DEFAULT; b43_lpphy_op_prepare_structs() 79 struct b43_phy_lp *lpphy = dev->phy.lp; b43_lpphy_op_free() local 81 kfree(lpphy); b43_lpphy_op_free() 89 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_read_band_sprom() local 95 lpphy->tx_isolation_med_band = sprom->tri2g; lpphy_read_band_sprom() 96 lpphy->bx_arch = sprom->bxa2g; lpphy_read_band_sprom() 97 lpphy->rx_pwr_offset = sprom->rxpo2g; lpphy_read_band_sprom() 98 lpphy->rssi_vf = sprom->rssismf2g; lpphy_read_band_sprom() 99 lpphy->rssi_vc = sprom->rssismc2g; lpphy_read_band_sprom() 100 lpphy->rssi_gs = sprom->rssisav2g; lpphy_read_band_sprom() 101 lpphy->txpa[0] = sprom->pa0b0; lpphy_read_band_sprom() 102 lpphy->txpa[1] = sprom->pa0b1; lpphy_read_band_sprom() 103 lpphy->txpa[2] = sprom->pa0b2; lpphy_read_band_sprom() 105 lpphy->max_tx_pwr_med_band = maxpwr; lpphy_read_band_sprom() 110 lpphy->tx_max_rate[i] = lpphy_read_band_sprom() 116 lpphy->tx_max_rate[i] = lpphy_read_band_sprom() 123 lpphy->tx_max_rate[i] = maxpwr; lpphy_read_band_sprom() 125 lpphy->tx_max_rate[i] = maxpwr - opo; lpphy_read_band_sprom() 128 lpphy->tx_isolation_low_band = sprom->tri5gl; lpphy_read_band_sprom() 129 lpphy->tx_isolation_med_band = sprom->tri5g; lpphy_read_band_sprom() 130 lpphy->tx_isolation_hi_band = sprom->tri5gh; lpphy_read_band_sprom() 131 lpphy->bx_arch = sprom->bxa5g; lpphy_read_band_sprom() 132 lpphy->rx_pwr_offset = sprom->rxpo5g; lpphy_read_band_sprom() 133 lpphy->rssi_vf = sprom->rssismf5g; lpphy_read_band_sprom() 134 lpphy->rssi_vc = sprom->rssismc5g; lpphy_read_band_sprom() 135 lpphy->rssi_gs = sprom->rssisav5g; lpphy_read_band_sprom() 136 lpphy->txpa[0] = sprom->pa1b0; lpphy_read_band_sprom() 137 lpphy->txpa[1] = sprom->pa1b1; lpphy_read_band_sprom() 138 lpphy->txpa[2] = sprom->pa1b2; lpphy_read_band_sprom() 139 lpphy->txpal[0] = sprom->pa1lob0; lpphy_read_band_sprom() 140 lpphy->txpal[1] = sprom->pa1lob1; lpphy_read_band_sprom() 141 lpphy->txpal[2] = sprom->pa1lob2; lpphy_read_band_sprom() 142 lpphy->txpah[0] = sprom->pa1hib0; lpphy_read_band_sprom() 143 lpphy->txpah[1] = sprom->pa1hib1; lpphy_read_band_sprom() 144 lpphy->txpah[2] = sprom->pa1hib2; lpphy_read_band_sprom() 147 lpphy->max_tx_pwr_low_band = maxpwr; lpphy_read_band_sprom() 149 lpphy->tx_max_ratel[i] = maxpwr - (ofdmpo & 0xF) * 2; lpphy_read_band_sprom() 154 lpphy->max_tx_pwr_med_band = maxpwr; lpphy_read_band_sprom() 156 lpphy->tx_max_rate[i] = maxpwr - (ofdmpo & 0xF) * 2; lpphy_read_band_sprom() 161 lpphy->max_tx_pwr_hi_band = maxpwr; lpphy_read_band_sprom() 163 lpphy->tx_max_rateh[i] = maxpwr - (ofdmpo & 0xF) * 2; lpphy_read_band_sprom() 171 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_adjust_gain_table() local 178 isolation = lpphy->tx_isolation_med_band; lpphy_adjust_gain_table() 180 isolation = lpphy->tx_isolation_low_band; lpphy_adjust_gain_table() 182 isolation = lpphy->tx_isolation_med_band; lpphy_adjust_gain_table() 184 isolation = lpphy->tx_isolation_hi_band; lpphy_adjust_gain_table() 213 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_baseband_rev0_1_init() local 239 0xFF00, lpphy->rx_pwr_offset); lpphy_baseband_rev0_1_init() 256 tmp = lpphy->rssi_vf | lpphy->rssi_vc << 4 | 0xA000; lpphy_baseband_rev0_1_init() 264 0xFFF9, (lpphy->bx_arch << 1)); lpphy_baseband_rev0_1_init() 378 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_save_dig_flt_state() local 382 lpphy->dig_flt_state[i] = b43_phy_read(dev, addr[i]); lpphy_save_dig_flt_state() 401 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_restore_dig_flt_state() local 405 b43_phy_write(dev, addr[i], lpphy->dig_flt_state[i]); lpphy_restore_dig_flt_state() 410 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_baseband_rev2plus_init() local 481 b43_phy_maskset(dev, B43_LPPHY_INPUT_PWRDB, 0xFF00, lpphy->rx_pwr_offset); lpphy_baseband_rev2plus_init() 486 0x2000 | ((u16)lpphy->rssi_gs << 10) | lpphy_baseband_rev2plus_init() 487 ((u16)lpphy->rssi_vc << 4) | lpphy->rssi_vf); lpphy_baseband_rev2plus_init() 515 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_2062_init() local 562 lpphy->pdiv = 1; lpphy_2062_init() 565 lpphy->pdiv = 2; lpphy_2062_init() 569 tmp = (((800000000 * lpphy->pdiv + crystalfreq) / lpphy_2062_init() 573 tmp = (((100 * crystalfreq + 16000000 * lpphy->pdiv) / lpphy_2062_init() 574 (32000000 * lpphy->pdiv)) - 1) & 0xFF; lpphy_2062_init() 577 tmp = (((2 * crystalfreq + 1000000 * lpphy->pdiv) / lpphy_2062_init() 578 (2000000 * lpphy->pdiv)) - 1) & 0xFF; lpphy_2062_init() 581 ref = (1000 * lpphy->pdiv + 2 * crystalfreq) / (2000 * lpphy->pdiv); lpphy_2062_init() 704 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_set_rc_cap() local 706 u8 rc_cap = (lpphy->rc_cap & 0x1F) >> 1; lpphy_set_rc_cap() 712 max_t(u8, lpphy->rc_cap - 4, 0x80)); lpphy_set_rc_cap() 715 ((lpphy->rc_cap & 0x1F) >> 2) | 0x80); lpphy_set_rc_cap() 730 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_set_deaf() local 733 lpphy->crs_usr_disable = true; lpphy_set_deaf() 735 lpphy->crs_sys_disable = true; lpphy_set_deaf() 741 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_clear_deaf() local 744 lpphy->crs_usr_disable = false; lpphy_clear_deaf() 746 lpphy->crs_sys_disable = false; lpphy_clear_deaf() 748 if (!lpphy->crs_usr_disable && !lpphy->crs_sys_disable) { lpphy_clear_deaf() 1100 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_read_tx_pctl_mode_from_hardware() local 1106 lpphy->txpctl_mode = B43_LPPHY_TXPCTL_OFF; lpphy_read_tx_pctl_mode_from_hardware() 1109 lpphy->txpctl_mode = B43_LPPHY_TXPCTL_SW; lpphy_read_tx_pctl_mode_from_hardware() 1112 lpphy->txpctl_mode = B43_LPPHY_TXPCTL_HW; lpphy_read_tx_pctl_mode_from_hardware() 1115 lpphy->txpctl_mode = B43_LPPHY_TXPCTL_UNKNOWN; lpphy_read_tx_pctl_mode_from_hardware() 1124 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_write_tx_pctl_mode_to_hardware() local 1127 switch (lpphy->txpctl_mode) { lpphy_write_tx_pctl_mode_to_hardware() 1148 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_set_tx_power_control() local 1152 oldmode = lpphy->txpctl_mode; lpphy_set_tx_power_control() 1155 lpphy->txpctl_mode = mode; lpphy_set_tx_power_control() 1164 0xFF80, lpphy->tssi_idx); lpphy_set_tx_power_control() 1166 0x8FFF, ((u16)lpphy->tssi_npt << 16)); lpphy_set_tx_power_control() 1169 lpphy->tx_pwr_idx_over = -1; lpphy_set_tx_power_control() 1186 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_rev0_1_rc_calib() local 1223 old_txpctl = lpphy->txpctl_mode; lpphy_rev0_1_rc_calib() 1251 lpphy->rc_cap = i; lpphy_rev0_1_rc_calib() 1280 if (lpphy->rc_cap) lpphy_rev0_1_rc_calib() 1342 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_calibrate_rc() local 1346 } else if (!lpphy->rc_cap) { lpphy_calibrate_rc() 1383 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_set_tx_power_by_index() local 1387 lpphy->tx_pwr_idx_over = index; lpphy_set_tx_power_by_index() 1389 if (lpphy->txpctl_mode != B43_LPPHY_TXPCTL_OFF) lpphy_set_tx_power_by_index() 1458 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_set_analog_filter() local 1463 if ((dev->phy.rev == 1) && (lpphy->rc_cap)) lpphy_set_analog_filter() 1578 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_pr41573_workaround() local 1592 txpctl_mode = lpphy->txpctl_mode; lpphy_pr41573_workaround() 1593 tx_pwr_idx_over = lpphy->tx_pwr_idx_over; lpphy_pr41573_workaround() 1594 tssi_npt = lpphy->tssi_npt; lpphy_pr41573_workaround() 1595 tssi_idx = lpphy->tssi_idx; lpphy_pr41573_workaround() 1617 b43_write16(dev, B43_MMIO_CHANNEL, lpphy->channel); lpphy_pr41573_workaround() 1618 lpphy->tssi_npt = tssi_npt; lpphy_pr41573_workaround() 1619 lpphy->tssi_idx = tssi_idx; lpphy_pr41573_workaround() 1620 lpphy_set_analog_filter(dev, lpphy->channel); lpphy_pr41573_workaround() 1623 if (lpphy->rc_cap) lpphy_pr41573_workaround() 1625 b43_lpphy_op_set_rx_antenna(dev, lpphy->antenna); lpphy_pr41573_workaround() 1781 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_start_tx_tone() local 1787 lpphy->tx_tone_freq = freq; lpphy_start_tx_tone() 1814 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_stop_tx_tone() local 1817 lpphy->tx_tone_freq = 0; lpphy_stop_tx_tone() 1836 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_papd_cal_txpwr() local 1841 old_txpctl = lpphy->txpctl_mode; lpphy_papd_cal_txpwr() 1865 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_rx_iq_cal() local 1876 if (lpphy_5354_iq_table[i].chan == lpphy->channel) { lpphy_rx_iq_cal() 1884 if (lpphy_rev0_1_iq_table[i].chan == lpphy->channel) { lpphy_rx_iq_cal() 1957 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_calibration() local 1961 if (lpphy->full_calib_chan != lpphy->channel) { lpphy_calibration() 1963 lpphy->full_calib_chan = lpphy->channel; lpphy_calibration() 1972 saved_pctl_mode = lpphy->txpctl_mode; lpphy_calibration() 2412 struct b43_phy_lp *lpphy = dev->phy.lp; lpphy_b2062_tune() local 2441 tmp2 = lpphy->pdiv * 1000; lpphy_b2062_tune() 2626 struct b43_phy_lp *lpphy = dev->phy.lp; b43_lpphy_op_switch_channel() local 2641 lpphy->channel = new_channel; b43_lpphy_op_switch_channel()
|
Completed in 66 milliseconds