Lines Matching refs:pi_lcn

1184 	struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
1249 pi_lcn->lcnphy_cal_results.rxiqcal_coeff_a0 = a0_new;
1250 pi_lcn->lcnphy_cal_results.rxiqcal_coeff_b0 = b0_new;
1320 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
1368 tx_gain_index_old = pi_lcn->lcnphy_current_index;
1469 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
1472 index = pi_lcn->lcnphy_current_index;
1477 index = pi_lcn->lcnphy_current_index;
1553 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
1560 pi_lcn->lcnphy_bandedge_corr = 2;
1562 pi_lcn->lcnphy_bandedge_corr = 4;
1578 pi_lcn->lcnphy_spurmod = false;
1595 pi_lcn->lcnphy_spurmod = false;
2022 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
2025 (pi_lcn->lcnphy_rssi_vc << 4) | pi_lcn->lcnphy_rssi_vf;
2038 (auxpga_vmid << 0) | (pi_lcn->lcnphy_rssi_gs << 12));
2043 (auxpga_vmid << 0) | (pi_lcn->lcnphy_rssi_gs << 12));
2048 (auxpga_vmid << 0) | (pi_lcn->lcnphy_rssi_gs << 12));
2194 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
2197 tx_cnt = tx_total - pi_lcn->lcnphy_tssi_tx_cnt;
2202 pi_lcn->lcnphy_tssi_tx_cnt = tx_total;
2204 pi_lcn->lcnphy_tssi_idx = wlc_lcnphy_get_current_tx_pwr_idx(pi);
2205 pi_lcn->lcnphy_tssi_npt = npt;
2223 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
2227 pi_lcn->lcnphy_tssi_idx = LCNPHY_TX_PWR_CTRL_START_INDEX_2G_4313;
2228 pi_lcn->lcnphy_tssi_npt = LCNPHY_TX_PWR_CTRL_START_NPT;
2321 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
2324 return pi_lcn->lcnphy_current_index;
2328 if (pi_lcn->lcnphy_tempsense_slope == 0)
2335 delta_brd = (pi_lcn->lcnphy_measPower - pi->tx_power_min);
2339 manp = LCNPHY_TEMPSENSE(pi_lcn->lcnphy_rawtempsense);
2347 (u32) (pi_lcn->
2353 if (pi_lcn->lcnphy_tempsense_option == 3
2356 if (pi_lcn->lcnphy_tempcorrx > 31)
2357 tempcorrx = (s8) (pi_lcn->lcnphy_tempcorrx - 64);
2359 tempcorrx = (s8) pi_lcn->lcnphy_tempcorrx;
2363 index + delta_brd + delta_temp - pi_lcn->lcnphy_bandedge_corr;
2392 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
2415 pi_lcn->
2417 wlc_lcnphy_set_tx_pwr_npt(pi, pi_lcn->lcnphy_tssi_npt);
2420 pi_lcn->lcnphy_tssi_tx_cnt =
2424 pi_lcn->lcnphy_tx_power_idx_override = -1;
2433 pi_lcn->lcnphy_current_index = (s8)
2600 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
2657 pi_lcn->lcnphy_tssi_idx);
2750 pi_lcn->lcnphy_cal_results.
2752 ARRAY_SIZE(pi_lcn->
2759 pi_lcn->lcnphy_cal_results.
2761 ARRAY_SIZE(pi_lcn->lcnphy_cal_results.
2763 pi_lcn->lcnphy_cal_results.txiqlocal_bestcoeffs_valid = true;
2766 &pi_lcn->lcnphy_cal_results.
2770 &pi_lcn->lcnphy_cal_results.
2878 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
2897 index = pi_lcn->lcnphy_current_index;
3137 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
3139 pi_lcn->lcnphy_tx_power_idx_override = (s8) index;
3140 pi_lcn->lcnphy_current_index = (u8) index;
3344 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
3351 if (pi_lcn->lcnphy_spurmod) {
3399 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
3402 if (pi_lcn->lcnphy_spurmod) {
3515 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
3568 if (pi_lcn->lcnphy_iqcal_swp_dis)
3846 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
3864 if (LCNREV_IS(pi->pubpi.phy_rev, 1) || pi_lcn->lcnphy_hw_iqcal_en) {
3869 (pi_lcn->
3892 || pi_lcn->lcnphy_hw_iqcal_en) {
3928 pi_lcn->lcnphy_cal_results.txiqlocal_a = a;
3929 pi_lcn->lcnphy_cal_results.txiqlocal_b = b;
3930 pi_lcn->lcnphy_cal_results.txiqlocal_didq = didq;
3931 pi_lcn->lcnphy_cal_results.txiqlocal_ei0 = ei0;
3932 pi_lcn->lcnphy_cal_results.txiqlocal_eq0 = eq0;
3933 pi_lcn->lcnphy_cal_results.txiqlocal_fi0 = fi0;
3934 pi_lcn->lcnphy_cal_results.txiqlocal_fq0 = fq0;
3994 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4012 if (pi_lcn->lcnphy_tempsense_option == 1 || pi->hwpwrctrl_capable) {
4027 if (pi_lcn->lcnphy_tempsense_option == 2)
4111 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4119 index = pi_lcn->lcnphy_current_index;
4139 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4143 pi_lcn->lcnphy_full_cal_channel = CHSPEC_CHANNEL(pi->radio_chanspec);
4144 index = pi_lcn->lcnphy_current_index;
4195 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4210 temp2 = LCNPHY_TEMPSENSE(pi_lcn->lcnphy_cal_temper);
4212 if ((pi_lcn->lcnphy_cal_counter > 90) ||
4216 pi_lcn->lcnphy_cal_temper = temp_new;
4217 pi_lcn->lcnphy_cal_counter = 0;
4219 pi_lcn->lcnphy_cal_counter++;
4263 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4271 pi_lcn->lcnphy_current_index =
4629 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4653 afectrl1 = (u16) ((pi_lcn->lcnphy_rssi_vf) |
4654 (pi_lcn->lcnphy_rssi_vc << 4) |
4655 (pi_lcn->lcnphy_rssi_gs << 10));
4685 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4688 pi_lcn->lcnphy_ofdmgainidxtableoffset = (temp & (0xff << 0)) >> 0;
4690 if (pi_lcn->lcnphy_ofdmgainidxtableoffset > 127)
4691 pi_lcn->lcnphy_ofdmgainidxtableoffset -= 256;
4693 pi_lcn->lcnphy_dsssgainidxtableoffset = (temp & (0xff << 8)) >> 8;
4695 if (pi_lcn->lcnphy_dsssgainidxtableoffset > 127)
4696 pi_lcn->lcnphy_dsssgainidxtableoffset -= 256;
4707 pi_lcn->lcnphy_tr_R_gain_val = tableBuffer[0];
4711 pi_lcn->lcnphy_tr_T_gain_val = tableBuffer[1];
4716 pi_lcn->lcnphy_input_pwr_offset_db = (s8) temp;
4718 pi_lcn->lcnphy_Med_Low_Gain_db =
4720 pi_lcn->lcnphy_Very_Low_Gain_db =
4730 pi_lcn->lcnphy_gain_idx_14_lowword = tableBuffer[0];
4731 pi_lcn->lcnphy_gain_idx_14_hiword = tableBuffer[1];
4747 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4749 pi_lcn->lcnphy_cal_counter = 0;
4750 pi_lcn->lcnphy_cal_temper = pi_lcn->lcnphy_rawtempsense;
4789 pi_lcn->lcnphy_noise_samples = LCNPHY_NOISE_SAMPLES_DEFAULT;
4797 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4804 pi_lcn->lcnphy_tr_isolation_mid = sprom->fem.ghz2.tr_iso;
4806 pi_lcn->lcnphy_rx_power_offset = sprom->rxpo2g;
4812 pi_lcn->lcnphy_rssi_vf = sprom->rssismf2g;
4813 pi_lcn->lcnphy_rssi_vc = sprom->rssismc2g;
4814 pi_lcn->lcnphy_rssi_gs = sprom->rssisav2g;
4816 pi_lcn->lcnphy_rssi_vf_lowtemp = pi_lcn->lcnphy_rssi_vf;
4817 pi_lcn->lcnphy_rssi_vc_lowtemp = pi_lcn->lcnphy_rssi_vc;
4818 pi_lcn->lcnphy_rssi_gs_lowtemp = pi_lcn->lcnphy_rssi_gs;
4820 pi_lcn->lcnphy_rssi_vf_hightemp = pi_lcn->lcnphy_rssi_vf;
4821 pi_lcn->lcnphy_rssi_vc_hightemp = pi_lcn->lcnphy_rssi_vc;
4822 pi_lcn->lcnphy_rssi_gs_hightemp = pi_lcn->lcnphy_rssi_gs;
4860 pi_lcn->lcnphy_mcs20_po = offset_mcs;
4869 pi_lcn->lcnphy_rawtempsense = sprom->rawtempsense;
4870 pi_lcn->lcnphy_measPower = sprom->measpower;
4871 pi_lcn->lcnphy_tempsense_slope = sprom->tempsense_slope;
4872 pi_lcn->lcnphy_hw_iqcal_en = sprom->hw_iqcal_en;
4873 pi_lcn->lcnphy_iqcal_swp_dis = sprom->iqcal_swp_dis;
4874 pi_lcn->lcnphy_tempcorrx = sprom->tempcorrx;
4875 pi_lcn->lcnphy_tempsense_option = sprom->tempsense_option;
4876 pi_lcn->lcnphy_freqoffset_corr = sprom->freqoffset_corr;
4881 pi_lcn->lcnphy_cck_dig_filt_type = -1;
4969 struct brcms_phy_lcnphy *pi_lcn;
4975 pi_lcn = pi->u.pi_lcnphy;
4983 pi_lcn->lcnphy_papd_rxGnCtrl_init = 0;
5001 if (pi_lcn->lcnphy_tempsense_option == 3) {
5050 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
5066 pi_lcn->
5075 pi_lcn->
5092 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
5132 temperature = pi_lcn->lcnphy_lastsensed_temperature;