Lines Matching refs:pi
32 #define ISNPHY(pi) PHYTYPE_IS((pi)->pubpi.phy_type, PHY_TYPE_N) argument
33 #define ISLCNPHY(pi) PHYTYPE_IS((pi)->pubpi.phy_type, PHY_TYPE_LCN) argument
169 #define PHY_PERICAL_MPHASE_PENDING(pi) \ argument
170 (pi->mphase_cal_phase_id > MPHASE_CAL_STATE_IDLE)
215 #define SCAN_INPROG_PHY(pi) \ argument
216 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_SCAN))
218 #define PLT_INPROG_PHY(pi) (mboolisset(pi->measure_hold, PHY_HOLD_FOR_PLT)) argument
220 #define ASSOC_INPROG_PHY(pi) \ argument
221 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_ASSOC))
223 #define SCAN_RM_IN_PROGRESS(pi) \ argument
224 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_SCAN | PHY_HOLD_FOR_RM))
226 #define PHY_MUTED(pi) \ argument
227 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_MUTE))
229 #define PUB_NOT_ASSOC(pi) \ argument
230 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_NOT_ASSOC))
895 u16 read_phy_reg(struct brcms_phy *pi, u16 addr);
896 void write_phy_reg(struct brcms_phy *pi, u16 addr, u16 val);
897 void and_phy_reg(struct brcms_phy *pi, u16 addr, u16 val);
898 void or_phy_reg(struct brcms_phy *pi, u16 addr, u16 val);
899 void mod_phy_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val);
901 u16 read_radio_reg(struct brcms_phy *pi, u16 addr);
902 void or_radio_reg(struct brcms_phy *pi, u16 addr, u16 val);
903 void and_radio_reg(struct brcms_phy *pi, u16 addr, u16 val);
904 void mod_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val);
905 void xor_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask);
907 void write_radio_reg(struct brcms_phy *pi, u16 addr, u16 val);
914 void wlc_phy_read_table(struct brcms_phy *pi,
917 void wlc_phy_write_table(struct brcms_phy *pi,
920 void wlc_phy_table_addr(struct brcms_phy *pi, uint tbl_id, uint tbl_offset,
922 void wlc_phy_table_data_write(struct brcms_phy *pi, uint width, u32 val);
924 void write_phy_channel_reg(struct brcms_phy *pi, uint val);
925 void wlc_phy_txpower_update_shm(struct brcms_phy *pi);
930 uint wlc_phy_init_radio_regs_allbands(struct brcms_phy *pi,
932 uint wlc_phy_init_radio_regs(struct brcms_phy *pi,
936 void wlc_phy_txpower_ipa_upd(struct brcms_phy *pi);
938 void wlc_phy_do_dummy_tx(struct brcms_phy *pi, bool ofdm, bool pa_on);
941 void wlc_phy_cal_perical_mphase_reset(struct brcms_phy *pi);
942 void wlc_phy_cal_perical_mphase_restart(struct brcms_phy *pi);
944 bool wlc_phy_attach_nphy(struct brcms_phy *pi);
945 bool wlc_phy_attach_lcnphy(struct brcms_phy *pi);
947 void wlc_phy_detach_lcnphy(struct brcms_phy *pi);
949 void wlc_phy_init_nphy(struct brcms_phy *pi);
950 void wlc_phy_init_lcnphy(struct brcms_phy *pi);
952 void wlc_phy_cal_init_nphy(struct brcms_phy *pi);
953 void wlc_phy_cal_init_lcnphy(struct brcms_phy *pi);
955 void wlc_phy_chanspec_set_nphy(struct brcms_phy *pi, u16 chanspec);
956 void wlc_phy_chanspec_set_lcnphy(struct brcms_phy *pi, u16 chanspec);
957 void wlc_phy_chanspec_set_fixup_lcnphy(struct brcms_phy *pi, u16 chanspec);
962 void wlc_lcnphy_set_tx_pwr_ctrl(struct brcms_phy *pi, u16 mode);
963 s8 wlc_lcnphy_get_current_tx_pwr_idx(struct brcms_phy *pi);
965 void wlc_phy_txpower_recalc_target_nphy(struct brcms_phy *pi);
966 void wlc_lcnphy_txpower_recalc_target(struct brcms_phy *pi);
967 void wlc_phy_txpower_recalc_target_lcnphy(struct brcms_phy *pi);
969 void wlc_lcnphy_set_tx_pwr_by_index(struct brcms_phy *pi, int index);
970 void wlc_lcnphy_tx_pu(struct brcms_phy *pi, bool bEnable);
971 void wlc_lcnphy_stop_tx_tone(struct brcms_phy *pi);
972 void wlc_lcnphy_start_tx_tone(struct brcms_phy *pi, s32 f_kHz, u16 max_val,
975 void wlc_phy_txpower_sromlimit_get_nphy(struct brcms_phy *pi, uint chan,
982 u16 wlc_lcnphy_tempsense(struct brcms_phy *pi, bool mode);
983 s16 wlc_lcnphy_tempsense_new(struct brcms_phy *pi, bool mode);
984 s8 wlc_lcnphy_tempsense_degree(struct brcms_phy *pi, bool mode);
985 s8 wlc_lcnphy_vbatsense(struct brcms_phy *pi, bool mode);
986 void wlc_phy_carrier_suppress_lcnphy(struct brcms_phy *pi);
987 void wlc_lcnphy_crsuprs(struct brcms_phy *pi, int channel);
988 void wlc_lcnphy_epa_switch(struct brcms_phy *pi, bool mode);
989 void wlc_2064_vco_cal(struct brcms_phy *pi);
991 void wlc_phy_txpower_recalc_target(struct brcms_phy *pi);
1005 void wlc_lcnphy_write_table(struct brcms_phy *pi,
1007 void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti);
1008 void wlc_lcnphy_set_tx_iqcc(struct brcms_phy *pi, u16 a, u16 b);
1009 void wlc_lcnphy_set_tx_locc(struct brcms_phy *pi, u16 didq);
1010 void wlc_lcnphy_get_tx_iqcc(struct brcms_phy *pi, u16 *a, u16 *b);
1011 u16 wlc_lcnphy_get_tx_locc(struct brcms_phy *pi);
1012 void wlc_lcnphy_get_radio_loft(struct brcms_phy *pi, u8 *ei0, u8 *eq0, u8 *fi0,
1014 void wlc_lcnphy_calib_modes(struct brcms_phy *pi, uint mode);
1015 void wlc_lcnphy_deaf_mode(struct brcms_phy *pi, bool mode);
1016 bool wlc_phy_tpc_isenabled_lcnphy(struct brcms_phy *pi);
1017 void wlc_lcnphy_tx_pwr_update_npt(struct brcms_phy *pi);
1019 void wlc_lcnphy_get_tssi(struct brcms_phy *pi, s8 *ofdm_pwr, s8 *cck_pwr);
1022 s32 wlc_lcnphy_rx_signal_power(struct brcms_phy *pi, s32 gain_index);
1033 void wlc_phy_stay_in_carriersearch_nphy(struct brcms_phy *pi, bool enable);
1034 void wlc_nphy_deaf_mode(struct brcms_phy *pi, bool mode);
1036 #define wlc_phy_write_table_nphy(pi, pti) \ argument
1037 wlc_phy_write_table(pi, pti, 0x72, 0x74, 0x73)
1039 #define wlc_phy_read_table_nphy(pi, pti) \ argument
1040 wlc_phy_read_table(pi, pti, 0x72, 0x74, 0x73)
1042 #define wlc_nphy_table_addr(pi, id, off) \ argument
1043 wlc_phy_table_addr((pi), (id), (off), 0x72, 0x74, 0x73)
1045 #define wlc_nphy_table_data_write(pi, w, v) \ argument
1046 wlc_phy_table_data_write((pi), (w), (v))
1048 void wlc_phy_table_read_nphy(struct brcms_phy *pi, u32, u32 l, u32 o, u32 w,
1050 void wlc_phy_table_write_nphy(struct brcms_phy *pi, u32, u32, u32, u32,
1053 #define PHY_IPA(pi) \ argument
1054 ((pi->ipa2g_on && CHSPEC_IS2G(pi->radio_chanspec)) || \
1055 (pi->ipa5g_on && CHSPEC_IS5G(pi->radio_chanspec)))
1057 #define BRCMS_PHY_WAR_PR51571(pi) \ argument
1058 if (NREV_LT((pi)->pubpi.phy_rev, 3)) \
1059 (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol))
1061 void wlc_phy_cal_perical_nphy_run(struct brcms_phy *pi, u8 caltype);
1062 void wlc_phy_aci_reset_nphy(struct brcms_phy *pi);
1063 void wlc_phy_pa_override_nphy(struct brcms_phy *pi, bool en);
1065 u8 wlc_phy_get_chan_freq_range_nphy(struct brcms_phy *pi, uint chan);
1066 void wlc_phy_switch_radio_nphy(struct brcms_phy *pi, bool on);
1068 void wlc_phy_stf_chain_upd_nphy(struct brcms_phy *pi);
1070 void wlc_phy_force_rfseq_nphy(struct brcms_phy *pi, u8 cmd);
1071 s16 wlc_phy_tempsense_nphy(struct brcms_phy *pi);
1073 u16 wlc_phy_classifier_nphy(struct brcms_phy *pi, u16 mask, u16 val);
1075 void wlc_phy_rx_iq_est_nphy(struct brcms_phy *pi, struct phy_iq_est *est,
1078 void wlc_phy_rx_iq_coeffs_nphy(struct brcms_phy *pi, u8 write,
1080 void wlc_phy_aci_and_noise_reduction_nphy(struct brcms_phy *pi);
1085 void wlc_phy_txpwrctrl_enable_nphy(struct brcms_phy *pi, u8 ctrl_type);
1086 void wlc_phy_txpwr_fixpower_nphy(struct brcms_phy *pi);
1087 void wlc_phy_txpwr_apply_nphy(struct brcms_phy *pi);
1088 void wlc_phy_txpwr_papd_cal_nphy(struct brcms_phy *pi);
1089 u16 wlc_phy_txpwr_idx_get_nphy(struct brcms_phy *pi);
1091 struct nphy_txgains wlc_phy_get_tx_gain_nphy(struct brcms_phy *pi);
1092 int wlc_phy_cal_txiqlo_nphy(struct brcms_phy *pi,
1094 int wlc_phy_cal_rxiq_nphy(struct brcms_phy *pi, struct nphy_txgains target_gain,
1096 void wlc_phy_txpwr_index_nphy(struct brcms_phy *pi, u8 core_mask,
1098 void wlc_phy_rssisel_nphy(struct brcms_phy *pi, u8 core, u8 rssi_type);
1099 int wlc_phy_poll_rssi_nphy(struct brcms_phy *pi, u8 rssi_type,
1101 void wlc_phy_rssi_cal_nphy(struct brcms_phy *pi);
1102 int wlc_phy_aci_scan_nphy(struct brcms_phy *pi);
1103 void wlc_phy_cal_txgainctrl_nphy(struct brcms_phy *pi, s32 dBm_targetpower,
1105 int wlc_phy_tx_tone_nphy(struct brcms_phy *pi, u32 f_kHz, u16 max_val, u8 mode,
1107 void wlc_phy_stopplayback_nphy(struct brcms_phy *pi);
1108 void wlc_phy_est_tonepwr_nphy(struct brcms_phy *pi, s32 *qdBm_pwrbuf,
1110 void wlc_phy_radio205x_vcocal_nphy(struct brcms_phy *pi);
1112 int wlc_phy_rssi_compute_nphy(struct brcms_phy *pi, struct d11rxhdr *rxh);
1117 void wlc_phy_nphy_tkip_rifs_war(struct brcms_phy *pi, u8 rifs);
1119 void wlc_phy_get_pwrdet_offsets(struct brcms_phy *pi, s8 *cckoffset,
1121 s8 wlc_phy_upd_rssi_offset(struct brcms_phy *pi, s8 rssi, u16 chanspec);