Lines Matching refs:phy

48 mt7615_tm_set_tx_power(struct mt7615_phy *phy)  in mt7615_tm_set_tx_power()  argument
50 struct mt7615_dev *dev = phy->dev; in mt7615_tm_set_tx_power()
51 struct mt76_phy *mphy = phy->mt76; in mt7615_tm_set_tx_power()
66 .dbdc_idx = phy != &dev->phy, in mt7615_tm_set_tx_power()
98 mt7615_tm_reg_backup_restore(struct mt7615_phy *phy) in mt7615_tm_reg_backup_restore() argument
100 struct mt7615_dev *dev = phy->dev; in mt7615_tm_reg_backup_restore()
101 u32 *b = phy->test.reg_backup; in mt7615_tm_reg_backup_restore()
106 if (phy->mt76->test.state == MT76_TM_STATE_OFF) { in mt7615_tm_reg_backup_restore()
124 phy->test.reg_backup = b; in mt7615_tm_reg_backup_restore()
133 mt7615_tm_init(struct mt7615_phy *phy) in mt7615_tm_init() argument
135 struct mt7615_dev *dev = phy->dev; in mt7615_tm_init()
138 if (!test_bit(MT76_STATE_RUNNING, &phy->mt76->state)) in mt7615_tm_init()
141 mt7615_mcu_set_sku_en(phy, phy->mt76->test.state == MT76_TM_STATE_OFF); in mt7615_tm_init()
144 mt7615_set_channel(phy); in mt7615_tm_init()
145 mt7615_ops.configure_filter(phy->mt76->hw, 0, &total_flags, 0); in mt7615_tm_init()
148 mt7615_tm_reg_backup_restore(phy); in mt7615_tm_init()
172 mt7615_tm_set_tx_antenna(struct mt7615_phy *phy, bool en) in mt7615_tm_set_tx_antenna() argument
174 struct mt7615_dev *dev = phy->dev; in mt7615_tm_set_tx_antenna()
175 struct mt76_testmode_data *td = &phy->mt76->test; in mt7615_tm_set_tx_antenna()
183 mask = phy->mt76->chainmask; in mt7615_tm_set_tx_antenna()
225 mt7615_tm_set_tx_frames(struct mt7615_phy *phy, bool en) in mt7615_tm_set_tx_frames() argument
227 struct mt7615_dev *dev = phy->dev; in mt7615_tm_set_tx_frames()
229 struct sk_buff *skb = phy->mt76->test.tx_skb; in mt7615_tm_set_tx_frames()
231 mt7615_mcu_set_chan_info(phy, MCU_EXT_CMD(SET_RX_PATH)); in mt7615_tm_set_tx_frames()
232 mt7615_tm_set_tx_antenna(phy, en); in mt7615_tm_set_tx_frames()
238 info->control.vif = phy->monitor_vif; in mt7615_tm_set_tx_frames()
242 mt7615_tm_update_params(struct mt7615_phy *phy, u32 changed) in mt7615_tm_update_params() argument
244 struct mt7615_dev *dev = phy->dev; in mt7615_tm_update_params()
245 struct mt76_testmode_data *td = &phy->mt76->test; in mt7615_tm_update_params()
246 bool en = phy->mt76->test.state != MT76_TM_STATE_OFF; in mt7615_tm_update_params()
255 mt7615_tm_set_tx_power(phy); in mt7615_tm_update_params()
261 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_set_state() local
268 mt7615_tm_set_tx_frames(phy, false); in mt7615_tm_set_state()
270 mt7615_tm_set_tx_frames(phy, true); in mt7615_tm_set_state()
273 mt7615_tm_init(phy); in mt7615_tm_set_state()
289 mt7615_tm_update_params(phy, changed); in mt7615_tm_set_state()
300 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_set_params() local
318 mt7615_tm_update_params(phy, changed); in mt7615_tm_set_params()
326 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_dump_stats() local
334 if (nla_put_s32(msg, MT76_TM_RX_ATTR_FREQ_OFFSET, phy->test.last_freq_offset)) in mt7615_tm_dump_stats()
341 for (i = 0; i < ARRAY_SIZE(phy->test.last_rcpi); i++) in mt7615_tm_dump_stats()
342 if (nla_put_u8(msg, i, phy->test.last_rcpi[i])) in mt7615_tm_dump_stats()
351 for (i = 0; i < ARRAY_SIZE(phy->test.last_ib_rssi); i++) in mt7615_tm_dump_stats()
352 if (nla_put_s8(msg, i, phy->test.last_ib_rssi[i])) in mt7615_tm_dump_stats()
361 for (i = 0; i < ARRAY_SIZE(phy->test.last_wb_rssi); i++) in mt7615_tm_dump_stats()
362 if (nla_put_s8(msg, i, phy->test.last_wb_rssi[i])) in mt7615_tm_dump_stats()