/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
A D | mcu.c | 406 s8 tx_power; in mt7603_mcu_set_channel() local 417 tx_power = hw->conf.power_level * 2; in mt7603_mcu_set_channel() 419 tx_power -= 6; in mt7603_mcu_set_channel() 420 tx_power = min(tx_power, dev->tx_power_limit); in mt7603_mcu_set_channel() 422 dev->mphy.txpower_cur = tx_power; in mt7603_mcu_set_channel() 425 req.txpower[i] = tx_power; in mt7603_mcu_set_channel()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | testmode.c | 68 u8 *tx_power = NULL; in mt7615_tm_set_tx_power() local 71 tx_power = mphy->test.tx_power; in mt7615_tm_set_tx_power() 89 if (tx_power && tx_power[i]) in mt7615_tm_set_tx_power() 90 data[ret - MT_EE_NIC_CONF_0] = tx_power[i]; in mt7615_tm_set_tx_power()
|
/linux/drivers/net/wireless/realtek/rtw88/ |
A D | phy.c | 1912 u8 tx_power; in rtw_phy_get_2g_tx_power_index() local 1918 tx_power = pwr_idx_2g->cck_base[group]; in rtw_phy_get_2g_tx_power_index() 1932 return tx_power; in rtw_phy_get_2g_tx_power_index() 1950 return tx_power; in rtw_phy_get_2g_tx_power_index() 1959 u8 tx_power; in rtw_phy_get_5g_tx_power_index() local 1975 return tx_power; in rtw_phy_get_5g_tx_power_index() 1997 tx_power = (lower + upper) / 2; in rtw_phy_get_5g_tx_power_index() 2004 return tx_power; in rtw_phy_get_5g_tx_power_index() 2109 u8 tx_power; in rtw_phy_get_tx_power_index() local 2115 tx_power = pwr_param.pwr_base; in rtw_phy_get_tx_power_index() [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
A D | desc.c | 80 unsigned int tx_power, in ath5k_hw_setup_2word_tx_desc() argument 246 unsigned int tx_power, in ath5k_hw_setup_4word_tx_desc() argument 281 tx_power += ah->ah_txpower.txp_offset; in ath5k_hw_setup_4word_tx_desc() 282 if (tx_power > AR5K_TUNE_MAX_TXPOWER) in ath5k_hw_setup_4word_tx_desc() 283 tx_power = AR5K_TUNE_MAX_TXPOWER; in ath5k_hw_setup_4word_tx_desc() 312 txctl0 |= AR5K_REG_SM(tx_power, AR5K_4W_TX_DESC_CTL0_XMIT_POWER) | in ath5k_hw_setup_4word_tx_desc()
|
/linux/drivers/net/wireless/ath/ath9k/ |
A D | tx99.c | 248 u8 tx_power; in write_file_tx99_power() local 250 r = kstrtou8_from_user(user_buf, count, 0, &tx_power); in write_file_tx99_power() 254 if (tx_power > MAX_RATE_POWER) in write_file_tx99_power() 257 sc->tx99_power = tx_power; in write_file_tx99_power()
|
A D | ar5008_phy.c | 1281 ah->tx_power[0] = CCK_DELTA(rate_array[rate1l]); in ar5008_hw_init_txpower_cck() 1282 ah->tx_power[1] = CCK_DELTA(min(rate_array[rate2l], in ar5008_hw_init_txpower_cck() 1284 ah->tx_power[2] = CCK_DELTA(min(rate_array[rate5_5l], in ar5008_hw_init_txpower_cck() 1286 ah->tx_power[3] = CCK_DELTA(min(rate_array[rate11l], in ar5008_hw_init_txpower_cck() 1297 ah->tx_power[i] = rate_array[idx]; in ar5008_hw_init_txpower_ofdm() 1309 ah->tx_power[i] = rate_array[mcs_idx] + ht40_delta; in ar5008_hw_init_txpower_ht() 1312 memcpy(&ah->tx_power[ds_offset], &ah->tx_power[ss_offset], in ar5008_hw_init_txpower_ht()
|
A D | ar9003_phy.c | 1838 ah->tx_power[0] = rate_array[ALL_TARGET_LEGACY_1L_5L]; in ar9003_hw_init_txpower_cck() 1839 ah->tx_power[1] = rate_array[ALL_TARGET_LEGACY_1L_5L]; in ar9003_hw_init_txpower_cck() 1840 ah->tx_power[2] = min(rate_array[ALL_TARGET_LEGACY_1L_5L], in ar9003_hw_init_txpower_cck() 1842 ah->tx_power[3] = min(rate_array[ALL_TARGET_LEGACY_11L], in ar9003_hw_init_txpower_cck() 1854 ah->tx_power[i] = rate_array[j]; in ar9003_hw_init_txpower_ofdm() 1867 ah->tx_power[i] = rate_array[j]; in ar9003_hw_init_txpower_ht() 1873 ah->tx_power[i] = rate_array[j]; in ar9003_hw_init_txpower_ht() 1879 ah->tx_power[i] = rate_array[j]; in ar9003_hw_init_txpower_ht() 1887 memcpy(&ah->tx_power_stbc[ss_offset], &ah->tx_power[ss_offset], in ar9003_hw_init_txpower_stbc() 1889 memcpy(&ah->tx_power_stbc[ds_offset], &ah->tx_power[ds_offset], in ar9003_hw_init_txpower_stbc() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | testmode.c | 62 s8 tx_power; in mt7915_tm_set_tx_power() member 71 u8 *tx_power = NULL; in mt7915_tm_set_tx_power() local 74 tx_power = phy->mt76->test.tx_power; in mt7915_tm_set_tx_power() 77 if (tx_power && tx_power[0]) in mt7915_tm_set_tx_power() 78 req.tx_power = tx_power[0]; in mt7915_tm_set_tx_power()
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
A D | 4965.c | 1142 union il4965_tx_power_dual_stream tx_power; in il4965_fill_txpower_tbl() local 1216 tx_power.s.radio_tx_gain[c] = in il4965_fill_txpower_tbl() 1218 tx_power.s.dsp_predis_atten[c] = in il4965_fill_txpower_tbl() 1223 power_idx, tx_power.s.radio_tx_gain[c], in il4965_fill_txpower_tbl() 1224 tx_power.s.dsp_predis_atten[c]); in il4965_fill_txpower_tbl() 1227 tx_power_tbl->power_tbl[i].dw = cpu_to_le32(tx_power.dw); in il4965_fill_txpower_tbl() 1266 is_ht40, ctrl_chan_high, &cmd.tx_power); in il4965_send_tx_power() 1522 &cmd.tx_power); in il4965_hw_channel_switch()
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
A D | rxon.c | 382 static int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force) in iwl_set_tx_power() argument 394 if (priv->tx_power_user_lmt == tx_power && !force) in iwl_set_tx_power() 397 if (tx_power < IWLAGN_TX_POWER_TARGET_POWER_MIN) { in iwl_set_tx_power() 400 tx_power, in iwl_set_tx_power() 405 if (tx_power > DIV_ROUND_UP(priv->nvm_data->max_tx_pwr_half_dbm, 2)) { in iwl_set_tx_power() 408 tx_power, priv->nvm_data->max_tx_pwr_half_dbm); in iwl_set_tx_power() 417 priv->tx_power_next = tx_power; in iwl_set_tx_power() 428 priv->tx_power_user_lmt = tx_power; in iwl_set_tx_power()
|
A D | debugfs.c | 1269 if (tx->tx_power.ant_a || tx->tx_power.ant_b || tx->tx_power.ant_c) { in iwl_dbgfs_ucode_tx_stats_read() 1273 tx->tx_power.ant_a) in iwl_dbgfs_ucode_tx_stats_read() 1276 tx->tx_power.ant_a); in iwl_dbgfs_ucode_tx_stats_read() 1278 tx->tx_power.ant_b) in iwl_dbgfs_ucode_tx_stats_read() 1281 tx->tx_power.ant_b); in iwl_dbgfs_ucode_tx_stats_read() 1283 tx->tx_power.ant_c) in iwl_dbgfs_ucode_tx_stats_read() 1286 tx->tx_power.ant_c); in iwl_dbgfs_ucode_tx_stats_read()
|
/linux/drivers/net/wireless/microchip/wilc1000/ |
A D | hif.h | 208 int wilc_set_tx_power(struct wilc_vif *vif, u8 tx_power); 209 int wilc_get_tx_power(struct wilc_vif *vif, u8 *tx_power);
|
A D | cfg80211.c | 1596 s32 tx_power = MBM_TO_DBM(mbm); in set_tx_power() local 1610 netdev_info(vif->ndev, "Setting tx power %d\n", tx_power); in set_tx_power() 1611 if (tx_power < 0) in set_tx_power() 1612 tx_power = 0; in set_tx_power() 1613 else if (tx_power > 18) in set_tx_power() 1614 tx_power = 18; in set_tx_power() 1615 ret = wilc_set_tx_power(vif, tx_power); in set_tx_power()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
A D | testmode.c | 489 idx >= ARRAY_SIZE(td->tx_power)) in mt76_testmode_cmd() 492 td->tx_power[idx++] = nla_get_u8(cur); in mt76_testmode_cmd() 631 for (i = 0; i < ARRAY_SIZE(td->tx_power); i++) in mt76_testmode_dump() 632 if (nla_put_u8(msg, i, td->tx_power[i])) in mt76_testmode_dump()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
A D | phy_hal.h | 119 struct tx_power { struct 254 struct tx_power *power, uint channel);
|
/linux/drivers/net/wireless/admtek/ |
A D | adm8211.c | 631 u8 tx_power = priv->tx_power > 0x3F ? in adm8211_rf_set_channel() local 632 priv->eeprom->tx_power[chan - 1] : priv->tx_power; in adm8211_rf_set_channel() 710 (priv->pdev->revision < ADM8211_REV_CA ? tx_power : 0)); in adm8211_rf_set_channel() 714 reg |= tx_power << 18; in adm8211_rf_set_channel() 726 tx_power<<2); in adm8211_rf_set_channel() 1887 priv->tx_power = 0x40; in adm8211_probe()
|
A D | adm8211.h | 530 u8 tx_power[14]; /* 0x54 */ member 562 u8 tx_power; member
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
A D | phy.c | 1230 u8 tx_power = 0; in _rtl92ee_get_txpower_index() local 1240 tx_power = rtlefuse->txpwrlevel_cck[rfpath][index]; in _rtl92ee_get_txpower_index() 1242 tx_power = rtlefuse->txpwrlevel_ht40_1s[rfpath][index]; in _rtl92ee_get_txpower_index() 1252 tx_power += rtlefuse->txpwr_ht20diff[rfpath][TX_1S]; in _rtl92ee_get_txpower_index() 1254 tx_power += rtlefuse->txpwr_ht20diff[rfpath][TX_2S]; in _rtl92ee_get_txpower_index() 1257 tx_power += rtlefuse->txpwr_ht40diff[rfpath][TX_1S]; in _rtl92ee_get_txpower_index() 1259 tx_power += rtlefuse->txpwr_ht40diff[rfpath][TX_2S]; in _rtl92ee_get_txpower_index() 1266 tx_power += diff; in _rtl92ee_get_txpower_index() 1268 if (tx_power > MAX_POWER_INDEX) in _rtl92ee_get_txpower_index() 1269 tx_power = MAX_POWER_INDEX; in _rtl92ee_get_txpower_index() [all …]
|
/linux/include/net/bluetooth/ |
A D | mgmt.h | 434 __s8 tx_power; member 803 __s8 tx_power; member 808 __s8 tx_power; member
|
A D | hci.h | 1173 __s8 tx_power; member 1453 __s8 tx_power; member 1579 __s8 tx_power; member 1862 __u8 tx_power; member 1876 __u8 tx_power; member 2499 __u8 tx_power; member
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
A D | rt73usb.c | 1506 TXPOWER_TO_DEV(entry->queue->rt2x00dev->tx_power)); in rt73usb_write_tx_desc() 2093 char *tx_power; in rt73usb_probe_hw_mode() local 2145 tx_power = rt2x00_eeprom_addr(rt2x00dev, EEPROM_TXPOWER_G_START); in rt73usb_probe_hw_mode() 2148 info[i].default_power1 = TXPOWER_FROM_DEV(tx_power[i]); in rt73usb_probe_hw_mode() 2152 tx_power = rt2x00_eeprom_addr(rt2x00dev, EEPROM_TXPOWER_A_START); in rt73usb_probe_hw_mode() 2156 TXPOWER_FROM_DEV(tx_power[i - 14]); in rt73usb_probe_hw_mode()
|
A D | rt2x00config.c | 252 rt2x00dev->tx_power = conf->power_level; in rt2x00lib_config()
|
/linux/drivers/net/wireless/ath/carl9170/ |
A D | wlan.h | 225 u8 tx_power:6; member
|
/linux/drivers/net/wireless/rsi/ |
A D | rsi_91x_mgmt.c | 1155 if (common->tx_power < channel->max_power) in rsi_set_channel() 1156 chan_cfg->tx_power = cpu_to_le16(common->tx_power); in rsi_set_channel() 1158 chan_cfg->tx_power = cpu_to_le16(channel->max_power); in rsi_set_channel() 1201 cmd_frame->desc_word[3] |= cpu_to_le16(common->tx_power << 8); in rsi_send_radio_params_update()
|
/linux/drivers/net/wireless/intel/ipw2x00/ |
A D | ipw2200.c | 2467 struct ipw_tx_power tx_power; in ipw_set_tx_power() local 2471 memset(&tx_power, 0, sizeof(tx_power)); in ipw_set_tx_power() 2474 tx_power.ieee_mode = IPW_G_MODE; in ipw_set_tx_power() 2480 tx_power.channels_tx_power[i].tx_power = max_power ? in ipw_set_tx_power() 2481 min(max_power, priv->tx_power) : priv->tx_power; in ipw_set_tx_power() 2487 tx_power.ieee_mode = IPW_B_MODE; in ipw_set_tx_power() 2493 tx_power.ieee_mode = IPW_A_MODE; in ipw_set_tx_power() 2499 tx_power.channels_tx_power[i].tx_power = max_power ? in ipw_set_tx_power() 2500 min(max_power, priv->tx_power) : priv->tx_power; in ipw_set_tx_power() 9304 priv->tx_power = wrqu->power.value; in ipw_wx_set_txpow() [all …]
|