Home
last modified time | relevance | path

Searched refs:trip (Results 1 – 25 of 256) sorted by relevance

1234567891011

/Linux-v6.6/drivers/thermal/
Dthermal_trip.c56 struct thermal_trip trip; in __thermal_zone_set_trips() local
68 ret = __thermal_zone_get_trip(tz, i , &trip); in __thermal_zone_set_trips()
72 trip_low = trip.temperature - trip.hysteresis; in __thermal_zone_set_trips()
77 if (trip.temperature > tz->temperature && in __thermal_zone_set_trips()
78 trip.temperature < high) in __thermal_zone_set_trips()
79 high = trip.temperature; in __thermal_zone_set_trips()
102 struct thermal_trip *trip) in __thermal_zone_get_trip() argument
104 if (!tz || !tz->trips || trip_id < 0 || trip_id >= tz->num_trips || !trip) in __thermal_zone_get_trip()
107 *trip = tz->trips[trip_id]; in __thermal_zone_get_trip()
113 struct thermal_trip *trip) in thermal_zone_get_trip() argument
[all …]
Dgov_bang_bang.c18 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()
Dgov_fair_share.c24 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()
Dgov_step_wise.c86 struct thermal_trip trip; in thermal_zone_trip_update() local
90 __thermal_zone_get_trip(tz, trip_id, &trip); in thermal_zone_trip_update()
94 if (tz->temperature >= trip.temperature) { in thermal_zone_trip_update()
96 trace_thermal_zone_trip(tz, trip_id, trip.type); in thermal_zone_trip_update()
100 trip_id, trip.type, trip.temperature, trend, throttle); in thermal_zone_trip_update()
103 if (instance->trip != trip_id) in thermal_zone_trip_update()
117 update_passive_instance(tz, trip.type, 1); in thermal_zone_trip_update()
121 update_passive_instance(tz, trip.type, -1); in thermal_zone_trip_update()
141 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument
147 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
Dgov_power_allocator.c98 if (instance->trip != params->trip_max_desired_temperature) in estimate_sustainable_power()
127 struct thermal_trip trip; in estimate_pid_constants() local
132 ret = __thermal_zone_get_trip(tz, trip_switch_on, &trip); in estimate_pid_constants()
134 temperature_threshold -= trip.temperature; in estimate_pid_constants()
396 if ((instance->trip == trip_max_desired_temperature) && in allocate_power()
435 if (instance->trip != trip_max_desired_temperature) in allocate_power()
471 if (instance->trip != trip_max_desired_temperature) in allocate_power()
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()
[all …]
Dthermal_helpers.c27 struct thermal_trip *trip = tz->trips ? &tz->trips[trip_index] : NULL; in get_tz_trend() local
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()
Dthermal_core.c310 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument
312 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
313 def_governor->throttle(tz, trip); in handle_non_critical_trips()
332 int trip, int trip_temp, enum thermal_trip_type trip_type) in handle_critical_trips() argument
338 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
348 struct thermal_trip trip; in handle_thermal_trip() local
354 __thermal_zone_get_trip(tz, trip_id, &trip); in handle_thermal_trip()
356 if (trip.temperature == THERMAL_TEMP_INVALID) in handle_thermal_trip()
360 if (tz->last_temperature < trip.temperature && in handle_thermal_trip()
361 tz->temperature >= trip.temperature) in handle_thermal_trip()
[all …]
DKconfig12 Each thermal zone contains its own temperature, trip points,
26 trip point crossed, cooling device update or governor
45 poweroff kicks in. Similarly to the critical trip point,
84 bool "Enable writable trip points"
87 trip temperatures can be changed from userspace. The
92 change trip temperatures.
120 The Userspace governor allows to get trip point crossed
138 devices one step at the time, taking into account the trip
227 user can manually input temperature and test the different trip
254 CPUs when the passive trip is crossed.
[all …]
Dthermal_trace.h70 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,
Dthermal_sysfs.c86 struct thermal_trip trip; in trip_point_type_show() local
95 result = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_type_show()
104 switch (trip.type) { in trip_point_type_show()
123 struct thermal_trip trip; in trip_point_temp_store() local
136 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_temp_store()
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
165 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_temp_show()
174 return sprintf(buf, "%d\n", trip.temperature); in trip_point_temp_show()
[all …]
/Linux-v6.6/drivers/acpi/
Dthermal.c101 struct acpi_thermal_trip trip; member
109 struct acpi_thermal_trip trip; member
256 if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.trip.valid) || in __acpi_thermal_trips_update()
258 valid = tz->trips.passive.trip.valid; in __acpi_thermal_trips_update()
270 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
272 tz->trips.passive.trip.temperature = tmp; in __acpi_thermal_trips_update()
273 tz->trips.passive.trip.valid = true; in __acpi_thermal_trips_update()
278 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
285 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
292 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
[all …]
/Linux-v6.6/arch/arm/boot/dts/samsung/
Dexynos5422-odroidxu3-common.dtsi82 * Exynos542x supports only 4 trip-points
85 * interrupt-driven trip: cpu0_alert2
100 trip = <&cpu0_alert0>;
104 trip = <&cpu0_alert1>;
108 trip = <&cpu0_alert2>;
117 trip = <&cpu0_alert3>;
133 trip = <&cpu0_alert4>;
183 trip = <&cpu1_alert0>;
187 trip = <&cpu1_alert1>;
191 trip = <&cpu1_alert2>;
[all …]
Dexynos5422-odroidhc1.dts60 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>;
/Linux-v6.6/drivers/thermal/broadcom/
Dbrcmstb_thermal.c178 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local
179 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
184 val |= trip->enable_mask; in avs_tmon_trip_enable()
186 val &= ~trip->enable_mask; in avs_tmon_trip_enable()
188 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
194 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local
195 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp()
197 val &= trip->reg_msk; in avs_tmon_get_trip_temp()
198 val >>= trip->reg_shift; in avs_tmon_get_trip_temp()
207 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_set_trip_temp() local
[all …]
/Linux-v6.6/drivers/thermal/samsung/
Dexynos_tmu.c196 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
198 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
298 struct thermal_trip trip; in exynos_tmu_initialize() local
300 ret = thermal_zone_get_trip(tzd, i, &trip); in exynos_tmu_initialize()
304 data->tmu_set_trip_temp(data, i, trip.temperature / MCELSIUS); in exynos_tmu_initialize()
305 data->tmu_set_trip_hyst(data, i, trip.temperature / MCELSIUS, in exynos_tmu_initialize()
306 trip.hysteresis / MCELSIUS); in exynos_tmu_initialize()
353 struct thermal_trip trip; in exynos4210_tmu_set_trip_temp() local
356 if (thermal_zone_get_trip(data->tzd, 0, &trip)) in exynos4210_tmu_set_trip_temp()
359 ref = trip.temperature / MCELSIUS; in exynos4210_tmu_set_trip_temp()
[all …]
/Linux-v6.6/arch/arm64/boot/dts/marvell/
Darmada-8040-clearfog-gt-8k.dts118 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 …]
/Linux-v6.6/arch/arm64/boot/dts/exynos/
Dexynos5433-tmu.dtsi57 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-v6.6/drivers/crypto/nx/
Dnx.c361 struct msc_triplet *trip; in nx_of_update_msc() local
377 trip = msc->trip; in nx_of_update_msc()
390 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
392 "%u/%u (ignored)\n", trip->sglen, in nx_of_update_msc()
393 trip->databytelen); in nx_of_update_msc()
397 switch (trip->keybitlen) { 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()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/thermal/
Ddb8500-thermal.txt9 - 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-v6.6/Documentation/driver-api/thermal/
Dx86_pkg_temperature_thermal.rst23 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.
Dsysfs-api.rst27 inputs from thermal zone attributes (the current temperature and trip point
55 the total number of trip points this thermal zone supports.
57 Bit string: If 'n'th bit is set, then trip point 'n' is writable.
70 set the trip points window. Whenever the current temperature
71 is updated, the trip points immediately below and above the
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
98 whether trip points have been crossed (0 for interrupt driven systems).
260 int trip, struct thermal_cooling_device *cdev,
[all …]
/Linux-v6.6/drivers/thermal/intel/
DKconfig32 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.
Dintel_quark_dts_thermal.c177 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(thermal_zone_device_priv(tzd), trip, temp); in sys_set_trip_temp()
/Linux-v6.6/arch/arm/boot/dts/rockchip/
Drk3288-veyron-mickey.dts89 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-v6.6/arch/arm64/boot/dts/qcom/
Dsm6375.dtsi1774 mapss0_alert0: trip-point0 {
1780 mapss0_alert1: trip-point1 {
1801 cpu0_alert0: trip-point0 {
1807 cpu0_alert1: trip-point1 {
1828 cpu1_alert0: trip-point0 {
1834 cpu1_alert1: trip-point1 {
1855 cpu2_alert0: trip-point0 {
1861 cpu2_alert1: trip-point1 {
1882 cpu3_alert0: trip-point0 {
1888 cpu3_alert1: trip-point1 {
[all …]

1234567891011