/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | init.c | 477 int target_power = eeprom[MT_EE_TX_POWER_0_START_2G + 2] & ~BIT(7); in mt7603_init_txpower() local 484 target_power = eeprom[MT_EE_TX_POWER_TSSI_OFF] & ~BIT(7); in mt7603_init_txpower() 486 if (target_power & BIT(6)) in mt7603_init_txpower() 487 target_power = -(target_power & GENMASK(5, 0)); in mt7603_init_txpower() 495 target_power += max_offset; in mt7603_init_txpower() 497 dev->tx_power_limit = target_power; in mt7603_init_txpower() 498 dev->mphy.txpower_cur = target_power; in mt7603_init_txpower() 500 target_power = DIV_ROUND_UP(target_power, 2); in mt7603_init_txpower() 504 target_power += 3; in mt7603_init_txpower() 508 chan->max_power = min_t(int, chan->max_reg_power, target_power); in mt7603_init_txpower() [all …]
|
D | mcu.c | 393 u8 target_power[2]; in mt7603_mcu_set_tx_power() member 404 .target_power = { in mt7603_mcu_set_tx_power()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | eeprom.c | 107 int index, target_power; in mt7915_eeprom_get_target_power() local 117 target_power = mt7915_eeprom_read(dev, index); in mt7915_eeprom_get_target_power() 120 target_power += mt7915_eeprom_read(dev, index + 1); in mt7915_eeprom_get_target_power() 125 target_power = mt7915_eeprom_read(dev, index + group); in mt7915_eeprom_get_target_power() 128 target_power += mt7915_eeprom_read(dev, index + 8); in mt7915_eeprom_get_target_power() 131 return target_power; in mt7915_eeprom_get_target_power()
|
D | init.c | 87 u32 target_power = 0; in mt7915_init_txpower_band() local 94 target_power = max(target_power, val); in mt7915_init_txpower_band() 98 target_power / 2); in mt7915_init_txpower_band() 99 chan->orig_mpwr = target_power / 2; in mt7915_init_txpower_band()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | phy.c | 154 mt76x02_add_rate_power_offset(&t, txp.target_power + delta); in mt76x2_phy_set_txpower() 159 delta = base_power - txp.target_power; in mt76x2_phy_set_txpower() 160 txp_0 = txp.chain[0].target_power + txp.chain[0].delta + delta; in mt76x2_phy_set_txpower() 161 txp_1 = txp.chain[1].target_power + txp.chain[1].delta + delta; in mt76x2_phy_set_txpower() 175 dev->target_power = txp.target_power; in mt76x2_phy_set_txpower() 176 dev->target_power_delta[0] = txp_0 - txp.chain[0].target_power; in mt76x2_phy_set_txpower() 177 dev->target_power_delta[1] = txp_1 - txp.chain[0].target_power; in mt76x2_phy_set_txpower()
|
D | eeprom.c | 368 t->chain[chain].target_power = data[2]; in mt76x2_get_power_info_2g() 373 t->target_power = val >> 8; in mt76x2_get_power_info_2g() 420 t->chain[chain].target_power = data[2]; in mt76x2_get_power_info_5g() 425 t->target_power = val & 0xff; in mt76x2_get_power_info_5g() 453 !mt76x02_field_valid(t->target_power)) in mt76x2_get_power_info() 454 t->target_power = t->chain[0].target_power; in mt76x2_get_power_info()
|
D | eeprom.h | 22 u8 target_power; member 30 s8 target_power; member
|
D | init.c | 166 txp.target_power; in mt76x2_init_txpower()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | init.c | 268 u8 target_power = 0; in mt7615_init_txpower() local 278 target_power = max(target_power, eep[index]); in mt7615_init_txpower() 281 target_power = DIV_ROUND_UP(target_power + delta, 2); in mt7615_init_txpower() 283 target_power); in mt7615_init_txpower() 284 chan->orig_mpwr = target_power; in mt7615_init_txpower()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x0/ |
D | phy.c | 588 u8 *info, s8 *target_power, in mt76x0_phy_get_target_power() argument 601 *target_power = cur_power + dev->mt76.rate_power.cck[tx_rate]; in mt76x0_phy_get_target_power() 638 *target_power = cur_power + dev->mt76.rate_power.ofdm[index]; in mt76x0_phy_get_target_power() 648 *target_power = cur_power + dev->mt76.rate_power.vht[tx_rate]; in mt76x0_phy_get_target_power() 657 *target_power = cur_power + dev->mt76.rate_power.ht[tx_rate]; in mt76x0_phy_get_target_power() 696 s8 target_power, s8 target_pa_power, in mt76x0_phy_get_delta_power() argument 700 int tssi_target = target_power << 12, tssi_slope; in mt76x0_phy_get_delta_power() 824 s8 target_power, target_pa_power; in mt76x0_phy_tssi_calibrate() local 834 &target_power, &target_pa_power) < 0) in mt76x0_phy_tssi_calibrate() 837 val = mt76x0_phy_get_delta_power(dev, tx_mode, target_power, in mt76x0_phy_tssi_calibrate() [all …]
|
D | eeprom.c | 232 s8 target_power; in mt76x0_get_power_info() local 238 target_power = (data & 0xff) - dev->mt76.rate_power.ofdm[7]; in mt76x0_get_power_info() 239 *tp = target_power + mt76x0_get_delta(dev); in mt76x0_get_power_info()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/ |
D | 4965.c | 1008 s32 target_power; in il4965_fill_txpower_tbl() local 1164 target_power = user_target_power; in il4965_fill_txpower_tbl() 1165 if (target_power > power_limit) in il4965_fill_txpower_tbl() 1166 target_power = power_limit; in il4965_fill_txpower_tbl() 1170 current_regulatory, user_target_power, target_power); in il4965_fill_txpower_tbl() 1186 (target_power - factory_actual_pwr[c]) - in il4965_fill_txpower_tbl()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_debugfs.c | 40 seq_printf(file, "Target power: %d\n", dev->target_power); in read_txpower()
|
D | mt76x02_txrx.c | 99 txpwr -= (dev->target_power + dev->target_power_delta[0]); in mt76x02_tx_get_txpwr_adj()
|
D | mt76x02.h | 114 s8 target_power; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | ar9003_paprd.c | 306 int target_power) in ar9003_get_desired_gain() argument 364 desired_gain = target_power - olpc_gain_delta - thermal_gain_corr - in ar9003_get_desired_gain()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800lib.c | 3788 u16 eeprom, target_power, max_power; in rt2800_config_alc() local 3812 target_power = rt2800_eeprom_read(rt2x00dev, in rt2800_config_alc() 3814 rt2x00_set_field32(®, TX_ALC_CFG_0_CH_INIT_0, target_power); in rt2800_config_alc() 3815 rt2x00_set_field32(®, TX_ALC_CFG_0_CH_INIT_1, target_power); in rt2800_config_alc()
|