Lines Matching refs:pi
43 #define ISNPHY(pi) PHYTYPE_IS((pi)->pubpi.phy_type, PHY_TYPE_N) argument
44 #define ISLCNPHY(pi) PHYTYPE_IS((pi)->pubpi.phy_type, PHY_TYPE_LCN) argument
180 #define PHY_PERICAL_MPHASE_PENDING(pi) \ argument
181 (pi->mphase_cal_phase_id > MPHASE_CAL_STATE_IDLE)
233 #define SCAN_INPROG_PHY(pi) \ argument
234 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_SCAN))
236 #define PLT_INPROG_PHY(pi) (mboolisset(pi->measure_hold, PHY_HOLD_FOR_PLT)) argument
238 #define ASSOC_INPROG_PHY(pi) \ argument
239 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_ASSOC))
241 #define SCAN_RM_IN_PROGRESS(pi) \ argument
242 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_SCAN | PHY_HOLD_FOR_RM))
244 #define PHY_MUTED(pi) \ argument
245 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_MUTE))
247 #define PUB_NOT_ASSOC(pi) \ argument
248 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_NOT_ASSOC))
913 u16 read_phy_reg(struct brcms_phy *pi, u16 addr);
914 void write_phy_reg(struct brcms_phy *pi, u16 addr, u16 val);
915 void and_phy_reg(struct brcms_phy *pi, u16 addr, u16 val);
916 void or_phy_reg(struct brcms_phy *pi, u16 addr, u16 val);
917 void mod_phy_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val);
919 u16 read_radio_reg(struct brcms_phy *pi, u16 addr);
920 void or_radio_reg(struct brcms_phy *pi, u16 addr, u16 val);
921 void and_radio_reg(struct brcms_phy *pi, u16 addr, u16 val);
922 void mod_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val);
923 void xor_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask);
925 void write_radio_reg(struct brcms_phy *pi, u16 addr, u16 val);
932 void wlc_phy_read_table(struct brcms_phy *pi,
935 void wlc_phy_write_table(struct brcms_phy *pi,
938 void wlc_phy_table_addr(struct brcms_phy *pi, uint tbl_id, uint tbl_offset,
940 void wlc_phy_table_data_write(struct brcms_phy *pi, uint width, u32 val);
942 void write_phy_channel_reg(struct brcms_phy *pi, uint val);
943 void wlc_phy_txpower_update_shm(struct brcms_phy *pi);
948 uint wlc_phy_init_radio_regs_allbands(struct brcms_phy *pi,
950 uint wlc_phy_init_radio_regs(struct brcms_phy *pi,
954 void wlc_phy_txpower_ipa_upd(struct brcms_phy *pi);
956 void wlc_phy_do_dummy_tx(struct brcms_phy *pi, bool ofdm, bool pa_on);
959 void wlc_phy_cal_perical_mphase_reset(struct brcms_phy *pi);
960 void wlc_phy_cal_perical_mphase_restart(struct brcms_phy *pi);
962 bool wlc_phy_attach_nphy(struct brcms_phy *pi);
963 bool wlc_phy_attach_lcnphy(struct brcms_phy *pi);
965 void wlc_phy_detach_lcnphy(struct brcms_phy *pi);
967 void wlc_phy_init_nphy(struct brcms_phy *pi);
968 void wlc_phy_init_lcnphy(struct brcms_phy *pi);
970 void wlc_phy_cal_init_nphy(struct brcms_phy *pi);
971 void wlc_phy_cal_init_lcnphy(struct brcms_phy *pi);
973 void wlc_phy_chanspec_set_nphy(struct brcms_phy *pi, u16 chanspec);
974 void wlc_phy_chanspec_set_lcnphy(struct brcms_phy *pi, u16 chanspec);
975 void wlc_phy_chanspec_set_fixup_lcnphy(struct brcms_phy *pi, u16 chanspec);
980 void wlc_lcnphy_set_tx_pwr_ctrl(struct brcms_phy *pi, u16 mode);
981 s8 wlc_lcnphy_get_current_tx_pwr_idx(struct brcms_phy *pi);
983 void wlc_phy_txpower_recalc_target_nphy(struct brcms_phy *pi);
984 void wlc_lcnphy_txpower_recalc_target(struct brcms_phy *pi);
985 void wlc_phy_txpower_recalc_target_lcnphy(struct brcms_phy *pi);
987 void wlc_lcnphy_set_tx_pwr_by_index(struct brcms_phy *pi, int index);
988 void wlc_lcnphy_tx_pu(struct brcms_phy *pi, bool bEnable);
989 void wlc_lcnphy_stop_tx_tone(struct brcms_phy *pi);
990 void wlc_lcnphy_start_tx_tone(struct brcms_phy *pi, s32 f_kHz, u16 max_val,
993 void wlc_phy_txpower_sromlimit_get_nphy(struct brcms_phy *pi, uint chan,
1000 u16 wlc_lcnphy_tempsense(struct brcms_phy *pi, bool mode);
1001 s16 wlc_lcnphy_tempsense_new(struct brcms_phy *pi, bool mode);
1002 s8 wlc_lcnphy_tempsense_degree(struct brcms_phy *pi, bool mode);
1003 s8 wlc_lcnphy_vbatsense(struct brcms_phy *pi, bool mode);
1004 void wlc_phy_carrier_suppress_lcnphy(struct brcms_phy *pi);
1005 void wlc_lcnphy_crsuprs(struct brcms_phy *pi, int channel);
1006 void wlc_lcnphy_epa_switch(struct brcms_phy *pi, bool mode);
1007 void wlc_2064_vco_cal(struct brcms_phy *pi);
1009 void wlc_phy_txpower_recalc_target(struct brcms_phy *pi);
1023 void wlc_lcnphy_write_table(struct brcms_phy *pi,
1025 void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti);
1026 void wlc_lcnphy_set_tx_iqcc(struct brcms_phy *pi, u16 a, u16 b);
1027 void wlc_lcnphy_set_tx_locc(struct brcms_phy *pi, u16 didq);
1028 void wlc_lcnphy_get_tx_iqcc(struct brcms_phy *pi, u16 *a, u16 *b);
1029 u16 wlc_lcnphy_get_tx_locc(struct brcms_phy *pi);
1030 void wlc_lcnphy_get_radio_loft(struct brcms_phy *pi, u8 *ei0, u8 *eq0, u8 *fi0,
1032 void wlc_lcnphy_calib_modes(struct brcms_phy *pi, uint mode);
1033 void wlc_lcnphy_deaf_mode(struct brcms_phy *pi, bool mode);
1034 bool wlc_phy_tpc_isenabled_lcnphy(struct brcms_phy *pi);
1035 void wlc_lcnphy_tx_pwr_update_npt(struct brcms_phy *pi);
1037 void wlc_lcnphy_get_tssi(struct brcms_phy *pi, s8 *ofdm_pwr, s8 *cck_pwr);
1040 s32 wlc_lcnphy_rx_signal_power(struct brcms_phy *pi, s32 gain_index);
1051 void wlc_phy_stay_in_carriersearch_nphy(struct brcms_phy *pi, bool enable);
1052 void wlc_nphy_deaf_mode(struct brcms_phy *pi, bool mode);
1054 #define wlc_phy_write_table_nphy(pi, pti) \ argument
1055 wlc_phy_write_table(pi, pti, 0x72, 0x74, 0x73)
1057 #define wlc_phy_read_table_nphy(pi, pti) \ argument
1058 wlc_phy_read_table(pi, pti, 0x72, 0x74, 0x73)
1060 #define wlc_nphy_table_addr(pi, id, off) \ argument
1061 wlc_phy_table_addr((pi), (id), (off), 0x72, 0x74, 0x73)
1063 #define wlc_nphy_table_data_write(pi, w, v) \ argument
1064 wlc_phy_table_data_write((pi), (w), (v))
1066 void wlc_phy_table_read_nphy(struct brcms_phy *pi, u32, u32 l, u32 o, u32 w,
1068 void wlc_phy_table_write_nphy(struct brcms_phy *pi, u32, u32, u32, u32,
1071 #define PHY_IPA(pi) \ argument
1072 ((pi->ipa2g_on && CHSPEC_IS2G(pi->radio_chanspec)) || \
1073 (pi->ipa5g_on && CHSPEC_IS5G(pi->radio_chanspec)))
1075 #define BRCMS_PHY_WAR_PR51571(pi) \ argument
1076 if (NREV_LT((pi)->pubpi.phy_rev, 3)) \
1077 (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol))
1079 void wlc_phy_cal_perical_nphy_run(struct brcms_phy *pi, u8 caltype);
1080 void wlc_phy_aci_reset_nphy(struct brcms_phy *pi);
1081 void wlc_phy_pa_override_nphy(struct brcms_phy *pi, bool en);
1083 u8 wlc_phy_get_chan_freq_range_nphy(struct brcms_phy *pi, uint chan);
1084 void wlc_phy_switch_radio_nphy(struct brcms_phy *pi, bool on);
1086 void wlc_phy_stf_chain_upd_nphy(struct brcms_phy *pi);
1088 void wlc_phy_force_rfseq_nphy(struct brcms_phy *pi, u8 cmd);
1089 s16 wlc_phy_tempsense_nphy(struct brcms_phy *pi);
1091 u16 wlc_phy_classifier_nphy(struct brcms_phy *pi, u16 mask, u16 val);
1093 void wlc_phy_rx_iq_est_nphy(struct brcms_phy *pi, struct phy_iq_est *est,
1096 void wlc_phy_rx_iq_coeffs_nphy(struct brcms_phy *pi, u8 write,
1098 void wlc_phy_aci_and_noise_reduction_nphy(struct brcms_phy *pi);
1103 void wlc_phy_txpwrctrl_enable_nphy(struct brcms_phy *pi, u8 ctrl_type);
1104 void wlc_phy_txpwr_fixpower_nphy(struct brcms_phy *pi);
1105 void wlc_phy_txpwr_apply_nphy(struct brcms_phy *pi);
1106 void wlc_phy_txpwr_papd_cal_nphy(struct brcms_phy *pi);
1107 u16 wlc_phy_txpwr_idx_get_nphy(struct brcms_phy *pi);
1109 struct nphy_txgains wlc_phy_get_tx_gain_nphy(struct brcms_phy *pi);
1110 int wlc_phy_cal_txiqlo_nphy(struct brcms_phy *pi,
1112 int wlc_phy_cal_rxiq_nphy(struct brcms_phy *pi, struct nphy_txgains target_gain,
1114 void wlc_phy_txpwr_index_nphy(struct brcms_phy *pi, u8 core_mask,
1116 void wlc_phy_rssisel_nphy(struct brcms_phy *pi, u8 core, u8 rssi_type);
1117 int wlc_phy_poll_rssi_nphy(struct brcms_phy *pi, u8 rssi_type,
1119 void wlc_phy_rssi_cal_nphy(struct brcms_phy *pi);
1120 int wlc_phy_aci_scan_nphy(struct brcms_phy *pi);
1121 void wlc_phy_cal_txgainctrl_nphy(struct brcms_phy *pi, s32 dBm_targetpower,
1123 int wlc_phy_tx_tone_nphy(struct brcms_phy *pi, u32 f_kHz, u16 max_val, u8 mode,
1125 void wlc_phy_stopplayback_nphy(struct brcms_phy *pi);
1126 void wlc_phy_est_tonepwr_nphy(struct brcms_phy *pi, s32 *qdBm_pwrbuf,
1128 void wlc_phy_radio205x_vcocal_nphy(struct brcms_phy *pi);
1130 int wlc_phy_rssi_compute_nphy(struct brcms_phy *pi, struct d11rxhdr *rxh);
1135 void wlc_phy_nphy_tkip_rifs_war(struct brcms_phy *pi, u8 rifs);
1137 void wlc_phy_get_pwrdet_offsets(struct brcms_phy *pi, s8 *cckoffset,
1139 s8 wlc_phy_upd_rssi_offset(struct brcms_phy *pi, s8 rssi, u16 chanspec);