Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/thermal/
Dthermal_core.c152 name = pos->tzp->governor_name; in thermal_register_governor()
807 const struct thermal_zone_params *tzp; in bind_cdev() local
813 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
823 tzp = pos->tzp; in bind_cdev()
824 if (!tzp || !tzp->tbp) in bind_cdev()
827 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
828 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
830 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
832 tzp->tbp[i].cdev = cdev; in bind_cdev()
833 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
[all …]
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.c354 struct thermal_zone_params *tzp; in thermal_of_parameters_init() local
359 tzp = kzalloc(sizeof(*tzp), GFP_KERNEL); in thermal_of_parameters_init()
360 if (!tzp) in thermal_of_parameters_init()
363 tzp->no_hwmon = true; in thermal_of_parameters_init()
366 tzp->sustainable_power = prop; in thermal_of_parameters_init()
379 tzp->slope = coef[0]; in thermal_of_parameters_init()
380 tzp->offset = coef[1]; in thermal_of_parameters_init()
382 return tzp; in thermal_of_parameters_init()
556 struct thermal_zone_params *tzp = tz->tzp; in thermal_of_zone_unregister() local
562 kfree(tzp); in thermal_of_zone_unregister()
[all …]
Dthermal_helpers.c251 if (tz && tz->tzp) in thermal_zone_get_slope()
252 return tz->tzp->slope; in thermal_zone_get_slope()
266 if (tz && tz->tzp) in thermal_zone_get_offset()
267 return tz->tzp->offset; in thermal_zone_get_offset()
Dthermal_sysfs.c294 if (tz->tzp) in sustainable_power_show()
295 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show()
307 if (!tz->tzp) in sustainable_power_store()
313 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store()
325 if (tz->tzp) \
326 return sprintf(buf, "%d\n", tz->tzp->name); \
338 if (!tz->tzp) \
344 tz->tzp->name = value; \
Drzg2l_thermal.c219 priv->zone->tzp->no_hwmon = false; in rzg2l_thermal_probe()
Drcar_gen3_thermal.c523 tsc->zone->tzp->no_hwmon = false; in rcar_gen3_thermal_probe()
Drcar_thermal.c558 priv->zone->tzp->no_hwmon = false; in rcar_thermal_probe()
Drockchip_thermal.c1459 thermal->sensors[i].tzd->tzp->no_hwmon = false; in rockchip_thermal_probe()
/linux-6.1.9/drivers/acpi/
Dthermal.c58 static int tzp; variable
59 module_param(tzp, int, 0444);
60 MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds.");
968 if (tzp) in acpi_thermal_get_info()
969 tz->polling_frequency = tzp; in acpi_thermal_get_info()
1135 if (tzp == 0) { in thermal_tzp()
1138 tzp = 300; /* 300 dS = 30 Seconds */ in thermal_tzp()
/linux-6.1.9/include/linux/
Dthermal.h179 struct thermal_zone_params *tzp; member
381 struct thermal_zone_params *tzp, in thermal_zone_device_register() argument
/linux-6.1.9/drivers/thermal/broadcom/
Dbcm2711_thermal.c101 thermal->tzp->no_hwmon = false; in bcm2711_thermal_probe()
Dbcm2835_thermal.c271 tz->tzp->no_hwmon = false; in bcm2835_thermal_probe()
/linux-6.1.9/drivers/thermal/st/
Dstm_thermal.c564 sensor->th_dev->tzp->no_hwmon = false; in stm_thermal_probe()
/linux-6.1.9/Documentation/driver-api/thermal/
Dsysfs-api.rst45 const struct thermal_zone_params *tzp,
91 tzp:
/linux-6.1.9/Documentation/admin-guide/
Dkernel-parameters.txt6146 thermal.tzp= [HW,ACPI]