Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/thermal/
Dgov_power_allocator.c149 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 …]
Dthermal_of.c243 struct thermal_zone_params *tzp) in thermal_of_parameters_init() argument
249 tzp->no_hwmon = true; in thermal_of_parameters_init()
252 tzp->sustainable_power = prop; in thermal_of_parameters_init()
265 tzp->slope = coef[0]; in thermal_of_parameters_init()
266 tzp->offset = coef[1]; in thermal_of_parameters_init()
475 struct thermal_zone_params tzp = {}; in thermal_of_zone_register() local
507 thermal_of_parameters_init(np, &tzp); in thermal_of_zone_register()
515 mask, data, of_ops, &tzp, in thermal_of_zone_register()
Dthermal_helpers.c211 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()
Dthermal_core.c150 name = pos->tzp->governor_name; in thermal_register_governor()
1233 const struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register_with_trips() argument
1286 if (tzp) { in thermal_zone_device_register_with_trips()
1287 tz->tzp = kmemdup(tzp, sizeof(*tzp), GFP_KERNEL); in thermal_zone_device_register_with_trips()
1288 if (!tz->tzp) { in thermal_zone_device_register_with_trips()
1347 if (tz->tzp) in thermal_zone_device_register_with_trips()
1348 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register_with_trips()
1360 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register_with_trips()
1391 kfree(tz->tzp); in thermal_zone_device_register_with_trips()
1402 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument
[all …]
Dthermal_sysfs.c306 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; \
/linux-6.6.21/include/linux/
Dthermal.h178 struct thermal_zone_params *tzp; member
311 const struct thermal_zone_params *tzp,
318 const struct thermal_zone_params *tzp);
367 const struct thermal_zone_params *tzp, in thermal_zone_device_register_with_trips() argument
375 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument
/linux-6.6.21/drivers/acpi/
Dthermal.c81 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()
/linux-6.6.21/drivers/power/supply/
Dpower_supply_core.c1309 struct thermal_zone_params tzp = { in psy_register_thermal() local
1313 psy, &psy_tzd_ops, &tzp); in psy_register_thermal()
/linux-6.6.21/Documentation/driver-api/thermal/
Dsysfs-api.rst45 const struct thermal_zone_params *tzp,
91 tzp:
/linux-6.6.21/Documentation/admin-guide/
Dkernel-parameters.txt6370 thermal.tzp= [HW,ACPI]