Lines Matching refs:tx_rate
577 int index, u8 tx_rate) in mt76x0_phy_get_rf_pa_mode() argument
583 return (val & (3 << (tx_rate * 2))) >> (tx_rate * 2); in mt76x0_phy_get_rf_pa_mode()
591 u8 tx_rate, cur_power; in mt76x0_phy_get_target_power() local
597 tx_rate = (info[0] & 0x60) >> 5; in mt76x0_phy_get_target_power()
598 *target_power = cur_power + dev->rate_power.cck[tx_rate]; in mt76x0_phy_get_target_power()
599 *target_pa_power = mt76x0_phy_get_rf_pa_mode(dev, 0, tx_rate); in mt76x0_phy_get_target_power()
605 tx_rate = (info[0] & 0xf0) >> 4; in mt76x0_phy_get_target_power()
606 switch (tx_rate) { in mt76x0_phy_get_target_power()
641 tx_rate = info[1] & 0xf; in mt76x0_phy_get_target_power()
642 if (tx_rate > 9) in mt76x0_phy_get_target_power()
646 if (tx_rate > 7) in mt76x0_phy_get_target_power()
647 *target_power += dev->rate_power.vht[tx_rate - 8]; in mt76x0_phy_get_target_power()
649 *target_power += dev->rate_power.ht[tx_rate]; in mt76x0_phy_get_target_power()
651 *target_pa_power = mt76x0_phy_get_rf_pa_mode(dev, 1, tx_rate); in mt76x0_phy_get_target_power()
655 tx_rate = info[1] & 0x7f; in mt76x0_phy_get_target_power()
656 if (tx_rate > 9) in mt76x0_phy_get_target_power()
659 *target_power = cur_power + dev->rate_power.ht[tx_rate]; in mt76x0_phy_get_target_power()
660 *target_pa_power = mt76x0_phy_get_rf_pa_mode(dev, 1, tx_rate); in mt76x0_phy_get_target_power()