Lines Matching full:mt76
102 ret = mt76_mcu_send_and_get_msg(&dev->mt76, MCU_EXT_QUERY(EFUSE_ACCESS), in mt7921_mcu_read_eeprom()
129 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_ipv6_ns_filter()
160 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mcu_scan_event()
163 spin_lock_bh(&dev->mt76.lock); in mt7921_mcu_scan_event()
165 spin_unlock_bh(&dev->mt76.lock); in mt7921_mcu_scan_event()
192 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mcu_connection_loss_event()
205 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mcu_bss_event()
290 mt76_connac_mcu_coredump_event(&dev->mt76, skb, in mt7921_mcu_rx_unsolicited_event()
315 mt76_mcu_rx_event(&dev->mt76, skb); in mt7921_mcu_rx_event()
331 mt76_mcu_rx_event(&dev->mt76, skb); in mt7921_mcu_rx_event()
344 return mt76_connac_mcu_sta_ba(&dev->mt76, &msta->vif->mt76, params, in mt7921_mcu_uni_tx_ba()
355 return mt76_connac_mcu_sta_ba(&dev->mt76, &msta->vif->mt76, params, in mt7921_mcu_uni_rx_ba()
364 if (is_mt7922(&dev->mt76)) in mt7921_patch_name()
376 if (is_mt7922(&dev->mt76)) in mt7921_ram_name()
389 struct mt76_dev *mdev = &dev->mt76; in mt7921_load_clc()
396 mt76_is_usb(&dev->mt76)) in mt7921_load_clc()
399 if (mt76_is_mmio(&dev->mt76)) { in mt7921_load_clc()
473 if (ret && mt76_is_mmio(&dev->mt76)) { in mt7921_load_firmware()
474 dev_dbg(dev->mt76.dev, "Firmware is already download\n"); in mt7921_load_firmware()
478 ret = mt76_connac2_load_patch(&dev->mt76, mt7921_patch_name(dev)); in mt7921_load_firmware()
482 if (mt76_is_sdio(&dev->mt76)) { in mt7921_load_firmware()
489 ret = mt76_connac2_load_ram(&dev->mt76, mt7921_ram_name(dev), NULL); in mt7921_load_firmware()
495 dev_err(dev->mt76.dev, "Timeout for initializing firmware\n"); in mt7921_load_firmware()
503 dev->mt76.hw->wiphy->wowlan = &mt76_connac_wowlan_support; in mt7921_load_firmware()
506 dev_dbg(dev->mt76.dev, "Firmware init done\n"); in mt7921_load_firmware()
520 return mt76_mcu_send_msg(&dev->mt76, MCU_CE_CMD(FWLOG_2_HOST), in mt7921_mcu_fw_log_2_host()
563 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_tx()
565 .wmm_idx = mvif->mt76.wmm_idx, in mt7921_mcu_set_tx()
586 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_tx()
588 .wmm_idx = mvif->mt76.wmm_idx, in mt7921_mcu_set_tx()
611 ret = mt76_mcu_send_msg(&dev->mt76, MCU_CE_CMD(SET_EDCA_PARMS), &req, in mt7921_mcu_set_tx()
635 return mt76_mcu_send_msg(&dev->mt76, MCU_CE_CMD(SET_MU_EDCA_PARMS), in mt7921_mcu_set_tx()
642 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7921_mcu_set_chan_info()
665 .tx_streams_num = hweight8(phy->mt76->antenna_mask), in mt7921_mcu_set_chan_info()
666 .rx_streams = phy->mt76->antenna_mask, in mt7921_mcu_set_chan_info()
676 dev->mt76.hw->conf.flags & IEEE80211_CONF_MONITOR) in mt7921_mcu_set_chan_info()
678 else if (dev->mt76.hw->conf.flags & IEEE80211_CONF_OFFCHANNEL) in mt7921_mcu_set_chan_info()
680 else if (!cfg80211_reg_can_beacon(dev->mt76.hw->wiphy, chandef, in mt7921_mcu_set_chan_info()
695 return mt76_mcu_send_msg(&dev->mt76, cmd, &req, sizeof(req), true); in mt7921_mcu_set_chan_info()
709 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(EFUSE_BUFFER_MODE), in mt7921_mcu_set_eeprom()
735 .bss_idx = mvif->mt76.idx, in mt7921_mcu_uni_bss_ps()
747 return mt76_mcu_send_msg(&dev->mt76, MCU_UNI_CMD(BSS_INFO_UPDATE), in mt7921_mcu_uni_bss_ps()
770 .bss_idx = mvif->mt76.idx, in mt7921_mcu_uni_bss_bcnft()
783 return mt76_mcu_send_msg(&dev->mt76, MCU_UNI_CMD(BSS_INFO_UPDATE), in mt7921_mcu_uni_bss_bcnft()
803 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_bss_pm()
812 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_bss_pm()
816 err = mt76_mcu_send_msg(&dev->mt76, MCU_CE_CMD(SET_BSS_ABORT), in mt7921_mcu_set_bss_pm()
821 return mt76_mcu_send_msg(&dev->mt76, MCU_CE_CMD(SET_BSS_CONNECTED), in mt7921_mcu_set_bss_pm()
851 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mcu_drv_pmctrl()
865 mt7921_reset(&dev->mt76); in mt7921_mcu_drv_pmctrl()
873 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mcu_fw_pmctrl()
887 mt7921_reset(&dev->mt76); in mt7921_mcu_fw_pmctrl()
927 ret = mt76_mcu_send_and_get_msg(&dev->mt76, MCU_CE_CMD(GET_TXPWR), in mt7921_get_txpwr_info()
967 return mt76_mcu_send_msg(&dev->mt76, MCU_UNI_CMD(SNIFFER), &req, sizeof(req), in mt7921_mcu_set_sniffer()
978 struct mt76_wcid *wcid = &dev->mt76.global_wcid; in mt7921_mcu_uni_add_beacon_offload()
1005 .bss_idx = mvif->mt76.idx, in mt7921_mcu_uni_add_beacon_offload()
1026 dev_err(dev->mt76.dev, "beacon size limit exceed\n"); in mt7921_mcu_uni_add_beacon_offload()
1031 mt76_connac2_mac_write_txwi(&dev->mt76, (__le32 *)(req.beacon_tlv.pkt), in mt7921_mcu_uni_add_beacon_offload()
1045 return mt76_mcu_send_msg(&dev->mt76, MCU_UNI_CMD(BSS_INFO_UPDATE), in mt7921_mcu_uni_add_beacon_offload()
1090 skb = __mt76_mcu_msg_alloc(&dev->mt76, &req, in __mt7921_mcu_set_clc()
1097 ret = mt76_mcu_skb_send_msg(&dev->mt76, skb, in __mt7921_mcu_set_clc()