/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x2/ |
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); 43 void mt76x2_phy_power_on(struct mt76x02_dev *dev); 44 void mt76x2_stop_hardware(struct mt76x02_dev *dev); 45 int mt76x2_eeprom_init(struct mt76x02_dev *dev); 46 int mt76x2_apply_calibration_data(struct mt76x02_dev *dev, int channel); 48 void mt76x2_phy_set_antenna(struct mt76x02_dev *dev); 49 int mt76x2_phy_start(struct mt76x02_dev *dev); 50 int mt76x2_phy_set_channel(struct mt76x02_dev *dev, [all …]
|
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_start(struct mt76x02_dev *dev); 28 int mt76x2u_mac_stop(struct mt76x02_dev *dev); 30 int mt76x2u_phy_set_channel(struct mt76x02_dev *dev, 35 int mt76x2u_mcu_init(struct mt76x02_dev *dev); 36 int mt76x2u_mcu_fw_init(struct mt76x02_dev *dev); [all …]
|
D | eeprom.h | 43 void mt76x2_get_rate_power(struct mt76x02_dev *dev, struct mt76_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()
|
D | mac.h | 11 struct mt76x02_dev; 15 int mt76x2_mac_start(struct mt76x02_dev *dev); 16 void mt76x2_mac_stop(struct mt76x02_dev *dev, bool force); 18 static inline void mt76x2_mac_resume(struct mt76x02_dev *dev) in mt76x2_mac_resume()
|
D | pci_init.c | 12 mt76x2_mac_pbf_init(struct mt76x02_dev *dev) in mt76x2_mac_pbf_init() 30 mt76x2_fixup_xtal(struct mt76x02_dev *dev) in mt76x2_fixup_xtal() 69 int mt76x2_mac_reset(struct mt76x02_dev *dev, bool hard) in mt76x2_mac_reset() 149 int mt76x2_mac_start(struct mt76x02_dev *dev) in mt76x2_mac_start() 166 mt76x2_power_on_rf_patch(struct mt76x02_dev *dev) in mt76x2_power_on_rf_patch() 187 mt76x2_power_on_rf(struct mt76x02_dev *dev, int unit) in mt76x2_power_on_rf() 209 mt76x2_power_on(struct mt76x02_dev *dev) in mt76x2_power_on() 244 static int mt76x2_init_hardware(struct mt76x02_dev *dev) in mt76x2_init_hardware() 280 void mt76x2_stop_hardware(struct mt76x02_dev *dev) in mt76x2_stop_hardware() 289 void mt76x2_cleanup(struct mt76x02_dev *dev) in mt76x2_cleanup() [all …]
|
D | usb_init.c | 13 static void mt76x2u_init_dma(struct mt76x02_dev *dev) in mt76x2u_init_dma() 28 static void mt76x2u_power_on_rf_patch(struct mt76x02_dev *dev) in mt76x2u_power_on_rf_patch() 48 static void mt76x2u_power_on_rf(struct mt76x02_dev *dev, int unit) in mt76x2u_power_on_rf() 70 static void mt76x2u_power_on(struct mt76x02_dev *dev) in mt76x2u_power_on() 106 static int mt76x2u_init_eeprom(struct mt76x02_dev *dev) in mt76x2u_init_eeprom() 126 int mt76x2u_init_hardware(struct mt76x02_dev *dev) in mt76x2u_init_hardware() 197 int mt76x2u_register_device(struct mt76x02_dev *dev) in mt76x2u_register_device() 241 void mt76x2u_stop_hw(struct mt76x02_dev *dev) in mt76x2u_stop_hw() 248 void mt76x2u_cleanup(struct mt76x02_dev *dev) in mt76x2u_cleanup()
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x0/ |
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 int mt76x0_mac_start(struct mt76x02_dev *dev); 50 void mt76x0_mac_stop(struct mt76x02_dev *dev); 55 void mt76x0_phy_init(struct mt76x02_dev *dev); 56 int mt76x0_phy_wait_bbp_ready(struct mt76x02_dev *dev); 57 void mt76x0_phy_set_channel(struct mt76x02_dev *dev, [all …]
|
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()
|
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() 48 struct mt76x02_dev *dev = hw->priv; in mt76x0e_stop() 59 struct mt76x02_dev *dev = hw->priv; in mt76x0e_set_key() 99 static int mt76x0e_register_device(struct mt76x02_dev *dev) in mt76x0e_register_device() 168 struct mt76x02_dev *dev; in mt76x0e_probe() 191 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_probe() 215 static void mt76x0e_cleanup(struct mt76x02_dev *dev) in mt76x0e_cleanup() 229 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_remove()
|
D | init.c | 34 mt76x0_set_wlan_state(struct mt76x02_dev *dev, u32 val, bool enable) in mt76x0_set_wlan_state() 61 void mt76x0_chip_onoff(struct mt76x02_dev *dev, bool enable, bool reset) in mt76x0_chip_onoff() 89 static void mt76x0_reset_csr_bbp(struct mt76x02_dev *dev) in mt76x0_reset_csr_bbp() 104 static int mt76x0_init_bbp(struct mt76x02_dev *dev) in mt76x0_init_bbp() 127 static void mt76x0_init_mac_registers(struct mt76x02_dev *dev) in mt76x0_init_mac_registers() 153 static void mt76x0_reset_counters(struct mt76x02_dev *dev) in mt76x0_reset_counters() 163 int mt76x0_mac_start(struct mt76x02_dev *dev) in mt76x0_mac_start() 178 void mt76x0_mac_stop(struct mt76x02_dev *dev) in mt76x0_mac_stop() 213 int mt76x0_init_hardware(struct mt76x02_dev *dev) in mt76x0_init_hardware() 260 mt76x0_init_txpower(struct mt76x02_dev *dev, in mt76x0_init_txpower() [all …]
|
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()
|
D | usb.c | 45 static void mt76x0_init_usb_dma(struct mt76x02_dev *dev) in mt76x0_init_usb_dma() 72 static void mt76x0u_cleanup(struct mt76x02_dev *dev) in mt76x0u_cleanup() 81 struct mt76x02_dev *dev = hw->priv; in mt76x0u_stop() 103 struct mt76x02_dev *dev = hw->priv; in mt76x0u_start() 143 static int mt76x0u_init_hardware(struct mt76x02_dev *dev, bool reset) in mt76x0u_init_hardware() 178 static int mt76x0u_register_device(struct mt76x02_dev *dev) in mt76x0u_register_device() 224 struct mt76x02_dev *dev; in mt76x0u_probe() 234 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0u_probe() 288 struct mt76x02_dev *dev = usb_get_intfdata(usb_intf); in mt76x0_disconnect() 306 struct mt76x02_dev *dev = usb_get_intfdata(usb_intf); in mt76x0_suspend() [all …]
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_mac.h | 10 struct mt76x02_dev; 164 void mt76x02_mac_set_short_preamble(struct mt76x02_dev *dev, bool enable); 165 int mt76x02_mac_shared_key_setup(struct mt76x02_dev *dev, u8 vif_idx, 167 int mt76x02_mac_wcid_set_key(struct mt76x02_dev *dev, u8 idx, 169 void mt76x02_mac_wcid_sync_pn(struct mt76x02_dev *dev, u8 idx, 171 void mt76x02_mac_wcid_setup(struct mt76x02_dev *dev, u8 idx, u8 vif_idx, 173 void mt76x02_mac_wcid_set_drop(struct mt76x02_dev *dev, u8 idx, bool drop); 174 void mt76x02_mac_wcid_set_rate(struct mt76x02_dev *dev, struct mt76_wcid *wcid, 176 bool mt76x02_mac_load_tx_status(struct mt76x02_dev *dev, 178 void mt76x02_send_tx_status(struct mt76x02_dev *dev, [all …]
|
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);
|
D | mt76x02.h | 63 void (*pre_tbtt_enable)(struct mt76x02_dev *dev, bool en); 64 void (*beacon_enable)(struct mt76x02_dev *dev, bool en); 72 struct mt76x02_dev { struct 132 void mt76x02_init_device(struct mt76x02_dev *dev); argument 141 void mt76x02_config_mac_addr_list(struct mt76x02_dev *dev); 158 s8 mt76x02_tx_get_max_txpwr_adj(struct mt76x02_dev *dev, 160 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, 163 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr); 164 void mt76x02_set_tx_ackto(struct mt76x02_dev *dev); 188 struct mt76x02_dev *dev; [all …]
|
D | mt76x02_mmio.c | 16 struct mt76x02_dev *dev = (struct mt76x02_dev *)arg; in mt76x02_pre_tbtt_tasklet() 60 static void mt76x02e_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) in mt76x02e_pre_tbtt_enable() 68 static void mt76x02e_beacon_enable(struct mt76x02_dev *dev, bool en) in mt76x02e_beacon_enable() 77 void mt76x02e_init_beacon_config(struct mt76x02_dev *dev) in mt76x02e_init_beacon_config() 100 mt76x02_init_tx_queue(struct mt76x02_dev *dev, struct mt76_sw_queue *q, in mt76x02_init_tx_queue() 123 mt76x02_init_rx_queue(struct mt76x02_dev *dev, struct mt76_queue *q, in mt76x02_init_rx_queue() 138 static void mt76x02_process_tx_status_fifo(struct mt76x02_dev *dev) in mt76x02_process_tx_status_fifo() 149 struct mt76x02_dev *dev = (struct mt76x02_dev *)data; in mt76x02_tx_tasklet() 159 struct mt76x02_dev *dev = container_of(napi, struct mt76x02_dev, in mt76x02_poll_tx() 179 int mt76x02_dma_init(struct mt76x02_dev *dev) in mt76x02_dma_init() [all …]
|
D | mt76x02_usb_core.c | 68 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02u_tx_prepare_skb() 113 static void mt76x02u_start_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_start_pre_tbtt_timer() 131 static void mt76x02u_restart_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_restart_pre_tbtt_timer() 157 static void mt76x02u_stop_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_stop_pre_tbtt_timer() 168 struct mt76x02_dev *dev = in mt76x02u_pre_tbtt_work() 169 container_of(work, struct mt76x02_dev, pre_tbtt_work); in mt76x02u_pre_tbtt_work() 199 struct mt76x02_dev *dev = in mt76x02u_pre_tbtt_interrupt() 200 container_of(timer, struct mt76x02_dev, pre_tbtt_timer); in mt76x02u_pre_tbtt_interrupt() 207 static void mt76x02u_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) in mt76x02u_pre_tbtt_enable() 216 static void mt76x02u_beacon_enable(struct mt76x02_dev *dev, bool en) in mt76x02u_beacon_enable() [all …]
|
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() 57 s8 mt76x02_tx_get_max_txpwr_adj(struct mt76x02_dev *dev, in mt76x02_tx_get_max_txpwr_adj() 97 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, s8 max_txpwr_adj) in mt76x02_tx_get_txpwr_adj() 111 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr) in mt76x02_tx_set_txpwr_auto() 126 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_tx_status_data() 143 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_tx_prepare_skb()
|
D | mt76x02_eeprom.h | 165 mt76x02_eeprom_get(struct mt76x02_dev *dev, in mt76x02_eeprom_get() 174 bool mt76x02_ext_pa_enabled(struct mt76x02_dev *dev, enum nl80211_band band); 175 int mt76x02_get_efuse_data(struct mt76x02_dev *dev, u16 base, void *buf, 177 void mt76x02_get_rx_gain(struct mt76x02_dev *dev, enum nl80211_band band, 179 u8 mt76x02_get_lna_gain(struct mt76x02_dev *dev, 182 void mt76x02_eeprom_parse_hw_cap(struct mt76x02_dev *dev); 183 int mt76x02_eeprom_copy(struct mt76x02_dev *dev,
|
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() 44 __mt76x02_mac_set_beacon(struct mt76x02_dev *dev, u8 bcn_idx, in __mt76x02_mac_set_beacon() 70 int mt76x02_mac_set_beacon(struct mt76x02_dev *dev, u8 vif_idx, in mt76x02_mac_set_beacon() 107 void mt76x02_mac_set_beacon_enable(struct mt76x02_dev *dev, in mt76x02_mac_set_beacon_enable() 145 mt76x02_resync_beacon_timer(struct mt76x02_dev *dev) in mt76x02_resync_beacon_timer() 177 struct mt76x02_dev *dev = (struct mt76x02_dev *)priv; in mt76x02_update_beacon_iter() 196 struct mt76x02_dev *dev = data->dev; in mt76x02_add_buffered_bc() 217 mt76x02_enqueue_buffered_bc(struct mt76x02_dev *dev, in mt76x02_enqueue_buffered_bc() 245 void mt76x02_init_beacon_config(struct mt76x02_dev *dev) in mt76x02_init_beacon_config()
|
D | mt76x02_mcu.h | 94 int mt76x02_mcu_cleanup(struct mt76x02_dev *dev); 95 int mt76x02_mcu_calibrate(struct mt76x02_dev *dev, int type, u32 param); 98 int mt76x02_mcu_function_select(struct mt76x02_dev *dev, enum mcu_function func, 100 int mt76x02_mcu_set_radio_state(struct mt76x02_dev *dev, bool on); 101 void mt76x02_set_ethtool_fwver(struct mt76x02_dev *dev,
|
D | mt76x02_usb.h | 12 void mt76x02u_mcu_fw_reset(struct mt76x02_dev *dev); 13 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);
|
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()
|
D | mt76x02_util.c | 95 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, in mt76x02_led_set_config() 143 void mt76x02_init_device(struct mt76x02_dev *dev) in mt76x02_init_device() 217 struct mt76x02_dev *dev = hw->priv; in mt76x02_configure_filter() 250 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_add() 278 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_remove() 288 mt76x02_vif_init(struct mt76x02_dev *dev, struct ieee80211_vif *vif, in mt76x02_vif_init() 308 struct mt76x02_dev *dev = hw->priv; in mt76x02_add_interface() 349 struct mt76x02_dev *dev = hw->priv; in mt76x02_remove_interface() 362 struct mt76x02_dev *dev = hw->priv; in mt76x02_ampdu_action() 412 struct mt76x02_dev *dev = hw->priv; in mt76x02_set_key() [all …]
|
D | mt76x02_debugfs.c | 12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_read() 41 struct mt76x02_dev *dev = dev_get_drvdata(file->private); in read_txpower() 60 struct mt76x02_dev *dev = file->private; in mt76x02_dfs_stat_read() 98 struct mt76x02_dev *dev = dev_get_drvdata(file->private); in read_agc() 111 struct mt76x02_dev *dev = data; in mt76_edcca_set() 129 struct mt76x02_dev *dev = data; in mt76_edcca_get() 138 void mt76x02_init_debugfs(struct mt76x02_dev *dev) in mt76x02_init_debugfs()
|