Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c52 int trip, unsigned long *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-4.1.27/drivers/thermal/
Dof-thermal.c131 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid() argument
135 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
186 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend() argument
295 static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_type() argument
300 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
303 *type = data->trips[trip].type; in of_thermal_get_trip_type()
308 static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_temp() argument
313 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
316 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
321 static int of_thermal_set_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_set_trip_temp() argument
[all …]
Dgov_bang_bang.c26 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
32 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
33 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
36 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
42 if (instance->trip != trip) in thermal_zone_trip_update()
102 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
106 thermal_zone_trip_update(tz, trip); in bang_bang_control()
Dstep_wise.c127 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
136 if (trip == THERMAL_TRIPS_NONE) { in thermal_zone_trip_update()
140 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
141 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update()
144 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
148 trace_thermal_zone_trip(tz, trip, trip_type); in thermal_zone_trip_update()
152 trip, trip_type, trip_temp, trend, throttle); in thermal_zone_trip_update()
157 if (instance->trip != trip) in thermal_zone_trip_update()
196 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument
200 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
Dthermal_core.c174 int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend() argument
179 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend()
193 struct thermal_cooling_device *cdev, int trip) in get_thermal_instance() argument
202 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance()
360 int trip, enum thermal_trip_type trip_type) in handle_non_critical_trips() argument
362 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
363 def_governor->throttle(tz, trip); in handle_non_critical_trips()
367 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument
371 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
377 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
[all …]
DKconfig11 Each thermal zone contains its own temperature, trip points,
132 user can manually input temperature and test the different trip
146 It supports one critical trip point and one passive trip point. The
148 passive trip is crossed.
165 trip point. Cpufreq is used as the cooling device and will throttle
166 CPUs when the Temperature crosses the passive trip point.
198 management framework. A thermal zone with several trip points will be
199 created. Cooling devices can be bound to the trip points to cool this
200 thermal zone if trip points reached.
227 bound to thermal zone trip points. When a trip point reached, the
[all …]
Dintel_soc_dts_thermal.c109 int trip, unsigned long *temp) in sys_get_trip_temp() argument
117 if (!trip) { in sys_get_trip_temp()
130 out = (out >> (trip * 8)) & SOC_DTS_TJMAX_ENCODING; in sys_get_trip_temp()
226 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
236 status = update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
243 int trip, enum thermal_trip_type *type) in sys_get_trip_type() argument
245 if (trip) in sys_get_trip_type()
Dthermal_core.h43 int trip; member
105 int trip) in of_thermal_is_trip_valid() argument
Ddb8500_thermal.c127 int trip, enum thermal_trend *trend) in db8500_sys_get_trend() argument
168 int trip, enum thermal_trip_type *type) in db8500_sys_get_trip_type() argument
173 if (trip >= ptrips->num_trips) in db8500_sys_get_trip_type()
176 *type = ptrips->trip_points[trip].type; in db8500_sys_get_trip_type()
183 int trip, unsigned long *temp) in db8500_sys_get_trip_temp() argument
188 if (trip >= ptrips->num_trips) in db8500_sys_get_trip_temp()
191 *temp = ptrips->trip_points[trip].temp; in db8500_sys_get_trip_temp()
Dx86_pkg_temp_thermal.c186 int trip, unsigned long *temp) in sys_get_trip_temp() argument
194 if (trip >= MAX_NUMBER_OF_TRIPS) in sys_get_trip_temp()
199 if (trip) { in sys_get_trip_temp()
222 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
232 if (trip >= MAX_NUMBER_OF_TRIPS || temp >= phy_dev_entry->tj_max) in sys_set_trip_temp()
241 if (trip) { in sys_set_trip_temp()
268 int trip, enum thermal_trip_type *type) in sys_get_trip_type() argument
Dfair_share.c89 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument
107 instance = get_thermal_instance(tz, cdev, trip); in fair_share_throttle()
Dimx_thermal.c257 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type() argument
260 *type = (trip == IMX_TRIP_PASSIVE) ? THERMAL_TRIP_PASSIVE : in imx_get_trip_type()
274 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp() argument
279 *temp = (trip == IMX_TRIP_PASSIVE) ? data->temp_passive : in imx_get_trip_temp()
284 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp() argument
289 if (trip == IMX_TRIP_CRITICAL) in imx_set_trip_temp()
Drcar_thermal.c219 int trip, enum thermal_trip_type *type) in rcar_thermal_get_trip_type() argument
225 switch (trip) { in rcar_thermal_get_trip_type()
238 int trip, unsigned long *temp) in rcar_thermal_get_trip_temp() argument
244 switch (trip) { in rcar_thermal_get_trip_temp()
257 int trip, enum thermal_trip_type type) in rcar_thermal_notify() argument
Duser_space.c35 static int notify_user_space(struct thermal_zone_device *tz, int trip) in notify_user_space() argument
/linux-4.1.27/include/trace/events/
Dthermal.h56 TP_PROTO(struct thermal_zone_device *tz, int trip,
59 TP_ARGS(tz, trip, trip_type),
64 __field(int, trip)
71 __entry->trip = trip;
76 __get_str(thermal_zone), __entry->id, __entry->trip,
/linux-4.1.27/drivers/acpi/
Dthermal.c595 int trip, enum thermal_trip_type *type) in thermal_get_trip_type() argument
600 if (!tz || trip < 0) in thermal_get_trip_type()
604 if (!trip) { in thermal_get_trip_type()
608 trip--; in thermal_get_trip_type()
612 if (!trip) { in thermal_get_trip_type()
616 trip--; in thermal_get_trip_type()
620 if (!trip) { in thermal_get_trip_type()
624 trip--; in thermal_get_trip_type()
629 if (!trip) { in thermal_get_trip_type()
633 trip--; in thermal_get_trip_type()
[all …]
/linux-4.1.27/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.
54 - "disabled" will prevent kernel thermal driver action upon trip points
57 .get_trip_type: get the type of certain trip point.
58 .get_trip_temp: get the temperature above which the certain trip point
66 whether trip points have been crossed (0 for interrupt driven systems).
97 int trip, struct thermal_cooling_device *cdev,
100 This interface function bind a thermal cooling device to the certain trip
105 trip: indicates which trip point the cooling devices is associated with
[all …]
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.
Dcpu-cooling-api.txt13 to the caller. The binding of the cooling devices to the trip point is left for
Dintel_powerclamp.txt307 certain temperature (below most active trip points).
/linux-4.1.27/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;
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;
82 The trip node is a node to describe a point in the temperature domain
87 - temperature: An integer indicating the trip temperature level,
95 - type: a string containing the trip type. Expected values are:
96 "active": A trip point to enable active cooling
97 "passive": A trip point to enable passive cooling
98 "hot": A trip point to notify emergency
105 get assigned to trip points of the zone. The cooling devices are expected
[all …]
Dtegra-soctherm.txt5 on temperature trip points, and handling external overcurrent
Drockchip-thermal.txt62 trip = <&cpu_alert0>;
/linux-4.1.27/drivers/crypto/nx/
Dnx.c373 struct msc_triplet *trip; in nx_of_update_msc() local
389 trip = msc->trip; in nx_of_update_msc()
402 switch (trip->keybitlen) { in nx_of_update_msc()
406 trip->databytelen; in nx_of_update_msc()
408 trip->sglen; in nx_of_update_msc()
412 trip->databytelen; in nx_of_update_msc()
414 trip->sglen; in nx_of_update_msc()
419 databytelen = trip->databytelen; in nx_of_update_msc()
421 trip->sglen; in nx_of_update_msc()
425 databytelen = trip->databytelen; in nx_of_update_msc()
[all …]
Dnx.h42 struct msc_triplet trip[0]; member
/linux-4.1.27/drivers/thermal/ti-soc-thermal/
Dti-thermal.h83 #define ti_thermal_is_valid_trip(trip) \ argument
84 ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER)
Dti-thermal-common.c216 int trip, enum thermal_trip_type *type) in ti_thermal_get_trip_type() argument
218 if (!ti_thermal_is_valid_trip(trip)) in ti_thermal_get_trip_type()
221 if (trip + 1 == OMAP_TRIP_NUMBER) in ti_thermal_get_trip_type()
231 int trip, unsigned long *temp) in ti_thermal_get_trip_temp() argument
233 if (!ti_thermal_is_valid_trip(trip)) in ti_thermal_get_trip_temp()
236 *temp = ti_thermal_get_trip_value(trip); in ti_thermal_get_trip_temp()
261 int trip, enum thermal_trend *trend) in ti_thermal_get_trend() argument
DKconfig21 This includes trip points definitions, extrapolation rules and
/linux-4.1.27/include/linux/
Dthermal.h214 int (*throttle)(struct thermal_zone_device *tz, int trip);
363 struct thermal_zone_device *tz, int trip, in thermal_zone_bind_cooling_device() argument
368 struct thermal_zone_device *tz, int trip, in thermal_zone_unbind_cooling_device() argument
390 static inline int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend() argument
394 struct thermal_cooling_device *cdev, int trip) in get_thermal_instance() argument
399 int trip) in thermal_notify_framework() argument
/linux-4.1.27/drivers/platform/x86/
Dacerhdf.c441 static int acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_type() argument
444 if (trip == 0) in acerhdf_get_trip_type()
446 else if (trip == 1) in acerhdf_get_trip_type()
454 static int acerhdf_get_trip_hyst(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_hyst() argument
457 if (trip != 0) in acerhdf_get_trip_hyst()
465 static int acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_temp() argument
468 if (trip == 0) in acerhdf_get_trip_temp()
470 else if (trip == 1) in acerhdf_get_trip_temp()
/linux-4.1.27/arch/arm/boot/dts/
Dexynos4-cpu-thermal.dtsi44 trip = <&cpu_alert0>;
47 trip = <&cpu_alert1>;
Drk3288-thermal.dtsi41 trip = <&cpu_alert0>;
69 trip = <&gpu_alert0>;
Dexynos5440.dtsi246 #include "exynos5440-trip-points.dtsi"
250 #include "exynos5440-trip-points.dtsi"
254 #include "exynos5440-trip-points.dtsi"
Domap4-cpu-thermal.dtsi36 trip = <&cpu_alert0>;
Dexynos5420.dtsi837 #include "exynos5420-trip-points.dtsi"
841 #include "exynos5420-trip-points.dtsi"
845 #include "exynos5420-trip-points.dtsi"
849 #include "exynos5420-trip-points.dtsi"
853 #include "exynos5420-trip-points.dtsi"
Dam57xx-beagle-x15.dts580 trip = <&cpu_alert1>;
609 trip = <&board_alert0>;
Dtegra124-jetson-tk1.dts1909 trip@0 {
1923 trip@0 {
1937 trip@0 {
Dsun5i-a13.dtsi72 trip = <&cpu_alert0>;
Dsun4i-a10.dtsi98 trip = <&cpu_alert0>;
Dsun7i-a20.dtsi137 trip = <&cpu_alert0>;
/linux-4.1.27/drivers/thermal/st/
Dst_thermal.c144 int trip, enum thermal_trip_type *type) in st_thermal_get_trip_type() argument
149 switch (trip) { in st_thermal_get_trip_type()
162 int trip, unsigned long *temp) in st_thermal_get_trip_temp() argument
167 switch (trip) { in st_thermal_get_trip_temp()
/linux-4.1.27/drivers/hwmon/
Dacpi_power_meter.c104 s64 trip[2]; member
276 if (resource->trip[0] < 0 || resource->trip[1] < 0) in set_acpi_trip()
280 arg_objs[0].integer.value = resource->trip[1]; in set_acpi_trip()
281 arg_objs[1].integer.value = resource->trip[0]; in set_acpi_trip()
313 resource->trip[attr->index - 7] = temp; in set_trip()
434 if (resource->trip[attr->index - 7] < 0) in show_val()
437 val = resource->trip[attr->index - 7] * 1000; in show_val()
894 resource->trip[0] = resource->trip[1] = -1; in acpi_power_meter_add()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dbase.c32 struct nvbios_therm_trip_point *trip = priv->fan->bios.trip, in nvkm_therm_update_trip() local
41 if (temp >= trip[i].temp) in nvkm_therm_update_trip()
42 cur_trip = &trip[i]; in nvkm_therm_update_trip()
/linux-4.1.27/Documentation/hwmon/
Dit87236 This interface implements 4 temperature vs. PWM output trip points.
237 The PWM output of trip point 4 is always the maximum value (fan running
238 at full speed) while the PWM output of the other 3 trip points can be
239 freely chosen. The temperature of all 4 trip points can be freely chosen.
240 Additionally, trip point 1 has an hysteresis temperature attached, to
245 between trip point N and trip point N+1 then the PWM output value is
246 the one of trip point N. The automatic control mode is less flexible
Df71882fg93 Note that the lowest numbered temperature zone trip point corresponds to
95 vica versa. So the temperature zone trip points 1-4 (or 1-2) go from high temp
127 You can define a number of temperature/fan speed trip points, which % the
129 standard sysfs interface. The number and type of trip points is chip
Dacpi_power_meter19 interval, an optional capping mechanism, and a couple of trip points. The
27 Both power[1-*]_average_{min,max} must be set before the trip points will work.
Dsysfs-interface277 Define the PWM vs temperature curve. Number of trip points is
278 chip-dependent. Use this for chips which associate trip points
285 Define the PWM vs temperature curve. Number of trip points is
286 chip-dependent. Use this for chips which associate trip points
290 There is a third case where trip points are associated to both PWM output
Dadt747596 The driver exposes two trip points per PWM channel.
Dw8379389 trip points, defining a PWM/temperature curve which the chip will follow.
Df71805f156 You define 3 temperature/fan speed trip points using the
/linux-4.1.27/tools/thermal/tmon/
DREADME12 devices, zones, sensors, and trip points. They can also change dynamically.
16 links, trip point bindings, and device instances. To traverse such
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dtherm.c179 cur_trip = &fan->trip[fan->nr_fan_trip - 1]; in nvbios_therm_fan_parse()
185 cur_trip = &fan->trip[fan->nr_fan_trip - 1]; in nvbios_therm_fan_parse()
/linux-4.1.27/Documentation/
DIRQ-affinity.txt33 round-trip min/avg/max = 0.1/0.1/0.4 ms
50 round-trip min/avg/max = 0.1/0.5/585.4 ms
Dkernel-parameters.txt3569 -1: disable all active trip points in all thermal zones
3570 <degrees C>: override all lowest active trip points
3573 -1: disable all critical trip points in all thermal zones
3574 <degrees C>: override all critical trip points
3578 critical and hot trip points.
3584 -1: disable all passive trip points
3585 <degrees C>: override all passive trip points to this
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Dtherm.h55 struct nvbios_therm_trip_point trip[NVKM_TEMP_FAN_TRIP_MAX]; member
/linux-4.1.27/arch/alpha/lib/
Dev6-copy_user.S68 subq $3, 8, $3 # E .. .. .. : L U U L : trip counter
170 subq $4, 32, $3 # E .. .. .. : U U L L : is there enough for another trip?
Dev6-memcpy.S78 addq $16, 64, $7 # E : Initial (+1 trip) wh64 address
129 cmple $18, 63, $1 # E : At least one more trip?
Dev6-memset.S168 addq $5, 64, $7 # E : Fallback address for wh64 (== next trip addr)
345 addq $5, 64, $7 # E : Fallback address for wh64 (== next trip addr)
532 addq $5, 64, $7 # E : Fallback address for wh64 (== next trip addr)
/linux-4.1.27/Documentation/filesystems/
Dgfs2-glocks.txt141 of round trip times in network code. See "TCP/IP Illustrated,
208 srtt - Smoothed round trip time for non-blocking dlm requests
210 srttb - Smoothed round trip time for (potentially) blocking dlm requests
/linux-4.1.27/fs/btrfs/
DKconfig89 any of the assertions trip. This is meant for btrfs developers only.
/linux-4.1.27/Documentation/networking/
Dtcp.txt45 heuristics. There are also round trip time based algorithms like
Dip-sysctl.txt1721 The initial round trip timeout value in milliseconds that will be used
1722 in calculating round trip times. This is the initial time interval
1728 The maximum value (in milliseconds) of the round trip timeout. This
1734 The minimum value (in milliseconds) of the round trip timeout. This
/linux-4.1.27/drivers/cpufreq/
DKconfig.arm83 defined trip points.
/linux-4.1.27/Documentation/watchdog/
Dwatchdog-api.txt234 WDIOS_TEMPPANIC Kernel panic on temperature trip
/linux-4.1.27/Documentation/input/
Dxpad.txt120 Thanks to the trip splitter found on the cable you don't even need to cut the
/linux-4.1.27/net/ipv4/
DKconfig590 high speed long delay links. It uses round-trip-time to