Home
last modified time | relevance | path

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

12

/drivers/powercap/
Ddtpm.c116 parent->power_limit -= dtpm->power_limit; in __dtpm_sub_power()
130 parent->power_limit += dtpm->power_limit; in __dtpm_add_power()
167 dtpm->power_limit = power_max; in dtpm_update_power()
218 static int __get_power_limit_uw(struct dtpm *dtpm, int cid, u64 *power_limit) in __get_power_limit_uw() argument
220 *power_limit = dtpm->power_limit; in __get_power_limit_uw()
225 int cid, u64 *power_limit) in get_power_limit_uw() argument
231 ret = __get_power_limit_uw(dtpm, cid, power_limit); in get_power_limit_uw()
243 static int __set_power_limit_uw(struct dtpm *dtpm, int cid, u64 power_limit) in __set_power_limit_uw() argument
253 if (power_limit == dtpm->power_max) { in __set_power_limit_uw()
260 dtpm->zone.name, power_limit); in __set_power_limit_uw()
[all …]
Ddtpm_cpu.c73 static u64 set_pd_power_limit(struct dtpm *dtpm, u64 power_limit) in set_pd_power_limit() argument
92 if (power > power_limit) in set_pd_power_limit()
100 power_limit = pd->table[i - 1].power * in set_pd_power_limit()
103 return power_limit; in set_pd_power_limit()
Dintel_rapl_common.c313 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()
/drivers/net/wireless/ath/ath9k/
Deeprom.c406 u16 ath9k_hw_get_scaled_power(struct ath_hw *ah, u16 power_limit, in ath9k_hw_get_scaled_power() argument
426 if (power_limit > reduction) in ath9k_hw_get_scaled_power()
427 power_limit -= reduction; in ath9k_hw_get_scaled_power()
429 power_limit = 0; in ath9k_hw_get_scaled_power()
431 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()
Deeprom.h702 u16 ath9k_hw_get_scaled_power(struct ath_hw *ah, u16 power_limit,
Dhw.c460 regulatory->power_limit = MAX_COMBINED_POWER; in ath9k_hw_init_defaults()
2972 new_pwr = min_t(int, chan_pwr, reg->power_limit); in ath9k_hw_apply_txpower()
2984 reg->power_limit = min_t(u32, limit, MAX_COMBINED_POWER); in ath9k_hw_set_txpowerlimit()
/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()
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dphy.c1639 s8 power_limit = 0, prev_power_limit, ret; in _rtl8812ae_phy_set_txpower_limit() local
1643 &power_limit)) { in _rtl8812ae_phy_set_txpower_limit()
1646 channel, power_limit); in _rtl8812ae_phy_set_txpower_limit()
1649 power_limit = power_limit > MAX_POWER_INDEX ? in _rtl8812ae_phy_set_txpower_limit()
1650 MAX_POWER_INDEX : power_limit; in _rtl8812ae_phy_set_txpower_limit()
1701 if (power_limit < prev_power_limit) in _rtl8812ae_phy_set_txpower_limit()
1704 power_limit; in _rtl8812ae_phy_set_txpower_limit()
1725 if (power_limit < prev_power_limit) in _rtl8812ae_phy_set_txpower_limit()
1727 [rate_section][channel_index][RF90_PATH_A] = power_limit; in _rtl8812ae_phy_set_txpower_limit()
1745 const char *power_limit) in _rtl8812ae_phy_config_bb_txpwr_lmt() argument
[all …]
/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dnavi10_ppt.c1850 uint32_t power_limit, od_percent; in navi10_get_power_limit() local
1852 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in navi10_get_power_limit()
1858 power_limit = in navi10_get_power_limit()
1861 smu->current_power_limit = power_limit; in navi10_get_power_limit()
1867 dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in navi10_get_power_limit()
1869 power_limit *= (100 + od_percent); in navi10_get_power_limit()
1870 power_limit /= 100; in navi10_get_power_limit()
1872 smu->max_power_limit = power_limit; in navi10_get_power_limit()
Darcturus_ppt.c1163 uint32_t power_limit, od_percent; in arcturus_get_power_limit() local
1165 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in arcturus_get_power_limit()
1171 power_limit = in arcturus_get_power_limit()
1174 smu->current_power_limit = power_limit; in arcturus_get_power_limit()
1179 dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in arcturus_get_power_limit()
1181 power_limit *= (100 + od_percent); in arcturus_get_power_limit()
1182 power_limit /= 100; in arcturus_get_power_limit()
1184 smu->max_power_limit = power_limit; in arcturus_get_power_limit()
Dsienna_cichlid_ppt.c1679 uint32_t power_limit, od_percent; in sienna_cichlid_get_power_limit() local
1681 if (smu_v11_0_get_current_power_limit(smu, &power_limit)) { in sienna_cichlid_get_power_limit()
1687 power_limit = in sienna_cichlid_get_power_limit()
1690 smu->current_power_limit = power_limit; in sienna_cichlid_get_power_limit()
1695 dev_dbg(smu->adev->dev, "ODSETTING_POWERPERCENTAGE: %d (default: %d)\n", od_percent, power_limit); in sienna_cichlid_get_power_limit()
1697 power_limit *= (100 + od_percent); in sienna_cichlid_get_power_limit()
1698 power_limit /= 100; in sienna_cichlid_get_power_limit()
1700 smu->max_power_limit = power_limit; in sienna_cichlid_get_power_limit()
Dsmu_v11_0.c894 uint32_t *power_limit) in smu_v11_0_get_current_power_limit() argument
913 power_limit); in smu_v11_0_get_current_power_limit()
/drivers/gpu/drm/amd/pm/inc/
Dsmu_v11_0.h177 uint32_t *power_limit);
Dhwmgr.h806 uint32_t power_limit; member
/drivers/net/wireless/ath/
Dath.h86 int16_t power_limit; member
/drivers/net/wireless/realtek/rtw88/
Dphy.c1749 s8 power_limit = (s8)rtwdev->chip->max_power_index; in rtw_phy_get_tx_power_limit() local
1756 return power_limit; in rtw_phy_get_tx_power_limit()
1793 power_limit = min_t(s8, cur_lmt, power_limit); in rtw_phy_get_tx_power_limit()
1796 return power_limit; in rtw_phy_get_tx_power_limit()
/drivers/net/wireless/ath/ath10k/
Dcore.h363 u32 power_limit; member
384 u32 power_limit; member
Dwmi.c4900 tpc_stats->power_limit = __le32_to_cpu(ev->power_limit); in ath10k_wmi_event_pdev_tpc_config()
4925 __le32_to_cpu(ev->power_limit), in ath10k_wmi_event_pdev_tpc_config()
5156 tpc_stats->power_limit = __le32_to_cpu(ev->power_limit); in ath10k_wmi_event_tpc_final_table()
5181 __le32_to_cpu(ev->power_limit), in ath10k_wmi_event_tpc_final_table()
Dwmi.h4184 __le32 power_limit; member
4213 __le32 power_limit; member
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega10_powertune.c1322 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()
Dsmu7_powertune.c1154 hwmgr->default_power_limit = hwmgr->power_limit = in smu7_enable_power_containment()
1159 if (smu7_set_power_limit(hwmgr, hwmgr->power_limit)) in smu7_enable_power_containment()
/drivers/gpu/drm/amd/pm/powerplay/
Damd_powerplay.c1033 hwmgr->power_limit = limit; in pp_set_power_limit()
1055 *limit = hwmgr->power_limit; in pp_get_power_limit()
/drivers/staging/rtl8723bs/include/
Dwifi.h1132 int16_t power_limit; member
/drivers/gpu/drm/radeon/
Dci_dpm.c1622 u32 power_limit;
1625 power_limit = (u32)(cac_tdp_table->maximum_power_delivery_limit * 256);
1627 power_limit = (u32)(cac_tdp_table->battery_power_limit * 256);
1629 ci_set_power_limit(rdev, power_limit);

12