Home
last modified time | relevance | path

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

12345678910>>...12

/linux/drivers/thermal/
A Dgov_bang_bang.c67 const struct thermal_trip *trip, in bang_bang_control() argument
75 thermal_zone_trip_id(tz, trip), trip->temperature, in bang_bang_control()
76 tz->temperature, trip->hysteresis); in bang_bang_control()
79 if (instance->trip == trip) in bang_bang_control()
94 const struct thermal_trip *trip = &td->trip; in bang_bang_manage() local
97 if (trip->temperature == THERMAL_TEMP_INVALID || in bang_bang_manage()
98 trip->type == THERMAL_TRIP_CRITICAL || in bang_bang_manage()
99 trip->type == THERMAL_TRIP_HOT) in bang_bang_manage()
108 if (!instance->initialized && instance->trip == trip) in bang_bang_manage()
A Dgov_fair_share.c38 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, &level_td->trip), in get_trip_level()
39 level_td->trip.type); in get_trip_level()
64 const struct thermal_trip *trip, in fair_share_throttle() argument
72 if (instance->trip != trip) in fair_share_throttle()
84 if (instance->trip != trip) in fair_share_throttle()
112 const struct thermal_trip *trip = &td->trip; in fair_share_manage() local
114 if (trip->temperature == THERMAL_TEMP_INVALID || in fair_share_manage()
115 trip->type == THERMAL_TRIP_CRITICAL || in fair_share_manage()
116 trip->type == THERMAL_TRIP_HOT) in fair_share_manage()
119 fair_share_throttle(tz, trip, trip_level); in fair_share_manage()
A Dthermal_trip.c35 ret = cb(&td->trip, data); in for_each_thermal_trip()
87 const struct thermal_trip *trip) in thermal_zone_trip_id() argument
93 return trip_to_trip_desc(trip) - tz->trips; in thermal_zone_trip_id()
97 struct thermal_trip *trip, int hyst) in thermal_zone_set_trip_hyst() argument
99 WRITE_ONCE(trip->hysteresis, hyst); in thermal_zone_set_trip_hyst()
100 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_hyst()
104 struct thermal_trip *trip, int temp) in thermal_zone_set_trip_temp() argument
106 if (trip->temperature == temp) in thermal_zone_set_trip_temp()
109 WRITE_ONCE(trip->temperature, temp); in thermal_zone_set_trip_temp()
110 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_temp()
[all …]
A Dgov_step_wise.c69 const struct thermal_trip *trip, in thermal_zone_trip_update() argument
72 enum thermal_trend trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
73 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_zone_trip_update()
79 trace_thermal_zone_trip(tz, trip_id, trip->type); in thermal_zone_trip_update()
83 trip_id, trip->type, trip_threshold, trend, throttle); in thermal_zone_trip_update()
88 if (instance->trip != trip) in thermal_zone_trip_update()
123 const struct thermal_trip *trip = &td->trip; in step_wise_manage() local
125 if (trip->temperature == THERMAL_TEMP_INVALID || in step_wise_manage()
126 trip->type == THERMAL_TRIP_CRITICAL || in step_wise_manage()
127 trip->type == THERMAL_TRIP_HOT) in step_wise_manage()
[all …]
A Dthermal_core.c416 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips()
429 const struct thermal_trip *trip = &td->trip; in handle_thermal_trip() local
452 if (tz->temperature < trip->temperature - trip->hysteresis) { in handle_thermal_trip()
454 td->notify_temp = trip->temperature - trip->hysteresis; in handle_thermal_trip()
508 if (trip->type == THERMAL_TRIP_HOT || trip->type == THERMAL_TRIP_CRITICAL) in thermal_governor_trip_crossed()
793 dev->trip = trip; in thermal_bind_cdev_to_trip()
834 if (pos->trip == trip && pos->cdev == cdev) { in thermal_bind_cdev_to_trip()
880 if (pos->trip == trip && pos->cdev == cdev) { in thermal_unbind_cdev_from_trip()
945 struct thermal_trip *trip = &td->trip; in thermal_zone_cdev_bind() local
1320 const struct thermal_trip *trip = &td->trip; in thermal_zone_get_crit_temp() local
[all …]
A Dthermal_helpers.c25 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip) in get_tz_trend() argument
30 tz->ops.get_trend(tz, trip, &trend)) { in get_tz_trend()
44 const struct thermal_trip *trip) in thermal_instance_present() argument
49 if (ti->trip == trip && ti->cdev == cdev) in thermal_instance_present()
57 const struct thermal_trip *trip, in thermal_trip_is_bound_to_cdev() argument
65 ret = thermal_instance_present(tz, cdev, trip); in thermal_trip_is_bound_to_cdev()
100 const struct thermal_trip *trip = &td->trip; in __thermal_zone_get_temp() local
102 if (trip->type == THERMAL_TRIP_CRITICAL) { in __thermal_zone_get_temp()
103 crit_temp = trip->temperature; in __thermal_zone_get_temp()
A Dthermal_netlink.h42 const struct thermal_trip *trip);
44 const struct thermal_trip *trip);
46 const struct thermal_trip *trip);
93 const struct thermal_trip *trip) in thermal_notify_tz_trip_down() argument
99 const struct thermal_trip *trip) in thermal_notify_tz_trip_up() argument
105 const struct thermal_trip *trip) in thermal_notify_tz_trip_change() argument
A Dthermal_core.h30 struct thermal_trip trip; member
56 const struct thermal_trip *trip,
209 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip);
220 const struct thermal_trip *trip; member
256 container_of(__trip, struct thermal_trip_desc, trip)
262 const struct thermal_trip *trip);
265 const struct thermal_trip *trip);
267 struct thermal_trip *trip, int hyst);
A Dthermal_debugfs.h12 const struct thermal_trip *trip);
14 const struct thermal_trip *trip);
26 const struct thermal_trip *trip) {}; in thermal_debug_tz_trip_up() argument
28 const struct thermal_trip *trip) {} in thermal_debug_tz_trip_down() argument
A Dthermal_sysfs.c88 &td->trip; \
114 if (temp == trip->temperature) in trip_point_temp_store()
119 temp <= trip->hysteresis + THERMAL_TEMP_INVALID) { in trip_point_temp_store()
125 ret = tz->ops.set_trip_temp(tz, trip, temp); in trip_point_temp_store()
130 thermal_zone_set_trip_temp(tz, trip, temp); in trip_point_temp_store()
163 if (hyst == trip->hysteresis) in trip_point_hyst_store()
172 if (trip->temperature == THERMAL_TEMP_INVALID) { in trip_point_hyst_store()
173 WRITE_ONCE(trip->hysteresis, hyst); in trip_point_hyst_store()
182 thermal_zone_set_trip_hyst(tz, trip, hyst); in trip_point_hyst_store()
427 if (td->trip.flags & THERMAL_TRIP_FLAG_RW_TEMP) { in create_trip_attrs()
[all …]
A Dthermal_of.c64 struct thermal_trip *trip) in thermal_of_populate_trip() argument
74 trip->temperature = prop; in thermal_of_populate_trip()
81 trip->hysteresis = prop; in thermal_of_populate_trip()
83 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip()
89 trip->flags = THERMAL_TRIP_FLAG_RW_TEMP; in thermal_of_populate_trip()
91 trip->priv = np; in thermal_of_populate_trip()
121 for_each_child_of_node_scoped(trips, trip) { in thermal_of_trips_init()
122 ret = thermal_of_populate_trip(trip, &tt[count++]); in thermal_of_trips_init()
296 const struct thermal_trip *trip, in thermal_of_should_bind() argument
319 if (tr_np != trip->priv) in thermal_of_should_bind()
A Dthermal_netlink.c333 const struct thermal_trip *trip) in thermal_notify_tz_trip_down() argument
336 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_down()
343 const struct thermal_trip *trip) in thermal_notify_tz_trip_up() argument
346 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_up()
353 const struct thermal_trip *trip) in thermal_notify_tz_trip_change() argument
356 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_change()
357 .trip_type = trip->type, in thermal_notify_tz_trip_change()
358 .trip_temp = trip->temperature, in thermal_notify_tz_trip_change()
359 .trip_hyst = trip->hysteresis }; in thermal_notify_tz_trip_change()
465 const struct thermal_trip *trip = &td->trip; in thermal_genl_cmd_tz_get_trip() local
[all …]
/linux/drivers/acpi/
A Dthermal.c503 if (!tz || !trip) in thermal_get_trend()
506 acpi_trip = trip->priv; in thermal_get_trend()
510 switch (trip->type) { in thermal_get_trend()
829 trip = trip_table; in acpi_thermal_add()
834 trip++; in acpi_thermal_add()
840 trip++; in acpi_thermal_add()
849 trip->priv = acpi_trip; in acpi_thermal_add()
850 trip++; in acpi_thermal_add()
861 trip->priv = acpi_trip; in acpi_thermal_add()
862 trip++; in acpi_thermal_add()
[all …]
/linux/arch/arm/boot/dts/samsung/
A Dexynos5422-odroidxu3-common.dtsi94 trip = <&cpu0_alert0>;
98 trip = <&cpu0_alert1>;
102 trip = <&cpu0_alert2>;
111 trip = <&cpu0_alert3>;
127 trip = <&cpu0_alert4>;
177 trip = <&cpu1_alert0>;
181 trip = <&cpu1_alert1>;
185 trip = <&cpu1_alert2>;
189 trip = <&cpu1_alert3>;
200 trip = <&cpu1_alert4>;
[all …]
A 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>;
/linux/drivers/thermal/broadcom/
A Dbrcmstb_thermal.c178 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local
184 val |= trip->enable_mask; in avs_tmon_trip_enable()
186 val &= ~trip->enable_mask; in avs_tmon_trip_enable()
194 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local
197 val &= trip->reg_msk; in avs_tmon_get_trip_temp()
198 val >>= trip->reg_shift; in avs_tmon_get_trip_temp()
207 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_set_trip_temp() local
216 val <<= trip->reg_shift; in avs_tmon_set_trip_temp()
217 val &= trip->reg_msk; in avs_tmon_set_trip_temp()
219 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/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/Documentation/devicetree/bindings/thermal/
A Dthermal-zones.yaml35 max dT/dt, such that a device does not cross several trip boundaries
167 The critical trip type is used to set the maximum
198 trip and the target cooling device state.
205 trip:
229 - trip
285 cpu0_alert0: trip-point0 {
291 cpu0_alert1: trip-point1 {
306 trip = <&cpu0_alert0>;
313 trip = <&cpu0_alert1>;
330 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/Documentation/driver-api/thermal/
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.
/linux/drivers/thermal/intel/
A DKconfig31 two trip points which can be set by user to get notifications via thermal
53 thermal zone. There are two trip points. One of the trip point can
55 notification methods.The other trip is a critical trip point, which
64 The DTS will be registered as a thermal zone. There are two trip points:
65 hot & critical. The critical trip point default value is set by
80 the alert trip point interrupts and notifies the thermal framework with
81 the trip point and temperature details of the zone.
90 programmable trip points and other information.
/linux/arch/arm/boot/dts/rockchip/
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/arch/arm64/boot/dts/mediatek/
A Dmt8188.dtsi650 apu_alert0: trip-alert0 {
662 apu_crit: trip-crit {
688 gpu_crit: trip-crit {
697 trip = <&gpu_alert0>;
721 gpu1_crit: trip-crit {
730 trip = <&gpu1_alert0>;
754 soc_crit: trip-crit {
780 soc1_crit: trip-crit {
806 soc2_crit: trip-crit {
832 cam1_crit: trip-crit {
[all …]

Completed in 53 milliseconds

12345678910>>...12