Searched refs:tzp (Results 1 – 5 of 5) sorted by relevance
171 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 …]
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()
154 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() argument1550 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 …]
1531 struct thermal_zone_params tzp = { in psy_register_thermal() local1535 psy, &psy_tzd_ops, &tzp); in psy_register_thermal()
7566 thermal.tzp= [HW,ACPI]