Home
last modified time | relevance | path

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

123456

/Linux-v4.19/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c52 int trip, int *temp) in int340x_thermal_get_trip_temp() argument
58 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp()
60 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp()
61 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp()
62 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_temp()
64 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_temp()
66 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_temp()
71 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_temp()
84 int trip, in int340x_thermal_get_trip_type() argument
91 return d->override_ops->get_trip_type(zone, trip, type); in int340x_thermal_get_trip_type()
[all …]
/Linux-v4.19/arch/arm/boot/dts/
Dexynos5422-odroidxu3-common.dtsi80 * Exynos542x supports only 4 trip-points
83 * interrupt-driven trip: cpu0_alert2
98 trip = <&cpu0_alert0>;
102 trip = <&cpu0_alert1>;
106 trip = <&cpu0_alert2>;
115 trip = <&cpu0_alert3>;
119 trip = <&cpu0_alert3>;
128 trip = <&cpu0_alert4>;
132 trip = <&cpu0_alert4>;
175 trip = <&cpu1_alert0>;
[all …]
Dexynos5422-odroidhc1.dts58 trip = <&cpu0_alert0>;
62 trip = <&cpu0_alert0>;
71 trip = <&cpu0_alert1>;
75 trip = <&cpu0_alert1>;
101 trip = <&cpu1_alert0>;
105 trip = <&cpu1_alert0>;
109 trip = <&cpu1_alert1>;
113 trip = <&cpu1_alert1>;
139 trip = <&cpu2_alert0>;
143 trip = <&cpu2_alert0>;
[all …]
Dexynos4412-odroidu3.dts47 trip = <&cpu_alert1>;
51 trip = <&cpu_alert2>;
55 trip = <&cpu_alert0>;
59 trip = <&cpu_alert1>;
63 trip = <&cpu_alert2>;
/Linux-v4.19/drivers/thermal/
Dof-thermal.c128 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid() argument
132 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
180 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend() argument
188 return data->ops->get_trend(data->sensor_data, trip, trend); in of_thermal_get_trend()
279 static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_type() argument
284 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
287 *type = data->trips[trip].type; in of_thermal_get_trip_type()
292 static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_temp() argument
297 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
300 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
[all …]
Dstep_wise.c128 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
137 if (trip == THERMAL_TRIPS_NONE) { in thermal_zone_trip_update()
141 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
142 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update()
145 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
149 trace_thermal_zone_trip(tz, trip, trip_type); in thermal_zone_trip_update()
153 trip, trip_type, trip_temp, trend, throttle); in thermal_zone_trip_update()
158 if (instance->trip != trip) in thermal_zone_trip_update()
198 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument
202 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
Dgov_bang_bang.c26 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
31 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
38 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
41 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
47 if (instance->trip != trip) in thermal_zone_trip_update()
109 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
113 thermal_zone_trip_update(tz, trip); in bang_bang_control()
Dintel_quark_dts_thermal.c189 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument
208 *temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in _get_trip_temp()
215 int trip, int *temp) in sys_get_trip_temp() argument
217 return _get_trip_temp(trip, temp); in sys_get_trip_temp()
226 int trip, int temp) in update_trip_temp() argument
261 (trip * QRK_DTS_SHIFT_TP))); in update_trip_temp()
263 (trip * QRK_DTS_SHIFT_TP); in update_trip_temp()
273 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
276 return update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
280 int trip, enum thermal_trip_type *type) in sys_get_trip_type() argument
[all …]
Dfair_share.c90 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument
98 if (instance->trip != trip) in fair_share_throttle()
109 if (instance->trip != trip) in fair_share_throttle()
DKconfig11 Each thermal zone contains its own temperature, trip points,
35 poweroff kicks in. Similarly to the critical trip point,
70 bool "Enable writable trip points"
73 trip temperatures can be changed from userspace. The
78 change trip temperatures.
195 user can manually input temperature and test the different trip
211 CPUs when the passive trip is crossed.
221 It supports one critical trip point and one passive trip point. The
223 passive trip is crossed.
241 It supports one critical trip point and one passive trip point. The
[all …]
Dthermal_core.c317 int trip, in handle_non_critical_trips() argument
320 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
321 def_governor->throttle(tz, trip); in handle_non_critical_trips()
373 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument
377 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
383 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
386 tz->ops->notify(tz, trip, trip_type); in handle_critical_trips()
406 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
411 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
414 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
[all …]
Dintel_pch_thermal.c240 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type() argument
245 if (ptd->crt_trip_id == trip) in pch_get_trip_type()
247 else if (ptd->hot_trip_id == trip) in pch_get_trip_type()
249 else if (ptd->psv_trip_id == trip) in pch_get_trip_type()
257 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument
261 if (ptd->crt_trip_id == trip) in pch_get_trip_temp()
263 else if (ptd->hot_trip_id == trip) in pch_get_trip_temp()
265 else if (ptd->psv_trip_id == trip) in pch_get_trip_temp()
/Linux-v4.19/drivers/thermal/broadcom/
Dbrcmstb_thermal.c191 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local
192 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
197 val |= trip->enable_mask; in avs_tmon_trip_enable()
199 val &= ~trip->enable_mask; in avs_tmon_trip_enable()
201 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
207 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local
208 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp()
210 val &= trip->reg_msk; in avs_tmon_get_trip_temp()
211 val >>= trip->reg_shift; in avs_tmon_get_trip_temp()
220 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_set_trip_temp() local
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c111 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind() local
114 trip->max_state, in mlxsw_thermal_bind()
115 trip->min_state, in mlxsw_thermal_bind()
200 int trip, in mlxsw_thermal_get_trip_type() argument
205 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_get_trip_type()
208 *p_type = thermal->trips[trip].type; in mlxsw_thermal_get_trip_type()
213 int trip, int *p_temp) in mlxsw_thermal_get_trip_temp() argument
217 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_get_trip_temp()
220 *p_temp = thermal->trips[trip].temp; in mlxsw_thermal_get_trip_temp()
225 int trip, int temp) in mlxsw_thermal_set_trip_temp() argument
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/thermal/
Dzx2967-thermal.txt78 trip = <&trip0>;
83 trip = <&trip0>;
88 trip = <&trip1>;
93 trip = <&crit>;
98 trip = <&trip0>;
104 trip = <&trip1>;
110 trip = <&crit>;
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;
Dthermal.txt6 such as trip points, polling intervals, sensors and cooling devices
18 - trip points: describe key temperatures at which cooling is recommended. The
20 - cooling maps: used to describe links between trip points and cooling devices;
73 The trip node is a node to describe a point in the temperature domain
78 - temperature: An integer indicating the trip temperature level,
86 - type: a string containing the trip type. Expected values are:
87 "active": A trip point to enable active cooling
88 "passive": A trip point to enable passive cooling
89 "hot": A trip point to notify emergency
96 get assigned to trip points of the zone. The cooling devices are expected
[all …]
/Linux-v4.19/drivers/acpi/
Dthermal.c591 int trip, enum thermal_trip_type *type) in thermal_get_trip_type() argument
596 if (!tz || trip < 0) in thermal_get_trip_type()
600 if (!trip) { in thermal_get_trip_type()
604 trip--; in thermal_get_trip_type()
608 if (!trip) { in thermal_get_trip_type()
612 trip--; in thermal_get_trip_type()
616 if (!trip) { in thermal_get_trip_type()
620 trip--; in thermal_get_trip_type()
625 if (!trip) { in thermal_get_trip_type()
629 trip--; in thermal_get_trip_type()
[all …]
/Linux-v4.19/arch/arm64/boot/dts/exynos/
Dexynos5433-tmu.dtsi57 trip = <&atlas0_alert_0>;
62 trip = <&atlas0_alert_1>;
67 trip = <&atlas0_alert_2>;
72 trip = <&atlas0_alert_3>;
77 trip = <&atlas0_alert_4>;
82 trip = <&atlas0_alert_5>;
87 trip = <&atlas0_alert_6>;
224 trip = <&apollo_alert_2>;
229 trip = <&apollo_alert_3>;
234 trip = <&apollo_alert_4>;
[all …]
/Linux-v4.19/drivers/crypto/nx/
Dnx.c372 struct msc_triplet *trip; in nx_of_update_msc() local
388 trip = msc->trip; in nx_of_update_msc()
401 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
403 "%u/%u (ignored)\n", trip->sglen, in nx_of_update_msc()
404 trip->databytelen); in nx_of_update_msc()
408 switch (trip->keybitlen) { in nx_of_update_msc()
412 trip->databytelen; in nx_of_update_msc()
414 trip->sglen; in nx_of_update_msc()
418 trip->databytelen; in nx_of_update_msc()
420 trip->sglen; in nx_of_update_msc()
[all …]
/Linux-v4.19/drivers/thermal/samsung/
Dexynos_tmu.c208 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
210 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
374 int trip, u8 temp) in exynos4210_tmu_set_trip_temp() argument
382 if (trip == 0) { in exynos4210_tmu_set_trip_temp()
388 writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip * 4); in exynos4210_tmu_set_trip_temp()
393 int trip, u8 temp, u8 hyst) in exynos4210_tmu_set_trip_hyst() argument
405 int trip, u8 temp) in exynos4412_tmu_set_trip_temp() argument
410 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_temp()
411 th |= temp_to_code(data, temp) << 8 * trip; in exynos4412_tmu_set_trip_temp()
414 if (trip == 3) { in exynos4412_tmu_set_trip_temp()
[all …]
/Linux-v4.19/Documentation/thermal/
Dx86_pkg_temperature_thermal19 zone with maximum two user mode configurable trip points. Number of trip points
20 depends on the capability of the package. Once the trip point is violated,
31 This contains two trip points:
39 Any value other than 0 in these trip points, can trigger thermal notifications.
Dsysfs-api.txt25 inputs from thermal zone attributes (the current temperature and trip point
45 trips: the total number of trip points this thermal zone supports.
46 mask: Bit string: If 'n'th bit is set, then trip point 'n' is writeable.
52 .set_trips: set the trip points window. Whenever the current temperature
53 is updated, the trip points immediately below and above the
57 - "disabled" will prevent kernel thermal driver action upon trip points
60 .get_trip_type: get the type of certain trip point.
61 .get_trip_temp: get the temperature above which the certain trip point
69 whether trip points have been crossed (0 for interrupt driven systems).
184 int trip, struct thermal_cooling_device *cdev,
[all …]
/Linux-v4.19/drivers/thermal/ti-soc-thermal/
Dti-thermal.h67 #define ti_thermal_is_valid_trip(trip) \ argument
68 ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER)
/Linux-v4.19/drivers/firmware/arm_scmi/
Dsensors.c186 struct scmi_msg_set_sensor_trip_point *trip; in scmi_sensor_trip_point_set() local
189 SCMI_PROTOCOL_SENSOR, sizeof(*trip), 0, &t); in scmi_sensor_trip_point_set()
193 trip = t->tx.buf; in scmi_sensor_trip_point_set()
194 trip->id = cpu_to_le32(sensor_id); in scmi_sensor_trip_point_set()
195 trip->event_control = cpu_to_le32(evt_cntl | SENSOR_TP_ID(trip_id)); in scmi_sensor_trip_point_set()
196 trip->value_low = cpu_to_le32(trip_value & 0xffffffff); in scmi_sensor_trip_point_set()
197 trip->value_high = cpu_to_le32(trip_value >> 32); in scmi_sensor_trip_point_set()

123456