Home
last modified time | relevance | path

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

12345678910>>...13

/linux-6.15/drivers/acpi/
H 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-6.15/drivers/thermal/
H A Dgov_bang_bang.c64 const struct thermal_trip *trip, in bang_bang_trip_crossed() argument
67 const struct thermal_trip_desc *td = trip_to_trip_desc(trip); in bang_bang_trip_crossed()
73 thermal_zone_trip_id(tz, trip), trip->temperature, in bang_bang_trip_crossed()
74 tz->temperature, trip->hysteresis); in bang_bang_trip_crossed()
90 const struct thermal_trip *trip = &td->trip; in bang_bang_manage() local
93 if (trip->temperature == THERMAL_TEMP_INVALID || in bang_bang_manage()
94 trip->type == THERMAL_TRIP_CRITICAL || in bang_bang_manage()
95 trip->type == THERMAL_TRIP_HOT) in bang_bang_manage()
H A Dgov_step_wise.c72 const struct thermal_trip *trip = &td->trip; in thermal_zone_trip_update() local
73 enum thermal_trend trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
74 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_zone_trip_update()
80 trace_thermal_zone_trip(tz, trip_id, trip->type); in thermal_zone_trip_update()
84 trip_id, trip->type, trip_threshold, trend, throttle); in thermal_zone_trip_update()
121 const struct thermal_trip *trip = &td->trip; in step_wise_manage() local
123 if (trip->temperature == THERMAL_TEMP_INVALID || in step_wise_manage()
124 trip->type == THERMAL_TRIP_CRITICAL || in step_wise_manage()
125 trip->type == THERMAL_TRIP_HOT) in step_wise_manage()
H 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
46 const struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_instance_present()
58 const struct thermal_trip *trip, in thermal_trip_is_bound_to_cdev() argument
64 return thermal_instance_present(tz, cdev, trip); in thermal_trip_is_bound_to_cdev()
94 const struct thermal_trip *trip = &td->trip; in __thermal_zone_get_temp() local
96 if (trip->type == THERMAL_TRIP_CRITICAL) { in __thermal_zone_get_temp()
97 crit_temp = trip->temperature; in __thermal_zone_get_temp()
H 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()
104 const struct thermal_trip *trip = &td->trip; in fair_share_manage() local
106 if (trip->temperature == THERMAL_TEMP_INVALID || in fair_share_manage()
107 trip->type == THERMAL_TRIP_CRITICAL || in fair_share_manage()
108 trip->type == THERMAL_TRIP_HOT) in fair_share_manage()
H A Dthermal_core.c406 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips()
445 td->threshold = td->trip.temperature - td->trip.hysteresis; in move_to_trips_reached()
461 if (trip->type == THERMAL_TRIP_HOT || trip->type == THERMAL_TRIP_CRITICAL) in thermal_governor_trip_crossed()
473 const struct thermal_trip *trip = &td->trip; in thermal_trip_crossed() local
479 trip->type == THERMAL_TRIP_HOT) in thermal_trip_crossed()
480 handle_critical_trips(tz, trip); in thermal_trip_crossed()
516 int old_temp = trip->temperature; in thermal_zone_set_trip_temp()
852 dev->trip = &td->trip; in thermal_bind_cdev_to_trip()
1378 const struct thermal_trip *trip = &td->trip; in thermal_zone_get_crit_temp() local
1381 *temp = trip->temperature; in thermal_zone_get_crit_temp()
[all …]
H A Dthermal_netlink.h42 const struct thermal_trip *trip);
44 const struct thermal_trip *trip);
46 const struct thermal_trip *trip);
100 const struct thermal_trip *trip) in thermal_notify_tz_trip_down() argument
106 const struct thermal_trip *trip) in thermal_notify_tz_trip_up() argument
112 const struct thermal_trip *trip) in thermal_notify_tz_trip_change() argument
H 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()
115 for_each_child_of_node_scoped(trips, trip) { in thermal_of_trips_init()
116 ret = thermal_of_populate_trip(trip, &tt[count++]); in thermal_of_trips_init()
278 const struct thermal_trip *trip, in thermal_of_cm_lookup() argument
287 if (tr_np != trip->priv) in thermal_of_cm_lookup()
[all …]
H A Dthermal_sysfs.c88 &td->trip; \
113 if (temp == trip->temperature) in trip_point_temp_store()
118 temp <= trip->hysteresis + THERMAL_TEMP_INVALID) in trip_point_temp_store()
124 ret = tz->ops.set_trip_temp(tz, trip, temp); in trip_point_temp_store()
129 thermal_zone_set_trip_temp(tz, trip, temp); in trip_point_temp_store()
158 if (hyst == trip->hysteresis) in trip_point_hyst_store()
167 if (trip->temperature == THERMAL_TEMP_INVALID) { in trip_point_hyst_store()
168 WRITE_ONCE(trip->hysteresis, hyst); in trip_point_hyst_store()
175 thermal_zone_set_trip_hyst(tz, trip, hyst); in trip_point_hyst_store()
418 if (td->trip.flags & THERMAL_TRIP_FLAG_RW_TEMP) { in create_trip_attrs()
[all …]
H 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
H A Dthermal_core.h32 struct thermal_trip trip; member
58 const struct thermal_trip *trip,
226 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip);
237 const struct thermal_trip *trip; member
274 container_of(__trip, struct thermal_trip_desc, trip)
280 const struct thermal_trip *trip);
283 struct thermal_trip *trip, int hyst);
H A DKconfig26 trip point crossed, cooling device update or governor
264 CPUs when the passive trip is crossed.
274 It supports one critical trip point and one passive trip point. The
276 passive trip is crossed.
287 passive trip point for each thermal sensor.
295 It supports one critical trip point and one passive trip point. The
297 trip is crossed.
326 It supports one critical trip point and one passive trip point. The
328 passive trip is crossed.
390 thermal zone if trip points reached.
[all …]
/linux-6.15/arch/arm/boot/dts/samsung/
H 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 …]
H 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-6.15/drivers/thermal/broadcom/
H 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-6.15/arch/arm64/boot/dts/marvell/
H 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-6.15/arch/arm64/boot/dts/exynos/
H 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-6.15/drivers/crypto/nx/
H A Dnx.c355 trip = msc->trip; in nx_of_update_msc()
368 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
379 trip->databytelen; in nx_of_update_msc()
381 trip->sglen; in nx_of_update_msc()
385 trip->databytelen; in nx_of_update_msc()
387 trip->sglen; in nx_of_update_msc()
394 trip->sglen; in nx_of_update_msc()
400 trip->sglen; in nx_of_update_msc()
409 trip->databytelen; in nx_of_update_msc()
411 trip->sglen; in nx_of_update_msc()
[all …]
/linux-6.15/drivers/hwmon/
H A Dacpi_power_meter.c92 s64 trip[2]; member
146 if (resource->trip[0] < 0 || resource->trip[1] < 0) in set_acpi_trip()
296 unsigned long trip) in set_trip() argument
301 trip = DIV_ROUND_CLOSEST(trip, 1000); in set_trip()
304 resource->trip[trip_idx] = trip; in set_trip()
543 unsigned long trip; in power1_average_max_store() local
546 ret = kstrtoul(buf, 10, &trip); in power1_average_max_store()
562 unsigned long trip; in power1_average_min_store() local
565 ret = kstrtoul(buf, 10, &trip); in power1_average_min_store()
917 resource->trip[0] = -1; in acpi_power_meter_add()
[all …]
/linux-6.15/Documentation/devicetree/bindings/thermal/
H A Dthermal-zones.yaml35 max dT/dt, such that a device does not cross several trip boundaries
166 The critical trip type is used to set the maximum
197 trip and the target cooling device state.
204 trip:
228 - trip
284 cpu0_alert0: trip-point0 {
290 cpu0_alert1: trip-point1 {
305 trip = <&cpu0_alert0>;
312 trip = <&cpu0_alert1>;
329 cluster0_alert0: trip-point0 {
[all …]
H 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-6.15/Documentation/driver-api/thermal/
H 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-6.15/drivers/thermal/intel/
H 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-6.15/arch/arm/boot/dts/rockchip/
H 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-6.15/arch/riscv/boot/dts/sophgo/
H A Dsg2042-milkv-pioneer.dts117 trip = <&soc_active1>;
122 trip = <&soc_active2>;
127 trip = <&soc_active3>;
132 trip = <&soc_hot>;
153 trip = <&board_active>;

12345678910>>...13