/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
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 …]
|
D | channel.h | 42 struct txpwr_limits *txpwr);
|
D | pub.h | 324 int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr);
|
D | main.h | 640 bool mute, struct txpwr_limits *txpwr);
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_txrx.c | 96 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, s8 max_txpwr_adj) in mt76x02_tx_get_txpwr_adj() argument 98 txpwr = min_t(s8, txpwr, dev->txpower_conf); in mt76x02_tx_get_txpwr_adj() 99 txpwr -= (dev->target_power + dev->target_power_delta[0]); in mt76x02_tx_get_txpwr_adj() 100 txpwr = min_t(s8, txpwr, max_txpwr_adj); in mt76x02_tx_get_txpwr_adj() 104 else if (txpwr >= 0) in mt76x02_tx_get_txpwr_adj() 105 return min_t(s8, txpwr, 7); in mt76x02_tx_get_txpwr_adj() 107 return (txpwr < -16) ? 8 : (txpwr + 32) / 2; in mt76x02_tx_get_txpwr_adj() 110 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr) in mt76x02_tx_set_txpwr_auto() argument 114 txpwr_adj = mt76x02_tx_get_txpwr_adj(dev, txpwr, in mt76x02_tx_set_txpwr_auto()
|
D | mt76x02.h | 180 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, 183 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr);
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | debugfs.c | 80 txpwr.data[TXPWR_USER].rate, \ 81 ARRAY_SIZE(txpwr.data[TXPWR_USER].rate)); \ 83 txpwr.data[TXPWR_EEPROM].rate, \ 84 ARRAY_SIZE(txpwr.data[TXPWR_EEPROM].rate)); \ 86 txpwr.data[TXPWR_MAC].rate, \ 87 ARRAY_SIZE(txpwr.data[TXPWR_MAC].rate)); \ 94 struct mt7921_txpwr txpwr; in mt7921_txpwr() local 98 ret = mt7921_get_txpwr_info(dev, &txpwr); in mt7921_txpwr() 104 seq_printf(s, "Tx power table (channel %d)\n", txpwr.ch); in mt7921_txpwr()
|
D | mcu.h | 74 struct mt7921_txpwr txpwr; member
|
D | mcu.c | 921 int mt7921_get_txpwr_info(struct mt792x_dev *dev, struct mt7921_txpwr *txpwr) in mt7921_get_txpwr_info() argument 937 memcpy(txpwr, &event->txpwr, sizeof(event->txpwr)); in mt7921_get_txpwr_info()
|
D | mt7921.h | 286 int mt7921_get_txpwr_info(struct mt792x_dev *dev, struct mt7921_txpwr *txpwr);
|
/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_cmn.c | 1312 struct txpwr_limits *txpwr) in wlc_phy_txpower_target_set() argument 1318 &txpwr->cck[0], BRCMS_NUM_RATES_CCK); in wlc_phy_txpower_target_set() 1321 &txpwr->ofdm[0], BRCMS_NUM_RATES_OFDM); in wlc_phy_txpower_target_set() 1323 &txpwr->ofdm_cdd[0], BRCMS_NUM_RATES_OFDM); in wlc_phy_txpower_target_set() 1326 &txpwr->ofdm_40_siso[0], BRCMS_NUM_RATES_OFDM); in wlc_phy_txpower_target_set() 1328 &txpwr->ofdm_40_cdd[0], BRCMS_NUM_RATES_OFDM); in wlc_phy_txpower_target_set() 1331 &txpwr->mcs_20_siso[0], BRCMS_NUM_RATES_MCS_1_STREAM); in wlc_phy_txpower_target_set() 1333 &txpwr->mcs_20_cdd[0], BRCMS_NUM_RATES_MCS_1_STREAM); in wlc_phy_txpower_target_set() 1335 &txpwr->mcs_20_stbc[0], BRCMS_NUM_RATES_MCS_1_STREAM); in wlc_phy_txpower_target_set() 1337 &txpwr->mcs_20_mimo[0], BRCMS_NUM_RATES_MCS_2_STREAM); in wlc_phy_txpower_target_set() [all …]
|
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-v6.6/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
D | dev.c | 1435 u16 txpwr, reg; in rtl8187_probe() local 1511 &txpwr); in rtl8187_probe() 1512 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe() 1513 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe() 1517 &txpwr); in rtl8187_probe() 1518 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe() 1519 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe() 1585 &txpwr); in rtl8187_probe() 1586 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe() 1587 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe() [all …]
|
/Linux-v6.6/drivers/net/wireless/realtek/rtw89/ |
D | sar.c | 461 s16 tmp, txpwr, instant_txpwr = 0; in rtw89_tas_track() local 482 txpwr = instant_txpwr * env->ifs_clm_tx_ratio; in rtw89_tas_track() 483 tas->total_txpwr += txpwr - tas->txpwr_history[tas->cur_idx]; in rtw89_tas_track() 484 tas->txpwr_history[tas->cur_idx] = txpwr; in rtw89_tas_track() 487 instant_txpwr, env->ifs_clm_tx_ratio, txpwr); in rtw89_tas_track()
|
/Linux-v6.6/sound/soc/codecs/ |
D | wm8804.c | 166 unsigned int txpwr; in txsrc_put() local 175 txpwr = snd_soc_component_read(component, WM8804_PWRDN) & 0x4; in txsrc_put() 184 snd_soc_component_update_bits(component, WM8804_PWRDN, 0x4, txpwr); in txsrc_put()
|
/Linux-v6.6/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
D | dev.c | 1690 u16 txpwr; in rtl8180_eeprom_read() local 1692 &txpwr); in rtl8180_eeprom_read() 1693 priv->channels[i].hw_value = txpwr & 0xFF; in rtl8180_eeprom_read() 1694 priv->channels[i + 1].hw_value = txpwr >> 8; in rtl8180_eeprom_read() 1700 u16 txpwr; in rtl8180_eeprom_read() local 1701 eeprom_93cx6_read(&eeprom, 0x20 + (i >> 1), &txpwr); in rtl8180_eeprom_read() 1702 priv->channels[i].hw_value |= (txpwr & 0xFF) << 8; in rtl8180_eeprom_read() 1703 priv->channels[i + 1].hw_value |= txpwr & 0xFF00; in rtl8180_eeprom_read()
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | debugfs.c | 957 len += scnprintf(buf + len, sz - len, " %6d", txpwr[offs]); \ 977 s8 txpwr[MT7915_SKU_RATE_NUM]; in mt7915_rate_txpower_get() local 989 ret = mt7915_mcu_get_txpower_sku(phy, txpwr, sizeof(txpwr)); in mt7915_rate_txpower_get()
|
D | main.c | 1216 s16 txpower = sta->deflink.txpwr.power; in mt7915_sta_set_txpwr() 1219 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) in mt7915_sta_set_txpwr()
|
/Linux-v6.6/drivers/net/wireless/marvell/mwifiex/ |
D | sta_ioctl.c | 186 char txpwr[] = {"marvell,00_txpwrlimit"}; in mwifiex_dnld_txpwr_table() local 188 memcpy(&txpwr[8], priv->adapter->country_code, 2); in mwifiex_dnld_txpwr_table() 189 mwifiex_dnld_dt_cfgdata(priv, priv->adapter->dt_node, txpwr); in mwifiex_dnld_txpwr_table()
|
/Linux-v6.6/drivers/net/wireless/quantenna/qtnfmac/ |
D | qlink.h | 858 __le32 txpwr; member 1222 __le32 txpwr; member
|
/Linux-v6.6/net/mac80211/ |
D | trace.h | 891 __field(s16, txpwr) 899 __entry->txpwr = sta->deflink.txpwr.power; 900 __entry->type = sta->deflink.txpwr.type; 906 __entry->txpwr, __entry->type
|
D | cfg.c | 1840 link_sta->pub->txpwr.type = params->txpwr.type; in sta_link_apply_parameters() 1841 if (params->txpwr.type == NL80211_TX_POWER_LIMITED) in sta_link_apply_parameters() 1842 link_sta->pub->txpwr.power = params->txpwr.power; in sta_link_apply_parameters()
|
/Linux-v6.6/drivers/net/wireless/ath/ath12k/ |
D | mac.c | 3860 s16 txpwr; in ath12k_mac_op_sta_set_txpwr() local 3862 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath12k_mac_op_sta_set_txpwr() 3863 txpwr = 0; in ath12k_mac_op_sta_set_txpwr() 3865 txpwr = sta->deflink.txpwr.power; in ath12k_mac_op_sta_set_txpwr() 3866 if (!txpwr) in ath12k_mac_op_sta_set_txpwr() 3870 if (txpwr > ATH12K_TX_POWER_MAX_VAL || txpwr < ATH12K_TX_POWER_MIN_VAL) in ath12k_mac_op_sta_set_txpwr() 3876 WMI_PEER_USE_FIXED_PWR, txpwr); in ath12k_mac_op_sta_set_txpwr()
|
/Linux-v6.6/drivers/net/wireless/ath/ath10k/ |
D | mac.c | 6849 s16 txpwr; in ath10k_sta_set_txpwr() local 6851 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath10k_sta_set_txpwr() 6852 txpwr = 0; in ath10k_sta_set_txpwr() 6854 txpwr = sta->deflink.txpwr.power; in ath10k_sta_set_txpwr() 6855 if (!txpwr) in ath10k_sta_set_txpwr() 6859 if (txpwr > ATH10K_TX_POWER_MAX_VAL || txpwr < ATH10K_TX_POWER_MIN_VAL) in ath10k_sta_set_txpwr() 6865 ar->wmi.peer_param->use_fixed_power, txpwr); in ath10k_sta_set_txpwr()
|
/Linux-v6.6/drivers/net/wireless/ath/ath11k/ |
D | mac.c | 5165 s16 txpwr; in ath11k_mac_op_sta_set_txpwr() local 5167 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath11k_mac_op_sta_set_txpwr() 5168 txpwr = 0; in ath11k_mac_op_sta_set_txpwr() 5170 txpwr = sta->deflink.txpwr.power; in ath11k_mac_op_sta_set_txpwr() 5171 if (!txpwr) in ath11k_mac_op_sta_set_txpwr() 5175 if (txpwr > ATH11K_TX_POWER_MAX_VAL || txpwr < ATH11K_TX_POWER_MIN_VAL) in ath11k_mac_op_sta_set_txpwr() 5181 WMI_PEER_USE_FIXED_PWR, txpwr); in ath11k_mac_op_sta_set_txpwr()
|