Home
last modified time | relevance | path

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

/linux-6.15/drivers/thermal/
H A Dgov_power_allocator.c177 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()
256 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err); in pid_controller()
267 s64 i_next = i + mul_frac(tz->tzp->k_i, err); in pid_controller()
722 if (!tz->tzp) { in power_allocator_bind()
723 tz->tzp = kzalloc(sizeof(*tz->tzp), GFP_KERNEL); in power_allocator_bind()
724 if (!tz->tzp) { in power_allocator_bind()
732 if (!tz->tzp->sustainable_power) in power_allocator_bind()
764 kfree(tz->tzp); in power_allocator_unbind()
[all …]
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()
373 struct thermal_zone_params tzp = {}; in thermal_of_zone_register() local
403 thermal_of_parameters_init(np, &tzp); in thermal_of_zone_register()
416 data, &of_ops, &tzp, in thermal_of_zone_register()
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.c152 name = pos->tzp->governor_name; in thermal_register_governor()
1438 if (tz->tzp) in thermal_zone_init_governor()
1501 const struct thermal_zone_params *tzp, in thermal_zone_device_register_with_trips() argument
1545 if (tzp) { in thermal_zone_device_register_with_trips()
1546 tz->tzp = kmemdup(tzp, sizeof(*tzp), GFP_KERNEL); in thermal_zone_device_register_with_trips()
1547 if (!tz->tzp) { in thermal_zone_device_register_with_trips()
1615 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register_with_trips()
1642 kfree(tz->tzp); in thermal_zone_device_register_with_trips()
1653 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument
1656 ops, tzp, 0, 0); in thermal_tripless_zone_device_register()
[all …]
H A Dthermal_sysfs.c259 if (tz->tzp) in sustainable_power_show()
260 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show()
272 if (!tz->tzp) in sustainable_power_store()
278 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store()
290 if (tz->tzp) \
291 return sprintf(buf, "%d\n", tz->tzp->name); \
303 if (!tz->tzp) \
309 tz->tzp->name = value; \
H A Dthermal_core.h139 struct thermal_zone_params *tzp; member
/linux-6.15/include/linux/
H A Dthermal.h233 const struct thermal_zone_params *tzp,
241 const struct thermal_zone_params *tzp);
282 const struct thermal_zone_params *tzp, in thermal_zone_device_register_with_trips() argument
290 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register() argument
/linux-6.15/drivers/acpi/
H A Dthermal.c74 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-6.15/Documentation/driver-api/thermal/
H A Dsysfs-api.rst44 const struct thermal_zone_params *tzp,
85 tzp:
/linux-6.15/drivers/power/supply/
H A Dpower_supply_core.c1467 struct thermal_zone_params tzp = { in psy_register_thermal() local
1471 psy, &psy_tzd_ops, &tzp); in psy_register_thermal()
/linux-6.15/Documentation/admin-guide/
H A Dkernel-parameters.txt7088 thermal.tzp= [HW,ACPI]