Home
last modified time | relevance | path

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

123456789

/linux/drivers/acpi/
H A Dthermal.c94 struct acpi_thermal_trip trip; member
101 struct acpi_thermal_trip trip; member
194 active = container_of(acpi_trip, struct acpi_thermal_active, trip); in active_trip_index()
229 const struct thermal_trip *trip) in acpi_thermal_update_trip() argument
231 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip()
233 if (trip->type == THERMAL_TRIP_PASSIVE) { in acpi_thermal_update_trip()
279 const struct thermal_trip *trip) in acpi_thermal_update_trip_devices() argument
281 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip_devices()
282 int index = trip->type == THERMAL_TRIP_PASSIVE ? in acpi_thermal_update_trip_devices()
297 static int acpi_thermal_adjust_trip(struct thermal_trip *trip, void *data) in acpi_thermal_adjust_trip() argument
[all …]
/linux/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>;
H A Dexynos5420-arndale-octa.dts106 trip = <&cpu0_alert0>;
122 trip = <&cpu0_alert1>;
138 trip = <&cpu0_alert2>;
177 trip = <&cpu1_alert0>;
189 trip = <&cpu1_alert1>;
201 trip = <&cpu1_alert2>;
240 trip = <&cpu2_alert0>;
252 trip = <&cpu2_alert1>;
264 trip = <&cpu2_alert2>;
303 trip = <&cpu3_alert0>;
[all …]
/linux/drivers/thermal/
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 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; \
95 struct thermal_trip *trip = thermal_trip_of_attr(attr, type); in trip_point_type_show() local
97 return sprintf(buf, "%s\n", thermal_trip_type_name(trip->type)); in trip_point_type_show()
104 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_store() local
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()
140 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_show() local
142 return sprintf(buf, "%d\n", READ_ONCE(trip->temperature)); in trip_point_temp_show()
[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_netlink.c380 const struct thermal_trip *trip) in thermal_notify_tz_trip_down() argument
383 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_down()
390 const struct thermal_trip *trip) in thermal_notify_tz_trip_up() argument
393 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_up()
400 const struct thermal_trip *trip) in thermal_notify_tz_trip_change() argument
403 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_change()
404 .trip_type = trip->type, in thermal_notify_tz_trip_change()
405 .trip_temp = trip->temperature, in thermal_notify_tz_trip_change()
406 .trip_hyst = trip->hysteresis }; in thermal_notify_tz_trip_change()
549 const struct thermal_trip *trip = &td->trip; in thermal_genl_cmd_tz_get_trip() local
[all …]
H A Dthermal_trip.c35 ret = cb(&td->trip, data); in for_each_thermal_trip()
83 const struct thermal_trip *trip) in thermal_zone_trip_id() argument
89 return trip_to_trip_desc(trip) - tz->trips; in thermal_zone_trip_id()
H A Dthermal_debugfs.c580 const struct thermal_trip *trip) in thermal_debug_tz_trip_up() argument
583 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_up()
654 trip_stats->trip_temp = trip->temperature; in thermal_debug_tz_trip_up()
655 trip_stats->trip_hyst = trip->hysteresis; in thermal_debug_tz_trip_up()
673 const struct thermal_trip *trip) in thermal_debug_tz_trip_down() argument
676 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_debug_tz_trip_down()
813 const struct thermal_trip *trip = &td->trip; in tze_seq_show() local
821 if (trip->type == THERMAL_TRIP_CRITICAL) in tze_seq_show()
824 trip_id = thermal_zone_trip_id(tz, trip); in tze_seq_show()
846 8, thermal_trip_type_name(trip->type), in tze_seq_show()
H A Dgov_power_allocator.c509 const struct thermal_trip *trip = &td->trip; in get_governor_trips() local
511 switch (trip->type) { in get_governor_trips()
514 first_passive = trip; in get_governor_trips()
517 last_passive = trip; in get_governor_trips()
520 last_active = trip; in get_governor_trips()
776 const struct thermal_trip *trip = params->trip_switch_on; in power_allocator_manage() local
780 if (trip && tz->temperature < trip->temperature) { in power_allocator_manage()
/linux/drivers/thermal/broadcom/
H A Dbrcmstb_thermal.c178 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()
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()
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
[all …]
/linux/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/drivers/crypto/nx/
H A Dnx.c361 struct msc_triplet *trip; in nx_of_update_msc() local
377 trip = msc->trip; in nx_of_update_msc()
390 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
392 "%u/%u (ignored)\n", trip->sglen, in nx_of_update_msc()
393 trip->databytelen); in nx_of_update_msc()
397 switch (trip->keybitlen) { 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()
[all …]
/linux/Documentation/devicetree/bindings/thermal/
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/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/arch/arm64/boot/dts/marvell/
H A Dcn9132-sr-cex7.dtsi147 ap_active: trip-active {
156 trip = <&ap_active>;
161 trip = <&ap_crit>;
384 cp0_active: trip-active {
393 trip = <&cp0_active>;
398 trip = <&cp0_crit>;
496 cp1_thrm_trip_pins: cp1-thrm-trip-pins {
527 cp1_active: trip-active {
536 trip = <&cp1_active>;
541 trip = <&cp1_crit>;
[all …]
H A Darmada-ap80x.dtsi316 * first one that will have a critical trip point will be chosen.
357 trip = <&cpu0_hot>;
362 trip = <&cpu0_emerg>;
390 trip = <&cpu1_hot>;
395 trip = <&cpu1_emerg>;
423 trip = <&cpu2_hot>;
428 trip = <&cpu2_emerg>;
456 trip = <&cpu3_hot>;
461 trip = <&cpu3_emerg>;
/linux/drivers/thermal/intel/
H A Dintel_soc_dts_iosf.c133 const struct thermal_trip *trip, in sys_set_trip_temp() argument
138 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in sys_set_trip_temp()
297 static void set_trip(struct thermal_trip *trip, enum thermal_trip_type type, in set_trip() argument
300 trip->type = type; in set_trip()
301 trip->flags = flags; in set_trip()
302 trip->temperature = temp; in set_trip()
303 trip->priv = THERMAL_INT_TO_TRIP_PRIV(index); in set_trip()
/linux/drivers/thermal/testing/
H A Dzone.c68 struct thermal_trip trip; member
322 &tt_trip->trip.temperature, &tt_int_attr); in tt_zone_add_trip_work_fn()
326 &tt_trip->trip.hysteresis, &tt_unsigned_int_attr); in tt_zone_add_trip_work_fn()
354 tt_trip->trip.type = THERMAL_TRIP_ACTIVE; in tt_zone_add_trip()
355 tt_trip->trip.temperature = THERMAL_TEMP_INVALID; in tt_zone_add_trip()
356 tt_trip->trip.flags = THERMAL_TRIP_FLAG_RW; in tt_zone_add_trip()
406 trips[i++] = tt_trip->trip; in tt_zone_register_tz()
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8192.dtsi1963 cpu0_alert: trip-alert {
1969 cpu0_crit: trip-crit {
1978 trip = <&cpu0_alert>;
1993 cpu1_alert: trip-alert {
1999 cpu1_crit: trip-crit {
2008 trip = <&cpu1_alert>;
2023 cpu2_alert: trip-alert {
2029 cpu2_crit: trip-crit {
2038 trip = <&cpu2_alert>;
2053 cpu3_alert: trip-alert {
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-thermal31 trip points so that user application can take full
51 The temperature above which trip point will be fired.
59 Strings which indicate the type of the trip point.
68 The hysteresis value for a trip point, represented as an
84 The trip point in this thermal zone which `cdev[0-*]` is
86 associated with any trip point.
142 temperature" trip point. For more information see
152 temperature" trip point. For more information see
159 Temperature offset from the desired temperature trip point
164 temperature trip point. For more information see
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_thermal.c36 static struct thermal_trip trip = { .type = THERMAL_TRIP_CRITICAL } ; variable
58 trip.temperature = val * 1000; in cxgb4_thermal_init()
62 ch_thermal->tzdev = thermal_zone_device_register_with_trips(ch_tz_name, &trip, num_trip, in cxgb4_thermal_init()
/linux/arch/arm64/boot/dts/qcom/
H A Dsa8775p.dtsi5422 trip-point0 {
5428 trip-point1 {
5442 trip-point0 {
5448 trip-point1 {
5462 trip-point0 {
5468 trip-point1 {
5482 trip-point0 {
5488 trip-point1 {
5502 trip-point0 {
5508 trip-point1 {
[all …]

123456789