Home
last modified time | relevance | path

Searched refs:tzp (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/thermal/
H A Dgov_power_allocator.c171 tz->tzp->k_po = int_to_frac(sustainable_power) / in estimate_pid_constants()
174 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / in estimate_pid_constants()
177 k_i = tz->tzp->k_pu / 10; in estimate_pid_constants()
178 tz->tzp->k_i = k_i > 0 ? k_i : 1; in estimate_pid_constants()
203 if (!tz->tzp->sustainable_power) in get_sustainable_power()
206 sustainable_power = tz->tzp->sustainable_power; in get_sustainable_power()
214 tz->tzp->sustainable_power = sustainable_power; in get_sustainable_power()
256 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err); in pid_controller()
264 i = mul_frac(tz->tzp->k_i, params->err_integral); in pid_controller()
266 if (err < int_to_frac(tz->tzp->integral_cutoff)) { in pid_controller()
[all …]
H A Dthermal_helpers.c221 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 Dthermal_core.c154 name = pos->tzp->governor_name; in thermal_register_governor()
1439 if (tz->tzp) in thermal_zone_init_governor()
1440 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_init_governor()
1502 const struct thermal_zone_params *tzp, in thermal_zone_device_register_with_trips() argument
1550 if (tzp) { in thermal_zone_device_register_with_trips()
1551 tz->tzp = kmemdup(tzp, sizeof(*tzp), GFP_KERNEL); in thermal_zone_device_register_with_trips()
1552 if (!tz->tzp) { in thermal_zone_device_register_with_trips()
1622 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register_with_trips()
1650 kfree(tz->tzp); in thermal_zone_device_register_with_trips()
1661 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument
[all …]
/linux/drivers/power/supply/
H A Dpower_supply_core.c1531 struct thermal_zone_params tzp = { in psy_register_thermal() local
1535 psy, &psy_tzd_ops, &tzp); in psy_register_thermal()
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt7566 thermal.tzp= [HW,ACPI]