| /linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
| H A D | mt7915.h | 202 struct mt7915_dev *dev; 248 struct mt7915_dev { struct 383 static inline struct mt7915_dev * 388 return container_of(phy->dev, struct mt7915_dev, mt76); in mt7915_hw_dev() 392 mt7915_ext_phy(struct mt7915_dev *dev) in mt7915_ext_phy() 407 struct mt7915_dev *dev = phy->dev; in mt7915_band_chainshift() 420 static inline u32 mt7915_check_adie(struct mt7915_dev *dev, bool sku) in mt7915_check_adie() 436 int mt7986_wmac_enable(struct mt7915_dev *dev); 437 void mt7986_wmac_disable(struct mt7915_dev *dev); 439 static inline int mt7986_wmac_enable(struct mt7915_dev *dev) in mt7986_wmac_enable() [all …]
|
| H A D | soc.c | 42 mt76_wmac_spi_read(struct mt7915_dev *dev, u8 adie, u32 addr, u32 *val) in mt76_wmac_spi_read() 69 mt76_wmac_spi_write(struct mt7915_dev *dev, u8 adie, u32 addr, u32 val) in mt76_wmac_spi_write() 90 mt76_wmac_spi_rmw(struct mt7915_dev *dev, u8 adie, in mt76_wmac_spi_rmw() 106 mt7986_wmac_adie_efuse_read(struct mt7915_dev *dev, u8 adie, in mt7986_wmac_adie_efuse_read() 148 static inline void mt76_wmac_spi_lock(struct mt7915_dev *dev) in mt76_wmac_spi_lock() 158 static inline void mt76_wmac_spi_unlock(struct mt7915_dev *dev) in mt76_wmac_spi_unlock() 171 static u8 mt798x_wmac_check_adie_type(struct mt7915_dev *dev) in mt798x_wmac_check_adie_type() 184 static int mt7986_wmac_consys_reset(struct mt7915_dev *dev, bool enable) in mt7986_wmac_consys_reset() 196 static int mt7986_wmac_gpio_setup(struct mt7915_dev *dev) in mt7986_wmac_gpio_setup() 232 static int mt7986_wmac_consys_lockup(struct mt7915_dev *dev, bool enable) in mt7986_wmac_consys_lockup() [all …]
|
| H A D | mmio.c | 416 static u32 mt7915_reg_map_l1(struct mt7915_dev *dev, u32 addr) in mt7915_reg_map_l1() 437 static u32 mt7915_reg_map_l2(struct mt7915_dev *dev, u32 addr) in mt7915_reg_map_l2() 470 static u32 __mt7915_reg_addr(struct mt7915_dev *dev, u32 addr) in __mt7915_reg_addr() 498 static u32 __mt7915_reg_remap_addr(struct mt7915_dev *dev, u32 addr) in __mt7915_reg_remap_addr() 519 void mt7915_memcpy_fromio(struct mt7915_dev *dev, void *buf, u32 offset, in mt7915_memcpy_fromio() 537 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rr() 552 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_wr() 567 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rmw() 585 struct mt7915_dev *dev; in mt7915_mmio_wed_update_rx_stats() 588 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_update_rx_stats() [all …]
|
| H A D | eeprom.c | 13 static int mt7915_eeprom_load_precal(struct mt7915_dev *dev) in mt7915_eeprom_load_precal() 47 static int mt7915_check_eeprom(struct mt7915_dev *dev) in mt7915_check_eeprom() 67 static char *mt7915_eeprom_name(struct mt7915_dev *dev) in mt7915_eeprom_name() 98 mt7915_eeprom_load_default(struct mt7915_dev *dev) in mt7915_eeprom_load_default() 123 static int mt7915_eeprom_load(struct mt7915_dev *dev) in mt7915_eeprom_load() 161 struct mt7915_dev *dev = phy->dev; in mt7915_eeprom_parse_band_config() 215 void mt7915_eeprom_parse_hw_cap(struct mt7915_dev *dev, in mt7915_eeprom_parse_hw_cap() 267 int mt7915_eeprom_init(struct mt7915_dev *dev) in mt7915_eeprom_init() 290 int mt7915_eeprom_get_target_power(struct mt7915_dev *dev, in mt7915_eeprom_get_target_power() 338 s8 mt7915_eeprom_get_power_delta(struct mt7915_dev *dev, int band) in mt7915_eeprom_get_power_delta() [all …]
|
| H A D | main.c | 11 static bool mt7915_dev_running(struct mt7915_dev *dev) in mt7915_dev_running() 25 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_run() 99 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_start() 113 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_stop() 208 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_add_interface() 301 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_remove_interface() 336 struct mt7915_dev *dev = phy->dev; in mt7915_set_channel() 369 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_set_key() 444 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_set_sar_specs() 465 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_config() [all …]
|
| H A D | debugfs.c | 24 struct mt7915_dev *dev = data; in mt7915_implicit_txbf_set() 37 struct mt7915_dev *dev = data; in mt7915_implicit_txbf_get() 53 struct mt7915_dev *dev = phy->dev; in mt7915_sys_recovery_set() 118 struct mt7915_dev *dev = phy->dev; in mt7915_sys_recovery_get() 206 struct mt7915_dev *dev = phy->dev; in mt7915_radar_trigger() 233 struct mt7915_dev *dev = data; in mt7915_muru_debug_set() 244 struct mt7915_dev *dev = data; in mt7915_muru_debug_get() 257 struct mt7915_dev *dev = phy->dev; in mt7915_muru_stats_show() 445 struct mt7915_dev *dev = dev_get_drvdata(s->private); in mt7915_rdd_monitor() 497 struct mt7915_dev *dev = data; in mt7915_fw_debug_wm_set() [all …]
|
| H A D | mcu.c | 62 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_mcu_set_sta_he_mcs() 117 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_mcu_set_sta_vht_mcs() 160 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_mcu_parse_response() 225 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_mcu_send_message() 240 int mt7915_mcu_wa_cmd(struct mt7915_dev *dev, int cmd, u32 a1, u32 a2, u32 a3) in mt7915_mcu_wa_cmd() 265 mt7915_mcu_rx_csa_notify(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_csa_notify() 285 mt7915_mcu_rx_thermal_notify(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_thermal_notify() 307 mt7915_mcu_rx_radar_detected(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_radar_detected() 349 mt7915_mcu_rx_log_message(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_log_message() 386 mt7915_mcu_rx_bcc_notify(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_bcc_notify() [all …]
|
| H A D | init.c | 257 struct mt7915_dev *dev; in mt7915_led_set_config() 262 dev = container_of(mphy->dev, struct mt7915_dev, mt76); in mt7915_led_set_config() 316 struct mt7915_dev *dev = phy->dev; in __mt7915_init_txpower() 371 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_regd_notifier() 394 struct mt7915_dev *dev = phy->dev; in mt7915_init_wiphy() 514 mt7915_mac_init_band(struct mt7915_dev *dev, u8 band) in mt7915_mac_init_band() 585 mt7915_init_led_mux(struct mt7915_dev *dev) in mt7915_init_led_mux() 650 void mt7915_mac_init(struct mt7915_dev *dev) in mt7915_mac_init() 679 int mt7915_txbf_init(struct mt7915_dev *dev) in mt7915_txbf_init() 699 mt7915_alloc_ext_phy(struct mt7915_dev *dev) in mt7915_alloc_ext_phy() [all …]
|
| H A D | mac.c | 53 static struct mt76_wcid *mt7915_rx_get_wcid(struct mt7915_dev *dev, in mt7915_rx_get_wcid() 73 bool mt7915_mac_wtbl_update(struct mt7915_dev *dev, int idx, u32 mask) in mt7915_mac_wtbl_update() 82 u32 mt7915_mac_wtbl_lmac_addr(struct mt7915_dev *dev, u16 wcid, u8 dw) in mt7915_mac_wtbl_lmac_addr() 90 static void mt7915_mac_sta_poll(struct mt7915_dev *dev) in mt7915_mac_sta_poll() 236 mt7915_wed_check_ppe(struct mt7915_dev *dev, struct mt76_queue *q, in mt7915_wed_check_ppe() 263 mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb, in mt7915_mac_fill_rx() 547 mt7915_mac_fill_rx_vector(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mac_fill_rx_vector() 734 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_tx_prepare_skb() 833 mt7915_mac_tx_free_prepare(struct mt7915_dev *dev) in mt7915_mac_tx_free_prepare() 848 mt7915_mac_tx_free_done(struct mt7915_dev *dev, in mt7915_mac_tx_free_done() [all …]
|
| H A D | testmode.c | 40 struct mt7915_dev *dev = phy->dev; in mt7915_tm_set_tx_power() 76 struct mt7915_dev *dev = phy->dev; in mt7915_tm_set_freq_offset() 89 mt7915_tm_mode_ctrl(struct mt7915_dev *dev, bool enable) in mt7915_tm_mode_ctrl() 108 struct mt7915_dev *dev = phy->dev; in mt7915_tm_set_trx() 124 struct mt7915_dev *dev = phy->dev; in mt7915_tm_clean_hwq() 139 struct mt7915_dev *dev = phy->dev; in mt7915_tm_set_slot_time() 157 struct mt7915_dev *dev = phy->dev; in mt7915_tm_set_tam_arb() 197 struct mt7915_dev *dev = phy->dev; in mt7915_tm_set_ipg_params() 338 struct mt7915_dev *dev = phy->dev; in mt7915_tm_reg_backup_restore() 406 struct mt7915_dev *dev = phy->dev; in mt7915_tm_init() [all …]
|
| H A D | pci.c | 107 struct mt7915_dev *dev; in mt7915_pci_probe() 216 struct mt7915_dev *dev; in mt7915_pci_remove() 219 dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_pci_remove()
|