| /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 | 3794 bool mute_tx, struct txpwr_limits *txpwr) 3825 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, in brcms_b_set_chanspec() 3830 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, chanspec); in brcms_b_set_chanspec() 7537 int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr) in brcms_c_tsf_get() 7542 qdbm = min_t(uint, txpwr * BRCMS_TXPWR_DB_FACTOR, 0xff); in brcms_c_tsf_get() 3822 brcms_b_set_chanspec(struct brcms_hardware * wlc_hw,u16 chanspec,bool mute_tx,struct txpwr_limits * txpwr) brcms_b_set_chanspec() argument 7565 brcms_c_set_tx_power(struct brcms_c_info * wlc,int txpwr) brcms_c_set_tx_power() argument
|
| /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 | 4788 s8 txpwr = 0; in wlc_phy_init_lcnphy() 4817 txpwr = sprom->core_pwr_info[0].maxpwr_2g; in wlc_phy_txpwr_srom_read_lcnphy() 4818 pi->tx_srom_max_2g = txpwr; in wlc_phy_txpwr_srom_read_lcnphy() 4828 uint max_pwr_chan = txpwr; in wlc_phy_txpwr_srom_read_lcnphy() 4844 pi->tx_srom_max_rate_2g[i] = txpwr; in wlc_phy_txpwr_srom_read_lcnphy() 4847 pi->tx_srom_max_rate_2g[i] = txpwr - in wlc_phy_txpwr_srom_read_lcnphy() 4857 txpwr - ((offset_mcs & 0xf) * 2); in wlc_phy_txpwr_srom_read_lcnphy() 4795 s8 txpwr = 0; wlc_phy_txpwr_srom_read_lcnphy() local
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | sar.c | 495 * it does not seem necessary to reset txpwr related things here. in rtw89_apply_sar_acpi() 634 u64 instant_txpwr, txpwr; in rtw89_tas_history_update() local 636 /* txpwr in unit of linear(mW) multiply by percentage */ in rtw89_tas_history_update() 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() 658 "tas: instant_txpwr: %d, tx_ratio: %u, txpwr: %d\n", in rtw89_tas_history_update() 660 rtw89_linear_to_db_quarter(div_u64(txpwr, PERCENT))); in rtw89_tas_history_update()
|
| /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/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/net/mac80211/ |
| H A D | cfg.c | 2339 link_sta->pub->txpwr.type = params->txpwr.type; in sta_apply_parameters() 2340 if (params->txpwr.type == NL80211_TX_POWER_LIMITED) in sta_apply_parameters() 2341 link_sta->pub->txpwr.power = params->txpwr.power; in sta_apply_parameters()
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | mac.c | 1069 /* txpwr is set as 2 units per dBm in FW*/ in ath12k_mac_txpower_recalc() 7901 s16 txpwr; in ath12k_mac_op_link_sta_rc_update() 7911 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath12k_mac_op_link_sta_rc_update() 7912 txpwr = 0; in ath12k_mac_op_link_sta_rc_update() 7914 txpwr = sta->deflink.txpwr.power; in ath12k_mac_op_link_sta_rc_update() 7915 if (!txpwr) { in ath12k_mac_op_link_sta_rc_update() 7921 if (txpwr > ATH12K_TX_POWER_MAX_VAL || txpwr < ATH12K_TX_POWER_MIN_VAL) { in ath12k_mac_op_link_sta_rc_update() 7929 WMI_PEER_USE_FIXED_PWR, txpwr); in ath12k_mac_op_link_sta_rc_update() 7833 s16 txpwr; ath12k_mac_op_sta_set_txpwr() local [all...] |
| /linux/include/net/ |
| H A D | mac80211.h | 2631 * @txpwr: the station tx power configuration 2654 struct ieee80211_sta_txpwr txpwr; 2615 struct ieee80211_sta_txpwr txpwr; global() member
|
| /linux/net/wireless/ |
| H A D | nl80211.c | 8958 struct sta_txpwr *txpwr, in nl80211_new_station() 8971 txpwr->type = nla_get_u8(info->attrs[idx]); in nl80211_new_station() 8973 if (txpwr->type == NL80211_TX_POWER_LIMITED) { in nl80211_new_station() 8977 txpwr->power = nla_get_s16(info->attrs[idx]); in nl80211_new_station() 9123 ¶ms.link_sta_params.txpwr, in nl80211_new_station() 9340 ¶ms.link_sta_params.txpwr, in nl80211_send_mpath() 18997 err = nl80211_parse_sta_txpower_setting(info, ¶ms.txpwr, in nl80211_post_doit() 8679 nl80211_parse_sta_txpower_setting(struct genl_info * info,struct sta_txpwr * txpwr,bool * txpwr_set) nl80211_parse_sta_txpower_setting() argument
|