Home
last modified time | relevance | path

Searched full:trips (Results 1 – 25 of 224) sorted by relevance

123456789

/Linux-v5.15/drivers/acpi/
Dthermal.c64 MODULE_PARM_DESC(nocrt, "Set to take no action upon ACPI thermal zone critical trips points.");
169 struct acpi_thermal_trips trips; member
275 tz->trips.critical.temperature = tmp; in acpi_thermal_trips_update()
283 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
289 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
291 tz->trips.critical.flags.valid = 1; in acpi_thermal_trips_update()
294 tz->trips.critical.temperature); in acpi_thermal_trips_update()
296 if (tz->trips.critical.flags.valid == 1) { in acpi_thermal_trips_update()
298 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
305 if (crt_k > tz->trips.critical.temperature) in acpi_thermal_trips_update()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c75 /* Make sure all trips are writable */
83 struct mlxsw_thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member
94 struct mlxsw_thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member
137 tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = 0; in mlxsw_thermal_module_trips_reset()
138 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HIGH].temp = 0; in mlxsw_thermal_module_trips_reset()
139 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = 0; in mlxsw_thermal_module_trips_reset()
179 tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = crit_temp - in mlxsw_thermal_module_trips_update()
182 tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = crit_temp; in mlxsw_thermal_module_trips_update()
183 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HIGH].temp = crit_temp; in mlxsw_thermal_module_trips_update()
184 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = emerg_temp; in mlxsw_thermal_module_trips_update()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/thermal/
Dbrcm,sr-thermal.txt37 trips {
49 trips {
61 trips {
73 trips {
85 trips {
97 trips {
Ddb8500-thermal.txt9 - num-trips : number of total trip points, this is required, set it 0 if none,
19 Usually the num-trips and tripN-*** are separated in board related dts files.
28 num-trips = <3>;
Dthermal-zones.yaml107 trips:
176 crosses one of the temperature thresholds described in the trips
267 trips {
312 trips {
334 trips {
/Linux-v5.15/drivers/thermal/
Dthermal_of.c59 * @trips: an array of trip points (0..ntrips - 1)
74 struct thermal_trip *trips; member
169 return data->trips; in of_thermal_get_trip_points()
278 *type = data->trips[trip].type; in of_thermal_get_trip_type()
291 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
313 data->trips[trip].temperature = temp; in of_thermal_set_trip_temp()
326 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
340 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
352 if (data->trips[i].type == THERMAL_TRIP_CRITICAL) { in of_thermal_get_crit_temp()
353 *temp = data->trips[i].temperature; in of_thermal_get_crit_temp()
[all …]
Duniphier_thermal.c251 const struct thermal_trip *trips; in uniphier_tm_probe() local
300 trips = of_thermal_get_trip_points(tdev->tz_dev); in uniphier_tm_probe()
303 dev_err(dev, "thermal zone has too many trips\n"); in uniphier_tm_probe()
309 if (trips[i].type == THERMAL_TRIP_CRITICAL && in uniphier_tm_probe()
310 trips[i].temperature < crit_temp) in uniphier_tm_probe()
311 crit_temp = trips[i].temperature; in uniphier_tm_probe()
312 uniphier_tm_set_alert(tdev, i, trips[i].temperature); in uniphier_tm_probe()
Dthermal_sysfs.c419 if (tz->trips <= 0) in create_trip_attrs()
422 tz->trip_type_attrs = kcalloc(tz->trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs()
427 tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs()
435 tz->trip_hyst_attrs = kcalloc(tz->trips, in create_trip_attrs()
445 attrs = kcalloc(tz->trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs()
454 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs()
481 attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
499 attrs[indx + tz->trips * 2] = in create_trip_attrs()
502 attrs[tz->trips * 3] = NULL; in create_trip_attrs()
533 /* we need one extra for trips and the NULL to terminate the array */ in thermal_zone_create_device_groups()
[all …]
Dthermal_core.c284 * - Non-critical trips will invoke the governor responsible for that zone;
285 * - Hot trips will produce a notification to userspace;
504 for (count = 0; count < tz->trips; count++) in thermal_zone_device_update()
629 if (trip >= tz->trips || trip < 0) in thermal_zone_bind_cooling_device()
810 for (i = 0; i < tz->trips; i++) { in __bind()
1050 for (i = 0; i < tz->trips; i++) in __unbind()
1155 * @trips: the number of trip points the thermal zone support
1177 thermal_zone_device_register(const char *type, int trips, int mask, in thermal_zone_device_register() argument
1201 if (trips > THERMAL_MAX_TRIPS || trips < 0 || mask >> trips) { in thermal_zone_device_register()
1202 pr_err("Error: Incorrect number of thermal trips\n"); in thermal_zone_device_register()
[all …]
Dgov_fair_share.c28 if (tz->trips == 0 || !tz->ops->get_trip_temp) in get_trip_level()
31 for (count = 0; count < tz->trips; count++) { in get_trip_level()
56 return (long)(percentage * level * max_state) / (100 * tz->trips); in get_target_state()
Dthermal_helpers.c93 for (count = 0; count < tz->trips; count++) { in thermal_zone_get_temp()
141 for (i = 0; i < tz->trips; i++) { in thermal_zone_set_trips()
172 dev_err(&tz->device, "Failed to set trips: %d\n", ret); in thermal_zone_set_trips()
/Linux-v5.15/arch/arm64/boot/dts/ti/
Dk3-am654-industrial-thermal.dtsi10 trips {
24 trips {
38 trips {
/Linux-v5.15/arch/arm64/boot/dts/qcom/
Dsm8350.dtsi1416 trips {
1460 trips {
1504 trips {
1548 trips {
1592 trips {
1636 trips {
1680 trips {
1724 trips {
1768 trips {
1812 trips {
[all …]
Dsc7280.dtsi1869 trips {
1913 trips {
1957 trips {
2001 trips {
2045 trips {
2089 trips {
2133 trips {
2177 trips {
2221 trips {
2265 trips {
[all …]
Dsm8250-mtp.dts33 trips {
47 trips {
61 trips {
75 trips {
89 trips {
103 trips {
117 trips {
Dmsm8998.dtsi510 trips {
531 trips {
552 trips {
573 trips {
594 trips {
615 trips {
636 trips {
657 trips {
678 trips {
693 trips {
[all …]
/Linux-v5.15/arch/arm/boot/dts/
Dexynos5422-odroidhc1.dts33 trips {
88 trips {
132 trips {
176 trips {
220 trips {
Dqcom-ipq8064.dtsi57 trips {
77 trips {
97 trips {
117 trips {
137 trips {
157 trips {
177 trips {
197 trips {
217 trips {
237 trips {
[all …]
Drk3288-veyron-mickey.dts42 /delete-node/ trips;
45 trips {
148 /delete-node/ trips;
151 trips {
Dexynos5422-odroidxu3-common.dtsi56 trips {
145 trips {
218 trips {
291 trips {
364 trips {
/Linux-v5.15/arch/arm64/boot/dts/exynos/
Dexynos5433-tmu.dtsi16 trips {
104 trips {
147 trips {
190 trips {
266 trips {
/Linux-v5.15/include/linux/
Dthermal.h116 * @trips: number of trip points the thermal zone supports
117 * @trips_disabled; bitmap for disabled trips
156 int trips; member
157 unsigned long trips_disabled; /* bitmap for disabled trips */
227 * on all trips.
398 const char *type, int trips, int mask, void *devdata, in thermal_zone_device_register() argument
/Linux-v5.15/arch/arm64/boot/dts/marvell/
Darmada-ap80x.dtsi321 trips {
338 trips {
371 trips {
404 trips {
437 trips {
/Linux-v5.15/drivers/thermal/qcom/
Dqcom-spmi-temp-alarm.c302 const struct thermal_trip *trips; in qpnp_tm_get_critical_trip_temp() local
309 trips = of_thermal_get_trip_points(chip->tz_dev); in qpnp_tm_get_critical_trip_temp()
310 if (!trips) in qpnp_tm_get_critical_trip_temp()
315 trips[i].type == THERMAL_TRIP_CRITICAL) in qpnp_tm_get_critical_trip_temp()
316 return trips[i].temperature; in qpnp_tm_get_critical_trip_temp()
/Linux-v5.15/arch/arm64/boot/dts/broadcom/stingray/
Dstingray.dtsi628 trips {
640 trips {
652 trips {
664 trips {
676 trips {
688 trips {

123456789