trips 171 drivers/acpi/thermal.c struct acpi_thermal_trips trips; trips 275 drivers/acpi/thermal.c tz->trips.critical.temperature = tmp; trips 283 drivers/acpi/thermal.c tz->trips.critical.flags.valid = 0; trips 289 drivers/acpi/thermal.c tz->trips.critical.flags.valid = 0; trips 291 drivers/acpi/thermal.c tz->trips.critical.flags.valid = 1; trips 294 drivers/acpi/thermal.c tz->trips.critical.temperature)); trips 296 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid == 1) { trips 298 drivers/acpi/thermal.c tz->trips.critical.flags.valid = 0; trips 304 drivers/acpi/thermal.c if (crt_k > tz->trips.critical.temperature) trips 307 drivers/acpi/thermal.c tz->trips.critical.temperature = crt_k; trips 317 drivers/acpi/thermal.c tz->trips.hot.flags.valid = 0; trips 321 drivers/acpi/thermal.c tz->trips.hot.temperature = tmp; trips 322 drivers/acpi/thermal.c tz->trips.hot.flags.valid = 1; trips 325 drivers/acpi/thermal.c tz->trips.hot.temperature)); trips 330 drivers/acpi/thermal.c if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.flags.valid) || trips 332 drivers/acpi/thermal.c valid = tz->trips.passive.flags.valid; trips 344 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; trips 346 drivers/acpi/thermal.c tz->trips.passive.temperature = tmp; trips 347 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 1; trips 353 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; trips 355 drivers/acpi/thermal.c tz->trips.passive.tc1 = tmp; trips 360 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; trips 362 drivers/acpi/thermal.c tz->trips.passive.tc2 = tmp; trips 367 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; trips 369 drivers/acpi/thermal.c tz->trips.passive.tsp = tmp; trips 373 drivers/acpi/thermal.c if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.passive.flags.valid) { trips 379 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 0; trips 382 drivers/acpi/thermal.c tz->trips.passive.flags.valid = 1; trips 384 drivers/acpi/thermal.c if (memcmp(&tz->trips.passive.devices, &devices, trips 386 drivers/acpi/thermal.c memcpy(&tz->trips.passive.devices, &devices, trips 392 drivers/acpi/thermal.c if (valid != tz->trips.passive.flags.valid) trips 399 drivers/acpi/thermal.c valid = tz->trips.active[i].flags.valid; trips 405 drivers/acpi/thermal.c tz->trips.active[i].flags.valid)) { trips 409 drivers/acpi/thermal.c tz->trips.active[i].flags.valid = 0; trips 415 drivers/acpi/thermal.c tz->trips.active[0].temperature = trips 422 drivers/acpi/thermal.c tz->trips.active[i - 1].temperature = trips 423 drivers/acpi/thermal.c (tz->trips.active[i - 2].temperature < trips 425 drivers/acpi/thermal.c tz->trips.active[i - 2].temperature : trips 429 drivers/acpi/thermal.c tz->trips.active[i].temperature = tmp; trips 430 drivers/acpi/thermal.c tz->trips.active[i].flags.valid = 1; trips 435 drivers/acpi/thermal.c if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.active[i].flags.valid ) { trips 442 drivers/acpi/thermal.c tz->trips.active[i].flags.valid = 0; trips 445 drivers/acpi/thermal.c tz->trips.active[i].flags.valid = 1; trips 447 drivers/acpi/thermal.c if (memcmp(&tz->trips.active[i].devices, &devices, trips 449 drivers/acpi/thermal.c memcpy(&tz->trips.active[i].devices, &devices, trips 455 drivers/acpi/thermal.c if (valid != tz->trips.active[i].flags.valid) trips 458 drivers/acpi/thermal.c if (!tz->trips.active[i].flags.valid) trips 483 drivers/acpi/thermal.c valid = tz->trips.critical.flags.valid | trips 484 drivers/acpi/thermal.c tz->trips.hot.flags.valid | trips 485 drivers/acpi/thermal.c tz->trips.passive.flags.valid; trips 488 drivers/acpi/thermal.c valid |= tz->trips.active[i].flags.valid; trips 580 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) { trips 588 drivers/acpi/thermal.c if (tz->trips.hot.flags.valid) { trips 596 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) { trips 605 drivers/acpi/thermal.c tz->trips.active[i].flags.valid; i++) { trips 625 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) { trips 628 drivers/acpi/thermal.c tz->trips.critical.temperature, trips 635 drivers/acpi/thermal.c if (tz->trips.hot.flags.valid) { trips 638 drivers/acpi/thermal.c tz->trips.hot.temperature, trips 645 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) { trips 648 drivers/acpi/thermal.c tz->trips.passive.temperature, trips 656 drivers/acpi/thermal.c tz->trips.active[i].flags.valid; i++) { trips 659 drivers/acpi/thermal.c tz->trips.active[i].temperature, trips 674 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) { trips 676 drivers/acpi/thermal.c tz->trips.critical.temperature, trips 713 drivers/acpi/thermal.c i = (tz->trips.passive.tc1 * (tz->temperature - tz->last_temperature)) trips 714 drivers/acpi/thermal.c + (tz->trips.passive.tc2 trips 715 drivers/acpi/thermal.c * (tz->temperature - tz->trips.passive.temperature)); trips 763 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) trips 766 drivers/acpi/thermal.c if (tz->trips.hot.flags.valid) trips 769 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) { trips 771 drivers/acpi/thermal.c for (i = 0; i < tz->trips.passive.devices.count; trips 773 drivers/acpi/thermal.c handle = tz->trips.passive.devices.handles[i]; trips 793 drivers/acpi/thermal.c if (!tz->trips.active[i].flags.valid) trips 797 drivers/acpi/thermal.c j < tz->trips.active[i].devices.count; trips 799 drivers/acpi/thermal.c handle = tz->trips.active[i].devices.handles[j]; trips 868 drivers/acpi/thermal.c int trips = 0; trips 873 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid) trips 874 drivers/acpi/thermal.c trips++; trips 876 drivers/acpi/thermal.c if (tz->trips.hot.flags.valid) trips 877 drivers/acpi/thermal.c trips++; trips 879 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) trips 880 drivers/acpi/thermal.c trips++; trips 883 drivers/acpi/thermal.c tz->trips.active[i].flags.valid; i++, trips++); trips 885 drivers/acpi/thermal.c if (tz->trips.passive.flags.valid) trips 887 drivers/acpi/thermal.c thermal_zone_device_register("acpitz", trips, 0, tz, trips 889 drivers/acpi/thermal.c tz->trips.passive.tsp*100, trips 893 drivers/acpi/thermal.c thermal_zone_device_register("acpitz", trips, 0, tz, trips 1044 drivers/acpi/thermal.c if (tz->trips.critical.flags.valid && trips 1045 drivers/acpi/thermal.c (tz->trips.critical.temperature % 5) == 1) trips 1135 drivers/acpi/thermal.c if (!(&tz->trips.active[i])) trips 1137 drivers/acpi/thermal.c if (!tz->trips.active[i].flags.valid) trips 1139 drivers/acpi/thermal.c tz->trips.active[i].flags.enabled = 1; trips 1140 drivers/acpi/thermal.c for (j = 0; j < tz->trips.active[i].devices.count; j++) { trips 1142 drivers/acpi/thermal.c tz->trips.active[i].devices.handles[j], trips 1145 drivers/acpi/thermal.c tz->trips.active[i].flags.enabled = 0; trips 1149 drivers/acpi/thermal.c tz->state.active |= tz->trips.active[i].flags.enabled; trips 100 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; trips 112 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_trip trips[MLXSW_THERMAL_NUM_TRIPS]; trips 155 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = 0; trips 156 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_HIGH].temp = 0; trips 157 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = 0; trips 158 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp = 0; trips 188 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = crit_temp - trips 191 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_NORM].temp = crit_temp; trips 192 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_HIGH].temp = crit_temp; trips 193 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_HOT].temp = emerg_temp; trips 195 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp = emerg_temp + trips 198 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp = emerg_temp; trips 205 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_trip *trips, trips 208 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c struct mlxsw_thermal_trip *trip = trips; trips 243 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; trips 327 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_tz_score_update(thermal, tzdev, thermal->trips, trips 343 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_type = thermal->trips[trip].type; trips 355 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_temp = thermal->trips[trip].temp; trips 368 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c thermal->trips[trip].temp = temp; trips 377 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_hyst = thermal->trips[trip].hyst; trips 386 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c thermal->trips[trip].hyst = hyst; trips 431 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c const struct mlxsw_thermal_trip *trip = &tz->trips[i]; trips 529 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_tz_score_update(thermal, tzdev, tz->trips, temp); trips 543 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_type = tz->trips[trip].type; trips 556 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_temp = tz->trips[trip].temp; trips 567 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c temp > tz->trips[MLXSW_THERMAL_TEMP_TRIP_CRIT].temp) trips 570 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[trip].temp = temp; trips 580 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_hyst = tz->trips[trip].hyst; trips 590 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->trips[trip].hyst = hyst; trips 643 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_tz_score_update(thermal, tzdev, tz->trips, temp); trips 816 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c memcpy(module_tz->trips, default_thermal_trips, trips 817 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c sizeof(thermal->trips)); trips 943 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c memcpy(gearbox_tz->trips, default_thermal_trips, trips 944 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c sizeof(thermal->trips)); trips 993 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c memcpy(thermal->trips, default_thermal_trips, sizeof(thermal->trips)); trips 787 drivers/thermal/armada_thermal.c const struct thermal_trip *trips = of_thermal_get_trip_points(tz); trips 791 drivers/thermal/armada_thermal.c if (!trips) trips 795 drivers/thermal/armada_thermal.c if (trips[i].type == THERMAL_TRIP_CRITICAL) trips 806 drivers/thermal/armada_thermal.c trips[i].temperature, trips 807 drivers/thermal/armada_thermal.c trips[i].hysteresis); trips 28 drivers/thermal/fair_share.c if (tz->trips == 0 || !tz->ops->get_trip_temp) trips 31 drivers/thermal/fair_share.c for (count = 0; count < tz->trips; count++) { trips 56 drivers/thermal/fair_share.c return (long)(percentage * level * max_state) / (100 * tz->trips); trips 76 drivers/thermal/of-thermal.c struct thermal_trip *trips; trips 171 drivers/thermal/of-thermal.c return data->trips; trips 313 drivers/thermal/of-thermal.c *type = data->trips[trip].type; trips 326 drivers/thermal/of-thermal.c *temp = data->trips[trip].temperature; trips 348 drivers/thermal/of-thermal.c data->trips[trip].temperature = temp; trips 361 drivers/thermal/of-thermal.c *hyst = data->trips[trip].hysteresis; trips 375 drivers/thermal/of-thermal.c data->trips[trip].hysteresis = hyst; trips 387 drivers/thermal/of-thermal.c if (data->trips[i].type == THERMAL_TRIP_CRITICAL) { trips 388 drivers/thermal/of-thermal.c *temp = data->trips[i].temperature; trips 680 drivers/thermal/of-thermal.c struct thermal_trip *trips, trips 703 drivers/thermal/of-thermal.c if (trip == trips[i].np) { trips 910 drivers/thermal/of-thermal.c tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL); trips 911 drivers/thermal/of-thermal.c if (!tz->trips) { trips 918 drivers/thermal/of-thermal.c ret = thermal_of_populate_trip(gchild, &tz->trips[i++]); trips 945 drivers/thermal/of-thermal.c tz->trips, tz->ntrips); trips 970 drivers/thermal/of-thermal.c of_node_put(tz->trips[i].np); trips 971 drivers/thermal/of-thermal.c kfree(tz->trips); trips 996 drivers/thermal/of-thermal.c of_node_put(tz->trips[i].np); trips 997 drivers/thermal/of-thermal.c kfree(tz->trips); trips 478 drivers/thermal/power_allocator.c for (i = 0; i < tz->trips; i++) { trips 575 drivers/thermal/power_allocator.c if (tz->trips > 0) { trips 279 drivers/thermal/qcom/qcom-spmi-temp-alarm.c const struct thermal_trip *trips; trips 286 drivers/thermal/qcom/qcom-spmi-temp-alarm.c trips = of_thermal_get_trip_points(chip->tz_dev); trips 287 drivers/thermal/qcom/qcom-spmi-temp-alarm.c if (!trips) trips 292 drivers/thermal/qcom/qcom-spmi-temp-alarm.c trips[i].type == THERMAL_TRIP_CRITICAL) trips 293 drivers/thermal/qcom/qcom-spmi-temp-alarm.c return trips[i].temperature; trips 260 drivers/thermal/samsung/exynos_tmu.c const struct thermal_trip * const trips = trips 265 drivers/thermal/samsung/exynos_tmu.c if (!trips) { trips 362 drivers/thermal/samsung/exynos_tmu.c const struct thermal_trip * const trips = trips 366 drivers/thermal/samsung/exynos_tmu.c ref = trips[0].temperature / MCELSIUS; trips 491 drivers/thermal/thermal_core.c for (count = 0; count < tz->trips; count++) trips 694 drivers/thermal/thermal_core.c if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) trips 875 drivers/thermal/thermal_core.c for (i = 0; i < tz->trips; i++) { trips 1109 drivers/thermal/thermal_core.c for (i = 0; i < tz->trips; i++) trips 1235 drivers/thermal/thermal_core.c thermal_zone_device_register(const char *type, int trips, int mask, trips 1259 drivers/thermal/thermal_core.c if (trips > THERMAL_MAX_TRIPS || trips < 0 || mask >> trips) { trips 1269 drivers/thermal/thermal_core.c if (trips > 0 && (!ops->get_trip_type || !ops->get_trip_temp)) trips 1291 drivers/thermal/thermal_core.c tz->trips = trips; trips 1309 drivers/thermal/thermal_core.c for (count = 0; count < trips; count++) { trips 92 drivers/thermal/thermal_helpers.c for (count = 0; count < tz->trips; count++) { trips 128 drivers/thermal/thermal_helpers.c for (i = 0; i < tz->trips; i++) { trips 474 drivers/thermal/thermal_sysfs.c for (count = 0; count < tz->trips && !passive; count++) { trips 515 drivers/thermal/thermal_sysfs.c if (tz->trips <= 0) trips 518 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs = kcalloc(tz->trips, sizeof(*tz->trip_type_attrs), trips 523 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), trips 531 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs = kcalloc(tz->trips, trips 541 drivers/thermal/thermal_sysfs.c attrs = kcalloc(tz->trips * 3 + 1, sizeof(*attrs), GFP_KERNEL); trips 550 drivers/thermal/thermal_sysfs.c for (indx = 0; indx < tz->trips; indx++) { trips 577 drivers/thermal/thermal_sysfs.c attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; trips 595 drivers/thermal/thermal_sysfs.c attrs[indx + tz->trips * 2] = trips 598 drivers/thermal/thermal_sysfs.c attrs[tz->trips * 3] = NULL; trips 639 drivers/thermal/thermal_sysfs.c if (tz->trips) { trips 660 drivers/thermal/thermal_sysfs.c if (tz->trips) trips 251 drivers/thermal/uniphier_thermal.c const struct thermal_trip *trips; trips 300 drivers/thermal/uniphier_thermal.c trips = of_thermal_get_trip_points(tdev->tz_dev); trips 309 drivers/thermal/uniphier_thermal.c if (trips[i].type == THERMAL_TRIP_CRITICAL && trips 310 drivers/thermal/uniphier_thermal.c trips[i].temperature < crit_temp) trips 311 drivers/thermal/uniphier_thermal.c crit_temp = trips[i].temperature; trips 312 drivers/thermal/uniphier_thermal.c uniphier_tm_set_alert(tdev, i, trips[i].temperature); trips 200 include/linux/thermal.h int trips; trips 480 include/linux/thermal.h const char *type, int trips, int mask, void *devdata,