/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | mt7915.h | 198 struct mt7915_dev *dev; 242 struct mt7915_dev { struct 358 static inline struct mt7915_dev * 363 return container_of(phy->dev, struct mt7915_dev, mt76); in mt7915_hw_dev() 367 mt7915_ext_phy(struct mt7915_dev *dev) in mt7915_ext_phy() 377 static inline u32 mt7915_check_adie(struct mt7915_dev *dev, bool sku) in mt7915_check_adie() 393 int mt7986_wmac_enable(struct mt7915_dev *dev); 394 void mt7986_wmac_disable(struct mt7915_dev *dev); 396 static inline int mt7986_wmac_enable(struct mt7915_dev *dev) in mt7986_wmac_enable() 401 static inline void mt7986_wmac_disable(struct mt7915_dev *dev) in mt7986_wmac_disable() [all …]
|
H A D | coredump.h | 101 mt7915_coredump_get_mem_layout(struct mt7915_dev *dev, u32 *num); 102 struct mt7915_crash_data *mt7915_coredump_new(struct mt7915_dev *dev); 103 int mt7915_coredump_submit(struct mt7915_dev *dev); 104 int mt7915_coredump_register(struct mt7915_dev *dev); 105 void mt7915_coredump_unregister(struct mt7915_dev *dev); 110 mt7915_coredump_get_mem_layout(struct mt7915_dev *dev, u32 *num) in mt7915_coredump_get_mem_layout() 115 static inline int mt7915_coredump_submit(struct mt7915_dev *dev) in mt7915_coredump_submit() 120 static inline struct mt7915_crash_data *mt7915_coredump_new(struct mt7915_dev *dev) in mt7915_coredump_new() 125 static inline int mt7915_coredump_register(struct mt7915_dev *dev) in mt7915_coredump_register() 130 static inline void mt7915_coredump_unregister(struct mt7915_dev *dev) in mt7915_coredump_unregister()
|
H A D | soc.c | 43 mt76_wmac_spi_read(struct mt7915_dev *dev, u8 adie, u32 addr, u32 *val) in mt76_wmac_spi_read() 70 mt76_wmac_spi_write(struct mt7915_dev *dev, u8 adie, u32 addr, u32 val) in mt76_wmac_spi_write() 91 mt76_wmac_spi_rmw(struct mt7915_dev *dev, u8 adie, in mt76_wmac_spi_rmw() 107 mt7986_wmac_adie_efuse_read(struct mt7915_dev *dev, u8 adie, in mt7986_wmac_adie_efuse_read() 149 static inline void mt76_wmac_spi_lock(struct mt7915_dev *dev) in mt76_wmac_spi_lock() 159 static inline void mt76_wmac_spi_unlock(struct mt7915_dev *dev) in mt76_wmac_spi_unlock() 172 static u8 mt798x_wmac_check_adie_type(struct mt7915_dev *dev) in mt798x_wmac_check_adie_type() 185 static int mt7986_wmac_consys_reset(struct mt7915_dev *dev, bool enable) in mt7986_wmac_consys_reset() 197 static int mt7986_wmac_gpio_setup(struct mt7915_dev *dev) in mt7986_wmac_gpio_setup() 233 static int mt7986_wmac_consys_lockup(struct mt7915_dev *dev, bool enable) in mt7986_wmac_consys_lockup() [all …]
|
H A D | mmio.c | 414 static u32 mt7915_reg_map_l1(struct mt7915_dev *dev, u32 addr) in mt7915_reg_map_l1() 435 static u32 mt7915_reg_map_l2(struct mt7915_dev *dev, u32 addr) in mt7915_reg_map_l2() 468 static u32 __mt7915_reg_addr(struct mt7915_dev *dev, u32 addr) in __mt7915_reg_addr() 496 static u32 __mt7915_reg_remap_addr(struct mt7915_dev *dev, u32 addr) in __mt7915_reg_remap_addr() 517 void mt7915_memcpy_fromio(struct mt7915_dev *dev, void *buf, u32 offset, in mt7915_memcpy_fromio() 535 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rr() 550 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_wr() 565 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rmw() 581 struct mt7915_dev *dev; in mt7915_mmio_wed_offload_enable() 583 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_offload_enable() [all …]
|
H A D | eeprom.c | 8 static int mt7915_eeprom_load_precal(struct mt7915_dev *dev) in mt7915_eeprom_load_precal() 31 static int mt7915_check_eeprom(struct mt7915_dev *dev) in mt7915_check_eeprom() 51 static char *mt7915_eeprom_name(struct mt7915_dev *dev) in mt7915_eeprom_name() 82 mt7915_eeprom_load_default(struct mt7915_dev *dev) in mt7915_eeprom_load_default() 107 static int mt7915_eeprom_load(struct mt7915_dev *dev) in mt7915_eeprom_load() 145 struct mt7915_dev *dev = phy->dev; in mt7915_eeprom_parse_band_config() 187 void mt7915_eeprom_parse_hw_cap(struct mt7915_dev *dev, in mt7915_eeprom_parse_hw_cap() 239 int mt7915_eeprom_init(struct mt7915_dev *dev) in mt7915_eeprom_init() 267 int mt7915_eeprom_get_target_power(struct mt7915_dev *dev, in mt7915_eeprom_get_target_power() 315 s8 mt7915_eeprom_get_power_delta(struct mt7915_dev *dev, int band) in mt7915_eeprom_get_power_delta()
|
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() 129 struct mt7915_dev *dev = phy->dev; in mt7915_sys_recovery_get() 214 struct mt7915_dev *dev = data; in mt7915_radar_trigger() 229 struct mt7915_dev *dev = data; in mt7915_muru_debug_set() 240 struct mt7915_dev *dev = data; in mt7915_muru_debug_get() 253 struct mt7915_dev *dev = phy->dev; in mt7915_muru_stats_show() 440 struct mt7915_dev *dev = dev_get_drvdata(s->private); in mt7915_rdd_monitor() 487 struct mt7915_dev *dev = data; in mt7915_fw_debug_wm_set() [all …]
|
H A D | coredump.c | 89 mt7915_coredump_get_mem_layout(struct mt7915_dev *dev, u32 *num) in mt7915_coredump_get_mem_layout() 107 static int mt7915_coredump_get_mem_size(struct mt7915_dev *dev) in mt7915_coredump_get_mem_size() 131 struct mt7915_crash_data *mt7915_coredump_new(struct mt7915_dev *dev) in mt7915_coredump_new() 144 mt7915_coredump_fw_state(struct mt7915_dev *dev, struct mt7915_coredump *dump, in mt7915_coredump_fw_state() 167 mt7915_coredump_fw_trace(struct mt7915_dev *dev, struct mt7915_coredump *dump, in mt7915_coredump_fw_trace() 224 mt7915_coredump_fw_stack(struct mt7915_dev *dev, struct mt7915_coredump *dump, in mt7915_coredump_fw_stack() 245 mt7915_coredump_fw_task(struct mt7915_dev *dev, struct mt7915_coredump *dump) in mt7915_coredump_fw_task() 269 mt7915_coredump_fw_context(struct mt7915_dev *dev, struct mt7915_coredump *dump) in mt7915_coredump_fw_context() 302 static struct mt7915_coredump *mt7915_coredump_build(struct mt7915_dev *dev) in mt7915_coredump_build() 359 int mt7915_coredump_submit(struct mt7915_dev *dev) in mt7915_coredump_submit() [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() 289 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_remove_interface() 322 struct mt7915_dev *dev = phy->dev; in mt7915_set_channel() 367 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_set_key() 435 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_set_sar_specs() 455 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_config() [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() 192 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_mcu_send_message() 210 int mt7915_mcu_wa_cmd(struct mt7915_dev *dev, int cmd, u32 a1, u32 a2, u32 a3) in mt7915_mcu_wa_cmd() 233 mt7915_mcu_rx_csa_notify(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_csa_notify() 253 mt7915_mcu_rx_thermal_notify(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_thermal_notify() 275 mt7915_mcu_rx_radar_detected(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_radar_detected() 299 mt7915_mcu_rx_log_message(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_log_message() 336 mt7915_mcu_rx_bcc_notify(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_bcc_notify() 356 mt7915_mcu_rx_ext_event(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mcu_rx_ext_event() [all …]
|
H A D | init.c | 227 struct mt7915_dev *dev; in mt7915_led_set_config() 232 dev = container_of(mphy->dev, struct mt7915_dev, mt76); in mt7915_led_set_config() 283 void mt7915_init_txpower(struct mt7915_dev *dev, in mt7915_init_txpower() 320 struct mt7915_dev *dev = mt7915_hw_dev(hw); in mt7915_regd_notifier() 345 struct mt7915_dev *dev = phy->dev; in mt7915_init_wiphy() 452 mt7915_mac_init_band(struct mt7915_dev *dev, u8 band) in mt7915_mac_init_band() 514 mt7915_init_led_mux(struct mt7915_dev *dev) in mt7915_init_led_mux() 579 void mt7915_mac_init(struct mt7915_dev *dev) in mt7915_mac_init() 608 int mt7915_txbf_init(struct mt7915_dev *dev) in mt7915_txbf_init() 628 mt7915_alloc_ext_phy(struct mt7915_dev *dev) in mt7915_alloc_ext_phy() [all …]
|
H A D | dma.c | 11 struct mt7915_dev *dev = phy->dev; in mt7915_init_tx_queues() 28 struct mt7915_dev *dev; in mt7915_poll_tx() 30 dev = container_of(napi, struct mt7915_dev, mt76.tx_napi); in mt7915_poll_tx() 39 static void mt7915_dma_config(struct mt7915_dev *dev) in mt7915_dma_config() 121 static void __mt7915_dma_prefetch(struct mt7915_dev *dev, u32 ofs) in __mt7915_dma_prefetch() 163 void mt7915_dma_prefetch(struct mt7915_dev *dev) in mt7915_dma_prefetch() 170 static void mt7915_dma_disable(struct mt7915_dev *dev, bool rst) in mt7915_dma_disable() 253 int mt7915_dma_start(struct mt7915_dev *dev, bool reset, bool wed_reset) in mt7915_dma_start() 332 static int mt7915_dma_enable(struct mt7915_dev *dev, bool reset) in mt7915_dma_enable() 406 int mt7915_dma_init(struct mt7915_dev *dev, struct mt7915_phy *phy2) in mt7915_dma_init() [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 | mac.c | 53 static struct mt76_wcid *mt7915_rx_get_wcid(struct mt7915_dev *dev, in mt7915_rx_get_wcid() 76 bool mt7915_mac_wtbl_update(struct mt7915_dev *dev, int idx, u32 mask) in mt7915_mac_wtbl_update() 85 u32 mt7915_mac_wtbl_lmac_addr(struct mt7915_dev *dev, u16 wcid, u8 dw) in mt7915_mac_wtbl_lmac_addr() 93 static void mt7915_mac_sta_poll(struct mt7915_dev *dev) in mt7915_mac_sta_poll() 231 void mt7915_mac_enable_rtscts(struct mt7915_dev *dev, in mt7915_mac_enable_rtscts() 245 mt7915_wed_check_ppe(struct mt7915_dev *dev, struct mt76_queue *q, in mt7915_wed_check_ppe() 272 mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb, in mt7915_mac_fill_rx() 560 mt7915_mac_fill_rx_vector(struct mt7915_dev *dev, struct sk_buff *skb) in mt7915_mac_fill_rx_vector() 747 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_tx_prepare_skb() 846 mt7915_mac_tx_free_prepare(struct mt7915_dev *dev) in mt7915_mac_tx_free_prepare() [all …]
|
H A D | pci.c | 106 struct mt7915_dev *dev; in mt7915_pci_probe() 212 struct mt7915_dev *dev; in mt7915_pci_remove() 215 dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_pci_remove()
|
H A D | eeprom.h | 144 mt7915_tssi_enabled(struct mt7915_dev *dev, enum nl80211_band band) in mt7915_tssi_enabled()
|