/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | eeprom.c | 289 s8 target_power, s8 nss_delta, s8 *max_power) in mt76_apply_array_limit() argument 297 pwr[i] = min_t(s8, target_power, in mt76_apply_array_limit() 305 const __be32 *data, size_t len, s8 target_power, in mt76_apply_multi_array_limit() argument 320 target_power, nss_delta, max_power); in mt76_apply_multi_array_limit() 336 s8 target_power) in mt76_get_rate_power_limits() argument 352 memset(dest, target_power, sizeof(*dest)); in mt76_get_rate_power_limits() 355 return target_power; in mt76_get_rate_power_limits() 359 return target_power; in mt76_get_rate_power_limits() 372 return target_power; in mt76_get_rate_power_limits() 378 return target_power; in mt76_get_rate_power_limits() [all …]
|
H A D | mt76x02_debugfs.c | 40 seq_printf(file, "Target power: %d\n", dev->target_power); in read_txpower()
|
H A D | mt76x02_txrx.c | 99 txpwr -= (dev->target_power + dev->target_power_delta[0]); in mt76x02_tx_get_txpwr_adj()
|
H A D | mt76x02.h | 127 s8 target_power; member
|
H A D | mt76_connac_mcu.c | 2007 s8 target_power) in mt76_connac_get_ch_power() argument 2024 return target_power; in mt76_connac_get_ch_power() 2036 target_power = min_t(s8, power, target_power); in mt76_connac_get_ch_power() 2042 return target_power; in mt76_connac_get_ch_power()
|
H A D | mt76_connac_mcu.h | 2003 s8 target_power);
|
H A D | mt76.h | 1631 s8 target_power);
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | eeprom.c | 280 int index, target_power; in mt7915_eeprom_get_target_power() local 292 target_power = eeprom[index]; in mt7915_eeprom_get_target_power() 295 target_power = eeprom[index]; in mt7915_eeprom_get_target_power() 298 target_power += eeprom[index + 1]; in mt7915_eeprom_get_target_power() 305 target_power = eeprom[index + group]; in mt7915_eeprom_get_target_power() 308 target_power = eeprom[index + group]; in mt7915_eeprom_get_target_power() 311 target_power += eeprom[index + 8]; in mt7915_eeprom_get_target_power() 317 target_power = is_7976 ? eeprom[index + group] : 0; in mt7915_eeprom_get_target_power() 320 return target_power; in mt7915_eeprom_get_target_power()
|
H A D | init.c | 291 u32 target_power = 0; in __mt7915_init_txpower() local 298 target_power = max(target_power, val); in __mt7915_init_txpower() 301 target_power += pwr_delta; in __mt7915_init_txpower() 302 target_power = mt76_get_rate_power_limits(phy->mt76, chan, in __mt7915_init_txpower() 304 target_power); in __mt7915_init_txpower() 305 target_power += nss_delta; in __mt7915_init_txpower() 306 target_power = DIV_ROUND_UP(target_power, 2); in __mt7915_init_txpower() 308 target_power); in __mt7915_init_txpower() 309 chan->orig_mpwr = target_power; in __mt7915_init_txpower()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | init.c | 457 int target_power = eeprom[MT_EE_TX_POWER_0_START_2G + 2] & ~BIT(7); in mt7603_init_txpower() local 466 target_power = ext_pa_pwr & ~BIT(7); in mt7603_init_txpower() 468 if (target_power & BIT(6)) in mt7603_init_txpower() 469 target_power = -(target_power & GENMASK(5, 0)); in mt7603_init_txpower() 477 target_power += max_offset; in mt7603_init_txpower() 479 dev->tx_power_limit = target_power; in mt7603_init_txpower() 480 dev->mphy.txpower_cur = target_power; in mt7603_init_txpower() 482 target_power = DIV_ROUND_UP(target_power, 2); in mt7603_init_txpower() 486 target_power += 3; in mt7603_init_txpower() 490 chan->max_power = min_t(int, chan->max_reg_power, target_power); in mt7603_init_txpower() [all …]
|
H A D | mcu.c | 346 u8 target_power[2]; in mt7603_mcu_set_tx_power() member 357 .target_power = { in mt7603_mcu_set_tx_power()
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A 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()
|
H A D | eeprom.c | 365 t->chain[chain].target_power = data[2]; in mt76x2_get_power_info_2g() 370 t->target_power = val >> 8; in mt76x2_get_power_info_2g() 417 t->chain[chain].target_power = data[2]; in mt76x2_get_power_info_5g() 422 t->target_power = val & 0xff; in mt76x2_get_power_info_5g() 450 !mt76x02_field_valid(t->target_power)) in mt76x2_get_power_info() 451 t->target_power = t->chain[0].target_power; in mt76x2_get_power_info()
|
H A D | eeprom.h | 22 u8 target_power; member 30 s8 target_power; member
|
H A D | init.c | 195 txp.target_power; in mt76x2_init_txpower()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | eeprom.c | 247 int target_power; in mt7996_eeprom_get_target_power() local 250 target_power = eeprom[MT_EE_TX0_POWER_5G + in mt7996_eeprom_get_target_power() 253 target_power = eeprom[MT_EE_TX0_POWER_6G + in mt7996_eeprom_get_target_power() 256 target_power = eeprom[MT_EE_TX0_POWER_2G]; in mt7996_eeprom_get_target_power() 258 return target_power; in mt7996_eeprom_get_target_power()
|
H A D | init.c | 303 int target_power = mt7996_eeprom_get_target_power(dev, chan); in __mt7996_init_txpower() local 305 target_power += pwr_delta; in __mt7996_init_txpower() 306 target_power = mt76_get_rate_power_limits(phy->mt76, chan, in __mt7996_init_txpower() 308 target_power); in __mt7996_init_txpower() 309 target_power += nss_delta; in __mt7996_init_txpower() 310 target_power = DIV_ROUND_UP(target_power, 2); in __mt7996_init_txpower() 312 target_power); in __mt7996_init_txpower() 313 chan->orig_mpwr = target_power; in __mt7996_init_txpower()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | init.c | 295 u8 target_power = 0; in mt7615_init_txpower() local 305 target_power = max(target_power, eep[index]); in mt7615_init_txpower() 308 target_power = mt76_get_rate_power_limits(&dev->mphy, chan, in mt7615_init_txpower() 310 target_power); in mt7615_init_txpower() 311 target_power += delta; in mt7615_init_txpower() 312 target_power = DIV_ROUND_UP(target_power, 2); in mt7615_init_txpower() 314 target_power); in mt7615_init_txpower() 315 chan->orig_mpwr = target_power; in mt7615_init_txpower()
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | phy.c | 588 u8 *info, s8 *target_power, in mt76x0_phy_get_target_power() argument 598 *target_power = cur_power + dev->rate_power.cck[tx_rate]; in mt76x0_phy_get_target_power() 635 *target_power = cur_power + dev->rate_power.ofdm[index]; in mt76x0_phy_get_target_power() 645 *target_power = cur_power; 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() 659 *target_power = cur_power + dev->rate_power.ht[tx_rate]; in mt76x0_phy_get_target_power() 698 s8 target_power, s8 target_pa_power, in mt76x0_phy_get_delta_power() argument 702 int tssi_target = target_power << 12, tssi_slope; in mt76x0_phy_get_delta_power() 826 s8 target_power, target_pa_power; in mt76x0_phy_tssi_calibrate() local [all …]
|
H A D | eeprom.c | 220 s8 target_power; in mt76x0_get_power_info() local 226 target_power = (data & 0xff) - dev->rate_power.ofdm[7]; in mt76x0_get_power_info() 227 *tp = target_power + mt76x0_get_delta(dev); in mt76x0_get_power_info()
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A 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()
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A 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()
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2800lib.c | 3923 u16 eeprom, chan_power, rate_power, target_power; in rt2800_config_alc_rt6352() local 3967 target_power = rt2800_eeprom_read(rt2x00dev, in rt2800_config_alc_rt6352() 3969 rt2x00_set_field32(®, TX_ALC_CFG_0_CH_INIT_0, target_power); in rt2800_config_alc_rt6352() 3970 rt2x00_set_field32(®, TX_ALC_CFG_0_CH_INIT_1, target_power); in rt2800_config_alc_rt6352()
|