Lines Matching full:mt76
41 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_power()
54 .band_idx = phy->mt76->band_idx, in mt7915_tm_set_tx_power()
59 if (phy->mt76->test.state != MT76_TM_STATE_OFF) in mt7915_tm_set_tx_power()
60 tx_power = phy->mt76->test.tx_power; in mt7915_tm_set_tx_power()
66 ret = mt76_mcu_send_msg(&dev->mt76, in mt7915_tm_set_tx_power()
80 .param.freq.band = phy->mt76->band_idx, in mt7915_tm_set_freq_offset()
84 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(ATE_CTRL), &req, in mt7915_tm_set_freq_offset()
100 return mt76_mcu_send_msg(&dev->mt76, in mt7915_tm_mode_ctrl()
114 .param.trx.band = phy->mt76->band_idx, in mt7915_tm_set_trx()
117 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(ATE_CTRL), &req, in mt7915_tm_set_trx()
129 .param.clean.band = phy->mt76->band_idx, in mt7915_tm_clean_hwq()
132 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(ATE_CTRL), &req, in mt7915_tm_clean_hwq()
141 .testmode_en = !(phy->mt76->test.state == MT76_TM_STATE_OFF), in mt7915_tm_set_slot_time()
147 .param.slot.band = phy->mt76->band_idx, in mt7915_tm_set_slot_time()
150 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(ATE_CTRL), &req, in mt7915_tm_set_slot_time()
178 e->queue = qid + mvif->mt76.wmm_idx * MT76_CONNAC_MAX_WMM_SETS; in mt7915_tm_set_wmm_qid()
201 u8 band = phy->mt76->band_idx; in mt7915_tm_set_ipg_params()
257 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_len()
327 ret = mt76_testmode_alloc_skb(phy->mt76, tx_len); in mt7915_tm_set_tx_len()
340 u8 band = phy->mt76->band_idx; in mt7915_tm_reg_backup_restore()
361 if (phy->mt76->test.state == MT76_TM_STATE_OFF) { in mt7915_tm_reg_backup_restore()
368 b = devm_kzalloc(dev->mt76.dev, 4 * n_regs, GFP_KERNEL); in mt7915_tm_reg_backup_restore()
409 if (!test_bit(MT76_STATE_RUNNING, &phy->mt76->state)) in mt7915_tm_init()
429 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_tm_update_channel()
430 mt76_update_channel(phy->mt76); in mt7915_tm_update_channel()
431 mutex_lock(&phy->dev->mt76.mutex); in mt7915_tm_update_channel()
439 struct mt76_testmode_data *td = &phy->mt76->test; in mt7915_tm_set_tx_frames()
447 mt7915_tm_clean_hwq(phy, dev->mt76.global_wcid.idx); in mt7915_tm_set_tx_frames()
495 mt76_rr(dev, MT_MIB_SDR3(phy->mt76->band_idx)); in mt7915_tm_set_rx_frames()
507 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(RF_TEST), &req, in mt7915_tm_rf_switch_mode()
517 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_tm_set_tx_cont()
519 struct mt76_testmode_data *td = &phy->mt76->test; in mt7915_tm_set_tx_cont()
522 u8 band = phy->mt76->band_idx; in mt7915_tm_set_tx_cont()
575 sband = &phy->mt76->sband_5g.sband; in mt7915_tm_set_tx_cont()
577 sband = &phy->mt76->sband_6g.sband; in mt7915_tm_set_tx_cont()
579 sband = &phy->mt76->sband_2g.sband; in mt7915_tm_set_tx_cont()
622 ret = mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(RF_TEST), &req, in mt7915_tm_set_tx_cont()
633 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(RF_TEST), &req, in mt7915_tm_set_tx_cont()
640 struct mt76_testmode_data *td = &phy->mt76->test; in mt7915_tm_update_params()
641 bool en = phy->mt76->test.state != MT76_TM_STATE_OFF; in mt7915_tm_update_params()
775 cnt = mt76_rr(dev, MT_MIB_SDR3(phy->mt76->band_idx)); in mt7915_tm_dump_stats()
776 fcs_err = is_mt7915(&dev->mt76) ? FIELD_GET(MT_MIB_SDR3_FCS_ERR_MASK, cnt) : in mt7915_tm_dump_stats()
779 q = phy->mt76->band_idx ? MT_RXQ_BAND1 : MT_RXQ_MAIN; in mt7915_tm_dump_stats()