Searched refs:trips (Results 1 – 15 of 15) sorted by relevance
/drivers/acpi/ |
D | thermal.c | 165 struct acpi_thermal_trips trips; member 271 tz->trips.critical.temperature = tmp; in acpi_thermal_trips_update() 279 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update() 285 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update() 287 tz->trips.critical.flags.valid = 1; in acpi_thermal_trips_update() 290 tz->trips.critical.temperature); in acpi_thermal_trips_update() 292 if (tz->trips.critical.flags.valid == 1) { in acpi_thermal_trips_update() 294 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update() 301 if (crt_k > tz->trips.critical.temperature) in acpi_thermal_trips_update() 304 tz->trips.critical.temperature = crt_k; in acpi_thermal_trips_update() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 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() 191 struct mlxsw_thermal_trip *trips, in mlxsw_thermal_tz_score_update() argument [all …]
|
/drivers/thermal/ |
D | thermal_of.c | 74 struct thermal_trip *trips; member 169 return data->trips; in of_thermal_get_trip_points() 303 *type = data->trips[trip].type; in of_thermal_get_trip_type() 316 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp() 338 data->trips[trip].temperature = temp; in of_thermal_set_trip_temp() 351 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst() 365 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst() 377 if (data->trips[i].type == THERMAL_TRIP_CRITICAL) { in of_thermal_get_crit_temp() 378 *temp = data->trips[i].temperature; in of_thermal_get_crit_temp() 711 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 | 420 if (tz->trips <= 0) in create_trip_attrs() 423 tz->trip_type_attrs = kcalloc(tz->trips, sizeof(*tz->trip_type_attrs), in create_trip_attrs() 428 tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs() 436 tz->trip_hyst_attrs = kcalloc(tz->trips, in create_trip_attrs() 446 attrs = kcalloc(tz->trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); in create_trip_attrs() 455 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs() 482 attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs() 500 attrs[indx + tz->trips * 2] = in create_trip_attrs() 503 attrs[tz->trips * 3] = NULL; in create_trip_attrs() 544 if (tz->trips) { in thermal_zone_create_device_groups() [all …]
|
D | thermal_core.c | 508 for (count = 0; count < tz->trips; count++) in thermal_zone_device_update() 635 if (trip >= tz->trips || trip < 0) in thermal_zone_bind_cooling_device() 818 for (i = 0; i < tz->trips; i++) { in __bind() 1065 for (i = 0; i < tz->trips; i++) in __unbind() 1192 thermal_zone_device_register(const char *type, int trips, int mask, in thermal_zone_device_register() argument 1216 if (trips > THERMAL_MAX_TRIPS || trips < 0 || mask >> trips) { in thermal_zone_device_register() 1226 if (trips > 0 && (!ops->get_trip_type || !ops->get_trip_temp)) in thermal_zone_device_register() 1252 tz->trips = trips; in thermal_zone_device_register() 1275 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 | 538 for (i = 0; i < tz->trips; i++) { in get_governor_trips() 698 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 | 303 const struct thermal_trip *trips; in qpnp_tm_get_critical_trip_temp() local 310 trips = of_thermal_get_trip_points(chip->tz_dev); in qpnp_tm_get_critical_trip_temp() 311 if (!trips) in qpnp_tm_get_critical_trip_temp() 316 trips[i].type == THERMAL_TRIP_CRITICAL) in qpnp_tm_get_critical_trip_temp() 317 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()
|
/drivers/thermal/tegra/ |
D | tegra30-tsensor.c | 319 for (i = 0; i < tzd->trips; i++) { in tegra_tsensor_get_hw_channel_trips()
|