| /linux/drivers/acpi/ |
| H A D | thermal.c | 94 struct acpi_thermal_trip trip; member 101 struct acpi_thermal_trip trip; member 194 active = container_of(acpi_trip, struct acpi_thermal_active, trip); in active_trip_index() 229 const struct thermal_trip *trip) in acpi_thermal_update_trip() argument 231 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip() 233 if (trip->type == THERMAL_TRIP_PASSIVE) { in acpi_thermal_update_trip() 279 const struct thermal_trip *trip) in acpi_thermal_update_trip_devices() argument 281 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip_devices() 282 int index = trip->type == THERMAL_TRIP_PASSIVE ? in acpi_thermal_update_trip_devices() 297 static int acpi_thermal_adjust_trip(struct thermal_trip *trip, void *data) in acpi_thermal_adjust_trip() argument [all …]
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5422-odroidxu3-common.dtsi | 94 trip = <&cpu0_alert0>; 98 trip = <&cpu0_alert1>; 102 trip = <&cpu0_alert2>; 111 trip = <&cpu0_alert3>; 127 trip = <&cpu0_alert4>; 177 trip = <&cpu1_alert0>; 181 trip = <&cpu1_alert1>; 185 trip = <&cpu1_alert2>; 189 trip = <&cpu1_alert3>; 200 trip = <&cpu1_alert4>; [all …]
|
| H A D | exynos5422-odroidhc1.dts | 60 trip = <&cpu0_alert0>; 76 trip = <&cpu0_alert1>; 109 trip = <&cpu1_alert0>; 120 trip = <&cpu1_alert1>; 153 trip = <&cpu2_alert0>; 164 trip = <&cpu2_alert1>; 197 trip = <&cpu3_alert0>; 208 trip = <&cpu3_alert1>; 241 trip = <&gpu_alert0>; 245 trip = <&gpu_alert1>;
|
| H A D | exynos5420-arndale-octa.dts | 106 trip = <&cpu0_alert0>; 122 trip = <&cpu0_alert1>; 138 trip = <&cpu0_alert2>; 177 trip = <&cpu1_alert0>; 189 trip = <&cpu1_alert1>; 201 trip = <&cpu1_alert2>; 240 trip = <&cpu2_alert0>; 252 trip = <&cpu2_alert1>; 264 trip = <&cpu2_alert2>; 303 trip = <&cpu3_alert0>; [all …]
|
| /linux/drivers/thermal/ |
| H A D | thermal_helpers.c | 25 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip) in get_tz_trend() argument 30 tz->ops.get_trend(tz, trip, &trend)) { in get_tz_trend() 44 const struct thermal_trip *trip) in thermal_instance_present() argument 46 const struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_instance_present() 58 const struct thermal_trip *trip, in thermal_trip_is_bound_to_cdev() argument 64 return thermal_instance_present(tz, cdev, trip); in thermal_trip_is_bound_to_cdev() 94 const struct thermal_trip *trip = &td->trip; in __thermal_zone_get_temp() local 96 if (trip->type == THERMAL_TRIP_CRITICAL) { in __thermal_zone_get_temp() 97 crit_temp = trip->temperature; in __thermal_zone_get_temp()
|
| H A D | thermal_core.c | 293 if (td->trip.type == THERMAL_TRIP_CRITICAL && in thermal_zone_broken_disable() 294 td->trip.temperature > THERMAL_TEMP_INVALID) { in thermal_zone_broken_disable() 406 const struct thermal_trip *trip) in handle_critical_trips() argument 408 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips() 410 if (trip->type == THERMAL_TRIP_CRITICAL) in handle_critical_trips() 440 td->threshold = td->trip.temperature; in move_to_trips_high() 447 td->threshold = td->trip.temperature - td->trip.hysteresis; in move_to_trips_reached() 460 const struct thermal_trip *trip, in thermal_governor_trip_crossed() argument 463 if (trip->type == THERMAL_TRIP_HOT || trip->type == THERMAL_TRIP_CRITICAL) in thermal_governor_trip_crossed() 467 governor->trip_crossed(tz, trip, upward); in thermal_governor_trip_crossed() [all …]
|
| H A D | thermal_debugfs.h | 12 const struct thermal_trip *trip); 14 const struct thermal_trip *trip); 26 const struct thermal_trip *trip) {}; in thermal_debug_tz_trip_up() argument 28 const struct thermal_trip *trip) {} in thermal_debug_tz_trip_down() argument
|
| H A D | thermal_netlink.c | 380 const struct thermal_trip *trip) in thermal_notify_tz_trip_down() argument 383 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_down() 390 const struct thermal_trip *trip) in thermal_notify_tz_trip_up() argument 393 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_up() 400 const struct thermal_trip *trip) in thermal_notify_tz_trip_change() argument 403 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_change() 404 .trip_type = trip->type, in thermal_notify_tz_trip_change() 405 .trip_temp = trip->temperature, in thermal_notify_tz_trip_change() 406 .trip_hyst = trip->hysteresis }; in thermal_notify_tz_trip_change() 549 const struct thermal_trip *trip = &td->trip; in thermal_genl_cmd_tz_get_trip() local [all …]
|
| H A D | thermal_trip.c | 35 ret = cb(&td->trip, data); in for_each_thermal_trip() 83 const struct thermal_trip *trip) in thermal_zone_trip_id() argument 89 return trip_to_trip_desc(trip) - tz->trips; in thermal_zone_trip_id()
|
| H A D | thermal_debugfs.c | 580 const struct thermal_trip *trip) in thermal_debug_tz_trip_up() argument 583 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_up() 654 trip_stats->trip_temp = trip->temperature; in thermal_debug_tz_trip_up() 655 trip_stats->trip_hyst = trip->hysteresis; in thermal_debug_tz_trip_up() 673 const struct thermal_trip *trip) in thermal_debug_tz_trip_down() argument 676 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_down() 813 const struct thermal_trip *trip = &td->trip; in tze_seq_show() local 821 if (trip->type == THERMAL_TRIP_CRITICAL) in tze_seq_show() 824 trip_id = thermal_zone_trip_id(tz, trip); in tze_seq_show() 846 8, thermal_trip_type_name(trip->type), in tze_seq_show()
|
| H A D | gov_power_allocator.c | 509 const struct thermal_trip *trip = &td->trip; in get_governor_trips() local 511 switch (trip->type) { in get_governor_trips() 514 first_passive = trip; in get_governor_trips() 517 last_passive = trip; in get_governor_trips() 520 last_active = trip; in get_governor_trips() 775 const struct thermal_trip *trip = params->trip_switch_on; in power_allocator_manage() local 779 if (trip && tz->temperature < trip->temperature) { in power_allocator_manage()
|
| /linux/drivers/thermal/qcom/ |
| H A D | qcom-spmi-temp-alarm.c | 358 const struct thermal_trip *trip, int temp) in qpnp_tm_set_trip_temp() argument 363 if (trip->type != THERMAL_TRIP_CRITICAL) in qpnp_tm_set_trip_temp() 378 static int qpnp_tm_gen2_rev2_set_temp_thresh(struct qpnp_tm_chip *chip, unsigned int trip, int temp) in qpnp_tm_gen2_rev2_set_temp_thresh() argument 385 if (trip >= STAGE_COUNT) { in qpnp_tm_gen2_rev2_set_temp_thresh() 386 dev_err(chip->dev, "invalid TEMP_DAC trip = %d\n", trip); in qpnp_tm_gen2_rev2_set_temp_thresh() 388 } else if (temp < TEMP_DAC_MIN || temp > temp_dac_max[trip]) { in qpnp_tm_gen2_rev2_set_temp_thresh() 396 ret = qpnp_tm_write(chip, QPNP_TM_REG_TEMP_DAC_STG1 + trip, reg); in qpnp_tm_gen2_rev2_set_temp_thresh() 402 chip->temp_thresh_map[trip] = temp_cfg; in qpnp_tm_gen2_rev2_set_temp_thresh() 408 const struct thermal_trip *trip, int temp) in qpnp_tm_gen2_rev2_set_trip_temp() argument 410 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in qpnp_tm_gen2_rev2_set_trip_temp() [all …]
|
| /linux/arch/arm64/boot/dts/marvell/ |
| H A D | armada-8040-clearfog-gt-8k.dts | 118 ap_active: trip-active { 126 trip = <&ap_active>; 130 trip = <&ap_crit>; 139 cp0_active0: trip-active0 { 144 cp0_active1: trip-active1 { 149 cp0_active2: trip-active2 { 154 cp0_active3: trip-active3 { 162 trip = <&cp0_active0>; 166 trip = <&cp0_active1>; 170 trip = <&cp0_active2>; [all …]
|
| H A D | armada-ap80x.dtsi | 317 * first one that will have a critical trip point will be chosen. 358 trip = <&cpu0_hot>; 363 trip = <&cpu0_emerg>; 391 trip = <&cpu1_hot>; 396 trip = <&cpu1_emerg>; 424 trip = <&cpu2_hot>; 429 trip = <&cpu2_emerg>; 457 trip = <&cpu3_hot>; 462 trip = <&cpu3_emerg>;
|
| /linux/arch/arm64/boot/dts/exynos/ |
| H A D | exynos5433-tmu.dtsi | 57 trip = <&atlas0_alert_0>; 63 trip = <&atlas0_alert_1>; 69 trip = <&atlas0_alert_2>; 75 trip = <&atlas0_alert_3>; 81 trip = <&atlas0_alert_4>; 87 trip = <&atlas0_alert_5>; 93 trip = <&atlas0_alert_6>; 231 trip = <&apollo_alert_2>; 237 trip = <&apollo_alert_3>; 243 trip = <&apollo_alert_4>; [all …]
|
| /linux/drivers/hwmon/ |
| H A D | acpi_power_meter.c | 95 s64 trip[2]; member 149 if (resource->trip[0] < 0 || resource->trip[1] < 0) in set_acpi_trip() 153 arg_objs[0].integer.value = resource->trip[1]; in set_acpi_trip() 154 arg_objs[1].integer.value = resource->trip[0]; in set_acpi_trip() 298 unsigned long trip) in set_trip() argument 303 trip = DIV_ROUND_CLOSEST(trip, 1000); in set_trip() 304 trip_bk = resource->trip[trip_idx]; in set_trip() 306 resource->trip[trip_idx] = trip; in set_trip() 312 resource->trip[trip_idx] = trip_bk; in set_trip() 545 unsigned long trip; in power1_average_max_store() local [all …]
|
| /linux/Documentation/driver-api/thermal/ |
| H A D | x86_pkg_temperature_thermal.rst | 23 zone with maximum two user mode configurable trip points. Number of trip points 24 depends on the capability of the package. Once the trip point is violated, 37 This contains two trip points: 46 Any value other than 0 in these trip points, can trigger thermal notifications.
|
| /linux/drivers/thermal/intel/int340x_thermal/ |
| H A D | int340x_thermal_zone.c | 42 const struct thermal_trip *trip, int temp) in int340x_thermal_set_trip_temp() argument 45 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in int340x_thermal_set_trip_temp() 200 static int int340x_update_one_trip(struct thermal_trip *trip, void *arg) in int340x_update_one_trip() argument 206 switch (trip->type) { in int340x_update_one_trip() 218 THERMAL_TRIP_PRIV_TO_INT(trip->priv), in int340x_update_one_trip() 227 thermal_zone_set_trip_temp(int34x_zone->zone, trip, temp); in int340x_update_one_trip()
|
| /linux/drivers/thermal/intel/ |
| H A D | intel_soc_dts_iosf.c | 133 const struct thermal_trip *trip, in sys_set_trip_temp() argument 138 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in sys_set_trip_temp() 297 static void set_trip(struct thermal_trip *trip, enum thermal_trip_type type, in set_trip() argument 300 trip->type = type; in set_trip() 301 trip->flags = flags; in set_trip() 302 trip->temperature = temp; in set_trip() 303 trip->priv = THERMAL_INT_TO_TRIP_PRIV(index); in set_trip()
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | imx93-phyboard-nash-pwm-fan.dtso | 48 trip = <&cpu_low>; 53 trip = <&cpu_med>; 58 trip = <&cpu_high>;
|
| /linux/drivers/thermal/testing/ |
| H A D | zone.c | 68 struct thermal_trip trip; member 319 &tt_trip->trip.temperature, &tt_int_attr); in tt_zone_add_trip_work_fn() 323 &tt_trip->trip.hysteresis, &tt_unsigned_int_attr); in tt_zone_add_trip_work_fn() 348 tt_trip->trip.type = THERMAL_TRIP_ACTIVE; in tt_zone_add_trip() 349 tt_trip->trip.temperature = THERMAL_TEMP_INVALID; in tt_zone_add_trip() 350 tt_trip->trip.flags = THERMAL_TRIP_FLAG_RW; in tt_zone_add_trip() 400 trips[i++] = tt_trip->trip; in tt_zone_register_tz()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-thermal | 31 trip points so that user application can take full 51 The temperature above which trip point will be fired. 59 Strings which indicate the type of the trip point. 68 The hysteresis value for a trip point, represented as an 84 The trip point in this thermal zone which `cdev[0-*]` is 86 associated with any trip point. 142 temperature" trip point. For more information see 152 temperature" trip point. For more information see 159 Temperature offset from the desired temperature trip point 164 temperature trip point. For more information see
|
| /linux/arch/riscv/boot/dts/sophgo/ |
| H A D | sg2042-evb-v2.dts | 60 trip = <&soc_active1>; 65 trip = <&soc_active2>; 70 trip = <&soc_active3>; 75 trip = <&soc_hot>; 96 trip = <&board_active>;
|
| H A D | sg2042-evb-v1.dts | 72 trip = <&soc_active1>; 77 trip = <&soc_active2>; 82 trip = <&soc_active3>; 87 trip = <&soc_hot>; 108 trip = <&board_active>;
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-am62a-thermal.dtsi | 30 trip = <&main0_alert>; 61 trip = <&main1_alert>; 92 trip = <&main2_alert>;
|