Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/thermal/
Dthermal_core.c160 name = pos->tzp->governor_name; in thermal_register_governor()
897 const struct thermal_zone_params *tzp; in bind_cdev() local
903 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
913 tzp = pos->tzp; in bind_cdev()
914 if (!tzp || !tzp->tbp) in bind_cdev()
917 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
918 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
920 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
922 tzp->tbp[i].cdev = cdev; in bind_cdev()
923 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
[all …]
Dpower_allocator.c158 if (!tz->tzp->k_po || force) in estimate_pid_constants()
159 tz->tzp->k_po = int_to_frac(sustainable_power) / in estimate_pid_constants()
162 if (!tz->tzp->k_pu || force) in estimate_pid_constants()
163 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / in estimate_pid_constants()
166 if (!tz->tzp->k_i || force) in estimate_pid_constants()
167 tz->tzp->k_i = int_to_frac(10) / 1000; in estimate_pid_constants()
203 if (tz->tzp->sustainable_power) { in pid_controller()
204 sustainable_power = tz->tzp->sustainable_power; in pid_controller()
216 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err); in pid_controller()
224 i = mul_frac(tz->tzp->k_i, params->err_integral); in pid_controller()
[all …]
Dthermal_helpers.c207 if (tz && tz->tzp) in thermal_zone_get_slope()
208 return tz->tzp->slope; in thermal_zone_get_slope()
222 if (tz && tz->tzp) in thermal_zone_get_offset()
223 return tz->tzp->offset; in thermal_zone_get_offset()
Dof-thermal.c1027 struct thermal_zone_params *tzp; in of_parse_thermal_zones() local
1043 tzp = kzalloc(sizeof(*tzp), GFP_KERNEL); in of_parse_thermal_zones()
1044 if (!tzp) { in of_parse_thermal_zones()
1050 tzp->no_hwmon = true; in of_parse_thermal_zones()
1053 tzp->sustainable_power = prop; in of_parse_thermal_zones()
1059 tzp->slope = tz->slope; in of_parse_thermal_zones()
1060 tzp->offset = tz->offset; in of_parse_thermal_zones()
1064 ops, tzp, in of_parse_thermal_zones()
1070 kfree(tzp); in of_parse_thermal_zones()
1116 kfree(zone->tzp); in of_thermal_destroy_zones()
Dzx2967_thermal.c105 *temp = DIV_ROUND_CLOSEST(((s32)val + priv->tzd->tzp->offset) * 1000, in zx2967_thermal_get_temp()
106 priv->tzd->tzp->slope); in zx2967_thermal_get_temp()
170 if (priv->tzd->tzp->slope == 0) { in zx2967_thermal_probe()
Dthermal_sysfs.c327 if (tz->tzp) in sustainable_power_show()
328 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show()
340 if (!tz->tzp) in sustainable_power_store()
346 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store()
358 if (tz->tzp) \
359 return sprintf(buf, "%d\n", tz->tzp->name); \
371 if (!tz->tzp) \
377 tz->tzp->name = value; \
Drcar_gen3_thermal.c441 tsc->zone->tzp->no_hwmon = false; in rcar_gen3_thermal_probe()
Drcar_thermal.c596 priv->zone->tzp->no_hwmon = false; in rcar_thermal_probe()
/Linux-v5.4/drivers/acpi/
Dthermal.c60 static int tzp; variable
61 module_param(tzp, int, 0444);
62 MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds.");
1024 if (tzp) in acpi_thermal_get_info()
1025 tz->polling_frequency = tzp; in acpi_thermal_get_info()
1176 if (tzp == 0) { in thermal_tzp()
1179 tzp = 300; /* 300 dS = 30 Seconds */ in thermal_tzp()
/Linux-v5.4/include/linux/
Dthermal.h213 struct thermal_zone_params *tzp; member
482 struct thermal_zone_params *tzp, in thermal_zone_device_register() argument
/Linux-v5.4/drivers/thermal/broadcom/
Dbcm2835_thermal.c272 tz->tzp->no_hwmon = false; in bcm2835_thermal_probe()
/Linux-v5.4/drivers/thermal/st/
Dstm_thermal.c716 sensor->th_dev->tzp->no_hwmon = false; in stm_thermal_probe()
/Linux-v5.4/Documentation/driver-api/thermal/
Dsysfs-api.rst45 const struct thermal_zone_params *tzp,
91 tzp:
/Linux-v5.4/Documentation/admin-guide/
Dkernel-parameters.txt4761 thermal.tzp= [HW,ACPI]