/linux-6.1.9/drivers/powercap/ |
D | dtpm.c | 110 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 …]
|
D | dtpm_devfreq.c | 50 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()
|
D | dtpm_cpu.c | 42 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()
|
D | intel_rapl_common.c | 328 u64 power_limit) in set_power_limit() argument 354 rapl_write_data_raw(rd, POWER_LIMIT1, power_limit); in set_power_limit() 357 rapl_write_data_raw(rd, POWER_LIMIT2, power_limit); in set_power_limit() 360 rapl_write_data_raw(rd, POWER_LIMIT4, power_limit); in set_power_limit()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mei/ |
D | iwl-mei.h | 370 void iwl_mei_set_power_limit(const __le16 *power_limit); 474 static inline void iwl_mei_set_power_limit(__le16 *power_limit) in iwl_mei_set_power_limit() argument
|
D | main.c | 206 const __le16 *power_limit; member 759 if (iwl_mei_cache.power_limit) { in iwl_mei_set_init_conf() 760 memcpy(sar_msg.sar_chain_info_table, iwl_mei_cache.power_limit, in iwl_mei_set_init_conf() 1573 void iwl_mei_set_power_limit(const __le16 *power_limit) in iwl_mei_set_power_limit() argument 1591 memcpy(msg.sar_chain_info_table, power_limit, sizeof(msg.sar_chain_info_table)); in iwl_mei_set_power_limit() 1596 kfree(iwl_mei_cache.power_limit); in iwl_mei_set_power_limit() 1597 iwl_mei_cache.power_limit = kmemdup(power_limit, in iwl_mei_set_power_limit() 1719 kfree(iwl_mei_cache.power_limit); in iwl_mei_start_unregister() 1720 iwl_mei_cache.power_limit = NULL; in iwl_mei_start_unregister()
|
/linux-6.1.9/Documentation/power/powercap/ |
D | dtpm.rst | 92 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-6.1.9/drivers/net/wireless/ath/ath9k/ |
D | eeprom.c | 416 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()
|
D | common.c | 372 if (ah->curchan && reg->power_limit != new_txpow) in ath9k_cmn_update_txpow()
|
/linux-6.1.9/include/linux/ |
D | dtpm.h | 22 u64 power_limit; member
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | smu_v13_0_7_ppt.c | 1425 uint32_t power_limit, od_percent; in smu_v13_0_7_get_power_limit() local 1427 if (smu_v13_0_get_current_power_limit(smu, &power_limit)) in smu_v13_0_7_get_power_limit() 1428 power_limit = smu->adev->pm.ac_power ? in smu_v13_0_7_get_power_limit() 1433 *current_power_limit = power_limit; in smu_v13_0_7_get_power_limit() 1435 *default_power_limit = power_limit; in smu_v13_0_7_get_power_limit() 1441 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in smu_v13_0_7_get_power_limit() 1443 power_limit *= (100 + od_percent); in smu_v13_0_7_get_power_limit() 1444 power_limit /= 100; in smu_v13_0_7_get_power_limit() 1446 *max_power_limit = power_limit; in smu_v13_0_7_get_power_limit()
|
D | smu_v13_0_0_ppt.c | 1505 uint32_t power_limit, od_percent; in smu_v13_0_0_get_power_limit() local 1507 if (smu_v13_0_get_current_power_limit(smu, &power_limit)) in smu_v13_0_0_get_power_limit() 1508 power_limit = smu->adev->pm.ac_power ? in smu_v13_0_0_get_power_limit() 1513 *current_power_limit = power_limit; in smu_v13_0_0_get_power_limit() 1515 *default_power_limit = power_limit; in smu_v13_0_0_get_power_limit() 1521 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in smu_v13_0_0_get_power_limit() 1523 power_limit *= (100 + od_percent); in smu_v13_0_0_get_power_limit() 1524 power_limit /= 100; in smu_v13_0_0_get_power_limit() 1526 *max_power_limit = power_limit; in smu_v13_0_0_get_power_limit()
|
D | aldebaran_ppt.c | 1201 uint32_t power_limit = 0; in aldebaran_get_power_limit() local 1223 &power_limit); in aldebaran_get_power_limit() 1232 power_limit = pptable->PptLimit; in aldebaran_get_power_limit() 1237 *current_power_limit = power_limit; in aldebaran_get_power_limit() 1239 *default_power_limit = power_limit; in aldebaran_get_power_limit()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/ |
D | 4965.c | 1010 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-6.1.9/arch/mips/include/asm/octeon/ |
D | cvmx-mio-defs.h | 1198 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-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.c | 1649 s8 power_limit = 0, prev_power_limit, ret; in _rtl8812ae_phy_set_txpower_limit() local 1653 &power_limit)) { in _rtl8812ae_phy_set_txpower_limit() 1656 channel, power_limit); in _rtl8812ae_phy_set_txpower_limit() 1659 power_limit = power_limit > MAX_POWER_INDEX ? in _rtl8812ae_phy_set_txpower_limit() 1660 MAX_POWER_INDEX : power_limit; in _rtl8812ae_phy_set_txpower_limit() 1711 if (power_limit < prev_power_limit) in _rtl8812ae_phy_set_txpower_limit() 1714 power_limit; in _rtl8812ae_phy_set_txpower_limit() 1735 if (power_limit < prev_power_limit) in _rtl8812ae_phy_set_txpower_limit() 1737 [rate_section][channel_index][RF90_PATH_A] = power_limit; in _rtl8812ae_phy_set_txpower_limit() 1755 const char *power_limit) in _rtl8812ae_phy_config_bb_txpwr_lmt() argument [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | arcturus_ppt.c | 1336 uint32_t power_limit, od_percent; in arcturus_get_power_limit() local 1338 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in arcturus_get_power_limit() 1344 power_limit = in arcturus_get_power_limit() 1349 *current_power_limit = power_limit; in arcturus_get_power_limit() 1351 *default_power_limit = power_limit; in arcturus_get_power_limit() 1357 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in arcturus_get_power_limit() 1359 power_limit *= (100 + od_percent); in arcturus_get_power_limit() 1360 power_limit /= 100; in arcturus_get_power_limit() 1363 *max_power_limit = power_limit; in arcturus_get_power_limit()
|
D | navi10_ppt.c | 2336 uint32_t power_limit, od_percent; in navi10_get_power_limit() local 2338 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in navi10_get_power_limit() 2344 power_limit = in navi10_get_power_limit() 2349 *current_power_limit = power_limit; in navi10_get_power_limit() 2351 *default_power_limit = power_limit; in navi10_get_power_limit() 2358 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in navi10_get_power_limit() 2360 power_limit *= (100 + od_percent); in navi10_get_power_limit() 2361 power_limit /= 100; in navi10_get_power_limit() 2364 *max_power_limit = power_limit; in navi10_get_power_limit()
|
/linux-6.1.9/drivers/net/wireless/ath/ |
D | ath.h | 86 int16_t power_limit; member
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/inc/ |
D | smu_v13_0.h | 168 uint32_t *power_limit);
|
D | smu_v11_0.h | 190 uint32_t *power_limit);
|
/linux-6.1.9/drivers/net/wireless/ath/ath10k/ |
D | core.h | 365 u32 power_limit; member 386 u32 power_limit; member
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/ |
D | phy.c | 2028 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-6.1.9/drivers/staging/rtl8723bs/include/ |
D | wifi.h | 774 int16_t power_limit; member
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega10_powertune.c | 1322 hwmgr->default_power_limit = hwmgr->power_limit = in vega10_enable_power_containment() 1341 result = vega10_set_power_limit(hwmgr, hwmgr->power_limit); in vega10_enable_power_containment()
|