Searched refs:tzp (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/drivers/thermal/ |
H A D | gov_power_allocator.c | 149 tz->tzp->k_po = int_to_frac(sustainable_power) / in estimate_pid_constants() 152 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / in estimate_pid_constants() 155 k_i = tz->tzp->k_pu / 10; in estimate_pid_constants() 156 tz->tzp->k_i = k_i > 0 ? k_i : 1; in estimate_pid_constants() 181 if (!tz->tzp->sustainable_power) in get_sustainable_power() 184 sustainable_power = tz->tzp->sustainable_power; in get_sustainable_power() 192 tz->tzp->sustainable_power = sustainable_power; in get_sustainable_power() 234 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err); in pid_controller() 242 i = mul_frac(tz->tzp->k_i, params->err_integral); in pid_controller() 244 if (err < int_to_frac(tz->tzp->integral_cutoff)) { in pid_controller() [all …]
|
H A D | thermal_of.c | 245 struct thermal_zone_params *tzp) in thermal_of_parameters_init() argument 251 tzp->no_hwmon = true; in thermal_of_parameters_init() 254 tzp->sustainable_power = prop; in thermal_of_parameters_init() 267 tzp->slope = coef[0]; in thermal_of_parameters_init() 268 tzp->offset = coef[1]; in thermal_of_parameters_init() 477 struct thermal_zone_params tzp = {}; in thermal_of_zone_register() local 512 thermal_of_parameters_init(np, &tzp); in thermal_of_zone_register() 520 mask, data, of_ops, &tzp, in thermal_of_zone_register()
|
H A D | thermal_helpers.c | 211 if (tz && tz->tzp) in thermal_zone_get_slope() 212 return tz->tzp->slope; in thermal_zone_get_slope() 226 if (tz && tz->tzp) in thermal_zone_get_offset() 227 return tz->tzp->offset; in thermal_zone_get_offset()
|
H A D | thermal_core.c | 150 name = pos->tzp->governor_name; in thermal_register_governor() 1238 const struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register_with_trips() argument 1291 if (tzp) { in thermal_zone_device_register_with_trips() 1292 tz->tzp = kmemdup(tzp, sizeof(*tzp), GFP_KERNEL); in thermal_zone_device_register_with_trips() 1293 if (!tz->tzp) { in thermal_zone_device_register_with_trips() 1355 if (tz->tzp) in thermal_zone_device_register_with_trips() 1356 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register_with_trips() 1368 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register_with_trips() 1400 kfree(tz->tzp); in thermal_zone_device_register_with_trips() 1411 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument [all …]
|
H A D | thermal_sysfs.c | 306 if (tz->tzp) in sustainable_power_show() 307 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show() 319 if (!tz->tzp) in sustainable_power_store() 325 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store() 337 if (tz->tzp) \ 338 return sprintf(buf, "%d\n", tz->tzp->name); \ 350 if (!tz->tzp) \ 356 tz->tzp->name = value; \
|
/openbmc/linux/include/linux/ |
H A D | thermal.h | 180 struct thermal_zone_params *tzp; member 313 const struct thermal_zone_params *tzp, 320 const struct thermal_zone_params *tzp); 369 const struct thermal_zone_params *tzp, in thermal_zone_device_register_with_trips() argument 377 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument
|
/openbmc/linux/drivers/acpi/ |
H A D | thermal.c | 81 static int tzp; variable 82 module_param(tzp, int, 0444); 83 MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds."); 871 if (tzp) in acpi_thermal_get_info() 872 tz->polling_frequency = tzp; in acpi_thermal_get_info() 1064 if (tzp == 0) { in thermal_tzp() 1067 tzp = 300; /* 300 dS = 30 Seconds */ in thermal_tzp()
|
/openbmc/linux/drivers/power/supply/ |
H A D | power_supply_core.c | 1307 struct thermal_zone_params tzp = { in psy_register_thermal() local 1311 psy, &psy_tzd_ops, &tzp); in psy_register_thermal()
|
/openbmc/linux/Documentation/driver-api/thermal/ |
H A D | sysfs-api.rst | 45 const struct thermal_zone_params *tzp, 91 tzp:
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | kernel-parameters.txt | 6412 thermal.tzp= [HW,ACPI]
|