Lines Matching defs:rt2x00dev
64 static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev) in rt2800_is_305x_soc()
81 static void rt2800_bbp_write(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_write()
106 static u8 rt2800_bbp_read(struct rt2x00_dev *rt2x00dev, const unsigned int word) in rt2800_bbp_read()
140 static void rt2800_rfcsr_write(struct rt2x00_dev *rt2x00dev, in rt2800_rfcsr_write()
181 static void rt2800_rfcsr_write_bank(struct rt2x00_dev *rt2x00dev, const u8 bank, in rt2800_rfcsr_write_bank()
187 static void rt2800_rfcsr_write_chanreg(struct rt2x00_dev *rt2x00dev, in rt2800_rfcsr_write_chanreg()
194 static void rt2800_rfcsr_write_dccal(struct rt2x00_dev *rt2x00dev, in rt2800_rfcsr_write_dccal()
201 static void rt2800_bbp_dcoc_write(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_dcoc_write()
208 static u8 rt2800_bbp_dcoc_read(struct rt2x00_dev *rt2x00dev, const u8 reg) in rt2800_bbp_dcoc_read()
214 static void rt2800_bbp_glrt_write(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_glrt_write()
221 static u8 rt2800_rfcsr_read(struct rt2x00_dev *rt2x00dev, in rt2800_rfcsr_read()
275 static u8 rt2800_rfcsr_read_bank(struct rt2x00_dev *rt2x00dev, const u8 bank, in rt2800_rfcsr_read_bank()
281 static void rt2800_rf_write(struct rt2x00_dev *rt2x00dev, in rt2800_rf_write()
386 static unsigned int rt2800_eeprom_word_index(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_word_index()
418 static void *rt2800_eeprom_addr(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_addr()
427 static u16 rt2800_eeprom_read(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_read()
436 static void rt2800_eeprom_write(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_write()
445 static u16 rt2800_eeprom_read_from_array(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_read_from_array()
455 static int rt2800_enable_wlan_rt3290(struct rt2x00_dev *rt2x00dev) in rt2800_enable_wlan_rt3290()
513 void rt2800_mcu_request(struct rt2x00_dev *rt2x00dev, in rt2800_mcu_request()
547 int rt2800_wait_csr_ready(struct rt2x00_dev *rt2x00dev) in rt2800_wait_csr_ready()
564 int rt2800_wait_wpdma_ready(struct rt2x00_dev *rt2x00dev) in rt2800_wait_wpdma_ready()
587 void rt2800_disable_wpdma(struct rt2x00_dev *rt2x00dev) in rt2800_disable_wpdma()
601 void rt2800_get_txwi_rxwi_size(struct rt2x00_dev *rt2x00dev, in rt2800_get_txwi_rxwi_size()
658 int rt2800_check_firmware(struct rt2x00_dev *rt2x00dev, in rt2800_check_firmware()
712 int rt2800_load_firmware(struct rt2x00_dev *rt2x00dev, in rt2800_load_firmware()
854 static int rt2800_agc_to_rssi(struct rt2x00_dev *rt2x00dev, u32 rxwi_w2) in rt2800_agc_to_rssi()
1019 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_txdone_entry() local
1118 void rt2800_txdone(struct rt2x00_dev *rt2x00dev, unsigned int quota) in rt2800_txdone()
1155 static inline bool rt2800_entry_txstatus_timeout(struct rt2x00_dev *rt2x00dev, in rt2800_entry_txstatus_timeout()
1177 bool rt2800_txstatus_timeout(struct rt2x00_dev *rt2x00dev) in rt2800_txstatus_timeout()
1196 bool rt2800_txstatus_pending(struct rt2x00_dev *rt2x00dev) in rt2800_txstatus_pending()
1209 void rt2800_txdone_nostatus(struct rt2x00_dev *rt2x00dev) in rt2800_txdone_nostatus()
1251 static void rt2800_update_survey(struct rt2x00_dev *rt2x00dev) in rt2800_update_survey()
1262 void rt2800_watchdog(struct rt2x00_dev *rt2x00dev) in rt2800_watchdog()
1309 static unsigned int rt2800_hw_beacon_base(struct rt2x00_dev *rt2x00dev, in rt2800_hw_beacon_base()
1315 static inline u8 rt2800_get_beacon_offset(struct rt2x00_dev *rt2x00dev, in rt2800_get_beacon_offset()
1321 static void rt2800_update_beacons_setup(struct rt2x00_dev *rt2x00dev) in rt2800_update_beacons_setup()
1355 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_write_beacon() local
1429 static inline void rt2800_clear_beacon_register(struct rt2x00_dev *rt2x00dev, in rt2800_clear_beacon_register()
1449 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_clear_beacon() local
1524 int rt2800_rfkill_poll(struct rt2x00_dev *rt2x00dev) in rt2800_rfkill_poll()
1599 static void rt2800_init_led(struct rt2x00_dev *rt2x00dev, in rt2800_init_led()
1612 static void rt2800_config_wcid(struct rt2x00_dev *rt2x00dev, in rt2800_config_wcid()
1629 static void rt2800_delete_wcid_attr(struct rt2x00_dev *rt2x00dev, int wcid) in rt2800_delete_wcid_attr()
1636 static void rt2800_config_wcid_attr_bssidx(struct rt2x00_dev *rt2x00dev, in rt2800_config_wcid_attr_bssidx()
1653 static void rt2800_config_wcid_attr_cipher(struct rt2x00_dev *rt2x00dev, in rt2800_config_wcid_attr_cipher()
1703 int rt2800_config_shared_key(struct rt2x00_dev *rt2x00dev, in rt2800_config_shared_key()
1756 int rt2800_config_pairwise_key(struct rt2x00_dev *rt2x00dev, in rt2800_config_pairwise_key()
1793 static void rt2800_set_max_psdu_len(struct rt2x00_dev *rt2x00dev) in rt2800_set_max_psdu_len()
1813 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_sta_add() local
1865 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_sta_remove() local
1889 void rt2800_pre_reset_hw(struct rt2x00_dev *rt2x00dev) in rt2800_pre_reset_hw()
1908 void rt2800_config_filter(struct rt2x00_dev *rt2x00dev, in rt2800_config_filter()
1953 void rt2800_config_intf(struct rt2x00_dev *rt2x00dev, struct rt2x00_intf *intf, in rt2800_config_intf()
2022 static void rt2800_config_ht_opmode(struct rt2x00_dev *rt2x00dev, in rt2800_config_ht_opmode()
2118 void rt2800_config_erp(struct rt2x00_dev *rt2x00dev, struct rt2x00lib_erp *erp, in rt2800_config_erp()
2166 static int rt2800_wait_bbp_rf_ready(struct rt2x00_dev *rt2x00dev, in rt2800_wait_bbp_rf_ready()
2184 static int rt2800_wait_bbp_ready(struct rt2x00_dev *rt2x00dev) in rt2800_wait_bbp_ready()
2208 static void rt2800_config_3572bt_ant(struct rt2x00_dev *rt2x00dev) in rt2800_config_3572bt_ant()
2242 static void rt2800_set_ant_diversity(struct rt2x00_dev *rt2x00dev, in rt2800_set_ant_diversity()
2263 void rt2800_config_ant(struct rt2x00_dev *rt2x00dev, struct antenna_setup *ant) in rt2800_config_ant()
2342 static void rt2800_config_lna_gain(struct rt2x00_dev *rt2x00dev, in rt2800_config_lna_gain()
2381 static inline bool rt2800_clk_is_20mhz(struct rt2x00_dev *rt2x00dev) in rt2800_clk_is_20mhz()
2388 static void rt2800_freq_cal_mode1(struct rt2x00_dev *rt2x00dev) in rt2800_freq_cal_mode1()
2423 static void rt2800_config_channel_rf2xxx(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf2xxx()
2488 static void rt2800_config_channel_rf3xxx(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3xxx()
2566 static void rt2800_config_channel_rf3052(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3052()
2738 static void rt2800_config_channel_rf3053(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3053()
3035 static void rt2800_config_channel_rf3853(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3853()
3243 static void rt2800_config_channel_rf3290(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3290()
3280 static void rt2800_config_channel_rf3322(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3322()
3328 static void rt2800_config_channel_rf53xx(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf53xx()
3426 static void rt2800_config_channel_rf55xx(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf55xx()
3701 static void rt2800_config_channel_rf7620(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf7620()
3868 static void rt2800_config_alc(struct rt2x00_dev *rt2x00dev, in rt2800_config_alc()
3937 static void rt2800_bbp_write_with_rx_chain(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_write_with_rx_chain()
3952 static void rt2800_iq_calibrate(struct rt2x00_dev *rt2x00dev, int channel) in rt2800_iq_calibrate()
4038 static s8 rt2800_txpower_to_dev(struct rt2x00_dev *rt2x00dev, in rt2800_txpower_to_dev()
4057 static void rt3883_bbp_adjust(struct rt2x00_dev *rt2x00dev, in rt3883_bbp_adjust()
4087 static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel()
4513 static int rt2800_get_gain_calibration_delta(struct rt2x00_dev *rt2x00dev) in rt2800_get_gain_calibration_delta()
4630 static int rt2800_get_txpower_bw_comp(struct rt2x00_dev *rt2x00dev, in rt2800_get_txpower_bw_comp()
4674 static int rt2800_get_txpower_reg_delta(struct rt2x00_dev *rt2x00dev, in rt2800_get_txpower_reg_delta()
4695 static u8 rt2800_compensate_txpower(struct rt2x00_dev *rt2x00dev, int is_rate_b, in rt2800_compensate_txpower()
4766 static void rt2800_config_txpower_rt3593(struct rt2x00_dev *rt2x00dev, in rt2800_config_txpower_rt3593()
5152 static void rt2800_config_txpower_rt6352(struct rt2x00_dev *rt2x00dev, in rt2800_config_txpower_rt6352()
5285 static void rt2800_config_txpower_rt28xx(struct rt2x00_dev *rt2x00dev, in rt2800_config_txpower_rt28xx()
5468 static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, in rt2800_config_txpower()
5481 void rt2800_gain_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_gain_calibration()
5488 void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_vco_calibration()
5620 static void rt2800_config_retry_limit(struct rt2x00_dev *rt2x00dev, in rt2800_config_retry_limit()
5633 static void rt2800_config_ps(struct rt2x00_dev *rt2x00dev, in rt2800_config_ps()
5663 void rt2800_config(struct rt2x00_dev *rt2x00dev, in rt2800_config()
5695 void rt2800_link_stats(struct rt2x00_dev *rt2x00dev, struct link_qual *qual) in rt2800_link_stats()
5707 static u8 rt2800_get_default_vgc(struct rt2x00_dev *rt2x00dev) in rt2800_get_default_vgc()
5743 static inline void rt2800_set_vgc(struct rt2x00_dev *rt2x00dev, in rt2800_set_vgc()
5765 void rt2800_reset_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual) in rt2800_reset_tuner()
5771 void rt2800_link_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual, in rt2800_link_tuner()
5820 static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev) in rt2800_init_registers()
6340 static void rt2800_bbp4_mac_if_ctrl(struct rt2x00_dev *rt2x00dev) in rt2800_bbp4_mac_if_ctrl()
6349 static void rt2800_init_freq_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_init_freq_calibration()
6355 static void rt2800_init_bbp_5592_glrt(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_5592_glrt()
6376 static void rt2800_init_bbp_early(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_early()
6396 static void rt2800_disable_unused_dac_adc(struct rt2x00_dev *rt2x00dev) in rt2800_disable_unused_dac_adc()
6410 static void rt2800_init_bbp_305x_soc(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_305x_soc()
6444 static void rt2800_init_bbp_28xx(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_28xx()
6483 static void rt2800_init_bbp_30xx(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_30xx()
6525 static void rt2800_init_bbp_3290(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3290()
6596 static void rt2800_init_bbp_3352(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3352()
6688 static void rt2800_init_bbp_3390(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3390()
6726 static void rt2800_init_bbp_3572(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3572()
6763 static void rt2800_init_bbp_3593(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3593()
6779 static void rt2800_init_bbp_3883(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3883()
6820 static void rt2800_init_bbp_53xx(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_53xx()
6929 static void rt2800_init_bbp_5592(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_5592()
7003 static void rt2800_init_bbp_6352(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_6352()
7207 static void rt2800_init_bbp(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp()
7271 static void rt2800_led_open_drain_enable(struct rt2x00_dev *rt2x00dev) in rt2800_led_open_drain_enable()
7280 static u8 rt2800_init_rx_filter(struct rt2x00_dev *rt2x00dev, bool bw40, in rt2800_init_rx_filter()
7345 static void rt2800_rf_init_calibration(struct rt2x00_dev *rt2x00dev, in rt2800_rf_init_calibration()
7358 static void rt2800_rx_filter_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_rx_filter_calibration()
7404 static void rt2800_normal_mode_setup_3xxx(struct rt2x00_dev *rt2x00dev) in rt2800_normal_mode_setup_3xxx()
7475 static void rt2800_normal_mode_setup_3593(struct rt2x00_dev *rt2x00dev) in rt2800_normal_mode_setup_3593()
7511 static void rt2800_normal_mode_setup_5xxx(struct rt2x00_dev *rt2x00dev) in rt2800_normal_mode_setup_5xxx()
7540 static void rt2800_init_rfcsr_305x_soc(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_305x_soc()
7578 static void rt2800_init_rfcsr_30xx(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_30xx()
7648 static void rt2800_init_rfcsr_3290(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3290()
7709 static void rt2800_init_rfcsr_3352(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3352()
7808 static void rt2800_init_rfcsr_3390(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3390()
7860 static void rt2800_init_rfcsr_3572(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3572()
7918 static void rt3593_post_bbp_init(struct rt2x00_dev *rt2x00dev) in rt3593_post_bbp_init()
7965 static void rt2800_init_rfcsr_3593(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3593()
8048 static void rt2800_init_rfcsr_5350(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_5350()
8118 static void rt2800_init_rfcsr_3883(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3883()
8256 static void rt2800_init_rfcsr_5390(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_5390()
8354 static void rt2800_init_rfcsr_5392(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_5392()
8422 static void rt2800_init_rfcsr_5592(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_5592()
8465 static void rt2800_rf_self_txdc_cal(struct rt2x00_dev *rt2x00dev) in rt2800_rf_self_txdc_cal()
8512 static int rt2800_calcrcalibrationcode(struct rt2x00_dev *rt2x00dev, int d1, int d2) in rt2800_calcrcalibrationcode()
8523 static void rt2800_r_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_r_calibration()
8644 static void rt2800_rxdcoc_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_rxdcoc_calibration()
8720 static void rt2800_rxiq_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_rxiq_calibration()
9075 static void rt2800_rf_configstore(struct rt2x00_dev *rt2x00dev, in rt2800_rf_configstore()
9191 static void rt2800_rf_configrecover(struct rt2x00_dev *rt2x00dev, in rt2800_rf_configrecover()
9209 static void rt2800_setbbptonegenerator(struct rt2x00_dev *rt2x00dev) in rt2800_setbbptonegenerator()
9226 static u32 rt2800_do_fft_accumulation(struct rt2x00_dev *rt2x00dev, u8 tidx, u8 read_neg) in rt2800_do_fft_accumulation()
9285 static u32 rt2800_read_fft_accumulation(struct rt2x00_dev *rt2x00dev, u8 tidx) in rt2800_read_fft_accumulation()
9309 static void rt2800_write_dc(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 alc, u8 iorq, u8 dc) in rt2800_write_dc()
9327 static void rt2800_loft_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, in rt2800_loft_search()
9382 static void rt2800_iq_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 *ges, u8 *pes) in rt2800_iq_search()
9506 static void rt2800_rf_aux_tx0_loopback(struct rt2x00_dev *rt2x00dev) in rt2800_rf_aux_tx0_loopback()
9523 static void rt2800_rf_aux_tx1_loopback(struct rt2x00_dev *rt2x00dev) in rt2800_rf_aux_tx1_loopback()
9540 static void rt2800_loft_iq_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_loft_iq_calibration()
9976 static void rt2800_bbp_core_soft_reset(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_core_soft_reset()
9999 static int rt2800_rf_lp_config(struct rt2x00_dev *rt2x00dev, bool btxcal) in rt2800_rf_lp_config()
10044 static s8 rt2800_lp_tx_filter_bw_cal(struct rt2x00_dev *rt2x00dev) in rt2800_lp_tx_filter_bw_cal()
10070 static void rt2800_bw_filter_calibration(struct rt2x00_dev *rt2x00dev, in rt2800_bw_filter_calibration()
10319 static void rt2800_init_rfcsr_6352(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_6352()
10592 static void rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr()
10641 int rt2800_enable_radio(struct rt2x00_dev *rt2x00dev) in rt2800_enable_radio()
10730 void rt2800_disable_radio(struct rt2x00_dev *rt2x00dev) in rt2800_disable_radio()
10746 int rt2800_efuse_detect(struct rt2x00_dev *rt2x00dev) in rt2800_efuse_detect()
10761 static void rt2800_efuse_read(struct rt2x00_dev *rt2x00dev, unsigned int i) in rt2800_efuse_read()
10807 int rt2800_read_eeprom_efuse(struct rt2x00_dev *rt2x00dev) in rt2800_read_eeprom_efuse()
10818 static u8 rt2800_get_txmixer_gain_24g(struct rt2x00_dev *rt2x00dev) in rt2800_get_txmixer_gain_24g()
10833 static u8 rt2800_get_txmixer_gain_5g(struct rt2x00_dev *rt2x00dev) in rt2800_get_txmixer_gain_5g()
10848 static int rt2800_validate_eeprom(struct rt2x00_dev *rt2x00dev) in rt2800_validate_eeprom()
10991 static int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev) in rt2800_init_eeprom()
11547 static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) in rt2800_probe_hw_mode()
11808 static int rt2800_probe_rt(struct rt2x00_dev *rt2x00dev) in rt2800_probe_rt()
11854 int rt2800_probe_hw(struct rt2x00_dev *rt2x00dev) in rt2800_probe_hw()
11938 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_get_key_seq() local
11956 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_set_rts_threshold() local
11997 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_conf_tx() local
12064 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_get_tsf() local
12128 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_get_survey() local