| /linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| H A D | channel.c | 230 struct brcms_cm_info *wlc_cm, struct txpwr_limits *txpwr, in brcms_c_channel_min_txpower_limits_with_local_constraint() argument 237 txpwr->cck[j] = min(txpwr->cck[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint() 241 txpwr->ofdm[j] = min(txpwr->ofdm[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint() 245 txpwr->ofdm_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint() 246 min(txpwr->ofdm_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint() 250 txpwr->ofdm_40_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint() 251 min(txpwr->ofdm_40_siso[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint() 255 txpwr->ofdm_40_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint() 256 min(txpwr->ofdm_40_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint() 260 txpwr->mcs_20_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint() [all …]
|
| H A D | channel.h | 42 struct txpwr_limits *txpwr);
|
| H A D | pub.h | 324 int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr);
|
| H A D | main.c | 3822 bool mute_tx, struct txpwr_limits *txpwr) in brcms_b_set_chanspec() argument 3853 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, in brcms_b_set_chanspec() 3858 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, chanspec); in brcms_b_set_chanspec() 7565 int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr) in brcms_c_set_tx_power() argument 7570 qdbm = min_t(uint, txpwr * BRCMS_TXPWR_DB_FACTOR, 0xff); in brcms_c_set_tx_power()
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
| H A D | phy_cmn.c | 1412 wlc_phy_txpower_reg_limit_calc(struct brcms_phy *pi, struct txpwr_limits *txpwr, in wlc_phy_txpower_reg_limit_calc() argument 1421 pi->txpwr_limit[rate1] = txpwr->cck[rate2]; in wlc_phy_txpower_reg_limit_calc() 1425 pi->txpwr_limit[rate1] = txpwr->ofdm[rate2]; in wlc_phy_txpower_reg_limit_calc() 1433 txpwr_ptr1 = txpwr->mcs_20_siso; in wlc_phy_txpower_reg_limit_calc() 1434 txpwr_ptr2 = txpwr->ofdm; in wlc_phy_txpower_reg_limit_calc() 1439 txpwr_ptr1 = txpwr->mcs_20_cdd; in wlc_phy_txpower_reg_limit_calc() 1440 txpwr_ptr2 = txpwr->ofdm_cdd; in wlc_phy_txpower_reg_limit_calc() 1445 txpwr_ptr1 = txpwr->mcs_40_siso; in wlc_phy_txpower_reg_limit_calc() 1446 txpwr_ptr2 = txpwr->ofdm_40_siso; in wlc_phy_txpower_reg_limit_calc() 1452 txpwr_ptr1 = txpwr->mcs_40_cdd; in wlc_phy_txpower_reg_limit_calc() [all …]
|
| H A D | phy_lcn.c | 4795 s8 txpwr = 0; in wlc_phy_txpwr_srom_read_lcnphy() local 4824 txpwr = sprom->core_pwr_info[0].maxpwr_2g; in wlc_phy_txpwr_srom_read_lcnphy() 4825 pi->tx_srom_max_2g = txpwr; in wlc_phy_txpwr_srom_read_lcnphy() 4835 uint max_pwr_chan = txpwr; in wlc_phy_txpwr_srom_read_lcnphy() 4851 pi->tx_srom_max_rate_2g[i] = txpwr; in wlc_phy_txpwr_srom_read_lcnphy() 4854 pi->tx_srom_max_rate_2g[i] = txpwr - in wlc_phy_txpwr_srom_read_lcnphy() 4864 txpwr - ((offset_mcs & 0xf) * 2); in wlc_phy_txpwr_srom_read_lcnphy()
|
| /linux/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
| H A D | dev.c | 1451 u16 txpwr, reg; in rtl8187_probe() local 1527 &txpwr); in rtl8187_probe() 1528 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe() 1529 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe() 1533 &txpwr); in rtl8187_probe() 1534 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe() 1535 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe() 1601 &txpwr); in rtl8187_probe() 1602 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe() 1603 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe() [all …]
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | sar.c | 634 u64 instant_txpwr, txpwr; in rtw89_tas_history_update() local 642 txpwr = instant_txpwr * 100; in rtw89_tas_history_update() 645 txpwr = instant_txpwr * tx_ratio; in rtw89_tas_history_update() 648 tas->total_txpwr += txpwr - tas->txpwr_history[tas->txpwr_head_idx]; in rtw89_tas_history_update() 655 tas->txpwr_history[tas->txpwr_tail_idx] = txpwr; in rtw89_tas_history_update() 660 rtw89_linear_to_db_quarter(div_u64(txpwr, PERCENT))); in rtw89_tas_history_update()
|
| H A D | phy.c | 3435 s16 txpwr; in rtw89_phy_c2h_rfk_tas_pwr() local 3442 txpwr = le16_to_cpu(content->txpwr_history[i]); in rtw89_phy_c2h_rfk_tas_pwr() 3443 linear += rtw89_db_quarter_to_linear(txpwr); in rtw89_phy_c2h_rfk_tas_pwr() 3446 "tas: index: %u, txpwr: %d\n", i, txpwr); in rtw89_phy_c2h_rfk_tas_pwr()
|
| H A D | fw.c | 1138 const struct __rtw89_fw_txpwr_element *txpwr_elm = &elm->u.txpwr; in rtw89_fw_recognize_txpwr_from_elm()
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_ioctl.c | 186 char txpwr[] = {"marvell,00_txpwrlimit"}; in mwifiex_dnld_dt_txpwr_table() local 188 memcpy(&txpwr[8], priv->adapter->country_code, 2); in mwifiex_dnld_dt_txpwr_table() 189 mwifiex_dnld_dt_cfgdata(priv, priv->adapter->dt_node, txpwr); in mwifiex_dnld_dt_txpwr_table()
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | qlink.h | 858 __le32 txpwr; member 1222 __le32 txpwr; member
|
| H A D | commands.c | 2617 *dbm = MBM_TO_DBM(le32_to_cpu(resp->txpwr)); in qtnf_cmd_get_tx_power() 2644 cmd->txpwr = cpu_to_le32(mbm); in qtnf_cmd_set_tx_power()
|
| /linux/net/mac80211/ |
| H A D | trace.h | 963 __field(s16, txpwr) 971 __entry->txpwr = sta->deflink.txpwr.power; 972 __entry->type = sta->deflink.txpwr.type; 976 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " txpwr: %d type %d", 978 __entry->txpwr, __entry->type
|
| H A D | cfg.c | 2134 link_sta->pub->txpwr.type = params->txpwr.type; in sta_link_apply_parameters() 2135 if (params->txpwr.type == NL80211_TX_POWER_LIMITED) in sta_link_apply_parameters() 2136 link_sta->pub->txpwr.power = params->txpwr.power; in sta_link_apply_parameters()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | mac.c | 6887 s16 txpwr; in ath10k_sta_set_txpwr() local 6889 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath10k_sta_set_txpwr() 6890 txpwr = 0; in ath10k_sta_set_txpwr() 6892 txpwr = sta->deflink.txpwr.power; in ath10k_sta_set_txpwr() 6893 if (!txpwr) in ath10k_sta_set_txpwr() 6897 if (txpwr > ATH10K_TX_POWER_MAX_VAL || txpwr < ATH10K_TX_POWER_MIN_VAL) in ath10k_sta_set_txpwr() 6903 ar->wmi.peer_param->use_fixed_power, txpwr); in ath10k_sta_set_txpwr()
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | mac.c | 5273 s16 txpwr; in ath11k_mac_op_sta_set_txpwr() local 5275 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath11k_mac_op_sta_set_txpwr() 5276 txpwr = 0; in ath11k_mac_op_sta_set_txpwr() 5278 txpwr = sta->deflink.txpwr.power; in ath11k_mac_op_sta_set_txpwr() 5279 if (!txpwr) in ath11k_mac_op_sta_set_txpwr() 5283 if (txpwr > ATH11K_TX_POWER_MAX_VAL || txpwr < ATH11K_TX_POWER_MIN_VAL) in ath11k_mac_op_sta_set_txpwr() 5289 WMI_PEER_USE_FIXED_PWR, txpwr); in ath11k_mac_op_sta_set_txpwr()
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | mac.c | 7808 s16 txpwr; in ath12k_mac_op_sta_set_txpwr() local 7818 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath12k_mac_op_sta_set_txpwr() 7819 txpwr = 0; in ath12k_mac_op_sta_set_txpwr() 7821 txpwr = sta->deflink.txpwr.power; in ath12k_mac_op_sta_set_txpwr() 7822 if (!txpwr) { in ath12k_mac_op_sta_set_txpwr() 7828 if (txpwr > ATH12K_TX_POWER_MAX_VAL || txpwr < ATH12K_TX_POWER_MIN_VAL) { in ath12k_mac_op_sta_set_txpwr() 7836 WMI_PEER_USE_FIXED_PWR, txpwr); in ath12k_mac_op_sta_set_txpwr()
|
| /linux/net/wireless/ |
| H A D | nl80211.c | 8402 struct sta_txpwr *txpwr, in nl80211_parse_sta_txpower_setting() argument 8415 txpwr->type = nla_get_u8(info->attrs[idx]); in nl80211_parse_sta_txpower_setting() 8417 if (txpwr->type == NL80211_TX_POWER_LIMITED) { in nl80211_parse_sta_txpower_setting() 8421 txpwr->power = nla_get_s16(info->attrs[idx]); in nl80211_parse_sta_txpower_setting() 8562 ¶ms.link_sta_params.txpwr, in nl80211_set_station() 8754 ¶ms.link_sta_params.txpwr, in nl80211_new_station() 17778 err = nl80211_parse_sta_txpower_setting(info, ¶ms.txpwr, in nl80211_add_mod_link_station()
|
| /linux/include/net/ |
| H A D | cfg80211.h | 1754 struct sta_txpwr txpwr; member
|