Lines Matching refs:ah

134 		    (ath9k_hw_common(ah)->bus_ops->ath_bus_type	\
140 ath9k_hw_write_array(ah, iniarray, column, &(regWr))
141 #define REG_READ_ARRAY(ah, array, size) \
142 ath9k_hw_read_array(ah, array, size)
165 #define RTC_PLL_SETTLE_DELAY (AR_SREV_9340(ah) ? 1000 : 100)
630 void (*init_hang_checks)(struct ath_hw *ah);
631 bool (*detect_mac_hang)(struct ath_hw *ah);
632 bool (*detect_bb_hang)(struct ath_hw *ah);
635 void (*init_cal_settings)(struct ath_hw *ah);
636 bool (*init_cal)(struct ath_hw *ah, struct ath9k_channel *chan);
638 void (*init_mode_gain_regs)(struct ath_hw *ah);
639 void (*setup_calibration)(struct ath_hw *ah,
643 int (*rf_set_freq)(struct ath_hw *ah,
645 void (*spur_mitigate_freq)(struct ath_hw *ah,
647 bool (*set_rf_regs)(struct ath_hw *ah,
650 void (*set_channel_regs)(struct ath_hw *ah, struct ath9k_channel *chan);
651 void (*init_bb)(struct ath_hw *ah,
653 int (*process_ini)(struct ath_hw *ah, struct ath9k_channel *chan);
654 void (*olc_init)(struct ath_hw *ah);
655 void (*set_rfmode)(struct ath_hw *ah, struct ath9k_channel *chan);
656 void (*mark_phy_inactive)(struct ath_hw *ah);
657 void (*set_delta_slope)(struct ath_hw *ah, struct ath9k_channel *chan);
658 bool (*rfbus_req)(struct ath_hw *ah);
659 void (*rfbus_done)(struct ath_hw *ah);
660 void (*restore_chainmask)(struct ath_hw *ah);
661 u32 (*compute_pll_control)(struct ath_hw *ah,
663 bool (*ani_control)(struct ath_hw *ah, enum ath9k_ani_cmd cmd,
665 void (*do_getnf)(struct ath_hw *ah, int16_t nfarray[NUM_NF_READINGS]);
666 void (*set_radar_params)(struct ath_hw *ah,
668 int (*fast_chan_change)(struct ath_hw *ah, struct ath9k_channel *chan,
672 void (*ani_cache_ini_regs)(struct ath_hw *ah);
675 bool (*is_aic_enabled)(struct ath_hw *ah);
724 void (*config_pci_powersave)(struct ath_hw *ah,
726 void (*rx_enable)(struct ath_hw *ah);
728 int (*calibrate)(struct ath_hw *ah, struct ath9k_channel *chan,
730 bool (*get_isr)(struct ath_hw *ah, enum ath9k_int *masked,
732 void (*set_txdesc)(struct ath_hw *ah, void *ds,
734 int (*proc_txdesc)(struct ath_hw *ah, void *ds,
736 int (*get_duration)(struct ath_hw *ah, const void *ds, int index);
737 void (*antdiv_comb_conf_get)(struct ath_hw *ah,
739 void (*antdiv_comb_conf_set)(struct ath_hw *ah,
741 void (*spectral_scan_config)(struct ath_hw *ah,
743 void (*spectral_scan_trigger)(struct ath_hw *ah);
744 void (*spectral_scan_wait)(struct ath_hw *ah);
746 void (*tx99_start)(struct ath_hw *ah, u32 qnum);
747 void (*tx99_stop)(struct ath_hw *ah);
748 void (*tx99_set_txpower)(struct ath_hw *ah, u8 power);
1001 static inline struct ath_common *ath9k_hw_common(struct ath_hw *ah)
1003 return &ah->common;
1006 static inline struct ath_regulatory *ath9k_hw_regulatory(struct ath_hw *ah)
1008 return &(ath9k_hw_common(ah)->regulatory);
1011 static inline struct ath_hw_private_ops *ath9k_hw_private_ops(struct ath_hw *ah)
1013 return &ah->private_ops;
1016 static inline struct ath_hw_ops *ath9k_hw_ops(struct ath_hw *ah)
1018 return &ah->ops;
1027 void ath9k_hw_deinit(struct ath_hw *ah);
1028 int ath9k_hw_init(struct ath_hw *ah);
1029 int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
1031 int ath9k_hw_fill_cap_info(struct ath_hw *ah);
1035 void ath9k_hw_gpio_request_in(struct ath_hw *ah, u32 gpio, const char *label);
1036 void ath9k_hw_gpio_request_out(struct ath_hw *ah, u32 gpio, const char *label,
1038 void ath9k_hw_gpio_free(struct ath_hw *ah, u32 gpio);
1039 u32 ath9k_hw_gpio_get(struct ath_hw *ah, u32 gpio);
1040 void ath9k_hw_set_gpio(struct ath_hw *ah, u32 gpio, u32 val);
1041 void ath9k_hw_setantenna(struct ath_hw *ah, u32 antenna);
1044 void ath9k_hw_synth_delay(struct ath_hw *ah, struct ath9k_channel *chan,
1046 bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val, u32 timeout);
1047 void ath9k_hw_write_array(struct ath_hw *ah, const struct ar5416IniArray *array,
1049 void ath9k_hw_read_array(struct ath_hw *ah, u32 array[][2], int size);
1051 u16 ath9k_hw_computetxtime(struct ath_hw *ah,
1054 void ath9k_hw_get_channel_centers(struct ath_hw *ah,
1057 u32 ath9k_hw_getrxfilter(struct ath_hw *ah);
1058 void ath9k_hw_setrxfilter(struct ath_hw *ah, u32 bits);
1059 bool ath9k_hw_phy_disable(struct ath_hw *ah);
1060 bool ath9k_hw_disable(struct ath_hw *ah);
1061 void ath9k_hw_set_txpowerlimit(struct ath_hw *ah, u32 limit, bool test);
1062 void ath9k_hw_setopmode(struct ath_hw *ah);
1063 void ath9k_hw_setmcastfilter(struct ath_hw *ah, u32 filter0, u32 filter1);
1064 void ath9k_hw_write_associd(struct ath_hw *ah);
1065 u32 ath9k_hw_gettsf32(struct ath_hw *ah);
1066 u64 ath9k_hw_gettsf64(struct ath_hw *ah);
1067 void ath9k_hw_settsf64(struct ath_hw *ah, u64 tsf64);
1068 void ath9k_hw_reset_tsf(struct ath_hw *ah);
1070 void ath9k_hw_set_tsfadjust(struct ath_hw *ah, bool set);
1071 void ath9k_hw_init_global_settings(struct ath_hw *ah);
1072 u32 ar9003_get_pll_sqsum_dvc(struct ath_hw *ah);
1073 void ath9k_hw_set11nmac2040(struct ath_hw *ah, struct ath9k_channel *chan);
1074 void ath9k_hw_beaconinit(struct ath_hw *ah, u32 next_beacon, u32 beacon_period);
1075 void ath9k_hw_set_sta_beacon_timers(struct ath_hw *ah,
1077 void ath9k_hw_check_nav(struct ath_hw *ah);
1078 bool ath9k_hw_check_alive(struct ath_hw *ah);
1080 bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode);
1083 struct ath_gen_timer *ath_gen_timer_alloc(struct ath_hw *ah,
1088 void ath9k_hw_gen_timer_start(struct ath_hw *ah,
1092 void ath9k_hw_gen_timer_start_tsf2(struct ath_hw *ah);
1093 void ath9k_hw_gen_timer_stop(struct ath_hw *ah, struct ath_gen_timer *timer);
1095 void ath_gen_timer_free(struct ath_hw *ah, struct ath_gen_timer *timer);
1098 void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len);
1101 void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled,
1103 void ath9k_hw_apply_txpower(struct ath_hw *ah, struct ath9k_channel *chan,
1110 int ar9002_hw_rf_claim(struct ath_hw *ah);
1111 void ar9002_hw_enable_async_fifo(struct ath_hw *ah);
1117 bool ar9003_hw_bb_watchdog_check(struct ath_hw *ah);
1118 void ar9003_hw_bb_watchdog_config(struct ath_hw *ah);
1119 void ar9003_hw_bb_watchdog_read(struct ath_hw *ah);
1120 void ar9003_hw_bb_watchdog_dbg_info(struct ath_hw *ah);
1121 void ar9003_hw_disable_phy_restart(struct ath_hw *ah);
1122 void ar9003_paprd_enable(struct ath_hw *ah, bool val);
1123 void ar9003_paprd_populate_single_table(struct ath_hw *ah,
1126 int ar9003_paprd_create_curve(struct ath_hw *ah,
1128 void ar9003_paprd_setup_gain_table(struct ath_hw *ah, int chain);
1129 int ar9003_paprd_init_table(struct ath_hw *ah);
1130 bool ar9003_paprd_is_done(struct ath_hw *ah);
1131 bool ar9003_is_paprd_enabled(struct ath_hw *ah);
1132 void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx);
1133 void ar9003_hw_init_rate_txpower(struct ath_hw *ah, u8 *rate_array,
1135 void ar5008_hw_cmn_spur_mitigate(struct ath_hw *ah,
1137 void ar5008_hw_init_rate_txpower(struct ath_hw *ah, int16_t *rate_array,
1141 int ar5008_hw_attach_phy_ops(struct ath_hw *ah);
1142 void ar9002_hw_attach_phy_ops(struct ath_hw *ah);
1143 void ar9003_hw_attach_phy_ops(struct ath_hw *ah);
1145 void ar9002_hw_attach_calib_ops(struct ath_hw *ah);
1146 void ar9003_hw_attach_calib_ops(struct ath_hw *ah);
1148 int ar9002_hw_attach_ops(struct ath_hw *ah);
1149 void ar9003_hw_attach_ops(struct ath_hw *ah);
1151 void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan);
1153 void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning);
1154 void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan);
1156 void ath9k_hw_set_ack_timeout(struct ath_hw *ah, u32 us);
1157 void ath9k_hw_set_cts_timeout(struct ath_hw *ah, u32 us);
1158 void ath9k_hw_setslottime(struct ath_hw *ah, u32 us);
1161 void ar9003_hw_attach_aic_ops(struct ath_hw *ah);
1162 static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
1164 return ah->btcoex_hw.enabled;
1166 static inline bool ath9k_hw_mci_is_enabled(struct ath_hw *ah)
1168 return ah->common.btcoex_enabled &&
1169 (ah->caps.hw_caps & ATH9K_HW_CAP_MCI);
1172 void ath9k_hw_btcoex_enable(struct ath_hw *ah);
1174 ath9k_hw_get_btcoex_scheme(struct ath_hw *ah)
1176 return ah->btcoex_hw.scheme;
1179 static inline void ar9003_hw_attach_aic_ops(struct ath_hw *ah)
1182 static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
1186 static inline bool ath9k_hw_mci_is_enabled(struct ath_hw *ah)
1190 static inline void ath9k_hw_btcoex_enable(struct ath_hw *ah)
1194 ath9k_hw_get_btcoex_scheme(struct ath_hw *ah)
1202 int ath9k_hw_wow_apply_pattern(struct ath_hw *ah, u8 *user_pattern,
1205 u32 ath9k_hw_wow_wakeup(struct ath_hw *ah);
1206 void ath9k_hw_wow_enable(struct ath_hw *ah, u32 pattern_enable);
1208 static inline int ath9k_hw_wow_apply_pattern(struct ath_hw *ah,
1216 static inline u32 ath9k_hw_wow_wakeup(struct ath_hw *ah)
1220 static inline void ath9k_hw_wow_enable(struct ath_hw *ah, u32 pattern_enable)