Home
last modified time | relevance | path

Searched refs:power_limit (Results 1 – 25 of 43) sorted by relevance

12

/Linux-v6.6/drivers/powercap/
Ddtpm.c110 parent->power_limit -= dtpm->power_limit; in __dtpm_sub_power()
122 parent->power_limit += dtpm->power_limit; in __dtpm_add_power()
148 dtpm->power_limit = dtpm->power_max; in dtpm_update_power()
191 int cid, u64 *power_limit) in get_power_limit_uw() argument
193 *power_limit = to_dtpm(pcz)->power_limit; in get_power_limit_uw()
204 static int __set_power_limit_uw(struct dtpm *dtpm, int cid, u64 power_limit) in __set_power_limit_uw() argument
214 if (power_limit == dtpm->power_max) { in __set_power_limit_uw()
221 dtpm->zone.name, power_limit); in __set_power_limit_uw()
227 dtpm->power_limit = dtpm->ops->set_power_uw(dtpm, power_limit); in __set_power_limit_uw()
229 dtpm->power_limit = 0; in __set_power_limit_uw()
[all …]
Ddtpm_devfreq.c50 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument
63 if (power > power_limit) in set_pd_power_limit()
71 power_limit = pd->table[i - 1].power * MICROWATT_PER_MILLIWATT; in set_pd_power_limit()
73 return power_limit; in set_pd_power_limit()
Ddtpm_cpu.c42 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument
58 if (power > power_limit) in set_pd_power_limit()
66 power_limit = pd->table[i - 1].power * nr_cpus; in set_pd_power_limit()
68 return power_limit; in set_pd_power_limit()
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/mei/
Diwl-mei.h372 void iwl_mei_set_power_limit(const __le16 *power_limit);
491 static inline void iwl_mei_set_power_limit(__le16 *power_limit) in iwl_mei_set_power_limit() argument
Dmain.c218 const __le16 *power_limit; member
771 if (iwl_mei_cache.power_limit) { in iwl_mei_set_init_conf()
772 memcpy(sar_msg.sar_chain_info_table, iwl_mei_cache.power_limit, in iwl_mei_set_init_conf()
1672 void iwl_mei_set_power_limit(const __le16 *power_limit) in iwl_mei_set_power_limit() argument
1690 memcpy(msg.sar_chain_info_table, power_limit, sizeof(msg.sar_chain_info_table)); in iwl_mei_set_power_limit()
1695 kfree(iwl_mei_cache.power_limit); in iwl_mei_set_power_limit()
1696 iwl_mei_cache.power_limit = kmemdup(power_limit, in iwl_mei_set_power_limit()
1820 kfree(iwl_mei_cache.power_limit); in iwl_mei_start_unregister()
1821 iwl_mei_cache.power_limit = NULL; in iwl_mei_start_unregister()
/Linux-v6.6/Documentation/power/powercap/
Ddtpm.rst92 SoC (w=1024) <--- power_limit = 3200mW
94 |-- pkg (w=538) --> power_limit = 1681mW
96 | |-- pd0 (w=231) --> power_limit = 378mW
98 | `-- pd1 (w=794) --> power_limit = 1303mW
100 `-- pd2 (w=486) --> power_limit = 1519mW
/Linux-v6.6/drivers/net/wireless/ath/ath9k/
Deeprom.c416 u16 ath9k_hw_get_scaled_power(struct ath_hw *ah, u16 power_limit, in ath9k_hw_get_scaled_power() argument
436 if (power_limit > reduction) in ath9k_hw_get_scaled_power()
437 power_limit -= reduction; in ath9k_hw_get_scaled_power()
439 power_limit = 0; in ath9k_hw_get_scaled_power()
441 return min_t(u16, power_limit, MAX_RATE_POWER); in ath9k_hw_get_scaled_power()
Dcommon.c372 if (ah->curchan && reg->power_limit != new_txpow) in ath9k_cmn_update_txpow()
/Linux-v6.6/include/linux/
Ddtpm.h22 u64 power_limit; member
/Linux-v6.6/drivers/net/wireless/intel/iwlegacy/
D4965.c1010 s32 power_limit; in il4965_fill_txpower_tbl() local
1158 power_limit = saturation_power - back_off_table[i]; in il4965_fill_txpower_tbl()
1159 if (power_limit > current_regulatory) in il4965_fill_txpower_tbl()
1160 power_limit = current_regulatory; 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()
/Linux-v6.6/arch/mips/include/asm/octeon/
Dcvmx-mio-defs.h1198 uint64_t power_limit:2; member
1224 uint64_t power_limit:2;
1424 uint64_t power_limit:2; member
1448 uint64_t power_limit:2;
1488 uint64_t power_limit:2; member
1512 uint64_t power_limit:2;
1521 uint64_t power_limit:2; member
1543 uint64_t power_limit:2;
1552 uint64_t power_limit:2; member
1574 uint64_t power_limit:2;
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_7_ppt.c1950 uint32_t power_limit, od_percent; in smu_v13_0_7_get_power_limit() local
1952 if (smu_v13_0_get_current_power_limit(smu, &power_limit)) in smu_v13_0_7_get_power_limit()
1953 power_limit = smu->adev->pm.ac_power ? in smu_v13_0_7_get_power_limit()
1958 *current_power_limit = power_limit; in smu_v13_0_7_get_power_limit()
1960 *default_power_limit = power_limit; in smu_v13_0_7_get_power_limit()
1966 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in smu_v13_0_7_get_power_limit()
1968 power_limit *= (100 + od_percent); in smu_v13_0_7_get_power_limit()
1969 power_limit /= 100; in smu_v13_0_7_get_power_limit()
1971 *max_power_limit = power_limit; in smu_v13_0_7_get_power_limit()
Dsmu_v13_0_0_ppt.c1997 uint32_t power_limit, od_percent; in smu_v13_0_0_get_power_limit() local
1999 if (smu_v13_0_get_current_power_limit(smu, &power_limit)) in smu_v13_0_0_get_power_limit()
2000 power_limit = smu->adev->pm.ac_power ? in smu_v13_0_0_get_power_limit()
2005 *current_power_limit = power_limit; in smu_v13_0_0_get_power_limit()
2007 *default_power_limit = power_limit; in smu_v13_0_0_get_power_limit()
2013 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in smu_v13_0_0_get_power_limit()
2015 power_limit *= (100 + od_percent); in smu_v13_0_0_get_power_limit()
2016 power_limit /= 100; in smu_v13_0_0_get_power_limit()
2018 *max_power_limit = power_limit; in smu_v13_0_0_get_power_limit()
Daldebaran_ppt.c1194 uint32_t power_limit = 0; in aldebaran_get_power_limit() local
1216 &power_limit); in aldebaran_get_power_limit()
1225 power_limit = pptable->PptLimit; in aldebaran_get_power_limit()
1230 *current_power_limit = power_limit; in aldebaran_get_power_limit()
1232 *default_power_limit = power_limit; in aldebaran_get_power_limit()
Dsmu_v13_0_6_ppt.c1240 uint32_t power_limit = 0; in smu_v13_0_6_get_power_limit() local
1243 ret = smu_cmn_send_smc_msg(smu, SMU_MSG_GetPptLimit, &power_limit); in smu_v13_0_6_get_power_limit()
1251 *current_power_limit = power_limit; in smu_v13_0_6_get_power_limit()
1253 *default_power_limit = power_limit; in smu_v13_0_6_get_power_limit()
/Linux-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dphy.c1637 s8 power_limit = 0, prev_power_limit, ret; in _rtl8812ae_phy_set_txpower_limit() local
1641 &power_limit)) { in _rtl8812ae_phy_set_txpower_limit()
1644 channel, power_limit); in _rtl8812ae_phy_set_txpower_limit()
1647 power_limit = power_limit > MAX_POWER_INDEX ? in _rtl8812ae_phy_set_txpower_limit()
1648 MAX_POWER_INDEX : power_limit; in _rtl8812ae_phy_set_txpower_limit()
1699 if (power_limit < prev_power_limit) in _rtl8812ae_phy_set_txpower_limit()
1702 power_limit; in _rtl8812ae_phy_set_txpower_limit()
1723 if (power_limit < prev_power_limit) in _rtl8812ae_phy_set_txpower_limit()
1725 [rate_section][channel_index][RF90_PATH_A] = power_limit; in _rtl8812ae_phy_set_txpower_limit()
1743 const char *power_limit) in _rtl8812ae_phy_config_bb_txpwr_lmt() argument
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/pm/swsmu/smu11/
Darcturus_ppt.c1337 uint32_t power_limit, od_percent; in arcturus_get_power_limit() local
1339 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in arcturus_get_power_limit()
1345 power_limit = in arcturus_get_power_limit()
1350 *current_power_limit = power_limit; in arcturus_get_power_limit()
1352 *default_power_limit = power_limit; in arcturus_get_power_limit()
1358 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in arcturus_get_power_limit()
1360 power_limit *= (100 + od_percent); in arcturus_get_power_limit()
1361 power_limit /= 100; in arcturus_get_power_limit()
1364 *max_power_limit = power_limit; in arcturus_get_power_limit()
Dnavi10_ppt.c2344 uint32_t power_limit, od_percent; in navi10_get_power_limit() local
2346 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in navi10_get_power_limit()
2352 power_limit = in navi10_get_power_limit()
2357 *current_power_limit = power_limit; in navi10_get_power_limit()
2359 *default_power_limit = power_limit; in navi10_get_power_limit()
2366 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in navi10_get_power_limit()
2368 power_limit *= (100 + od_percent); in navi10_get_power_limit()
2369 power_limit /= 100; in navi10_get_power_limit()
2372 *max_power_limit = power_limit; in navi10_get_power_limit()
/Linux-v6.6/drivers/gpu/drm/amd/pm/swsmu/inc/
Dsmu_v11_0.h188 uint32_t *power_limit);
Dsmu_v13_0.h167 uint32_t *power_limit);
/Linux-v6.6/drivers/net/wireless/ath/
Dath.h86 int16_t power_limit; member
/Linux-v6.6/drivers/accel/ivpu/
Dvpu_jsm_api.h577 u8 power_limit[16]; member
/Linux-v6.6/drivers/net/wireless/ath/ath10k/
Dcore.h365 u32 power_limit; member
386 u32 power_limit; member
/Linux-v6.6/drivers/net/wireless/realtek/rtw88/
Dphy.c2028 s8 power_limit = (s8)rtwdev->chip->max_power_index; in rtw_phy_get_tx_power_limit() local
2035 return power_limit; in rtw_phy_get_tx_power_limit()
2060 power_limit = min_t(s8, cur_lmt, power_limit); in rtw_phy_get_tx_power_limit()
2063 return power_limit; in rtw_phy_get_tx_power_limit()
/Linux-v6.6/drivers/staging/rtl8723bs/include/
Dwifi.h759 int16_t power_limit; member

12