Home
last modified time | relevance | path

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

12345678910

/linux-6.1.9/drivers/thermal/intel/int340x_thermal/
Dint340x_thermal_zone.c44 int trip, int *temp) in int340x_thermal_get_trip_temp() argument
50 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp()
54 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp()
55 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp()
56 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_temp()
58 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_temp()
60 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_temp()
65 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_temp()
80 int trip, in int340x_thermal_get_trip_type() argument
87 return d->override_ops->get_trip_type(zone, trip, type); in int340x_thermal_get_trip_type()
[all …]
/linux-6.1.9/drivers/thermal/
Dthermal_of.c48 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid() argument
50 if (trip >= tz->num_trips || trip < 0) in of_thermal_is_trip_valid()
74 static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_type() argument
77 if (trip >= tz->num_trips || trip < 0) in of_thermal_get_trip_type()
80 *type = tz->trips[trip].type; in of_thermal_get_trip_type()
85 static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_temp() argument
88 if (trip >= tz->num_trips || trip < 0) in of_thermal_get_trip_temp()
91 *temp = tz->trips[trip].temperature; in of_thermal_get_trip_temp()
96 static int of_thermal_get_trip_hyst(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_hyst() argument
99 if (trip >= tz->num_trips || trip < 0) in of_thermal_get_trip_hyst()
[all …]
Dgov_bang_bang.c16 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
21 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
28 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
31 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
35 if (instance->trip != trip) in thermal_zone_trip_update()
95 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
101 thermal_zone_trip_update(tz, trip); in bang_bang_control()
Dgov_step_wise.c98 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
107 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
108 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update()
110 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
114 trace_thermal_zone_trip(tz, trip, trip_type); in thermal_zone_trip_update()
118 trip, trip_type, trip_temp, trend, throttle); in thermal_zone_trip_update()
121 if (instance->trip != trip) in thermal_zone_trip_update()
159 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument
165 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
Dgov_fair_share.c74 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument
84 if (instance->trip != trip) in fair_share_throttle()
95 if (instance->trip != trip) in fair_share_throttle()
Dthermal_sysfs.c87 int trip, result; in trip_point_type_show() local
92 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1) in trip_point_type_show()
95 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
118 int trip, ret; in trip_point_temp_store() local
125 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_store()
132 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
138 tz->trips[trip].temperature = temperature; in trip_point_temp_store()
141 ret = tz->ops->get_trip_hyst(tz, trip, &hyst); in trip_point_temp_store()
146 ret = tz->ops->get_trip_type(tz, trip, &type); in trip_point_temp_store()
150 thermal_notify_tz_trip_change(tz->id, trip, type, temperature, hyst); in trip_point_temp_store()
[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,
80 bool "Enable writable trip points"
83 trip temperatures can be changed from userspace. The
88 change trip temperatures.
116 The Userspace governor allows to get trip point crossed
215 user can manually input temperature and test the different trip
242 CPUs when the passive trip is crossed.
252 It supports one critical trip point and one passive trip point. The
[all …]
Dthermal_core.c308 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument
310 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
311 def_governor->throttle(tz, trip); in handle_non_critical_trips()
330 int trip, int trip_temp, enum thermal_trip_type trip_type) in handle_critical_trips() argument
336 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
344 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
350 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
353 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_thermal_trip()
354 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
356 tz->ops->get_trip_hyst(tz, trip, &hyst); in handle_thermal_trip()
[all …]
/linux-6.1.9/arch/arm/boot/dts/
Dexynos5422-odroidxu3-common.dtsi78 * Exynos542x supports only 4 trip-points
81 * interrupt-driven trip: cpu0_alert2
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>;
[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>;
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-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c205 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind() local
208 trip->max_state, in mlxsw_thermal_bind()
209 trip->min_state, in mlxsw_thermal_bind()
264 int trip, in mlxsw_thermal_get_trip_type() argument
269 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_get_trip_type()
272 *p_type = thermal->trips[trip].type; in mlxsw_thermal_get_trip_type()
277 int trip, int *p_temp) in mlxsw_thermal_get_trip_temp() argument
281 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_get_trip_temp()
284 *p_temp = thermal->trips[trip].temp; in mlxsw_thermal_get_trip_temp()
289 int trip, int temp) in mlxsw_thermal_set_trip_temp() argument
[all …]
/linux-6.1.9/drivers/thermal/broadcom/
Dbrcmstb_thermal.c180 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local
181 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
186 val |= trip->enable_mask; in avs_tmon_trip_enable()
188 val &= ~trip->enable_mask; in avs_tmon_trip_enable()
190 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
196 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local
197 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp()
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
[all …]
/linux-6.1.9/drivers/thermal/intel/
Dintel_quark_dts_thermal.c175 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument
194 *temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in _get_trip_temp()
201 int trip, int *temp) in sys_get_trip_temp() argument
203 return _get_trip_temp(trip, temp); in sys_get_trip_temp()
212 int trip, int temp) in update_trip_temp() argument
247 (trip * QRK_DTS_SHIFT_TP))); in update_trip_temp()
249 (trip * QRK_DTS_SHIFT_TP); in update_trip_temp()
259 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
262 return update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
266 int trip, enum thermal_trip_type *type) in sys_get_trip_type() argument
[all …]
DKconfig24 two trip points which can be set by user to get notifications via thermal
46 thermal zone. There are two trip points. One of the trip point can
48 notification methods.The other trip is a critical trip point, which
57 The DTS will be registered as a thermal zone. There are two trip points:
58 hot & critical. The critical trip point default value is set by
72 the alert trip point interrupts and notifies the thermal framework with
73 the trip point and temperature details of the zone.
81 programmable trip points and other information.
/linux-6.1.9/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-6.1.9/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-6.1.9/Documentation/devicetree/bindings/thermal/
Dthermal-zones.yaml35 max dT/dt, such that a device does not cross several trip boundaries
57 this zone, one sub-node containing the various trip points for this
124 An integer expressing the trip temperature in millicelsius.
130 respect to the trip temperature property above, also in
133 (trip temperature - hysteresis). This potentially prevents a
134 situation where the trip gets constantly triggered soon after
145 There are four valid trip types: active, passive, hot,
148 The critical trip type is used to set the maximum
154 The hot trip type can be used to send a notification to
158 The passive trip type can be used to slow down HW e.g. run
[all …]
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-6.1.9/drivers/acpi/
Dthermal.c517 int trip, enum thermal_trip_type *type) in thermal_get_trip_type() argument
522 if (!tz || trip < 0) in thermal_get_trip_type()
526 if (!trip) { in thermal_get_trip_type()
530 trip--; in thermal_get_trip_type()
534 if (!trip) { in thermal_get_trip_type()
538 trip--; in thermal_get_trip_type()
542 if (!trip) { in thermal_get_trip_type()
546 trip--; in thermal_get_trip_type()
550 if (!trip) { in thermal_get_trip_type()
554 trip--; in thermal_get_trip_type()
[all …]
/linux-6.1.9/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-6.1.9/drivers/thermal/samsung/
Dexynos_tmu.c197 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
199 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
363 int trip, u8 temp) in exynos4210_tmu_set_trip_temp() argument
371 if (trip == 0) { in exynos4210_tmu_set_trip_temp()
377 writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip * 4); in exynos4210_tmu_set_trip_temp()
382 int trip, u8 temp, u8 hyst) in exynos4210_tmu_set_trip_hyst() argument
394 int trip, u8 temp) in exynos4412_tmu_set_trip_temp() argument
399 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_temp()
400 th |= temp_to_code(data, temp) << 8 * trip; in exynos4412_tmu_set_trip_temp()
403 if (trip == 3) { in exynos4412_tmu_set_trip_temp()
[all …]
/linux-6.1.9/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-6.1.9/include/trace/events/
Dthermal.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,

12345678910