Home
last modified time | relevance | path

Searched refs:tzp (Results 1 - 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/drivers/thermal/
H A Dthermal_core.c148 * only thermal zones with specified tz->tzp->governor_name in thermal_register_governor()
154 name = pos->tzp->governor_name; in thermal_register_governor()
1039 const struct thermal_zone_params *tzp; in bind_cdev() local
1045 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
1055 tzp = pos->tzp; in bind_cdev()
1056 if (!tzp || !tzp->tbp) in bind_cdev()
1059 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
1060 if (tzp in bind_cdev()
1275 const struct thermal_zone_params *tzp; thermal_cooling_device_unregister() local
1326 const struct thermal_zone_params *tzp = tz->tzp; bind_tz() local
1387 thermal_zone_device_register(const char *type, int trips, int mask, void *devdata, struct thermal_zone_device_ops *ops, struct thermal_zone_params *tzp, int passive_delay, int polling_delay) thermal_zone_device_register() argument
1531 const struct thermal_zone_params *tzp; thermal_zone_device_unregister() local
[all...]
H A Dgov_power_allocator.c54 * @allocated_tzp: whether we have allocated tzp for this thermal zone and
151 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 in pid_controller()
[all...]
H A 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()
[all...]
H A 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()
H A 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()
H A Dthermal_sysfs.c328 if (tz->tzp) in sustainable_power_show()
329 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show()
341 if (!tz->tzp) in sustainable_power_store()
347 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store()
359 if (tz->tzp) \
360 return sprintf(buf, "%d\n", tz->tzp->name); \
372 if (!tz->tzp) \
378 tz->tzp->name = value; \
395 * All the attributes created for tzp (create_s32_tzp_attr) also are always
H A Drcar_thermal.c578 priv->zone->tzp->no_hwmon = false; in rcar_thermal_probe()
H A Drcar_gen3_thermal.c448 tsc->zone->tzp->no_hwmon = false; in rcar_gen3_thermal_probe()
H A Drockchip_thermal.c1338 thermal->sensors[i].tzd->tzp->no_hwmon = false; in rockchip_thermal_probe()
/kernel/linux/linux-6.6/drivers/thermal/
H A Dgov_power_allocator.c53 * @allocated_tzp: whether we have allocated tzp for this thermal zone and
149 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 in pid_controller()
[all...]
H A Dthermal_helpers.c211 if (tz && tz->tzp) in thermal_zone_get_slope()
212 return tz->tzp->slope; in thermal_zone_get_slope()
226 if (tz && tz->tzp) in thermal_zone_get_offset()
227 return tz->tzp->offset; in thermal_zone_get_offset()
H A Dthermal_of.c243 struct thermal_zone_params *tzp) in thermal_of_parameters_init()
249 tzp->no_hwmon = true; in thermal_of_parameters_init()
252 tzp->sustainable_power = prop; in thermal_of_parameters_init()
265 tzp->slope = coef[0]; in thermal_of_parameters_init()
266 tzp->offset = coef[1]; in thermal_of_parameters_init()
475 struct thermal_zone_params tzp = {}; in thermal_of_zone_register() local
507 thermal_of_parameters_init(np, &tzp); in thermal_of_zone_register()
515 mask, data, of_ops, &tzp, in thermal_of_zone_register()
242 thermal_of_parameters_init(struct device_node *np, struct thermal_zone_params *tzp) thermal_of_parameters_init() argument
H A Dthermal_core.c144 * only thermal zones with specified tz->tzp->governor_name in thermal_register_governor()
150 name = pos->tzp->governor_name; in thermal_register_governor()
1213 * @tzp: thermal zone platform parameters
1233 const struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register_with_trips()
1286 if (tzp) { in thermal_zone_device_register_with_trips()
1287 tz->tzp = kmemdup(tzp, sizeof(*tzp), GFP_KERNEL); in thermal_zone_device_register_with_trips()
1288 if (!tz->tzp) { in thermal_zone_device_register_with_trips()
1347 if (tz->tzp) in thermal_zone_device_register_with_trips()
1231 thermal_zone_device_register_with_trips(const char *type, struct thermal_trip *trips, int num_trips, int mask, void *devdata, struct thermal_zone_device_ops *ops, const struct thermal_zone_params *tzp, int passive_delay, int polling_delay) thermal_zone_device_register_with_trips() argument
1398 thermal_tripless_zone_device_register( const char *type, void *devdata, struct thermal_zone_device_ops *ops, const struct thermal_zone_params *tzp) thermal_tripless_zone_device_register() argument
[all...]
H A Dthermal_sysfs.c306 if (tz->tzp) in sustainable_power_show()
307 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show()
319 if (!tz->tzp) in sustainable_power_store()
325 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store()
337 if (tz->tzp) \
338 return sprintf(buf, "%d\n", tz->tzp->name); \
350 if (!tz->tzp) \
356 tz->tzp->name = value; \
373 * All the attributes created for tzp (create_s32_tzp_attr) also are always
/kernel/linux/linux-6.6/include/linux/
H A Dthermal.h143 * @tzp: thermal zone parameters
178 struct thermal_zone_params *tzp; member
311 const struct thermal_zone_params *tzp,
318 const struct thermal_zone_params *tzp);
367 const struct thermal_zone_params *tzp, in thermal_zone_device_register_with_trips()
375 const struct thermal_zone_params *tzp) in thermal_tripless_zone_device_register()
361 thermal_zone_device_register_with_trips( const char *type, struct thermal_trip *trips, int num_trips, int mask, void *devdata, struct thermal_zone_device_ops *ops, const struct thermal_zone_params *tzp, int passive_delay, int polling_delay) thermal_zone_device_register_with_trips() argument
371 thermal_tripless_zone_device_register( const char *type, void *devdata, struct thermal_zone_device_ops *ops, const struct thermal_zone_params *tzp) thermal_tripless_zone_device_register() argument
/kernel/linux/linux-6.6/drivers/acpi/
H A Dthermal.c81 static int tzp; variable
82 module_param(tzp, int, 0444);
83 MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds.");
871 if (tzp) in acpi_thermal_get_info()
872 tz->polling_frequency = tzp; in acpi_thermal_get_info()
1064 if (tzp == 0) { in thermal_tzp()
1067 tzp = 300; /* 300 dS = 30 Seconds */ in thermal_tzp()
/kernel/linux/linux-5.10/include/linux/
H A Dthermal.h139 * @tzp: thermal zone parameters
173 struct thermal_zone_params *tzp; member
406 struct thermal_zone_params *tzp, in thermal_zone_device_register()
403 thermal_zone_device_register( const char *type, int trips, int mask, void *devdata, struct thermal_zone_device_ops *ops, struct thermal_zone_params *tzp, int passive_delay, int polling_delay) thermal_zone_device_register() argument
/kernel/linux/linux-5.10/drivers/acpi/
H A 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()
/kernel/linux/linux-5.10/drivers/thermal/broadcom/
H A Dbcm2711_thermal.c101 thermal->tzp->no_hwmon = false; in bcm2711_thermal_probe()
H A Dbcm2835_thermal.c272 tz->tzp->no_hwmon = false; in bcm2835_thermal_probe()
/kernel/linux/linux-5.10/drivers/thermal/st/
H A Dstm_thermal.c564 sensor->th_dev->tzp->no_hwmon = false; in stm_thermal_probe()
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dpower_supply_core.c1309 struct thermal_zone_params tzp = { in psy_register_thermal() local
1313 psy, &psy_tzd_ops, &tzp); in psy_register_thermal()

Completed in 23 milliseconds