Home
last modified time | relevance | path

Searched full:trip (Results 1 – 25 of 577) sorted by relevance

12345678910>>...24

/kernel/linux/linux-4.19/drivers/thermal/
Dof-thermal.c22 * struct __thermal_bind_param - a match between trip and cooling device
24 * @trip_id: the trip point index
26 * @min: minimum cooling state used at this trip point
27 * @max: maximum cooling state used at this trip point
45 * @ntrips: number of trip points
46 * @trips: an array of trip points (0..ntrips - 1)
60 /* trip data */
98 * of_thermal_get_ntrips - function to export number of available trip
102 * This function is a globally visible wrapper to get number of trip points
105 * Return: number of available trip points, -ENODEV when data not available
[all …]
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 …]
Dstep_wise.c31 * If the temperature is higher than a trip point,
33 * state for this trip point
36 * for this trip point
38 * for this trip point
39 * If the temperature is lower than a trip point,
42 * state for this trip point, if the cooling state already
128 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()
[all …]
Dintel_quark_dts_thermal.c85 /* Programmable Trip Point Register is configured via QRK_MBI_UNIT_RMU */
96 /* Quark DTS has 2 trip points: hot & catastrophic */
98 /* If DTS not locked, all trip points are configurable */
100 /* If DTS locked, all trip points are not configurable */
118 "Polling interval for checking trip points (in milliseconds)");
189 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument
203 * Thermal Sensor Programmable Trip Point Register has 8-bit in _get_trip_temp()
204 * fields for critical (catastrophic) and hot set trip point in _get_trip_temp()
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
[all …]
Dfair_share.c31 * get_trip_level: - obtains the current trip level for a zone
50 * count > 0 only if temperature is greater than first trip in get_trip_level()
74 * @trip - trip point index
85 * We do not want to throttle too much when we trip a lower temperature,
86 * whereas the throttling is at full swing if we trip critical levels.
87 * (Heavily assumes the trip points are in ascending order)
90 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()
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()
40 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", 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()
85 * @trip - the trip point
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()
/kernel/linux/linux-5.10/drivers/thermal/
Dthermal_of.c25 * struct __thermal_cooling_bind_param - a cooling device for a trip point
27 * @min: minimum cooling state used at this trip point
28 * @max: maximum cooling state used at this trip point
38 * struct __thermal_bind_param - a match between trip and cooling device
41 * @trip_id: the trip point index
58 * @ntrips: number of trip points
59 * @trips: an array of trip points (0..ntrips - 1)
72 /* trip data */
110 * of_thermal_get_ntrips - function to export number of available trip
114 * This function is a globally visible wrapper to get number of trip points
[all …]
Dgov_step_wise.c19 * If the temperature is higher than a trip point,
21 * state for this trip point
24 * for this trip point
26 * for this trip point
27 * If the temperature is lower than a trip point,
30 * state for this trip point, if the cooling state already
116 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
125 if (trip == THERMAL_TRIPS_NONE) { in thermal_zone_trip_update()
129 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
130 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update()
[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.
213 user can manually input temperature and test the different trip
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.
[all …]
Dgov_fair_share.c19 * get_trip_level: - obtains the current trip level for a zone
38 * count > 0 only if temperature is greater than first trip in get_trip_level()
62 * @trip: trip point index
73 * We do not want to throttle too much when we trip a lower temperature,
74 * whereas the throttling is at full swing if we trip critical levels.
75 * (Heavily assumes the trip points are in ascending order)
78 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()
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()
30 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", 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()
75 * @trip: the trip point
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()
/kernel/linux/linux-4.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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c178 * defined with four trip points. The critical and emergency in mlxsw_thermal_module_trips_update()
180 * and "hot" trip points, "normal" and "critical" trip points are in mlxsw_thermal_module_trips_update()
202 struct mlxsw_thermal_trip *trip = trips; in mlxsw_thermal_tz_score_update() local
210 i++, trip++) { in mlxsw_thermal_tz_score_update()
211 if (temp < trip->temp) { in mlxsw_thermal_tz_score_update()
212 delta = DIV_ROUND_CLOSEST(temp, trip->temp - temp); in mlxsw_thermal_tz_score_update()
237 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind() local
240 trip->max_state, in mlxsw_thermal_bind()
241 trip->min_state, in mlxsw_thermal_bind()
244 dev_err(dev, "Failed to bind cooling device to trip %d\n", i); in mlxsw_thermal_bind()
[all …]
/kernel/linux/linux-5.10/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()
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()
63 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_temp()
76 int trip, in int340x_thermal_get_trip_type() argument
83 return d->override_ops->get_trip_type(zone, trip, type); in int340x_thermal_get_trip_type()
[all …]
/kernel/linux/linux-4.19/Documentation/thermal/
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 …]
/kernel/linux/linux-4.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 …]
/kernel/linux/linux-5.10/Documentation/driver-api/thermal/
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 writeable.
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/thermal/intel/
Dintel_quark_dts_thermal.c82 /* Programmable Trip Point Register is configured via QRK_MBI_UNIT_RMU */
93 /* Quark DTS has 2 trip points: hot & catastrophic */
95 /* If DTS not locked, all trip points are configurable */
97 /* If DTS locked, all trip points are not configurable */
114 "Polling interval for checking trip points (in milliseconds)");
175 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument
189 * Thermal Sensor Programmable Trip Point Register has 8-bit in _get_trip_temp()
190 * fields for critical (catastrophic) and hot set trip point in _get_trip_temp()
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
[all …]
DKconfig20 two trip points which can be set by user to get notifications via thermal
42 thermal zone. There are two trip points. One of the trip point can
44 notification methods.The other trip is a critical trip point, which
53 The DTS will be registered as a thermal zone. There are two trip points:
54 hot & critical. The critical trip point default value is set by
68 the alert trip point interrupts and notifies the thermal framework with
69 the trip point and temperature details of the zone.
77 programmable trip points and other information.
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/thermal/
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;
71 * Trip points
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
[all …]
/kernel/linux/linux-4.19/drivers/thermal/broadcom/
Dbrcmstb_thermal.c77 /* HW bit to enable the trip */
81 /* HW field to read the trip temperature */
178 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()
181 dev_dbg(priv->dev, "%sable trip, type %d\n", en ? "en" : "dis", type); 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()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/
Dti-thermal.h30 /* trip points of interest in milicelsius (at hotspot level) */
43 * ti_thermal_get_trip_value - returns trip temperature based on index
44 * @i: trip index
50 * ti_thermal_is_valid_trip - check for trip index
51 * @i: trip index
53 #define ti_thermal_is_valid_trip(trip) \ argument
54 ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER)

12345678910>>...24