/linux-6.3-rc2/drivers/thermal/ |
A D | thermal_trip.c | 17 struct thermal_trip trip; in __for_each_thermal_trip() local 27 ret = cb(&trip, data); in __for_each_thermal_trip() 58 struct thermal_trip trip; in __thermal_zone_set_trips() local 74 trip_low = trip.temperature - trip.hysteresis; in __thermal_zone_set_trips() 80 trip.temperature < high) in __thermal_zone_set_trips() 81 high = trip.temperature; in __thermal_zone_set_trips() 112 *trip = tz->trips[trip_id]; in __thermal_zone_get_trip() 121 trip->hysteresis = 0; in __thermal_zone_get_trip() 158 if (t.type != trip->type) in thermal_zone_set_trip() 174 tz->trips[trip_id] = *trip; in thermal_zone_set_trip() [all …]
|
A D | gov_bang_bang.c | 18 struct thermal_trip trip; in thermal_zone_trip_update() local 22 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in thermal_zone_trip_update() 28 if (!trip.hysteresis) in thermal_zone_trip_update() 33 trip_id, trip.temperature, tz->temperature, in thermal_zone_trip_update() 34 trip.hysteresis); in thermal_zone_trip_update() 37 if (instance->trip != trip_id) in thermal_zone_trip_update() 55 if (instance->target == 0 && tz->temperature >= trip.temperature) in thermal_zone_trip_update() 58 tz->temperature <= trip.temperature - trip.hysteresis) in thermal_zone_trip_update() 99 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument 106 ret = thermal_zone_trip_update(tz, trip); in bang_bang_control()
|
A D | gov_fair_share.c | 24 struct thermal_trip trip; in get_trip_level() local 28 __thermal_zone_get_trip(tz, count, &trip); in get_trip_level() 29 if (tz->temperature < trip.temperature) in get_trip_level() 38 trace_thermal_zone_trip(tz, count - 1, trip.type); in get_trip_level() 68 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument 78 if (instance->trip != trip) in fair_share_throttle() 89 if (instance->trip != trip) in fair_share_throttle()
|
A D | gov_step_wise.c | 102 struct thermal_trip trip; in thermal_zone_trip_update() local 106 __thermal_zone_get_trip(tz, trip_id, &trip); in thermal_zone_trip_update() 110 if (tz->temperature >= trip.temperature) { in thermal_zone_trip_update() 112 trace_thermal_zone_trip(tz, trip_id, trip.type); in thermal_zone_trip_update() 116 trip_id, trip.type, trip.temperature, trend, throttle); in thermal_zone_trip_update() 119 if (instance->trip != trip_id) in thermal_zone_trip_update() 133 update_passive_instance(tz, trip.type, 1); in thermal_zone_trip_update() 137 update_passive_instance(tz, trip.type, -1); in thermal_zone_trip_update() 157 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument 163 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
|
A D | gov_power_allocator.c | 127 struct thermal_trip trip; in estimate_pid_constants() local 134 temperature_threshold -= trip.temperature; in estimate_pid_constants() 521 struct thermal_trip trip; in get_governor_trips() local 524 ret = __thermal_zone_get_trip(tz, i, &trip); in get_governor_trips() 532 if (trip.type == THERMAL_TRIP_PASSIVE) { in get_governor_trips() 539 } else if (trip.type == THERMAL_TRIP_ACTIVE) { in get_governor_trips() 634 struct thermal_trip trip; in power_allocator_bind() local 661 &trip); in power_allocator_bind() 665 trip.temperature); in power_allocator_bind() 698 struct thermal_trip trip; in power_allocator_throttle() local [all …]
|
A D | thermal_helpers.c | 26 int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend() argument 31 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend() 45 struct thermal_cooling_device *cdev, int trip) in get_thermal_instance() argument 54 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance() 86 struct thermal_trip trip; in __thermal_zone_get_temp() local 94 ret = __thermal_zone_get_trip(tz, count, &trip); in __thermal_zone_get_temp() 95 if (!ret && trip.type == THERMAL_TRIP_CRITICAL) { in __thermal_zone_get_temp() 96 crit_temp = trip.temperature; in __thermal_zone_get_temp()
|
A D | thermal_core.c | 348 struct thermal_trip trip; in handle_thermal_trip() local 362 tz->temperature < (trip.temperature - trip.hysteresis)) in handle_thermal_trip() 367 if (trip.type == THERMAL_TRIP_CRITICAL || trip.type == THERMAL_TRIP_HOT) in handle_thermal_trip() 368 handle_critical_trips(tz, trip_id, trip.temperature, trip.type); in handle_thermal_trip() 607 int trip, in thermal_zone_bind_cooling_device() argument 618 if (trip >= tz->num_trips || trip < 0) in thermal_zone_bind_cooling_device() 645 dev->trip = trip; in thermal_zone_bind_cooling_device() 684 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device() 727 int trip, in thermal_zone_unbind_cooling_device() argument 735 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device() [all …]
|
A D | Kconfig | 84 bool "Enable writable trip points" 92 change trip temperatures. 246 CPUs when the passive trip is crossed. 256 It supports one critical trip point and one passive trip point. The 258 passive trip is crossed. 277 It supports one critical trip point and one passive trip point. The 279 trip is crossed. 308 It supports one critical trip point and one passive trip point. The 310 passive trip is crossed. 398 thermal zone if trip points reached. [all …]
|
A D | thermal_sysfs.c | 86 struct thermal_trip trip; in trip_point_type_show() local 104 switch (trip.type) { in trip_point_type_show() 123 struct thermal_trip trip; in trip_point_temp_store() local 140 ret = kstrtoint(buf, 10, &trip.temperature); in trip_point_temp_store() 144 ret = thermal_zone_set_trip(tz, trip_id, &trip); in trip_point_temp_store() 156 struct thermal_trip trip; in trip_point_temp_show() local 174 return sprintf(buf, "%d\n", trip.temperature); in trip_point_temp_show() 182 struct thermal_trip trip; in trip_point_hyst_store() local 188 if (kstrtoint(buf, 10, &trip.hysteresis)) in trip_point_hyst_store() 214 struct thermal_trip trip; in trip_point_hyst_show() local [all …]
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | exynos5422-odroidxu3-common.dtsi | 96 trip = <&cpu0_alert0>; 100 trip = <&cpu0_alert1>; 104 trip = <&cpu0_alert2>; 113 trip = <&cpu0_alert3>; 129 trip = <&cpu0_alert4>; 179 trip = <&cpu1_alert0>; 183 trip = <&cpu1_alert1>; 187 trip = <&cpu1_alert2>; 191 trip = <&cpu1_alert3>; 202 trip = <&cpu1_alert4>; [all …]
|
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>;
|
A D | rk3288-veyron-mickey.dts | 89 trip = <&cpu_alert_warm>; 96 trip = <&cpu_alert_warm>; 117 trip = <&cpu_alert_almost_hot>; 122 trip = <&cpu_alert_hot>; 127 trip = <&cpu_alert_hotter>; 132 trip = <&cpu_alert_very_hot>; 141 trip = <&cpu_alert_very_hot>; 182 trip = <&gpu_alert_warmish>; 193 trip = <&gpu_alert_warm>; 202 trip = <&gpu_alert_hotter>; [all …]
|
/linux-6.3-rc2/drivers/thermal/broadcom/ |
A D | brcmstb_thermal.c | 180 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local 186 val |= trip->enable_mask; in avs_tmon_trip_enable() 188 val &= ~trip->enable_mask; in avs_tmon_trip_enable() 196 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local 199 val &= trip->reg_msk; in avs_tmon_get_trip_temp() 200 val >>= trip->reg_shift; in avs_tmon_get_trip_temp() 209 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_set_trip_temp() local 218 val <<= trip->reg_shift; in avs_tmon_set_trip_temp() 219 val &= trip->reg_msk; in avs_tmon_set_trip_temp() 221 orig = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp() [all …]
|
/linux-6.3-rc2/drivers/thermal/samsung/ |
A D | exynos_tmu.c | 353 struct thermal_trip trip; in exynos4210_tmu_set_trip_temp() local 384 int trip, u8 temp) in exynos4412_tmu_set_trip_temp() argument 393 if (trip == 3) { in exynos4412_tmu_set_trip_temp() 440 int trip, u8 temp) in exynos5433_tmu_set_trip_temp() argument 445 if (trip > 3) { in exynos5433_tmu_set_trip_temp() 447 j = trip - 4; in exynos5433_tmu_set_trip_temp() 450 j = trip; in exynos5433_tmu_set_trip_temp() 465 if (trip > 3) { in exynos5433_tmu_set_trip_hyst() 467 j = trip - 4; in exynos5433_tmu_set_trip_hyst() 470 j = trip; in exynos5433_tmu_set_trip_hyst() [all …]
|
/linux-6.3-rc2/arch/arm64/boot/dts/marvell/ |
A D | armada-8040-clearfog-gt-8k.dts | 118 ap_active: trip-active { 126 trip = <&ap_active>; 130 trip = <&ap_crit>; 162 trip = <&cp0_active0>; 166 trip = <&cp0_active1>; 170 trip = <&cp0_active2>; 174 trip = <&cp0_active3>; 178 trip = <&cp0_crit>; 210 trip = <&cp1_active0>; 214 trip = <&cp1_active1>; [all …]
|
/linux-6.3-rc2/arch/arm64/boot/dts/exynos/ |
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-6.3-rc2/Documentation/devicetree/bindings/thermal/ |
A D | thermal-zones.yaml | 35 max dT/dt, such that a device does not cross several trip boundaries 148 The critical trip type is used to set the maximum 178 trip and the target cooling device state. 185 trip: 209 - trip 268 cpu0_alert0: trip-point0 { 274 cpu0_alert1: trip-point1 { 289 trip = <&cpu0_alert0>; 296 trip = <&cpu0_alert1>; 313 cluster0_alert0: trip-point0 { [all …]
|
A D | db8500-thermal.txt | 9 - num-trips : number of total trip points, this is required, set it 0 if none, 11 - tripN-temp : temperature of trip point N, should be in ascending order; 12 - tripN-type : type of trip point N, should be one of "active" "passive" "hot" 14 - tripN-cdev-num : number of the cooling devices which can be bound to trip 15 point N, this is required if trip point N is defined, set it 0 if none, 17 - tripN-cdev-nameM : name of the No. M cooling device of trip point N;
|
/linux-6.3-rc2/drivers/acpi/ |
A D | thermal.c | 530 trip--; in thermal_get_trip_type() 538 trip--; in thermal_get_trip_type() 546 trip--; in thermal_get_trip_type() 554 trip--; in thermal_get_trip_type() 576 trip--; in thermal_get_trip_temp() 586 trip--; in thermal_get_trip_temp() 596 trip--; in thermal_get_trip_temp() 607 trip--; in thermal_get_trip_temp() 705 trip++; in acpi_thermal_cooling_device_cb() 708 trip++; in acpi_thermal_cooling_device_cb() [all …]
|
/linux-6.3-rc2/drivers/crypto/nx/ |
A D | nx.c | 377 trip = msc->trip; in nx_of_update_msc() 390 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc() 401 trip->databytelen; in nx_of_update_msc() 403 trip->sglen; in nx_of_update_msc() 407 trip->databytelen; in nx_of_update_msc() 409 trip->sglen; in nx_of_update_msc() 416 trip->sglen; in nx_of_update_msc() 422 trip->sglen; in nx_of_update_msc() 431 trip->databytelen; in nx_of_update_msc() 433 trip->sglen; in nx_of_update_msc() [all …]
|
/linux-6.3-rc2/Documentation/driver-api/thermal/ |
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.
|
A D | sysfs-api.rst | 55 the total number of trip points this thermal zone supports. 79 upon trip points so that user applications can take 84 get the type of certain trip point. 86 get the temperature above which the certain trip point 260 int trip, struct thermal_cooling_device *cdev, 272 trip: 276 the Maximum cooling state for this trip point. 280 the Minimum cooling state can be used for this trip point. 290 int trip, struct thermal_cooling_device *cdev); 300 trip: [all …]
|
/linux-6.3-rc2/drivers/thermal/intel/ |
A D | Kconfig | 32 two trip points which can be set by user to get notifications via thermal 55 thermal zone. There are two trip points. One of the trip point can 57 notification methods.The other trip is a critical trip point, which 66 The DTS will be registered as a thermal zone. There are two trip points: 67 hot & critical. The critical trip point default value is set by 82 the alert trip point interrupts and notifies the thermal framework with 83 the trip point and temperature details of the zone. 92 programmable trip points and other information.
|
A D | intel_quark_dts_thermal.c | 177 static int get_trip_temp(int trip) in get_trip_temp() argument 196 temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in get_trip_temp() 203 int trip, int temp) in update_trip_temp() argument 238 (trip * QRK_DTS_SHIFT_TP))); in update_trip_temp() 240 (trip * QRK_DTS_SHIFT_TP); in update_trip_temp() 250 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument 253 return update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
|
/linux-6.3-rc2/include/trace/events/ |
A D | thermal.h | 70 TP_PROTO(struct thermal_zone_device *tz, int trip, 73 TP_ARGS(tz, trip, trip_type), 78 __field(int, trip) 85 __entry->trip = trip; 90 __get_str(thermal_zone), __entry->id, __entry->trip,
|