/linux/drivers/powercap/ |
A D | dtpm.c | 116 parent->power_limit -= dtpm->power_limit; in __dtpm_sub_power() 128 parent->power_limit += dtpm->power_limit; in __dtpm_add_power() 145 dtpm->power_limit = dtpm->power_max; in __dtpm_update_power() 218 *power_limit = dtpm->power_limit; in __get_power_limit_uw() 223 int cid, u64 *power_limit) in get_power_limit_uw() argument 258 dtpm->zone.name, power_limit); in __set_power_limit_uw() 264 dtpm->power_limit = dtpm->ops->set_power_uw(dtpm, power_limit); in __set_power_limit_uw() 266 dtpm->power_limit = 0; in __set_power_limit_uw() 297 dtpm->power_limit += power; in __set_power_limit_uw() 305 int cid, u64 power_limit) in set_power_limit_uw() argument [all …]
|
A D | dtpm_cpu.c | 41 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument 57 if (power > power_limit) in set_pd_power_limit() 65 power_limit = pd->table[i - 1].power * in set_pd_power_limit() 68 return power_limit; in set_pd_power_limit()
|
A D | intel_rapl_common.c | 313 u64 power_limit) in set_power_limit() argument 339 rapl_write_data_raw(rd, POWER_LIMIT1, power_limit); in set_power_limit() 342 rapl_write_data_raw(rd, POWER_LIMIT2, power_limit); in set_power_limit() 345 rapl_write_data_raw(rd, POWER_LIMIT4, power_limit); in set_power_limit()
|
/linux/Documentation/power/powercap/ |
A 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/drivers/net/wireless/ath/ath9k/ |
A 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()
|
A D | common.c | 372 if (ah->curchan && reg->power_limit != new_txpow) in ath9k_cmn_update_txpow()
|
A D | eeprom.h | 702 u16 ath9k_hw_get_scaled_power(struct ath_hw *ah, u16 power_limit,
|
/linux/include/linux/ |
A D | dtpm.h | 22 u64 power_limit; member
|
/linux/arch/mips/include/asm/octeon/ |
A 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/drivers/net/wireless/intel/iwlegacy/ |
A 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/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
A D | phy.c | 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() 1755 const char *power_limit) in _rtl8812ae_phy_config_bb_txpwr_lmt() argument 1759 power_limit); in _rtl8812ae_phy_config_bb_txpwr_lmt() 2341 s8 power_limit = MAX_POWER_INDEX; in _rtl8812ae_phy_get_txpower_limit() local [all …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
A D | arcturus_ppt.c | 1355 uint32_t power_limit, od_percent; in arcturus_get_power_limit() local 1357 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in arcturus_get_power_limit() 1363 power_limit = in arcturus_get_power_limit() 1368 *current_power_limit = power_limit; in arcturus_get_power_limit() 1370 *default_power_limit = power_limit; in arcturus_get_power_limit() 1376 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in arcturus_get_power_limit() 1378 power_limit *= (100 + od_percent); in arcturus_get_power_limit() 1379 power_limit /= 100; in arcturus_get_power_limit() 1382 *max_power_limit = power_limit; in arcturus_get_power_limit()
|
A D | navi10_ppt.c | 2156 uint32_t power_limit, od_percent; in navi10_get_power_limit() local 2158 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in navi10_get_power_limit() 2164 power_limit = in navi10_get_power_limit() 2169 *current_power_limit = power_limit; in navi10_get_power_limit() 2171 *default_power_limit = power_limit; in navi10_get_power_limit() 2178 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in navi10_get_power_limit() 2180 power_limit *= (100 + od_percent); in navi10_get_power_limit() 2181 power_limit /= 100; in navi10_get_power_limit() 2184 *max_power_limit = power_limit; in navi10_get_power_limit()
|
A D | sienna_cichlid_ppt.c | 1791 uint32_t power_limit, od_percent; in sienna_cichlid_get_power_limit() local 1796 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in sienna_cichlid_get_power_limit() 1797 power_limit = in sienna_cichlid_get_power_limit() 1802 *current_power_limit = power_limit; in sienna_cichlid_get_power_limit() 1804 *default_power_limit = power_limit; in sienna_cichlid_get_power_limit() 1810 … dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in sienna_cichlid_get_power_limit() 1812 power_limit *= (100 + od_percent); in sienna_cichlid_get_power_limit() 1813 power_limit /= 100; in sienna_cichlid_get_power_limit() 1815 *max_power_limit = power_limit; in sienna_cichlid_get_power_limit()
|
/linux/drivers/gpu/drm/amd/pm/inc/ |
A D | smu_v13_0.h | 164 uint32_t *power_limit);
|
A D | smu_v11_0.h | 198 uint32_t *power_limit);
|
A D | amdgpu_smu.h | 233 uint32_t power_limit; member
|
/linux/drivers/net/wireless/ath/ |
A D | ath.h | 86 int16_t power_limit; member
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
A D | aldebaran_ppt.c | 1196 uint32_t power_limit = 0; in aldebaran_get_power_limit() local 1218 &power_limit); in aldebaran_get_power_limit() 1227 power_limit = pptable->PptLimit; in aldebaran_get_power_limit() 1232 *current_power_limit = power_limit; in aldebaran_get_power_limit() 1234 *default_power_limit = power_limit; in aldebaran_get_power_limit()
|
A D | smu_v13_0.c | 925 uint32_t *power_limit) in smu_v13_0_get_current_power_limit() argument 944 power_limit); in smu_v13_0_get_current_power_limit()
|
/linux/drivers/net/wireless/ath/ath10k/ |
A D | core.h | 368 u32 power_limit; member 389 u32 power_limit; member
|
/linux/drivers/net/wireless/realtek/rtw88/ |
A D | phy.c | 2013 s8 power_limit = (s8)rtwdev->chip->max_power_index; in rtw_phy_get_tx_power_limit() local 2020 return power_limit; in rtw_phy_get_tx_power_limit() 2057 power_limit = min_t(s8, cur_lmt, power_limit); in rtw_phy_get_tx_power_limit() 2060 return power_limit; in rtw_phy_get_tx_power_limit()
|
/linux/drivers/staging/rtl8723bs/include/ |
A D | wifi.h | 774 int16_t power_limit; member
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
A 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()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/ |
A D | amd_powerplay.c | 1028 hwmgr->power_limit = limit; in pp_set_power_limit() 1050 *limit = hwmgr->power_limit; in pp_get_power_limit()
|