Searched refs:tzp (Results 1 – 9 of 9) sorted by relevance
/linux/drivers/thermal/ |
H A D | gov_power_allocator.c | 172 tz->tzp->k_po = int_to_frac(sustainable_power) / in estimate_pid_constants() 175 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / in estimate_pid_constants() 178 k_i = tz->tzp->k_pu / 10; in estimate_pid_constants() 179 tz->tzp->k_i = k_i > 0 ? k_i : 1; in estimate_pid_constants() 204 if (!tz->tzp->sustainable_power) in get_sustainable_power() 207 sustainable_power = tz->tzp->sustainable_power; in get_sustainable_power() 215 tz->tzp->sustainable_power = sustainable_power; in get_sustainable_power() 257 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err); in pid_controller() 265 i = mul_frac(tz->tzp->k_i, params->err_integral); in pid_controller() 267 if (err < int_to_frac(tz->tzp->integral_cutoff)) { in pid_controller() [all …]
|
H A D | thermal_of.c | 221 struct thermal_zone_params *tzp) in thermal_of_parameters_init() argument 227 tzp->no_hwmon = true; in thermal_of_parameters_init() 230 tzp->sustainable_power = prop; in thermal_of_parameters_init() 243 tzp->slope = coef[0]; in thermal_of_parameters_init() 244 tzp->offset = coef[1]; in thermal_of_parameters_init() 388 struct thermal_zone_params tzp = {}; in thermal_of_zone_register() local 415 thermal_of_parameters_init(np, &tzp); in thermal_of_zone_register() 425 data, &of_ops, &tzp, in thermal_of_zone_register()
|
H A D | thermal_helpers.c | 221 if (tz && tz->tzp) in thermal_zone_get_slope() 222 return tz->tzp->slope; in thermal_zone_get_slope() 236 if (tz && tz->tzp) in thermal_zone_get_offset() 237 return tz->tzp->offset; in thermal_zone_get_offset()
|
H A D | thermal_core.c | 151 name = pos->tzp->governor_name; in thermal_register_governor() 1363 const struct thermal_zone_params *tzp, in thermal_zone_device_register_with_trips() argument 1409 if (tzp) { in thermal_zone_device_register_with_trips() 1410 tz->tzp = kmemdup(tzp, sizeof(*tzp), GFP_KERNEL); in thermal_zone_device_register_with_trips() 1411 if (!tz->tzp) { in thermal_zone_device_register_with_trips() 1474 if (tz->tzp) in thermal_zone_device_register_with_trips() 1475 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register_with_trips() 1487 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register_with_trips() 1523 kfree(tz->tzp); in thermal_zone_device_register_with_trips() 1534 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument [all …]
|
H A D | thermal_sysfs.c | 268 if (tz->tzp) in sustainable_power_show() 269 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show() 281 if (!tz->tzp) in sustainable_power_store() 287 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store() 299 if (tz->tzp) \ 300 return sprintf(buf, "%d\n", tz->tzp->name); \ 312 if (!tz->tzp) \ 318 tz->tzp->name = value; \
|
H A D | thermal_core.h | 128 struct thermal_zone_params *tzp; member
|
/linux/drivers/acpi/ |
H A D | thermal.c | 74 static int tzp; variable 75 module_param(tzp, int, 0444); 76 MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds."); 822 if (tzp) in acpi_thermal_add() 823 tz->polling_frequency = tzp; in acpi_thermal_add() 993 if (tzp == 0) { in thermal_tzp() 996 tzp = 300; /* 300 dS = 30 Seconds */ in thermal_tzp()
|
/linux/Documentation/driver-api/thermal/ |
H A D | sysfs-api.rst | 44 const struct thermal_zone_params *tzp, 85 tzp:
|
/linux/Documentation/admin-guide/ |
H A D | kernel-parameters.txt | 6685 thermal.tzp= [HW,ACPI]
|