Home
last modified time | relevance | path

Searched refs:trips (Results 1 – 25 of 165) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/acpi/
Dthermal.c172 struct acpi_thermal_trips trips; member
277 tz->trips.critical.temperature = tmp; in acpi_thermal_trips_update()
285 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
291 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
293 tz->trips.critical.flags.valid = 1; in acpi_thermal_trips_update()
296 tz->trips.critical.temperature)); in acpi_thermal_trips_update()
298 if (tz->trips.critical.flags.valid == 1) { in acpi_thermal_trips_update()
300 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
307 if (crt_k > tz->trips.critical.temperature) in acpi_thermal_trips_update()
310 tz->trips.critical.temperature = crt_k; in acpi_thermal_trips_update()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c92 struct mlxsw_thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member
103 struct mlxsw_thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member
146 tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = 0; in mlxsw_thermal_module_trips_reset()
147 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HIGH].temp = 0; in mlxsw_thermal_module_trips_reset()
148 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = 0; in mlxsw_thermal_module_trips_reset()
149 tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp = 0; in mlxsw_thermal_module_trips_reset()
185 tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = crit_temp - in mlxsw_thermal_module_trips_update()
188 tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = crit_temp; in mlxsw_thermal_module_trips_update()
189 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HIGH].temp = crit_temp; in mlxsw_thermal_module_trips_update()
190 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = emerg_temp; in mlxsw_thermal_module_trips_update()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/
Dthermal_of.c74 struct thermal_trip *trips; member
169 return data->trips; in of_thermal_get_trip_points()
281 *type = data->trips[trip].type; in of_thermal_get_trip_type()
294 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
316 data->trips[trip].temperature = temp; in of_thermal_set_trip_temp()
329 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
343 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
355 if (data->trips[i].type == THERMAL_TRIP_CRITICAL) { in of_thermal_get_crit_temp()
356 *temp = data->trips[i].temperature; in of_thermal_get_crit_temp()
678 struct thermal_trip *trips, in thermal_of_populate_bind_params() argument
[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()
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()
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.c458 for (count = 0; count < tz->trips && !passive; count++) { in thermal_zone_passive_is_visible()
499 if (tz->trips <= 0) in create_trip_attrs()
502 tz->trip_type_attrs = kcalloc(tz->trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs()
507 tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs()
515 tz->trip_hyst_attrs = kcalloc(tz->trips, in create_trip_attrs()
525 attrs = kcalloc(tz->trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs()
534 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs()
561 attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
579 attrs[indx + tz->trips * 2] = in create_trip_attrs()
582 attrs[tz->trips * 3] = NULL; in create_trip_attrs()
[all …]
Dthermal_core.c566 for (count = 0; count < tz->trips; count++) in thermal_zone_device_update()
834 if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) in thermal_zone_bind_cooling_device()
1015 for (i = 0; i < tz->trips; i++) { in __bind()
1258 for (i = 0; i < tz->trips; i++) in __unbind()
1385 thermal_zone_device_register(const char *type, int trips, int mask, in thermal_zone_device_register() argument
1409 if (trips > THERMAL_MAX_TRIPS || trips < 0 || mask >> trips) { in thermal_zone_device_register()
1419 if (trips > 0 && (!ops->get_trip_type || !ops->get_trip_temp)) in thermal_zone_device_register()
1441 tz->trips = trips; in thermal_zone_device_register()
1459 for (count = 0; count < trips; count++) { in thermal_zone_device_register()
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()
/kernel/linux/linux-5.10/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>;
Dbrcm,ns-thermal.txt26 trips {
/kernel/linux/linux-5.10/arch/arm64/boot/dts/ti/
Dk3-am654-industrial-thermal.dtsi10 trips {
24 trips {
38 trips {
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dexynos5422-odroidhc1.dts33 trips {
88 trips {
132 trips {
176 trips {
220 trips {
Dexynos5422-odroidxu3-common.dtsi56 trips {
145 trips {
218 trips {
291 trips {
364 trips {
Drk3288-veyron-mickey.dts42 /delete-node/ trips;
45 trips {
148 /delete-node/ trips;
151 trips {
Dexynos5420-trip-points.dtsi10 trips {
/kernel/linux/linux-5.10/arch/arm64/boot/dts/qcom/
Dsm8150.dtsi1226 trips {
1270 trips {
1314 trips {
1358 trips {
1402 trips {
1446 trips {
1490 trips {
1534 trips {
1578 trips {
1622 trips {
[all …]
Dmsm8998.dtsi506 trips {
527 trips {
548 trips {
569 trips {
590 trips {
611 trips {
632 trips {
653 trips {
674 trips {
689 trips {
[all …]
Dsm8250.dtsi2393 trips {
2437 trips {
2481 trips {
2525 trips {
2569 trips {
2613 trips {
2657 trips {
2701 trips {
2745 trips {
2789 trips {
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/exynos/
Dexynos5433-tmu.dtsi16 trips {
104 trips {
147 trips {
190 trips {
266 trips {
/kernel/linux/linux-5.10/drivers/thermal/qcom/
Dqcom-spmi-temp-alarm.c279 const struct thermal_trip *trips; in qpnp_tm_get_critical_trip_temp() local
286 trips = of_thermal_get_trip_points(chip->tz_dev); in qpnp_tm_get_critical_trip_temp()
287 if (!trips) in qpnp_tm_get_critical_trip_temp()
292 trips[i].type == THERMAL_TRIP_CRITICAL) in qpnp_tm_get_critical_trip_temp()
293 return trips[i].temperature; in qpnp_tm_get_critical_trip_temp()
/kernel/linux/linux-5.10/arch/arm64/boot/dts/marvell/
Darmada-ap80x.dtsi318 trips {
335 trips {
368 trips {
401 trips {
434 trips {
/kernel/linux/linux-5.10/arch/arm64/boot/dts/nvidia/
Dtegra194-p2972-0000.dts272 trips {
326 trips {
340 trips {
Dtegra194-p3509-0000+p3668-0000.dts268 trips {
322 trips {
336 trips {
/kernel/linux/linux-5.10/arch/arm64/boot/dts/mediatek/
Dmt8173-elm-hana-rev7.dts15 trips {

1234567