Searched refs:trips (Results 1 – 14 of 14) sorted by relevance
/drivers/acpi/ |
D | thermal.c | 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() 310 tz->trips.critical.temperature = crt_k; in acpi_thermal_trips_update() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 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() 190 tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = emerg_temp; in mlxsw_thermal_module_trips_update() [all …]
|
/drivers/thermal/ |
D | thermal_of.c | 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() 678 struct thermal_trip *trips, in thermal_of_populate_bind_params() argument [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() 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 | gov_fair_share.c | 28 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()
|
D | thermal_sysfs.c | 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() 582 attrs[tz->trips * 3] = NULL; in create_trip_attrs() [all …]
|
D | thermal_core.c | 569 for (count = 0; count < tz->trips; count++) in thermal_zone_device_update() 839 if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) in thermal_zone_bind_cooling_device() 1022 for (i = 0; i < tz->trips; i++) { in __bind() 1256 for (i = 0; i < tz->trips; i++) in __unbind() 1382 thermal_zone_device_register(const char *type, int trips, int mask, in thermal_zone_device_register() argument 1406 if (trips > THERMAL_MAX_TRIPS || trips < 0 || mask >> trips) { in thermal_zone_device_register() 1416 if (trips > 0 && (!ops->get_trip_type || !ops->get_trip_temp)) in thermal_zone_device_register() 1438 tz->trips = trips; in thermal_zone_device_register() 1456 for (count = 0; count < trips; count++) { in thermal_zone_device_register()
|
D | thermal_helpers.c | 93 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()
|
D | armada_thermal.c | 788 const struct thermal_trip *trips = of_thermal_get_trip_points(tz); in armada_configure_overheat_int() local 792 if (!trips) in armada_configure_overheat_int() 796 if (trips[i].type == THERMAL_TRIP_CRITICAL) in armada_configure_overheat_int() 807 trips[i].temperature, in armada_configure_overheat_int() 808 trips[i].hysteresis); in armada_configure_overheat_int()
|
D | gov_power_allocator.c | 474 for (i = 0; i < tz->trips; i++) { in get_governor_trips() 571 if (tz->trips > 0) { in power_allocator_bind()
|
D | thermal_netlink.c | 424 for (i = 0; i < tz->trips; i++) { in thermal_genl_cmd_tz_get_trip()
|
D | Kconfig | 84 writable trips need to be specified when setting up the
|
/drivers/thermal/qcom/ |
D | qcom-spmi-temp-alarm.c | 279 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()
|
/drivers/thermal/samsung/ |
D | exynos_tmu.c | 263 const struct thermal_trip * const trips = in exynos_tmu_initialize() local 268 if (!trips) { in exynos_tmu_initialize() 365 const struct thermal_trip * const trips = in exynos4210_tmu_set_trip_temp() local 369 ref = trips[0].temperature / MCELSIUS; in exynos4210_tmu_set_trip_temp()
|