/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | mt76x2.h | 26 static inline bool is_mt7612(struct mt76x02_dev *dev) in is_mt7612() 31 static inline bool mt76x2_channel_silent(struct mt76x02_dev *dev) in mt76x2_channel_silent() 41 int mt76x2_register_device(struct mt76x02_dev *dev); 42 int mt76x2_resume_device(struct mt76x02_dev *dev); 46 void mt76x2_phy_power_on(struct mt76x02_dev *dev); 47 void mt76x2_stop_hardware(struct mt76x02_dev *dev); 48 int mt76x2_eeprom_init(struct mt76x02_dev *dev); 49 int mt76x2_apply_calibration_data(struct mt76x02_dev *dev, int channel); 53 void mt76x2_phy_set_antenna(struct mt76x02_dev *dev); 54 int mt76x2_phy_start(struct mt76x02_dev *dev); [all …]
|
H A D | mt76x2u.h | 21 int mt76x2u_register_device(struct mt76x02_dev *dev); 22 int mt76x2u_init_hardware(struct mt76x02_dev *dev); 23 void mt76x2u_cleanup(struct mt76x02_dev *dev); 24 void mt76x2u_stop_hw(struct mt76x02_dev *dev); 26 int mt76x2u_mac_reset(struct mt76x02_dev *dev); 27 int mt76x2u_mac_stop(struct mt76x02_dev *dev); 29 int mt76x2u_phy_set_channel(struct mt76x02_dev *dev, 34 int mt76x2u_mcu_init(struct mt76x02_dev *dev); 35 int mt76x2u_mcu_fw_init(struct mt76x02_dev *dev); 37 int mt76x2u_alloc_queues(struct mt76x02_dev *dev); [all …]
|
H A D | eeprom.h | 43 void mt76x2_get_rate_power(struct mt76x02_dev *dev, struct mt76x02_rate_power *t, 45 void mt76x2_get_power_info(struct mt76x02_dev *dev, 48 int mt76x2_get_temp_comp(struct mt76x02_dev *dev, struct mt76x2_temp_comp *t); 49 void mt76x2_read_rx_gain(struct mt76x02_dev *dev); 52 mt76x2_has_ext_lna(struct mt76x02_dev *dev) in mt76x2_has_ext_lna() 63 mt76x2_temp_tx_alc_enabled(struct mt76x02_dev *dev) in mt76x2_temp_tx_alc_enabled() 76 mt76x2_tssi_enabled(struct mt76x02_dev *dev) in mt76x2_tssi_enabled()
|
H A D | pci_init.c | 13 mt76x2_mac_pbf_init(struct mt76x02_dev *dev) in mt76x2_mac_pbf_init() 31 mt76x2_fixup_xtal(struct mt76x02_dev *dev) in mt76x2_fixup_xtal() 70 int mt76x2_mac_reset(struct mt76x02_dev *dev, bool hard) in mt76x2_mac_reset() 142 mt76x2_power_on_rf_patch(struct mt76x02_dev *dev) in mt76x2_power_on_rf_patch() 163 mt76x2_power_on_rf(struct mt76x02_dev *dev, int unit) in mt76x2_power_on_rf() 185 mt76x2_power_on(struct mt76x02_dev *dev) in mt76x2_power_on() 220 int mt76x2_resume_device(struct mt76x02_dev *dev) in mt76x2_resume_device() 237 static int mt76x2_init_hardware(struct mt76x02_dev *dev) in mt76x2_init_hardware() 271 void mt76x2_stop_hardware(struct mt76x02_dev *dev) in mt76x2_stop_hardware() 281 void mt76x2_cleanup(struct mt76x02_dev *dev) in mt76x2_cleanup() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_mac.h | 10 struct mt76x02_dev; 170 void mt76x02_mac_reset_counters(struct mt76x02_dev *dev); 171 void mt76x02_mac_set_short_preamble(struct mt76x02_dev *dev, bool enable); 172 int mt76x02_mac_shared_key_setup(struct mt76x02_dev *dev, u8 vif_idx, 174 int mt76x02_mac_wcid_set_key(struct mt76x02_dev *dev, u8 idx, 176 void mt76x02_mac_wcid_sync_pn(struct mt76x02_dev *dev, u8 idx, 178 void mt76x02_mac_wcid_setup(struct mt76x02_dev *dev, u8 idx, u8 vif_idx, 180 void mt76x02_mac_wcid_set_drop(struct mt76x02_dev *dev, u8 idx, bool drop); 181 void mt76x02_mac_wcid_set_rate(struct mt76x02_dev *dev, struct mt76_wcid *wcid, 183 bool mt76x02_mac_load_tx_status(struct mt76x02_dev *dev, [all …]
|
H A D | mt76x02_phy.h | 12 mt76x02_get_rssi_gain_thresh(struct mt76x02_dev *dev) in mt76x02_get_rssi_gain_thresh() 25 mt76x02_get_low_rssi_gain_thresh(struct mt76x02_dev *dev) in mt76x02_get_low_rssi_gain_thresh() 38 void mt76x02_phy_set_txpower(struct mt76x02_dev *dev, int txp_0, int txp_2); 41 void mt76x02_phy_set_rxpath(struct mt76x02_dev *dev); 42 void mt76x02_phy_set_txdac(struct mt76x02_dev *dev); 43 void mt76x02_phy_set_bw(struct mt76x02_dev *dev, int width, u8 ctrl); 44 void mt76x02_phy_set_band(struct mt76x02_dev *dev, int band, 46 bool mt76x02_phy_adjust_vga_gain(struct mt76x02_dev *dev); 47 void mt76x02_init_agc_gain(struct mt76x02_dev *dev);
|
H A D | mt76x02.h | 66 void (*pre_tbtt_enable)(struct mt76x02_dev *dev, bool en); 67 void (*beacon_enable)(struct mt76x02_dev *dev, bool en); 87 struct mt76x02_dev { struct 151 int mt76x02_init_device(struct mt76x02_dev *dev); argument 160 void mt76x02_config_mac_addr_list(struct mt76x02_dev *dev); 178 s8 mt76x02_tx_get_max_txpwr_adj(struct mt76x02_dev *dev, 180 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, 183 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr); 184 void mt76x02_set_tx_ackto(struct mt76x02_dev *dev); 210 struct mt76x02_dev *dev; [all …]
|
H A D | mt76x02_mmio.c | 16 struct mt76x02_dev *dev = from_tasklet(dev, t, mt76.pre_tbtt_tasklet); in mt76x02_pre_tbtt_tasklet() 75 static void mt76x02e_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) in mt76x02e_pre_tbtt_enable() 83 static void mt76x02e_beacon_enable(struct mt76x02_dev *dev, bool en) in mt76x02e_beacon_enable() 92 void mt76x02e_init_beacon_config(struct mt76x02_dev *dev) in mt76x02e_init_beacon_config() 115 mt76x02_init_rx_queue(struct mt76x02_dev *dev, struct mt76_queue *q, in mt76x02_init_rx_queue() 130 static void mt76x02_process_tx_status_fifo(struct mt76x02_dev *dev) in mt76x02_process_tx_status_fifo() 141 struct mt76x02_dev *dev; in mt76x02_tx_worker() 143 dev = container_of(w, struct mt76x02_dev, mt76.tx_worker); in mt76x02_tx_worker() 153 struct mt76x02_dev *dev = container_of(napi, struct mt76x02_dev, in mt76x02_poll_tx() 175 int mt76x02_dma_init(struct mt76x02_dev *dev) in mt76x02_dma_init() [all …]
|
H A D | mt76x02_usb_core.c | 25 int mt76x02u_mac_start(struct mt76x02_dev *dev) in mt76x02u_mac_start() 69 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02u_tx_prepare_skb() 128 static void mt76x02u_start_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_start_pre_tbtt_timer() 146 static void mt76x02u_restart_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_restart_pre_tbtt_timer() 172 static void mt76x02u_stop_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_stop_pre_tbtt_timer() 183 struct mt76x02_dev *dev = in mt76x02u_pre_tbtt_work() 184 container_of(work, struct mt76x02_dev, pre_tbtt_work); in mt76x02u_pre_tbtt_work() 231 struct mt76x02_dev *dev = in mt76x02u_pre_tbtt_interrupt() 232 container_of(timer, struct mt76x02_dev, pre_tbtt_timer); in mt76x02u_pre_tbtt_interrupt() 239 static void mt76x02u_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) in mt76x02u_pre_tbtt_enable() [all …]
|
H A D | mt76x02_usb.h | 11 int mt76x02u_mac_start(struct mt76x02_dev *dev); 13 void mt76x02u_mcu_fw_reset(struct mt76x02_dev *dev); 14 int mt76x02u_mcu_fw_send_data(struct mt76x02_dev *dev, const void *data, 23 void mt76x02u_init_beacon_config(struct mt76x02_dev *dev); 24 void mt76x02u_exit_beacon_config(struct mt76x02_dev *dev);
|
H A D | mt76x02_mcu.c | 16 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_mcu_parse_response() 37 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_mcu_msg_send() 82 int mt76x02_mcu_function_select(struct mt76x02_dev *dev, enum mcu_function func, in mt76x02_mcu_function_select() 102 int mt76x02_mcu_set_radio_state(struct mt76x02_dev *dev, bool on) in mt76x02_mcu_set_radio_state() 117 int mt76x02_mcu_calibrate(struct mt76x02_dev *dev, int type, u32 param) in mt76x02_mcu_calibrate() 146 int mt76x02_mcu_cleanup(struct mt76x02_dev *dev) in mt76x02_mcu_cleanup() 160 void mt76x02_set_ethtool_fwver(struct mt76x02_dev *dev, in mt76x02_set_ethtool_fwver()
|
H A D | mt76x02_txrx.c | 15 struct mt76x02_dev *dev = hw->priv; in mt76x02_tx() 38 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_queue_rx_skb() 56 s8 mt76x02_tx_get_max_txpwr_adj(struct mt76x02_dev *dev, in mt76x02_tx_get_max_txpwr_adj() 96 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, s8 max_txpwr_adj) in mt76x02_tx_get_txpwr_adj() 110 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr) in mt76x02_tx_set_txpwr_auto() 125 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_tx_status_data() 142 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_tx_prepare_skb()
|
H A D | mt76x02_eeprom.h | 163 mt76x02_eeprom_get(struct mt76x02_dev *dev, in mt76x02_eeprom_get() 172 bool mt76x02_ext_pa_enabled(struct mt76x02_dev *dev, enum nl80211_band band); 173 int mt76x02_get_efuse_data(struct mt76x02_dev *dev, u16 base, void *buf, 175 void mt76x02_get_rx_gain(struct mt76x02_dev *dev, enum nl80211_band band, 177 u8 mt76x02_get_lna_gain(struct mt76x02_dev *dev, 180 void mt76x02_eeprom_parse_hw_cap(struct mt76x02_dev *dev); 181 int mt76x02_eeprom_copy(struct mt76x02_dev *dev,
|
H A D | mt76x02_beacon.c | 10 static void mt76x02_set_beacon_offsets(struct mt76x02_dev *dev) in mt76x02_set_beacon_offsets() 26 mt76x02_write_beacon(struct mt76x02_dev *dev, int offset, struct sk_buff *skb) in mt76x02_write_beacon() 54 void mt76x02_mac_set_beacon(struct mt76x02_dev *dev, in mt76x02_mac_set_beacon() 69 void mt76x02_mac_set_beacon_enable(struct mt76x02_dev *dev, in mt76x02_mac_set_beacon_enable() 107 mt76x02_resync_beacon_timer(struct mt76x02_dev *dev) in mt76x02_resync_beacon_timer() 140 struct mt76x02_dev *dev = data->dev; in mt76x02_update_beacon_iter() 159 struct mt76x02_dev *dev = data->dev; in mt76x02_add_buffered_bc() 180 mt76x02_enqueue_buffered_bc(struct mt76x02_dev *dev, in mt76x02_enqueue_buffered_bc() 205 void mt76x02_init_beacon_config(struct mt76x02_dev *dev) in mt76x02_init_beacon_config()
|
H A D | mt76x02_debugfs.c | 12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show() 38 struct mt76x02_dev *dev = dev_get_drvdata(file->private); in read_txpower() 50 struct mt76x02_dev *dev = file->private; in mt76x02_dfs_stat_show() 77 struct mt76x02_dev *dev = dev_get_drvdata(file->private); in read_agc() 90 struct mt76x02_dev *dev = data; in mt76_edcca_set() 108 struct mt76x02_dev *dev = data; in mt76_edcca_get() 119 struct mt76x02_dev *dev = dev_get_drvdata(s->private); in mt76x02_read_rate_txpower() 132 void mt76x02_init_debugfs(struct mt76x02_dev *dev) in mt76x02_init_debugfs()
|
H A D | mt76x02_eeprom.c | 12 mt76x02_efuse_read(struct mt76x02_dev *dev, u16 addr, u8 *data, in mt76x02_efuse_read() 45 int mt76x02_eeprom_copy(struct mt76x02_dev *dev, in mt76x02_eeprom_copy() 57 int mt76x02_get_efuse_data(struct mt76x02_dev *dev, u16 base, void *buf, in mt76x02_get_efuse_data() 72 void mt76x02_eeprom_parse_hw_cap(struct mt76x02_dev *dev) in mt76x02_eeprom_parse_hw_cap() 91 bool mt76x02_ext_pa_enabled(struct mt76x02_dev *dev, enum nl80211_band band) in mt76x02_ext_pa_enabled() 102 void mt76x02_get_rx_gain(struct mt76x02_dev *dev, enum nl80211_band band, in mt76x02_get_rx_gain() 130 u8 mt76x02_get_lna_gain(struct mt76x02_dev *dev, in mt76x02_get_lna_gain()
|
H A D | mt76x02_util.c | 92 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, in mt76x02_led_set_config() 140 int mt76x02_init_device(struct mt76x02_dev *dev) in mt76x02_init_device() 208 struct mt76x02_dev *dev = hw->priv; in mt76x02_configure_filter() 241 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_add() 270 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_remove() 280 mt76x02_vif_init(struct mt76x02_dev *dev, struct ieee80211_vif *vif, in mt76x02_vif_init() 301 struct mt76x02_dev *dev = hw->priv; in mt76x02_add_interface() 344 struct mt76x02_dev *dev = hw->priv; in mt76x02_remove_interface() 358 struct mt76x02_dev *dev = hw->priv; in mt76x02_ampdu_action() 411 struct mt76x02_dev *dev = hw->priv; in mt76x02_set_key() [all …]
|
H A D | mt76x02_mcu.h | 88 int mt76x02_mcu_cleanup(struct mt76x02_dev *dev); 89 int mt76x02_mcu_calibrate(struct mt76x02_dev *dev, int type, u32 param); 94 int mt76x02_mcu_function_select(struct mt76x02_dev *dev, enum mcu_function func, 96 int mt76x02_mcu_set_radio_state(struct mt76x02_dev *dev, bool on); 97 void mt76x02_set_ethtool_fwver(struct mt76x02_dev *dev,
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | mt76x0.h | 31 static inline bool is_mt7610e(struct mt76x02_dev *dev) in is_mt7610e() 39 static inline bool is_mt7630(struct mt76x02_dev *dev) in is_mt7630() 45 int mt76x0_init_hardware(struct mt76x02_dev *dev); 46 int mt76x0_register_device(struct mt76x02_dev *dev); 47 void mt76x0_chip_onoff(struct mt76x02_dev *dev, bool enable, bool reset); 49 void mt76x0_mac_stop(struct mt76x02_dev *dev); 57 void mt76x0_phy_init(struct mt76x02_dev *dev); 58 int mt76x0_phy_wait_bbp_ready(struct mt76x02_dev *dev); 59 void mt76x0_phy_set_channel(struct mt76x02_dev *dev, 61 void mt76x0_phy_set_txpower(struct mt76x02_dev *dev); [all …]
|
H A D | eeprom.h | 13 struct mt76x02_dev; 18 int mt76x0_eeprom_init(struct mt76x02_dev *dev); 19 void mt76x0_read_rx_gain(struct mt76x02_dev *dev); 20 void mt76x0_get_tx_power_per_rate(struct mt76x02_dev *dev, 23 void mt76x0_get_power_info(struct mt76x02_dev *dev, 35 static inline bool mt76x0_tssi_enabled(struct mt76x02_dev *dev) in mt76x0_tssi_enabled()
|
H A D | pci.c | 15 struct mt76x02_dev *dev = hw->priv; in mt76x0e_start() 28 static void mt76x0e_stop_hw(struct mt76x02_dev *dev) in mt76x0e_stop_hw() 49 struct mt76x02_dev *dev = hw->priv; in mt76x0e_stop() 95 static int mt76x0e_init_hardware(struct mt76x02_dev *dev, bool resume) in mt76x0e_init_hardware() 136 static int mt76x0e_register_device(struct mt76x02_dev *dev) in mt76x0e_register_device() 171 struct mt76x02_dev *dev; in mt76x0e_probe() 196 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_probe() 223 static void mt76x0e_cleanup(struct mt76x02_dev *dev) in mt76x0e_cleanup() 237 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_remove() 248 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_suspend() [all …]
|
H A D | init.c | 17 mt76x0_set_wlan_state(struct mt76x02_dev *dev, u32 val, bool enable) in mt76x0_set_wlan_state() 44 void mt76x0_chip_onoff(struct mt76x02_dev *dev, bool enable, bool reset) in mt76x0_chip_onoff() 72 static void mt76x0_reset_csr_bbp(struct mt76x02_dev *dev) in mt76x0_reset_csr_bbp() 87 static int mt76x0_init_bbp(struct mt76x02_dev *dev) in mt76x0_init_bbp() 110 static void mt76x0_init_mac_registers(struct mt76x02_dev *dev) in mt76x0_init_mac_registers() 136 void mt76x0_mac_stop(struct mt76x02_dev *dev) in mt76x0_mac_stop() 171 int mt76x0_init_hardware(struct mt76x02_dev *dev) in mt76x0_init_hardware() 216 mt76x0_init_txpower(struct mt76x02_dev *dev, in mt76x0_init_txpower() 236 int mt76x0_register_device(struct mt76x02_dev *dev) in mt76x0_register_device()
|
H A D | mcu.h | 12 struct mt76x02_dev; 39 int mt76x0e_mcu_init(struct mt76x02_dev *dev); 40 int mt76x0u_mcu_init(struct mt76x02_dev *dev); 41 static inline int mt76x0_firmware_running(struct mt76x02_dev *dev) in mt76x0_firmware_running()
|
H A D | usb.c | 46 static void mt76x0_init_usb_dma(struct mt76x02_dev *dev) in mt76x0_init_usb_dma() 73 static void mt76x0u_cleanup(struct mt76x02_dev *dev) in mt76x0u_cleanup() 82 struct mt76x02_dev *dev = hw->priv; in mt76x0u_stop() 104 struct mt76x02_dev *dev = hw->priv; in mt76x0u_start() 151 static int mt76x0u_init_hardware(struct mt76x02_dev *dev, bool reset) in mt76x0u_init_hardware() 179 static int mt76x0u_register_device(struct mt76x02_dev *dev) in mt76x0u_register_device() 230 struct mt76x02_dev *dev; in mt76x0u_probe() 240 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0u_probe() 295 struct mt76x02_dev *dev = usb_get_intfdata(usb_intf); in mt76x0_disconnect() 313 struct mt76x02_dev *dev = usb_get_intfdata(usb_intf); in mt76x0_suspend() [all …]
|
H A D | eeprom.c | 20 mt76x0_efuse_physical_size_check(struct mt76x02_dev *dev) in mt76x0_efuse_physical_size_check() 48 static void mt76x0_set_chip_cap(struct mt76x02_dev *dev) in mt76x0_set_chip_cap() 82 static void mt76x0_set_temp_offset(struct mt76x02_dev *dev) in mt76x0_set_temp_offset() 93 static void mt76x0_set_freq_offset(struct mt76x02_dev *dev) in mt76x0_set_freq_offset() 110 void mt76x0_read_rx_gain(struct mt76x02_dev *dev) in mt76x0_read_rx_gain() 130 static s8 mt76x0_get_delta(struct mt76x02_dev *dev) in mt76x0_get_delta() 152 void mt76x0_get_tx_power_per_rate(struct mt76x02_dev *dev, in mt76x0_get_tx_power_per_rate() 200 void mt76x0_get_power_info(struct mt76x02_dev *dev, in mt76x0_get_power_info() 273 static int mt76x0_check_eeprom(struct mt76x02_dev *dev) in mt76x0_check_eeprom() 293 static int mt76x0_load_eeprom(struct mt76x02_dev *dev) in mt76x0_load_eeprom() [all …]
|