Lines Matching defs:rt2x00dev
65 static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev) in rt2800_is_305x_soc()
82 static void rt2800_bbp_write(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_write()
107 static u8 rt2800_bbp_read(struct rt2x00_dev *rt2x00dev, const unsigned int word) in rt2800_bbp_read()
141 static void rt2800_rfcsr_write(struct rt2x00_dev *rt2x00dev, in rt2800_rfcsr_write()
182 static void rt2800_rfcsr_write_bank(struct rt2x00_dev *rt2x00dev, const u8 bank, in rt2800_rfcsr_write_bank()
188 static void rt2800_rfcsr_write_chanreg(struct rt2x00_dev *rt2x00dev, in rt2800_rfcsr_write_chanreg()
195 static void rt2800_rfcsr_write_dccal(struct rt2x00_dev *rt2x00dev, in rt2800_rfcsr_write_dccal()
202 static void rt2800_bbp_dcoc_write(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_dcoc_write()
209 static u8 rt2800_bbp_dcoc_read(struct rt2x00_dev *rt2x00dev, const u8 reg) in rt2800_bbp_dcoc_read()
215 static void rt2800_bbp_glrt_write(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_glrt_write()
222 static u8 rt2800_rfcsr_read(struct rt2x00_dev *rt2x00dev, in rt2800_rfcsr_read()
276 static u8 rt2800_rfcsr_read_bank(struct rt2x00_dev *rt2x00dev, const u8 bank, in rt2800_rfcsr_read_bank()
282 static void rt2800_rf_write(struct rt2x00_dev *rt2x00dev, in rt2800_rf_write()
387 static unsigned int rt2800_eeprom_word_index(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_word_index()
419 static void *rt2800_eeprom_addr(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_addr()
428 static u16 rt2800_eeprom_read(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_read()
437 static void rt2800_eeprom_write(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_write()
446 static u16 rt2800_eeprom_read_from_array(struct rt2x00_dev *rt2x00dev, in rt2800_eeprom_read_from_array()
456 static int rt2800_enable_wlan_rt3290(struct rt2x00_dev *rt2x00dev) in rt2800_enable_wlan_rt3290()
514 void rt2800_mcu_request(struct rt2x00_dev *rt2x00dev, in rt2800_mcu_request()
548 int rt2800_wait_csr_ready(struct rt2x00_dev *rt2x00dev) in rt2800_wait_csr_ready()
565 int rt2800_wait_wpdma_ready(struct rt2x00_dev *rt2x00dev) in rt2800_wait_wpdma_ready()
588 void rt2800_disable_wpdma(struct rt2x00_dev *rt2x00dev) in rt2800_disable_wpdma()
602 void rt2800_get_txwi_rxwi_size(struct rt2x00_dev *rt2x00dev, in rt2800_get_txwi_rxwi_size()
659 int rt2800_check_firmware(struct rt2x00_dev *rt2x00dev, in rt2800_check_firmware()
713 int rt2800_load_firmware(struct rt2x00_dev *rt2x00dev, in rt2800_load_firmware()
855 static int rt2800_agc_to_rssi(struct rt2x00_dev *rt2x00dev, u32 rxwi_w2) in rt2800_agc_to_rssi()
1021 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_txdone_entry() local
1120 void rt2800_txdone(struct rt2x00_dev *rt2x00dev, unsigned int quota) in rt2800_txdone()
1157 static inline bool rt2800_entry_txstatus_timeout(struct rt2x00_dev *rt2x00dev, in rt2800_entry_txstatus_timeout()
1179 bool rt2800_txstatus_timeout(struct rt2x00_dev *rt2x00dev) in rt2800_txstatus_timeout()
1198 bool rt2800_txstatus_pending(struct rt2x00_dev *rt2x00dev) in rt2800_txstatus_pending()
1211 void rt2800_txdone_nostatus(struct rt2x00_dev *rt2x00dev) in rt2800_txdone_nostatus()
1254 static void rt2800_update_survey(struct rt2x00_dev *rt2x00dev) in rt2800_update_survey()
1265 static bool rt2800_watchdog_hung(struct rt2x00_dev *rt2x00dev) in rt2800_watchdog_hung()
1313 static bool rt2800_watchdog_dma_busy(struct rt2x00_dev *rt2x00dev) in rt2800_watchdog_dma_busy()
1349 void rt2800_watchdog(struct rt2x00_dev *rt2x00dev) in rt2800_watchdog()
1367 static unsigned int rt2800_hw_beacon_base(struct rt2x00_dev *rt2x00dev, in rt2800_hw_beacon_base()
1373 static inline u8 rt2800_get_beacon_offset(struct rt2x00_dev *rt2x00dev, in rt2800_get_beacon_offset()
1379 static void rt2800_update_beacons_setup(struct rt2x00_dev *rt2x00dev) in rt2800_update_beacons_setup()
1413 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_write_beacon() local
1487 static inline void rt2800_clear_beacon_register(struct rt2x00_dev *rt2x00dev, in rt2800_clear_beacon_register()
1507 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_clear_beacon() local
1582 int rt2800_rfkill_poll(struct rt2x00_dev *rt2x00dev) in rt2800_rfkill_poll()
1657 static void rt2800_init_led(struct rt2x00_dev *rt2x00dev, in rt2800_init_led()
1670 static void rt2800_config_wcid(struct rt2x00_dev *rt2x00dev, in rt2800_config_wcid()
1687 static void rt2800_delete_wcid_attr(struct rt2x00_dev *rt2x00dev, int wcid) in rt2800_delete_wcid_attr()
1694 static void rt2800_config_wcid_attr_bssidx(struct rt2x00_dev *rt2x00dev, in rt2800_config_wcid_attr_bssidx()
1711 static void rt2800_config_wcid_attr_cipher(struct rt2x00_dev *rt2x00dev, in rt2800_config_wcid_attr_cipher()
1761 int rt2800_config_shared_key(struct rt2x00_dev *rt2x00dev, in rt2800_config_shared_key()
1814 int rt2800_config_pairwise_key(struct rt2x00_dev *rt2x00dev, in rt2800_config_pairwise_key()
1851 static void rt2800_set_max_psdu_len(struct rt2x00_dev *rt2x00dev) in rt2800_set_max_psdu_len()
1871 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_sta_add() local
1923 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_sta_remove() local
1947 void rt2800_pre_reset_hw(struct rt2x00_dev *rt2x00dev) in rt2800_pre_reset_hw()
1966 void rt2800_config_filter(struct rt2x00_dev *rt2x00dev, in rt2800_config_filter()
2011 void rt2800_config_intf(struct rt2x00_dev *rt2x00dev, struct rt2x00_intf *intf, in rt2800_config_intf()
2080 static void rt2800_config_ht_opmode(struct rt2x00_dev *rt2x00dev, in rt2800_config_ht_opmode()
2176 void rt2800_config_erp(struct rt2x00_dev *rt2x00dev, struct rt2x00lib_erp *erp, in rt2800_config_erp()
2224 static int rt2800_wait_bbp_rf_ready(struct rt2x00_dev *rt2x00dev, in rt2800_wait_bbp_rf_ready()
2242 static int rt2800_wait_bbp_ready(struct rt2x00_dev *rt2x00dev) in rt2800_wait_bbp_ready()
2266 static void rt2800_config_3572bt_ant(struct rt2x00_dev *rt2x00dev) in rt2800_config_3572bt_ant()
2300 static void rt2800_set_ant_diversity(struct rt2x00_dev *rt2x00dev, in rt2800_set_ant_diversity()
2321 void rt2800_config_ant(struct rt2x00_dev *rt2x00dev, struct antenna_setup *ant) in rt2800_config_ant()
2400 static void rt2800_config_lna_gain(struct rt2x00_dev *rt2x00dev, in rt2800_config_lna_gain()
2439 static inline bool rt2800_clk_is_20mhz(struct rt2x00_dev *rt2x00dev) in rt2800_clk_is_20mhz()
2446 static void rt2800_freq_cal_mode1(struct rt2x00_dev *rt2x00dev) in rt2800_freq_cal_mode1()
2481 static void rt2800_config_channel_rf2xxx(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf2xxx()
2546 static void rt2800_config_channel_rf3xxx(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3xxx()
2624 static void rt2800_config_channel_rf3052(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3052()
2796 static void rt2800_config_channel_rf3053(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3053()
3093 static void rt2800_config_channel_rf3853(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3853()
3301 static void rt2800_config_channel_rf3290(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3290()
3338 static void rt2800_config_channel_rf3322(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf3322()
3386 static void rt2800_config_channel_rf53xx(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf53xx()
3484 static void rt2800_config_channel_rf55xx(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf55xx()
3759 static void rt2800_config_channel_rf7620(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel_rf7620()
3918 static void rt2800_config_alc_rt6352(struct rt2x00_dev *rt2x00dev, in rt2800_config_alc_rt6352()
4010 static void rt2800_bbp_write_with_rx_chain(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_write_with_rx_chain()
4025 static void rt2800_iq_calibrate(struct rt2x00_dev *rt2x00dev, int channel) in rt2800_iq_calibrate()
4111 static s8 rt2800_txpower_to_dev(struct rt2x00_dev *rt2x00dev, in rt2800_txpower_to_dev()
4130 static void rt3883_bbp_adjust(struct rt2x00_dev *rt2x00dev, in rt3883_bbp_adjust()
4160 static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, in rt2800_config_channel()
4565 static int rt2800_get_gain_calibration_delta(struct rt2x00_dev *rt2x00dev) in rt2800_get_gain_calibration_delta()
4682 static int rt2800_get_txpower_bw_comp(struct rt2x00_dev *rt2x00dev, in rt2800_get_txpower_bw_comp()
4726 static int rt2800_get_txpower_reg_delta(struct rt2x00_dev *rt2x00dev, in rt2800_get_txpower_reg_delta()
4747 static u8 rt2800_compensate_txpower(struct rt2x00_dev *rt2x00dev, int is_rate_b, in rt2800_compensate_txpower()
4818 static void rt2800_config_txpower_rt3593(struct rt2x00_dev *rt2x00dev, in rt2800_config_txpower_rt3593()
5204 static void rt2800_config_txpower_rt6352(struct rt2x00_dev *rt2x00dev, in rt2800_config_txpower_rt6352()
5337 static void rt2800_config_txpower_rt28xx(struct rt2x00_dev *rt2x00dev, in rt2800_config_txpower_rt28xx()
5520 static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, in rt2800_config_txpower()
5533 void rt2800_gain_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_gain_calibration()
5540 void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_vco_calibration()
5635 static void rt2800_config_retry_limit(struct rt2x00_dev *rt2x00dev, in rt2800_config_retry_limit()
5648 static void rt2800_config_ps(struct rt2x00_dev *rt2x00dev, in rt2800_config_ps()
5678 void rt2800_config(struct rt2x00_dev *rt2x00dev, in rt2800_config()
5710 void rt2800_link_stats(struct rt2x00_dev *rt2x00dev, struct link_qual *qual) in rt2800_link_stats()
5722 static u8 rt2800_get_default_vgc(struct rt2x00_dev *rt2x00dev) in rt2800_get_default_vgc()
5758 static inline void rt2800_set_vgc(struct rt2x00_dev *rt2x00dev, in rt2800_set_vgc()
5780 void rt2800_reset_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual) in rt2800_reset_tuner()
5786 void rt2800_link_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual, in rt2800_link_tuner()
5835 static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev) in rt2800_init_registers()
6377 static void rt2800_bbp4_mac_if_ctrl(struct rt2x00_dev *rt2x00dev) in rt2800_bbp4_mac_if_ctrl()
6386 static void rt2800_init_freq_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_init_freq_calibration()
6392 static void rt2800_init_bbp_5592_glrt(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_5592_glrt()
6413 static void rt2800_init_bbp_early(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_early()
6433 static void rt2800_disable_unused_dac_adc(struct rt2x00_dev *rt2x00dev) in rt2800_disable_unused_dac_adc()
6447 static void rt2800_init_bbp_305x_soc(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_305x_soc()
6481 static void rt2800_init_bbp_28xx(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_28xx()
6520 static void rt2800_init_bbp_30xx(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_30xx()
6562 static void rt2800_init_bbp_3290(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3290()
6633 static void rt2800_init_bbp_3352(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3352()
6725 static void rt2800_init_bbp_3390(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3390()
6763 static void rt2800_init_bbp_3572(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3572()
6800 static void rt2800_init_bbp_3593(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3593()
6816 static void rt2800_init_bbp_3883(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_3883()
6857 static void rt2800_init_bbp_53xx(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_53xx()
6966 static void rt2800_init_bbp_5592(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_5592()
7040 static void rt2800_init_bbp_6352(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp_6352()
7246 static void rt2800_init_bbp(struct rt2x00_dev *rt2x00dev) in rt2800_init_bbp()
7310 static void rt2800_led_open_drain_enable(struct rt2x00_dev *rt2x00dev) in rt2800_led_open_drain_enable()
7319 static u8 rt2800_init_rx_filter(struct rt2x00_dev *rt2x00dev, bool bw40, in rt2800_init_rx_filter()
7384 static void rt2800_rf_init_calibration(struct rt2x00_dev *rt2x00dev, in rt2800_rf_init_calibration()
7397 static void rt2800_rx_filter_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_rx_filter_calibration()
7443 static void rt2800_normal_mode_setup_3xxx(struct rt2x00_dev *rt2x00dev) in rt2800_normal_mode_setup_3xxx()
7514 static void rt2800_normal_mode_setup_3593(struct rt2x00_dev *rt2x00dev) in rt2800_normal_mode_setup_3593()
7550 static void rt2800_normal_mode_setup_5xxx(struct rt2x00_dev *rt2x00dev) in rt2800_normal_mode_setup_5xxx()
7579 static void rt2800_init_rfcsr_305x_soc(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_305x_soc()
7617 static void rt2800_init_rfcsr_30xx(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_30xx()
7687 static void rt2800_init_rfcsr_3290(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3290()
7748 static void rt2800_init_rfcsr_3352(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3352()
7847 static void rt2800_init_rfcsr_3390(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3390()
7899 static void rt2800_init_rfcsr_3572(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3572()
7957 static void rt3593_post_bbp_init(struct rt2x00_dev *rt2x00dev) in rt3593_post_bbp_init()
8004 static void rt2800_init_rfcsr_3593(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3593()
8087 static void rt2800_init_rfcsr_5350(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_5350()
8157 static void rt2800_init_rfcsr_3883(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_3883()
8295 static void rt2800_init_rfcsr_5390(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_5390()
8393 static void rt2800_init_rfcsr_5392(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_5392()
8461 static void rt2800_init_rfcsr_5592(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_5592()
8504 static void rt2800_rf_self_txdc_cal(struct rt2x00_dev *rt2x00dev) in rt2800_rf_self_txdc_cal()
8551 static int rt2800_calcrcalibrationcode(struct rt2x00_dev *rt2x00dev, int d1, int d2) in rt2800_calcrcalibrationcode()
8562 static void rt2800_r_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_r_calibration()
8683 static void rt2800_rxdcoc_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_rxdcoc_calibration()
8759 static void rt2800_rxiq_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_rxiq_calibration()
9108 static void rt2800_rf_configstore(struct rt2x00_dev *rt2x00dev, in rt2800_rf_configstore()
9224 static void rt2800_rf_configrecover(struct rt2x00_dev *rt2x00dev, in rt2800_rf_configrecover()
9242 static void rt2800_setbbptonegenerator(struct rt2x00_dev *rt2x00dev) in rt2800_setbbptonegenerator()
9259 static u32 rt2800_do_fft_accumulation(struct rt2x00_dev *rt2x00dev, u8 tidx, u8 read_neg) in rt2800_do_fft_accumulation()
9318 static u32 rt2800_read_fft_accumulation(struct rt2x00_dev *rt2x00dev, u8 tidx) in rt2800_read_fft_accumulation()
9342 static void rt2800_write_dc(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 alc, u8 iorq, u8 dc) in rt2800_write_dc()
9360 static void rt2800_loft_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, in rt2800_loft_search()
9415 static void rt2800_iq_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 *ges, u8 *pes) in rt2800_iq_search()
9539 static void rt2800_rf_aux_tx0_loopback(struct rt2x00_dev *rt2x00dev) in rt2800_rf_aux_tx0_loopback()
9556 static void rt2800_rf_aux_tx1_loopback(struct rt2x00_dev *rt2x00dev) in rt2800_rf_aux_tx1_loopback()
9573 static void rt2800_loft_iq_calibration(struct rt2x00_dev *rt2x00dev) in rt2800_loft_iq_calibration()
10006 static void rt2800_bbp_core_soft_reset(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_core_soft_reset()
10029 static int rt2800_rf_lp_config(struct rt2x00_dev *rt2x00dev, bool btxcal) in rt2800_rf_lp_config()
10074 static s8 rt2800_lp_tx_filter_bw_cal(struct rt2x00_dev *rt2x00dev) in rt2800_lp_tx_filter_bw_cal()
10100 static void rt2800_bw_filter_calibration(struct rt2x00_dev *rt2x00dev, in rt2800_bw_filter_calibration()
10349 static void rt2800_restore_rf_bbp_rt6352(struct rt2x00_dev *rt2x00dev) in rt2800_restore_rf_bbp_rt6352()
10395 static void rt2800_calibration_rt6352(struct rt2x00_dev *rt2x00dev) in rt2800_calibration_rt6352()
10471 static void rt2800_init_rfcsr_6352(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr_6352()
10739 static void rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) in rt2800_init_rfcsr()
10788 int rt2800_enable_radio(struct rt2x00_dev *rt2x00dev) in rt2800_enable_radio()
10877 void rt2800_disable_radio(struct rt2x00_dev *rt2x00dev) in rt2800_disable_radio()
10893 int rt2800_efuse_detect(struct rt2x00_dev *rt2x00dev) in rt2800_efuse_detect()
10908 static void rt2800_efuse_read(struct rt2x00_dev *rt2x00dev, unsigned int i) in rt2800_efuse_read()
10954 int rt2800_read_eeprom_efuse(struct rt2x00_dev *rt2x00dev) in rt2800_read_eeprom_efuse()
10965 static u8 rt2800_get_txmixer_gain_24g(struct rt2x00_dev *rt2x00dev) in rt2800_get_txmixer_gain_24g()
10980 static u8 rt2800_get_txmixer_gain_5g(struct rt2x00_dev *rt2x00dev) in rt2800_get_txmixer_gain_5g()
10995 static int rt2800_validate_eeprom(struct rt2x00_dev *rt2x00dev) in rt2800_validate_eeprom()
11138 static int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev) in rt2800_init_eeprom()
11694 static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) in rt2800_probe_hw_mode()
11955 static int rt2800_probe_rt(struct rt2x00_dev *rt2x00dev) in rt2800_probe_rt()
12001 int rt2800_probe_hw(struct rt2x00_dev *rt2x00dev) in rt2800_probe_hw()
12087 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_get_key_seq() local
12105 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_set_rts_threshold() local
12146 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_conf_tx() local
12213 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_get_tsf() local
12277 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2800_get_survey() local