| /kernel/linux/linux-5.10/drivers/acpi/ |
| D | thermal.c | 67 MODULE_PARM_DESC(nocrt, "Set to take no action upon ACPI thermal zone critical trips points."); 172 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/acpi/ |
| D | thermal.c | 127 struct acpi_thermal_trips trips; member 202 tz->trips.critical.temperature = tmp; in __acpi_thermal_trips_update() 210 tz->trips.critical.valid = false; in __acpi_thermal_trips_update() 215 tz->trips.critical.valid = false; in __acpi_thermal_trips_update() 217 tz->trips.critical.valid = true; in __acpi_thermal_trips_update() 220 tz->trips.critical.temperature); in __acpi_thermal_trips_update() 222 if (tz->trips.critical.valid) { in __acpi_thermal_trips_update() 224 tz->trips.critical.valid = false; in __acpi_thermal_trips_update() 231 if (crt_k > tz->trips.critical.temperature) in __acpi_thermal_trips_update() 234 tz->trips.critical.temperature = crt_k; in __acpi_thermal_trips_update() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
| D | core_thermal.c | 84 /* Make sure all trips are writable */ 92 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/thermal/ |
| D | thermal_of.c | 25 struct device_node *trips; in of_find_trip_id() local 29 trips = of_get_child_by_name(np, "trips"); in of_find_trip_id() 30 if (!trips) { in of_find_trip_id() 31 pr_err("Failed to find 'trips' node\n"); in of_find_trip_id() 38 for_each_child_of_node(trips, t) { in of_find_trip_id() 49 of_node_put(trips); in of_find_trip_id() 126 struct device_node *trips; in thermal_of_trips_init() local 131 trips = of_get_child_by_name(np, "trips"); in thermal_of_trips_init() 132 if (!trips) in thermal_of_trips_init() 135 count = of_get_child_count(trips); in thermal_of_trips_init() [all …]
|
| D | thermal_trip.c | 8 * Thermal trips handling 21 ret = cb(&tz->trips[i], data); in for_each_thermal_trip() 110 dev_err(&tz->device, "Failed to set trips: %d\n", ret); in __thermal_zone_set_trips() 116 if (!tz || !tz->trips || trip_id < 0 || trip_id >= tz->num_trips || !trip) in __thermal_zone_get_trip() 119 *trip = tz->trips[trip_id]; in __thermal_zone_get_trip() 143 if (!tz->ops->set_trip_temp && !tz->ops->set_trip_hyst && !tz->trips) in thermal_zone_set_trip() 165 if (tz->trips && (t.temperature != trip->temperature || t.hysteresis != trip->hysteresis)) in thermal_zone_set_trip() 166 tz->trips[trip_id] = *trip; in thermal_zone_set_trip() 182 if (&tz->trips[i] == trip) in thermal_zone_trip_id()
|
| D | imx_thermal.c | 117 static struct thermal_trip trips[] = { variable 282 if (data->alarm_temp == trips[IMX_TRIP_PASSIVE].temperature && in imx_get_temp() 283 *temp >= trips[IMX_TRIP_PASSIVE].temperature) in imx_get_temp() 284 imx_set_alarm_temp(data, trips[IMX_TRIP_CRITICAL].temperature); in imx_get_temp() 285 if (data->alarm_temp == trips[IMX_TRIP_CRITICAL].temperature && in imx_get_temp() 286 *temp < trips[IMX_TRIP_PASSIVE].temperature) { in imx_get_temp() 287 imx_set_alarm_temp(data, trips[IMX_TRIP_PASSIVE].temperature); in imx_get_temp() 353 if (temp < 0 || temp > trips[IMX_TRIP_CRITICAL].temperature) in imx_set_trip_temp() 464 trips[IMX_TRIP_PASSIVE].temperature = data->temp_max - (1000 * 10); in imx_init_temp_grade() 465 trips[IMX_TRIP_CRITICAL].temperature = data->temp_max - (1000 * 5); in imx_init_temp_grade() [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/ti/ |
| D | k3-j721s2-thermal.dtsi | 10 trips { 24 trips { 38 trips { 52 trips { 66 trips { 80 trips { 94 trips {
|
| D | k3-j784s4-thermal.dtsi | 10 trips { 24 trips { 38 trips { 52 trips { 66 trips { 80 trips { 94 trips {
|
| D | k3-j721e-thermal.dtsi | 11 trips { 25 trips { 39 trips { 53 trips { 67 trips {
|
| D | k3-am654-industrial-thermal.dtsi | 10 trips { 24 trips { 38 trips {
|
| D | k3-am62a-thermal.dtsi | 11 trips { 25 trips { 39 trips {
|
| D | k3-j7200-thermal.dtsi | 11 trips { 25 trips { 39 trips {
|
| /kernel/linux/linux-6.6/drivers/thermal/intel/ |
| D | x86_pkg_temp_thermal.c | 56 struct thermal_trip *trips; member 273 struct thermal_trip *trips; in pkg_temp_thermal_trips_init() local 278 trips = kzalloc(sizeof(*trips) * num_trips, GFP_KERNEL); in pkg_temp_thermal_trips_init() 279 if (!trips) in pkg_temp_thermal_trips_init() 295 kfree(trips); in pkg_temp_thermal_trips_init() 301 trips[i].temperature = thres_reg_value ? in pkg_temp_thermal_trips_init() 304 trips[i].type = THERMAL_TRIP_PASSIVE; in pkg_temp_thermal_trips_init() 307 __func__, cpu, i, trips[i].temperature); in pkg_temp_thermal_trips_init() 310 return trips; in pkg_temp_thermal_trips_init() 340 zonedev->trips = pkg_temp_thermal_trips_init(cpu, tj_max, thres_count); in pkg_temp_thermal_device_add() [all …]
|
| D | intel_pch_thermal.c | 87 struct thermal_trip trips[PCH_MAX_TRIPS]; member 109 ptd->trips[trip].type = THERMAL_TRIP_PASSIVE; in pch_wpt_add_acpi_psv_trip() 110 ptd->trips[trip].temperature = temp; in pch_wpt_add_acpi_psv_trip() 223 ptd->trips[nr_trips].temperature = GET_WPT_TEMP(trip_temp); in intel_pch_thermal_probe() 224 ptd->trips[nr_trips++].type = THERMAL_TRIP_CRITICAL; in intel_pch_thermal_probe() 230 ptd->trips[nr_trips].temperature = GET_WPT_TEMP(trip_temp); in intel_pch_thermal_probe() 231 ptd->trips[nr_trips++].type = THERMAL_TRIP_HOT; in intel_pch_thermal_probe() 237 ptd->trips, nr_trips, in intel_pch_thermal_probe()
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/thermal/ |
| D | brcm,sr-thermal.txt | 37 trips { 49 trips { 61 trips { 73 trips { 85 trips { 97 trips {
|
| D | db8500-thermal.txt | 9 - 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>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/thermal/ |
| D | brcm,sr-thermal.txt | 37 trips { 49 trips { 61 trips { 73 trips { 85 trips { 97 trips {
|
| D | db8500-thermal.txt | 9 - 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>;
|
| /kernel/linux/linux-5.10/drivers/thermal/ |
| D | thermal_of.c | 59 * @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() 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() [all …]
|
| D | uniphier_thermal.c | 251 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()
|
| D | thermal_sysfs.c | 441 /* We expose passive only if passive trips are present */ 458 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() [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/ti/ |
| D | k3-am654-industrial-thermal.dtsi | 10 trips { 24 trips { 38 trips {
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/qcom/ |
| D | sm8150.dtsi | 1226 trips { 1270 trips { 1314 trips { 1358 trips { 1402 trips { 1446 trips { 1490 trips { 1534 trips { 1578 trips { 1622 trips { [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
| D | core_thermal.c | 94 /* Make sure all trips are writable */ 102 struct thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member 123 struct thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; member 420 module_tz->trips, in mlxsw_thermal_module_tz_init() 461 memcpy(module_tz->trips, default_thermal_module_trips, in mlxsw_thermal_module_init() 462 sizeof(thermal->trips)); in mlxsw_thermal_module_init() 548 gearbox_tz->trips, in mlxsw_thermal_gearbox_tz_init() 603 memcpy(gearbox_tz->trips, default_thermal_trips, in mlxsw_thermal_gearboxes_init() 604 sizeof(thermal->trips)); in mlxsw_thermal_gearboxes_init() 721 memcpy(thermal->trips, default_thermal_trips, sizeof(thermal->trips)); in mlxsw_thermal_init() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | exynos5422-odroidhc1.dts | 33 trips { 88 trips { 132 trips { 176 trips { 220 trips {
|