Home
last modified time | relevance | path

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

/drivers/thermal/
Dthermal_core.c156 name = pos->tzp->governor_name; in thermal_register_governor()
1042 const struct thermal_zone_params *tzp; in bind_cdev() local
1048 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
1058 tzp = pos->tzp; in bind_cdev()
1059 if (!tzp || !tzp->tbp) in bind_cdev()
1062 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
1063 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
1065 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
1067 tzp->tbp[i].cdev = cdev; in bind_cdev()
1068 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
[all …]
Dgov_power_allocator.c151 if (!tz->tzp->k_po || force) in estimate_pid_constants()
152 tz->tzp->k_po = int_to_frac(sustainable_power) / in estimate_pid_constants()
155 if (!tz->tzp->k_pu || force) in estimate_pid_constants()
156 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / in estimate_pid_constants()
159 if (!tz->tzp->k_i || force) in estimate_pid_constants()
160 tz->tzp->k_i = int_to_frac(10) / 1000; in estimate_pid_constants()
196 if (tz->tzp->sustainable_power) { in pid_controller()
197 sustainable_power = tz->tzp->sustainable_power; in pid_controller()
209 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err); in pid_controller()
217 i = mul_frac(tz->tzp->k_i, params->err_integral); in pid_controller()
[all …]
Dthermal_of.c1026 kfree(zone->tzp); in of_thermal_destroy_zones()
1059 struct thermal_zone_params *tzp; in of_parse_thermal_zones() local
1075 tzp = kzalloc(sizeof(*tzp), GFP_KERNEL); in of_parse_thermal_zones()
1076 if (!tzp) { in of_parse_thermal_zones()
1082 tzp->no_hwmon = true; in of_parse_thermal_zones()
1085 tzp->sustainable_power = prop; in of_parse_thermal_zones()
1091 tzp->slope = tz->slope; in of_parse_thermal_zones()
1092 tzp->offset = tz->offset; in of_parse_thermal_zones()
1096 ops, tzp, in of_parse_thermal_zones()
1102 kfree(tzp); in of_parse_thermal_zones()
Dthermal_helpers.c228 if (tz && tz->tzp) in thermal_zone_get_slope()
229 return tz->tzp->slope; in thermal_zone_get_slope()
243 if (tz && tz->tzp) in thermal_zone_get_offset()
244 return tz->tzp->offset; in thermal_zone_get_offset()
Dzx2967_thermal.c106 *temp = DIV_ROUND_CLOSEST(((s32)val + priv->tzd->tzp->offset) * 1000, in zx2967_thermal_get_temp()
107 priv->tzd->tzp->slope); in zx2967_thermal_get_temp()
171 if (priv->tzd->tzp->slope == 0) { in zx2967_thermal_probe()
Dthermal_sysfs.c329 if (tz->tzp) in sustainable_power_show()
330 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show()
342 if (!tz->tzp) in sustainable_power_store()
348 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store()
360 if (tz->tzp) \
361 return sprintf(buf, "%d\n", tz->tzp->name); \
373 if (!tz->tzp) \
379 tz->tzp->name = value; \
Drcar_gen3_thermal.c448 tsc->zone->tzp->no_hwmon = false; in rcar_gen3_thermal_probe()
Drcar_thermal.c578 priv->zone->tzp->no_hwmon = false; in rcar_thermal_probe()
Drockchip_thermal.c1338 thermal->sensors[i].tzd->tzp->no_hwmon = false; in rockchip_thermal_probe()
/drivers/acpi/
Dthermal.c61 static int tzp; variable
62 module_param(tzp, int, 0444);
63 MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds.");
992 if (tzp) in acpi_thermal_get_info()
993 tz->polling_frequency = tzp; in acpi_thermal_get_info()
1162 if (tzp == 0) { in thermal_tzp()
1165 tzp = 300; /* 300 dS = 30 Seconds */ in thermal_tzp()
/drivers/thermal/broadcom/
Dbcm2711_thermal.c101 thermal->tzp->no_hwmon = false; in bcm2711_thermal_probe()
Dbcm2835_thermal.c272 tz->tzp->no_hwmon = false; in bcm2835_thermal_probe()
/drivers/thermal/st/
Dstm_thermal.c564 sensor->th_dev->tzp->no_hwmon = false; in stm_thermal_probe()