Home
last modified time | relevance | path

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

123456789

/linux/drivers/thermal/intel/int340x_thermal/
A Dint340x_thermal_zone.c44 int trip, int *temp) in int340x_thermal_get_trip_temp() argument
52 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp()
53 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp()
54 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_temp()
56 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_temp()
58 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_temp()
76 int trip, in int340x_thermal_get_trip_type() argument
85 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_type()
109 int trip, int temp) in int340x_thermal_set_trip_temp() argument
124 d->aux_trips[trip] = temp; in int340x_thermal_set_trip_temp()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_thermal.c202 i++, trip++) { in mlxsw_thermal_tz_score_update()
203 if (temp < trip->temp) { in mlxsw_thermal_tz_score_update()
291 int trip, in mlxsw_thermal_get_trip_type() argument
296 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_get_trip_type()
308 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_get_trip_temp()
320 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_set_trip_temp()
350 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_trend_get()
483 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_module_trip_type_get()
496 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_module_trip_temp_get()
509 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_module_trip_temp_set()
[all …]
/linux/drivers/thermal/
A Dthermal_of.c144 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
278 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
291 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
304 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_temp()
326 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_hyst()
339 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_hyst()
683 struct device_node *trip; in thermal_of_populate_bind_params() local
694 if (!trip) { in thermal_of_populate_bind_params()
753 of_node_put(trip); in thermal_of_populate_bind_params()
826 trip->hysteresis = prop; in thermal_of_populate_trip()
[all …]
A 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()
37 if (instance->trip != trip) in thermal_zone_trip_update()
99 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
103 thermal_zone_trip_update(tz, trip); in bang_bang_control()
A Dgov_step_wise.c116 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
125 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
126 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update()
128 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
132 trace_thermal_zone_trip(tz, trip, trip_type); in thermal_zone_trip_update()
136 trip, trip_type, trip_temp, trend, throttle); in thermal_zone_trip_update()
141 if (instance->trip != trip) in thermal_zone_trip_update()
181 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument
185 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
A Dgov_fair_share.c78 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument
88 if (instance->trip != trip) in fair_share_throttle()
99 if (instance->trip != trip) in fair_share_throttle()
A Dthermal_sysfs.c83 int trip, result; in trip_point_type_show() local
91 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
114 int trip, ret; in trip_point_temp_store() local
127 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
132 ret = tz->ops->get_trip_hyst(tz, trip, &hyst); in trip_point_temp_store()
137 ret = tz->ops->get_trip_type(tz, trip, &type); in trip_point_temp_store()
153 int trip, ret; in trip_point_temp_show() local
175 int trip, ret; in trip_point_hyst_store() local
192 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
205 int trip, ret; in trip_point_hyst_show() local
[all …]
A DKconfig80 bool "Enable writable trip points"
88 change trip temperatures.
240 CPUs when the passive trip is crossed.
250 It supports one critical trip point and one passive trip point. The
252 passive trip is crossed.
271 It supports one critical trip point and one passive trip point. The
273 trip is crossed.
302 It supports one critical trip point and one passive trip point. The
304 passive trip is crossed.
383 thermal zone if trip points reached.
[all …]
A Dthermal_core.c324 def_governor->throttle(tz, trip); in handle_non_critical_trips()
367 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
371 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
387 handle_critical_trips(tz, trip, type); in handle_thermal_trip()
389 handle_non_critical_trips(tz, trip); in handle_thermal_trip()
621 int trip, in thermal_zone_bind_cooling_device() argument
633 if (trip >= tz->trips || trip < 0) in thermal_zone_bind_cooling_device()
664 dev->trip = trip; in thermal_zone_bind_cooling_device()
703 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
746 int trip, in thermal_zone_unbind_cooling_device() argument
[all …]
/linux/arch/arm/boot/dts/
A Dexynos5422-odroidxu3-common.dtsi96 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 Dexynos5422-odroidhc1.dts58 trip = <&cpu0_alert0>;
74 trip = <&cpu0_alert1>;
107 trip = <&cpu1_alert0>;
118 trip = <&cpu1_alert1>;
151 trip = <&cpu2_alert0>;
162 trip = <&cpu2_alert1>;
195 trip = <&cpu3_alert0>;
206 trip = <&cpu3_alert1>;
239 trip = <&gpu_alert0>;
243 trip = <&gpu_alert1>;
A 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/drivers/thermal/broadcom/
A Dbrcmstb_thermal.c180 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/arch/arm64/boot/dts/marvell/
A Darmada-8040-clearfog-gt-8k.dts118 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/drivers/acpi/
A Dthermal.c532 trip--; in thermal_get_trip_type()
540 trip--; in thermal_get_trip_type()
548 trip--; in thermal_get_trip_type()
557 trip--; in thermal_get_trip_type()
579 trip--; in thermal_get_trip_temp()
589 trip--; in thermal_get_trip_temp()
599 trip--; in thermal_get_trip_temp()
610 trip--; in thermal_get_trip_temp()
708 trip++; in acpi_thermal_cooling_device_cb()
711 trip++; in acpi_thermal_cooling_device_cb()
[all …]
/linux/drivers/thermal/intel/
A 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 …]
A 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/Documentation/devicetree/bindings/thermal/
A Dthermal-zones.yaml35 max dT/dt, such that a device does not cross several trip boundaries
178 trip and the target cooling device state.
185 trip:
206 specific trip temperature referenced in this map
210 - 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 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/arch/arm64/boot/dts/exynos/
A 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/drivers/crypto/nx/
A Dnx.c377 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/arch/arm64/boot/dts/qcom/
A Dsm8350.dtsi1679 cpu0_alert0: trip-point0 {
1685 cpu0_alert1: trip-point1 {
1700 trip = <&cpu0_alert0>;
1707 trip = <&cpu0_alert1>;
1744 trip = <&cpu1_alert0>;
1751 trip = <&cpu1_alert1>;
1788 trip = <&cpu2_alert0>;
1795 trip = <&cpu2_alert1>;
1832 trip = <&cpu3_alert0>;
1839 trip = <&cpu3_alert1>;
[all …]
/linux/drivers/thermal/samsung/
A Dexynos_tmu.c363 int trip, u8 temp) in exynos4210_tmu_set_trip_temp() argument
371 if (trip == 0) { in exynos4210_tmu_set_trip_temp()
394 int trip, u8 temp) in exynos4412_tmu_set_trip_temp() argument
403 if (trip == 3) { in exynos4412_tmu_set_trip_temp()
450 int trip, u8 temp) in exynos5433_tmu_set_trip_temp() argument
455 if (trip > 3) { in exynos5433_tmu_set_trip_temp()
457 j = trip - 4; in exynos5433_tmu_set_trip_temp()
460 j = trip; in exynos5433_tmu_set_trip_temp()
475 if (trip > 3) { in exynos5433_tmu_set_trip_hyst()
477 j = trip - 4; in exynos5433_tmu_set_trip_hyst()
[all …]
/linux/Documentation/driver-api/thermal/
A Dsysfs-api.rst55 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 …]
A 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.

Completed in 53 milliseconds

123456789