/Linux-v4.19/drivers/net/wireless/mediatek/mt76/ |
D | mt76x2u.h | 33 struct mt76x2_dev *mt76x2u_alloc_device(struct device *pdev); 34 int mt76x2u_register_device(struct mt76x2_dev *dev); 35 int mt76x2u_init_hardware(struct mt76x2_dev *dev); 36 void mt76x2u_cleanup(struct mt76x2_dev *dev); 37 void mt76x2u_stop_hw(struct mt76x2_dev *dev); 39 void mt76x2u_mac_setaddr(struct mt76x2_dev *dev, u8 *addr); 40 int mt76x2u_mac_reset(struct mt76x2_dev *dev); 41 void mt76x2u_mac_resume(struct mt76x2_dev *dev); 42 int mt76x2u_mac_start(struct mt76x2_dev *dev); 43 int mt76x2u_mac_stop(struct mt76x2_dev *dev); [all …]
|
D | mt76x2.h | 93 struct mt76x2_dev { struct 166 static inline bool mt76x2_wait_for_mac(struct mt76x2_dev *dev) in mt76x2_wait_for_mac() argument 183 static inline bool is_mt7612(struct mt76x2_dev *dev) in is_mt7612() 188 void mt76x2_set_irq_mask(struct mt76x2_dev *dev, u32 clear, u32 set); 190 static inline bool mt76x2_channel_silent(struct mt76x2_dev *dev) in mt76x2_channel_silent() 198 static inline void mt76x2_irq_enable(struct mt76x2_dev *dev, u32 mask) in mt76x2_irq_enable() 203 static inline void mt76x2_irq_disable(struct mt76x2_dev *dev, u32 mask) in mt76x2_irq_disable() 208 static inline bool mt76x2_wait_for_bbp(struct mt76x2_dev *dev) in mt76x2_wait_for_bbp() 215 static inline bool wait_for_wpdma(struct mt76x2_dev *dev) in wait_for_wpdma() 227 struct mt76x2_dev *mt76x2_alloc_device(struct device *pdev); [all …]
|
D | mt76x2_mac.h | 22 struct mt76x2_dev; 160 int mt76x2_mac_start(struct mt76x2_dev *dev); 161 void mt76x2_mac_stop(struct mt76x2_dev *dev, bool force); 162 void mt76x2_mac_resume(struct mt76x2_dev *dev); 163 void mt76x2_mac_set_bssid(struct mt76x2_dev *dev, u8 idx, const u8 *addr); 165 int mt76x2_mac_process_rx(struct mt76x2_dev *dev, struct sk_buff *skb, 167 void mt76x2_mac_write_txwi(struct mt76x2_dev *dev, struct mt76x2_txwi *txwi, 170 void mt76x2_mac_wcid_setup(struct mt76x2_dev *dev, u8 idx, u8 vif_idx, u8 *mac); 171 int mt76x2_mac_wcid_set_key(struct mt76x2_dev *dev, u8 idx, 173 void mt76x2_mac_wcid_set_rate(struct mt76x2_dev *dev, struct mt76_wcid *wcid, [all …]
|
D | mt76x2_eeprom.h | 141 mt76x2_eeprom_get(struct mt76x2_dev *dev, enum mt76x2_eeprom_field field) in mt76x2_eeprom_get() 149 void mt76x2_get_rate_power(struct mt76x2_dev *dev, struct mt76_rate_power *t, 152 void mt76x2_get_power_info(struct mt76x2_dev *dev, 155 int mt76x2_get_temp_comp(struct mt76x2_dev *dev, struct mt76x2_temp_comp *t); 156 bool mt76x2_ext_pa_enabled(struct mt76x2_dev *dev, enum nl80211_band band); 157 void mt76x2_read_rx_gain(struct mt76x2_dev *dev); 158 void mt76x2_eeprom_parse_hw_cap(struct mt76x2_dev *dev); 161 mt76x2_temp_tx_alc_enabled(struct mt76x2_dev *dev) in mt76x2_temp_tx_alc_enabled() 174 mt76x2_tssi_enabled(struct mt76x2_dev *dev) in mt76x2_tssi_enabled() 182 mt76x2_has_ext_lna(struct mt76x2_dev *dev) in mt76x2_has_ext_lna()
|
D | mt76x2_mac.c | 23 void mt76x2_mac_set_bssid(struct mt76x2_dev *dev, u8 idx, const u8 *addr) in mt76x2_mac_set_bssid() 31 void mt76x2_mac_poll_tx_status(struct mt76x2_dev *dev, bool irq) in mt76x2_mac_poll_tx_status() 63 mt76x2_mac_queue_txdone(struct mt76x2_dev *dev, struct sk_buff *skb, in mt76x2_mac_queue_txdone() 79 void mt76x2_mac_process_tx_status_fifo(struct mt76x2_dev *dev) in mt76x2_mac_process_tx_status_fifo() 91 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2_tx_complete_skb() 100 mt76_write_beacon(struct mt76x2_dev *dev, int offset, struct sk_buff *skb) in mt76_write_beacon() 118 __mt76x2_mac_set_beacon(struct mt76x2_dev *dev, u8 bcn_idx, struct sk_buff *skb) in __mt76x2_mac_set_beacon() 144 int mt76x2_mac_set_beacon(struct mt76x2_dev *dev, u8 vif_idx, in mt76x2_mac_set_beacon() 179 void mt76x2_mac_set_beacon_enable(struct mt76x2_dev *dev, u8 vif_idx, bool val) in mt76x2_mac_set_beacon_enable() 211 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2_update_channel() [all …]
|
D | mt76x2_main.c | 22 struct mt76x2_dev *dev = hw->priv; in mt76x2_start() 48 struct mt76x2_dev *dev = hw->priv; in mt76x2_stop() 59 struct mt76x2_dev *dev = hw->priv; in mt76x2_add_interface() 91 mt76x2_set_channel(struct mt76x2_dev *dev, struct cfg80211_chan_def *chandef) in mt76x2_set_channel() 127 struct mt76x2_dev *dev = hw->priv; in mt76x2_config() 168 struct mt76x2_dev *dev = hw->priv; in mt76x2_bss_info_changed() 205 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2_sta_ps() 216 struct mt76x2_dev *dev = hw->priv; in mt76x2_sw_scan() 225 struct mt76x2_dev *dev = hw->priv; in mt76x2_sw_scan_complete() 240 struct mt76x2_dev *dev = hw->priv; in mt76x2_get_txpower() [all …]
|
D | mt76x2u_init.c | 22 static void mt76x2u_init_dma(struct mt76x2_dev *dev) in mt76x2u_init_dma() 37 static void mt76x2u_power_on_rf_patch(struct mt76x2_dev *dev) in mt76x2u_power_on_rf_patch() 57 static void mt76x2u_power_on_rf(struct mt76x2_dev *dev, int unit) in mt76x2u_power_on_rf() 79 static void mt76x2u_power_on(struct mt76x2_dev *dev) in mt76x2u_power_on() 115 static int mt76x2u_init_eeprom(struct mt76x2_dev *dev) in mt76x2u_init_eeprom() 135 struct mt76x2_dev *mt76x2u_alloc_device(struct device *pdev) in mt76x2u_alloc_device() 143 struct mt76x2_dev *dev; in mt76x2u_alloc_device() 150 dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2u_alloc_device() 159 static void mt76x2u_init_beacon_offsets(struct mt76x2_dev *dev) in mt76x2u_init_beacon_offsets() 167 int mt76x2u_init_hardware(struct mt76x2_dev *dev) in mt76x2u_init_hardware() [all …]
|
D | mt76x2_init.c | 23 mt76x2_mac_pbf_init(struct mt76x2_dev *dev) in mt76x2_mac_pbf_init() 41 mt76x2_fixup_xtal(struct mt76x2_dev *dev) in mt76x2_fixup_xtal() 81 mt76x2_init_beacon_offsets(struct mt76x2_dev *dev) in mt76x2_init_beacon_offsets() 97 static int mt76x2_mac_reset(struct mt76x2_dev *dev, bool hard) in mt76x2_mac_reset() 195 int mt76x2_mac_start(struct mt76x2_dev *dev) in mt76x2_mac_start() 229 void mt76x2_mac_resume(struct mt76x2_dev *dev) in mt76x2_mac_resume() 237 mt76x2_power_on_rf_patch(struct mt76x2_dev *dev) in mt76x2_power_on_rf_patch() 258 mt76x2_power_on_rf(struct mt76x2_dev *dev, int unit) in mt76x2_power_on_rf() 280 mt76x2_power_on(struct mt76x2_dev *dev) in mt76x2_power_on() 315 void mt76x2_set_tx_ackto(struct mt76x2_dev *dev) in mt76x2_set_tx_ackto() [all …]
|
D | mt76x2_tx.c | 21 struct mt76x2_dev *dev; 31 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2_tx_prepare_skb() 60 struct mt76x2_dev *dev = (struct mt76x2_dev *) priv; in mt76x2_update_beacon_iter() 78 struct mt76x2_dev *dev = data->dev; in mt76x2_add_buffered_bc() 99 mt76x2_resync_beacon_timer(struct mt76x2_dev *dev) in mt76x2_resync_beacon_timer() 131 struct mt76x2_dev *dev = (struct mt76x2_dev *) arg; in mt76x2_pre_tbtt_tasklet()
|
D | mt76x2u_mcu.c | 34 mt76x2u_mcu_function_select(struct mt76x2_dev *dev, enum mcu_function func, in mt76x2u_mcu_function_select() 53 int mt76x2u_mcu_set_radio_state(struct mt76x2_dev *dev, bool val) in mt76x2u_mcu_set_radio_state() 71 int mt76x2u_mcu_load_cr(struct mt76x2_dev *dev, u8 type, u8 temp_level, in mt76x2u_mcu_load_cr() 100 int mt76x2u_mcu_set_channel(struct mt76x2_dev *dev, u8 channel, u8 bw, in mt76x2u_mcu_set_channel() 138 int mt76x2u_mcu_calibrate(struct mt76x2_dev *dev, enum mcu_calibration type, in mt76x2u_mcu_calibrate() 156 int mt76x2u_mcu_init_gain(struct mt76x2_dev *dev, u8 channel, u32 gain, in mt76x2u_mcu_init_gain() 177 int mt76x2u_mcu_set_dynamic_vga(struct mt76x2_dev *dev, u8 channel, bool ap, in mt76x2u_mcu_set_dynamic_vga() 203 int mt76x2u_mcu_tssi_comp(struct mt76x2_dev *dev, in mt76x2u_mcu_tssi_comp() 221 static void mt76x2u_mcu_load_ivb(struct mt76x2_dev *dev) in mt76x2u_mcu_load_ivb() 228 static void mt76x2u_mcu_enable_patch(struct mt76x2_dev *dev) in mt76x2u_mcu_enable_patch() [all …]
|
D | mt76x2u_core.c | 68 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2u_tx_status_data() 84 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2u_tx_prepare_skb() 103 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2u_tx_complete_skb()
|
D | mt76x2u_main.c | 21 struct mt76x2_dev *dev = hw->priv; in mt76x2u_start() 39 struct mt76x2_dev *dev = hw->priv; in mt76x2u_stop() 50 struct mt76x2_dev *dev = hw->priv; in mt76x2u_add_interface() 66 mt76x2u_set_channel(struct mt76x2_dev *dev, in mt76x2u_set_channel() 94 struct mt76x2_dev *dev = hw->priv; in mt76x2u_bss_info_changed() 116 struct mt76x2_dev *dev = hw->priv; in mt76x2u_config() 154 struct mt76x2_dev *dev = hw->priv; in mt76x2u_sw_scan() 162 struct mt76x2_dev *dev = hw->priv; in mt76x2u_sw_scan_complete()
|
D | mt76x2_eeprom.c | 24 mt76x2_eeprom_copy(struct mt76x2_dev *dev, enum mt76x2_eeprom_field field, in mt76x2_eeprom_copy() 35 mt76x2_eeprom_get_macaddr(struct mt76x2_dev *dev) in mt76x2_eeprom_get_macaddr() 43 void mt76x2_eeprom_parse_hw_cap(struct mt76x2_dev *dev) in mt76x2_eeprom_parse_hw_cap() 63 mt76x2_efuse_read(struct mt76x2_dev *dev, u16 addr, u8 *data) in mt76x2_efuse_read() 95 mt76x2_get_efuse_data(struct mt76x2_dev *dev, void *buf, int len) in mt76x2_get_efuse_data() 109 mt76x2_has_cal_free_data(struct mt76x2_dev *dev, u8 *efuse) in mt76x2_has_cal_free_data() 135 mt76x2_apply_cal_free_data(struct mt76x2_dev *dev, u8 *efuse) in mt76x2_apply_cal_free_data() 204 static int mt76x2_check_eeprom(struct mt76x2_dev *dev) in mt76x2_check_eeprom() 222 mt76x2_eeprom_load(struct mt76x2_dev *dev) in mt76x2_eeprom_load() 287 mt76x2_set_rx_gain_group(struct mt76x2_dev *dev, u8 val) in mt76x2_set_rx_gain_group() [all …]
|
D | mt76x2_dfs.c | 153 static void mt76x2_dfs_set_capture_mode_ctrl(struct mt76x2_dev *dev, in mt76x2_dfs_set_capture_mode_ctrl() 162 static void mt76x2_dfs_seq_pool_put(struct mt76x2_dev *dev, in mt76x2_dfs_seq_pool_put() 174 struct mt76x2_dfs_sequence *mt76x2_dfs_seq_pool_get(struct mt76x2_dev *dev) in mt76x2_dfs_seq_pool_get() 216 static void mt76x2_dfs_detector_reset(struct mt76x2_dev *dev) in mt76x2_dfs_detector_reset() 237 static bool mt76x2_dfs_check_chirp(struct mt76x2_dev *dev) in mt76x2_dfs_check_chirp() 258 static void mt76x2_dfs_get_hw_pulse(struct mt76x2_dev *dev, in mt76x2_dfs_get_hw_pulse() 278 static bool mt76x2_dfs_check_hw_pulse(struct mt76x2_dev *dev, in mt76x2_dfs_check_hw_pulse() 373 static bool mt76x2_dfs_fetch_event(struct mt76x2_dev *dev, in mt76x2_dfs_fetch_event() 400 static bool mt76x2_dfs_check_event(struct mt76x2_dev *dev, in mt76x2_dfs_check_event() 419 static void mt76x2_dfs_queue_event(struct mt76x2_dev *dev, in mt76x2_dfs_queue_event() [all …]
|
D | mt76x2_mcu.c | 39 mt76x2_mcu_get_response(struct mt76x2_dev *dev, unsigned long expires) in mt76x2_mcu_get_response() 53 mt76x2_mcu_msg_send(struct mt76x2_dev *dev, struct sk_buff *skb, in mt76x2_mcu_msg_send() 103 mt76pci_load_rom_patch(struct mt76x2_dev *dev) in mt76pci_load_rom_patch() 169 mt76pci_load_firmware(struct mt76x2_dev *dev) in mt76pci_load_firmware() 245 mt76x2_mcu_function_select(struct mt76x2_dev *dev, enum mcu_function func, in mt76x2_mcu_function_select() 261 int mt76x2_mcu_load_cr(struct mt76x2_dev *dev, u8 type, u8 temp_level, in mt76x2_mcu_load_cr() 289 int mt76x2_mcu_set_channel(struct mt76x2_dev *dev, u8 channel, u8 bw, in mt76x2_mcu_set_channel() 321 int mt76x2_mcu_set_radio_state(struct mt76x2_dev *dev, bool on) in mt76x2_mcu_set_radio_state() 336 int mt76x2_mcu_calibrate(struct mt76x2_dev *dev, enum mcu_calibration type, in mt76x2_mcu_calibrate() 363 int mt76x2_mcu_tssi_comp(struct mt76x2_dev *dev, in mt76x2_mcu_tssi_comp() [all …]
|
D | mt76x2_dma.c | 21 mt76x2_tx_queue_mcu(struct mt76x2_dev *dev, enum mt76_txq_id qid, in mt76x2_tx_queue_mcu() 51 mt76x2_init_tx_queue(struct mt76x2_dev *dev, struct mt76_queue *q, in mt76x2_init_tx_queue() 70 mt76x2_init_rx_queue(struct mt76x2_dev *dev, struct mt76_queue *q, in mt76x2_init_rx_queue() 91 struct mt76x2_dev *dev = (struct mt76x2_dev *) data; in mt76x2_tx_tasklet() 103 int mt76x2_dma_init(struct mt76x2_dev *dev) in mt76x2_dma_init() 159 void mt76x2_dma_cleanup(struct mt76x2_dev *dev) in mt76x2_dma_cleanup()
|
D | mt76x2_trace.h | 38 TP_PROTO(struct mt76x2_dev *dev), 50 TP_PROTO(struct mt76x2_dev *dev, u8 wcid, u8 pktid), 67 TP_PROTO(struct mt76x2_dev *dev), 72 TP_PROTO(struct mt76x2_dev *dev, u8 wcid, u8 pktid), 77 TP_PROTO(struct mt76x2_dev *dev, 115 TP_PROTO(struct mt76x2_dev *dev, u32 val, u32 mask),
|
D | mt76x2_phy.c | 23 mt76x2_phy_tssi_init_cal(struct mt76x2_dev *dev) in mt76x2_phy_tssi_init_cal() 46 mt76x2_phy_channel_calibrate(struct mt76x2_dev *dev, bool mac_stopped) in mt76x2_phy_channel_calibrate() 80 void mt76x2_phy_set_antenna(struct mt76x2_dev *dev) in mt76x2_phy_set_antenna() 127 mt76x2_get_agc_gain(struct mt76x2_dev *dev, u8 *dest) in mt76x2_get_agc_gain() 134 mt76x2_get_rssi_gain_thresh(struct mt76x2_dev *dev) in mt76x2_get_rssi_gain_thresh() 147 mt76x2_get_low_rssi_gain_thresh(struct mt76x2_dev *dev) in mt76x2_get_low_rssi_gain_thresh() 160 mt76x2_phy_set_gain_val(struct mt76x2_dev *dev) in mt76x2_phy_set_gain_val() 185 mt76x2_phy_adjust_vga_gain(struct mt76x2_dev *dev) in mt76x2_phy_adjust_vga_gain() 204 mt76x2_phy_update_channel_gain(struct mt76x2_dev *dev) in mt76x2_phy_update_channel_gain() 267 int mt76x2_phy_set_channel(struct mt76x2_dev *dev, in mt76x2_phy_set_channel() [all …]
|
D | mt76x2u_mac.c | 20 static void mt76x2u_mac_reset_counters(struct mt76x2_dev *dev) in mt76x2u_mac_reset_counters() 30 static void mt76x2u_mac_fixup_xtal(struct mt76x2_dev *dev) in mt76x2u_mac_fixup_xtal() 83 int mt76x2u_mac_reset(struct mt76x2_dev *dev) in mt76x2u_mac_reset() 117 int mt76x2u_mac_start(struct mt76x2_dev *dev) in mt76x2u_mac_start() 134 int mt76x2u_mac_stop(struct mt76x2_dev *dev) in mt76x2u_mac_stop() 215 void mt76x2u_mac_resume(struct mt76x2_dev *dev) in mt76x2u_mac_resume() 224 void mt76x2u_mac_setaddr(struct mt76x2_dev *dev, u8 *addr) in mt76x2u_mac_setaddr()
|
D | mt76x2_core.c | 21 void mt76x2_set_irq_mask(struct mt76x2_dev *dev, u32 clear, u32 set) in mt76x2_set_irq_mask() 34 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2_rx_poll_complete() 41 struct mt76x2_dev *dev = dev_instance; in mt76x2_irq_handler()
|
D | mt76x2_common.c | 20 void mt76x2_txq_init(struct mt76x2_dev *dev, struct ieee80211_txq *txq) in mt76x2_txq_init() 49 struct mt76x2_dev *dev = hw->priv; in mt76x2_ampdu_action() 98 struct mt76x2_dev *dev = hw->priv; in mt76x2_sta_add() 139 struct mt76x2_dev *dev = hw->priv; in mt76x2_sta_remove() 160 struct mt76x2_dev *dev = hw->priv; in mt76x2_remove_interface() 170 struct mt76x2_dev *dev = hw->priv; in mt76x2_set_key() 236 struct mt76x2_dev *dev = hw->priv; in mt76x2_conf_tx() 281 struct mt76x2_dev *dev = hw->priv; in mt76x2_configure_filter() 315 struct mt76x2_dev *dev = hw->priv; in mt76x2_sta_rate_tbl_update() 333 struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2_queue_rx_skb()
|
D | mt76x2_init_common.c | 56 mt76x2_set_wlan_state(struct mt76x2_dev *dev, bool enable) in mt76x2_set_wlan_state() 71 void mt76x2_reset_wlan(struct mt76x2_dev *dev, bool enable) in mt76x2_reset_wlan() 95 mt76x2_write_reg_pairs(struct mt76x2_dev *dev, in mt76x2_write_reg_pairs() 105 void mt76_write_mac_initvals(struct mt76x2_dev *dev) in mt76_write_mac_initvals() 201 void mt76x2_init_device(struct mt76x2_dev *dev) in mt76x2_init_device() 230 void mt76x2_init_txpower(struct mt76x2_dev *dev, in mt76x2_init_txpower()
|
D | mt76x2u_phy.c | 20 void mt76x2u_phy_set_rxpath(struct mt76x2_dev *dev) in mt76x2u_phy_set_rxpath() 38 void mt76x2u_phy_set_txdac(struct mt76x2_dev *dev) in mt76x2u_phy_set_txdac() 53 void mt76x2u_phy_channel_calibrate(struct mt76x2_dev *dev) in mt76x2u_phy_channel_calibrate() 75 mt76x2u_phy_tssi_compensate(struct mt76x2_dev *dev) in mt76x2u_phy_tssi_compensate() 116 mt76x2u_phy_update_channel_gain(struct mt76x2_dev *dev) in mt76x2u_phy_update_channel_gain() 155 struct mt76x2_dev *dev; in mt76x2u_phy_calibrate() 157 dev = container_of(work, struct mt76x2_dev, cal_work.work); in mt76x2u_phy_calibrate() 165 int mt76x2u_phy_set_channel(struct mt76x2_dev *dev, in mt76x2u_phy_set_channel()
|
D | mt76x2_dfs.h | 140 void mt76x2_dfs_init_params(struct mt76x2_dev *dev); 141 void mt76x2_dfs_init_detector(struct mt76x2_dev *dev); 142 void mt76x2_dfs_adjust_agc(struct mt76x2_dev *dev); 143 void mt76x2_dfs_set_domain(struct mt76x2_dev *dev,
|
D | mt76x2_tx_common.c | 25 struct mt76x2_dev *dev = hw->priv; in mt76x2_tx() 66 s8 mt76x2_tx_get_max_txpwr_adj(struct mt76x2_dev *dev, in mt76x2_tx_get_max_txpwr_adj() 107 s8 mt76x2_tx_get_txpwr_adj(struct mt76x2_dev *dev, s8 txpwr, s8 max_txpwr_adj) in mt76x2_tx_get_txpwr_adj() 122 void mt76x2_tx_set_txpwr_auto(struct mt76x2_dev *dev, s8 txpwr) in mt76x2_tx_set_txpwr_auto() 135 void mt76x2_tx_complete(struct mt76x2_dev *dev, struct sk_buff *skb) in mt76x2_tx_complete()
|