Searched refs:tzp (Results 1 – 4 of 4) sorted by relevance
/drivers/thermal/ |
D | power_allocator.c | 158 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 …]
|
D | thermal_core.c | 163 name = pos->tzp->governor_name; in thermal_register_governor() 320 const struct thermal_zone_params *tzp; in bind_cdev() local 326 if (!pos->tzp && !pos->ops->bind) in bind_cdev() 336 tzp = pos->tzp; in bind_cdev() 337 if (!tzp || !tzp->tbp) in bind_cdev() 340 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev() 341 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev() 343 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev() 345 tzp->tbp[i].cdev = cdev; in bind_cdev() 346 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev() [all …]
|
D | of-thermal.c | 889 struct thermal_zone_params *tzp; in of_parse_thermal_zones() local 909 tzp = kzalloc(sizeof(*tzp), GFP_KERNEL); in of_parse_thermal_zones() 910 if (!tzp) { in of_parse_thermal_zones() 916 tzp->no_hwmon = true; in of_parse_thermal_zones() 919 tzp->sustainable_power = prop; in of_parse_thermal_zones() 925 tzp->slope = tz->slope; in of_parse_thermal_zones() 926 tzp->offset = tz->offset; in of_parse_thermal_zones() 930 ops, tzp, in of_parse_thermal_zones() 936 kfree(tzp); in of_parse_thermal_zones() 986 kfree(zone->tzp); in of_thermal_destroy_zones()
|
/drivers/acpi/ |
D | thermal.c | 74 static int tzp; variable 75 module_param(tzp, int, 0444); 76 MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds."); 1042 if (tzp) in acpi_thermal_get_info() 1043 tz->polling_frequency = tzp; in acpi_thermal_get_info() 1216 if (tzp == 0) { in thermal_tzp() 1219 tzp = 300; /* 300 dS = 30 Seconds */ in thermal_tzp()
|