Lines Matching refs:ath_hw

627 	void (*init_hang_checks)(struct ath_hw *ah);
628 bool (*detect_mac_hang)(struct ath_hw *ah);
629 bool (*detect_bb_hang)(struct ath_hw *ah);
632 void (*init_cal_settings)(struct ath_hw *ah);
633 bool (*init_cal)(struct ath_hw *ah, struct ath9k_channel *chan);
635 void (*init_mode_gain_regs)(struct ath_hw *ah);
636 void (*setup_calibration)(struct ath_hw *ah,
640 int (*rf_set_freq)(struct ath_hw *ah,
642 void (*spur_mitigate_freq)(struct ath_hw *ah,
644 bool (*set_rf_regs)(struct ath_hw *ah,
647 void (*set_channel_regs)(struct ath_hw *ah, struct ath9k_channel *chan);
648 void (*init_bb)(struct ath_hw *ah,
650 int (*process_ini)(struct ath_hw *ah, struct ath9k_channel *chan);
651 void (*olc_init)(struct ath_hw *ah);
652 void (*set_rfmode)(struct ath_hw *ah, struct ath9k_channel *chan);
653 void (*mark_phy_inactive)(struct ath_hw *ah);
654 void (*set_delta_slope)(struct ath_hw *ah, struct ath9k_channel *chan);
655 bool (*rfbus_req)(struct ath_hw *ah);
656 void (*rfbus_done)(struct ath_hw *ah);
657 void (*restore_chainmask)(struct ath_hw *ah);
658 u32 (*compute_pll_control)(struct ath_hw *ah,
660 bool (*ani_control)(struct ath_hw *ah, enum ath9k_ani_cmd cmd,
662 void (*do_getnf)(struct ath_hw *ah, int16_t nfarray[NUM_NF_READINGS]);
663 void (*set_radar_params)(struct ath_hw *ah,
665 int (*fast_chan_change)(struct ath_hw *ah, struct ath9k_channel *chan,
669 void (*ani_cache_ini_regs)(struct ath_hw *ah);
672 bool (*is_aic_enabled)(struct ath_hw *ah);
721 void (*config_pci_powersave)(struct ath_hw *ah,
723 void (*rx_enable)(struct ath_hw *ah);
725 int (*calibrate)(struct ath_hw *ah, struct ath9k_channel *chan,
727 bool (*get_isr)(struct ath_hw *ah, enum ath9k_int *masked,
729 void (*set_txdesc)(struct ath_hw *ah, void *ds,
731 int (*proc_txdesc)(struct ath_hw *ah, void *ds,
733 int (*get_duration)(struct ath_hw *ah, const void *ds, int index);
734 void (*antdiv_comb_conf_get)(struct ath_hw *ah,
736 void (*antdiv_comb_conf_set)(struct ath_hw *ah,
738 void (*spectral_scan_config)(struct ath_hw *ah,
740 void (*spectral_scan_trigger)(struct ath_hw *ah);
741 void (*spectral_scan_wait)(struct ath_hw *ah);
743 void (*tx99_start)(struct ath_hw *ah, u32 qnum);
744 void (*tx99_stop)(struct ath_hw *ah);
745 void (*tx99_set_txpower)(struct ath_hw *ah, u8 power);
748 void (*set_bt_ant_diversity)(struct ath_hw *hw, bool enable);
770 struct ath_hw { struct
988 static inline struct ath_common *ath9k_hw_common(struct ath_hw *ah) in ath9k_hw_common() argument
993 static inline struct ath_regulatory *ath9k_hw_regulatory(struct ath_hw *ah) in ath9k_hw_regulatory()
998 static inline struct ath_hw_private_ops *ath9k_hw_private_ops(struct ath_hw *ah) in ath9k_hw_private_ops()
1003 static inline struct ath_hw_ops *ath9k_hw_ops(struct ath_hw *ah) in ath9k_hw_ops()
1014 void ath9k_hw_deinit(struct ath_hw *ah);
1015 int ath9k_hw_init(struct ath_hw *ah);
1016 int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
1018 int ath9k_hw_fill_cap_info(struct ath_hw *ah);
1022 void ath9k_hw_cfg_gpio_input(struct ath_hw *ah, u32 gpio);
1023 u32 ath9k_hw_gpio_get(struct ath_hw *ah, u32 gpio);
1024 void ath9k_hw_cfg_output(struct ath_hw *ah, u32 gpio,
1026 void ath9k_hw_set_gpio(struct ath_hw *ah, u32 gpio, u32 val);
1027 void ath9k_hw_request_gpio(struct ath_hw *ah, u32 gpio, const char *label);
1028 void ath9k_hw_setantenna(struct ath_hw *ah, u32 antenna);
1031 void ath9k_hw_synth_delay(struct ath_hw *ah, struct ath9k_channel *chan,
1033 bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val, u32 timeout);
1034 void ath9k_hw_write_array(struct ath_hw *ah, const struct ar5416IniArray *array,
1036 void ath9k_hw_read_array(struct ath_hw *ah, u32 array[][2], int size);
1038 u16 ath9k_hw_computetxtime(struct ath_hw *ah,
1041 void ath9k_hw_get_channel_centers(struct ath_hw *ah,
1044 u32 ath9k_hw_getrxfilter(struct ath_hw *ah);
1045 void ath9k_hw_setrxfilter(struct ath_hw *ah, u32 bits);
1046 bool ath9k_hw_phy_disable(struct ath_hw *ah);
1047 bool ath9k_hw_disable(struct ath_hw *ah);
1048 void ath9k_hw_set_txpowerlimit(struct ath_hw *ah, u32 limit, bool test);
1049 void ath9k_hw_setopmode(struct ath_hw *ah);
1050 void ath9k_hw_setmcastfilter(struct ath_hw *ah, u32 filter0, u32 filter1);
1051 void ath9k_hw_write_associd(struct ath_hw *ah);
1052 u32 ath9k_hw_gettsf32(struct ath_hw *ah);
1053 u64 ath9k_hw_gettsf64(struct ath_hw *ah);
1054 void ath9k_hw_settsf64(struct ath_hw *ah, u64 tsf64);
1055 void ath9k_hw_reset_tsf(struct ath_hw *ah);
1057 void ath9k_hw_set_tsfadjust(struct ath_hw *ah, bool set);
1058 void ath9k_hw_init_global_settings(struct ath_hw *ah);
1059 u32 ar9003_get_pll_sqsum_dvc(struct ath_hw *ah);
1060 void ath9k_hw_set11nmac2040(struct ath_hw *ah, struct ath9k_channel *chan);
1061 void ath9k_hw_beaconinit(struct ath_hw *ah, u32 next_beacon, u32 beacon_period);
1062 void ath9k_hw_set_sta_beacon_timers(struct ath_hw *ah,
1064 void ath9k_hw_check_nav(struct ath_hw *ah);
1065 bool ath9k_hw_check_alive(struct ath_hw *ah);
1067 bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode);
1070 struct ath_gen_timer *ath_gen_timer_alloc(struct ath_hw *ah,
1075 void ath9k_hw_gen_timer_start(struct ath_hw *ah,
1079 void ath9k_hw_gen_timer_start_tsf2(struct ath_hw *ah);
1080 void ath9k_hw_gen_timer_stop(struct ath_hw *ah, struct ath_gen_timer *timer);
1082 void ath_gen_timer_free(struct ath_hw *ah, struct ath_gen_timer *timer);
1083 void ath_gen_timer_isr(struct ath_hw *hw);
1085 void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len);
1088 void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled,
1090 void ath9k_hw_apply_txpower(struct ath_hw *ah, struct ath9k_channel *chan,
1097 int ar9002_hw_rf_claim(struct ath_hw *ah);
1098 void ar9002_hw_enable_async_fifo(struct ath_hw *ah);
1104 bool ar9003_hw_bb_watchdog_check(struct ath_hw *ah);
1105 void ar9003_hw_bb_watchdog_config(struct ath_hw *ah);
1106 void ar9003_hw_bb_watchdog_read(struct ath_hw *ah);
1107 void ar9003_hw_bb_watchdog_dbg_info(struct ath_hw *ah);
1108 void ar9003_hw_disable_phy_restart(struct ath_hw *ah);
1109 void ar9003_paprd_enable(struct ath_hw *ah, bool val);
1110 void ar9003_paprd_populate_single_table(struct ath_hw *ah,
1113 int ar9003_paprd_create_curve(struct ath_hw *ah,
1115 void ar9003_paprd_setup_gain_table(struct ath_hw *ah, int chain);
1116 int ar9003_paprd_init_table(struct ath_hw *ah);
1117 bool ar9003_paprd_is_done(struct ath_hw *ah);
1118 bool ar9003_is_paprd_enabled(struct ath_hw *ah);
1119 void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx);
1120 void ar9003_hw_init_rate_txpower(struct ath_hw *ah, u8 *rate_array,
1122 void ar5008_hw_init_rate_txpower(struct ath_hw *ah, int16_t *rate_array,
1126 int ar5008_hw_attach_phy_ops(struct ath_hw *ah);
1127 void ar9002_hw_attach_phy_ops(struct ath_hw *ah);
1128 void ar9003_hw_attach_phy_ops(struct ath_hw *ah);
1130 void ar9002_hw_attach_calib_ops(struct ath_hw *ah);
1131 void ar9003_hw_attach_calib_ops(struct ath_hw *ah);
1133 int ar9002_hw_attach_ops(struct ath_hw *ah);
1134 void ar9003_hw_attach_ops(struct ath_hw *ah);
1136 void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan);
1138 void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning);
1139 void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan);
1141 void ath9k_hw_set_ack_timeout(struct ath_hw *ah, u32 us);
1142 void ath9k_hw_set_cts_timeout(struct ath_hw *ah, u32 us);
1143 void ath9k_hw_setslottime(struct ath_hw *ah, u32 us);
1146 void ar9003_hw_attach_aic_ops(struct ath_hw *ah);
1147 static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah) in ath9k_hw_btcoex_is_enabled()
1151 static inline bool ath9k_hw_mci_is_enabled(struct ath_hw *ah) in ath9k_hw_mci_is_enabled()
1157 void ath9k_hw_btcoex_enable(struct ath_hw *ah);
1159 ath9k_hw_get_btcoex_scheme(struct ath_hw *ah) in ath9k_hw_get_btcoex_scheme()
1164 static inline void ar9003_hw_attach_aic_ops(struct ath_hw *ah) in ar9003_hw_attach_aic_ops()
1167 static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah) in ath9k_hw_btcoex_is_enabled()
1171 static inline bool ath9k_hw_mci_is_enabled(struct ath_hw *ah) in ath9k_hw_mci_is_enabled()
1175 static inline void ath9k_hw_btcoex_enable(struct ath_hw *ah) in ath9k_hw_btcoex_enable()
1179 ath9k_hw_get_btcoex_scheme(struct ath_hw *ah) in ath9k_hw_get_btcoex_scheme()
1187 int ath9k_hw_wow_apply_pattern(struct ath_hw *ah, u8 *user_pattern,
1190 u32 ath9k_hw_wow_wakeup(struct ath_hw *ah);
1191 void ath9k_hw_wow_enable(struct ath_hw *ah, u32 pattern_enable);
1193 static inline int ath9k_hw_wow_apply_pattern(struct ath_hw *ah, in ath9k_hw_wow_apply_pattern()
1201 static inline u32 ath9k_hw_wow_wakeup(struct ath_hw *ah) in ath9k_hw_wow_wakeup()
1205 static inline void ath9k_hw_wow_enable(struct ath_hw *ah, u32 pattern_enable) in ath9k_hw_wow_enable()