Home
last modified time | relevance | path

Searched refs:tzp (Results 1 – 4 of 4) 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_of.c199 struct thermal_zone_params *tzp) in thermal_of_parameters_init() argument
205 tzp->no_hwmon = true; in thermal_of_parameters_init()
208 tzp->sustainable_power = prop; in thermal_of_parameters_init()
221 tzp->slope = coef[0]; in thermal_of_parameters_init()
222 tzp->offset = coef[1]; in thermal_of_parameters_init()
391 struct thermal_zone_params tzp = {}; in thermal_of_zone_register() local
421 thermal_of_parameters_init(np, &tzp); in thermal_of_zone_register()
434 data, &of_ops, &tzp, in thermal_of_zone_register()
H A Dthermal_core.c1338 if (tz->tzp) in thermal_zone_init_governor()
1339 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_init_governor()
1412 const struct thermal_zone_params *tzp, in thermal_zone_device_register_with_trips() argument
1460 if (tzp) { in thermal_zone_device_register_with_trips()
1461 tz->tzp = kmemdup(tzp, sizeof(*tzp), GFP_KERNEL); in thermal_zone_device_register_with_trips()
1462 if (!tz->tzp) { in thermal_zone_device_register_with_trips()
1533 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register_with_trips()
1561 kfree(tz->tzp); in thermal_zone_device_register_with_trips()
1572 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument
1575 ops, tzp, 0, 0); in thermal_tripless_zone_device_register()
[all …]