Home
last modified time | relevance | path

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

12345678910>>...14

/linux/arch/arm64/boot/dts/qcom/
H A Dpurwa.dtsi212 trip-point0 {
218 trip-point1 {
230 trip-point0 {
242 trip-point0 {
254 trip-point0 {
266 trip-point0 {
278 trip-point0 {
290 trip-point0 {
302 trip-point0 {
314 trip-point0 {
[all …]
H A Dsm6375.dtsi1849 mapss0_alert0: trip-point0 {
1855 mapss0_alert1: trip-point1 {
1873 cpu0_alert0: trip-point0 {
1879 cpu0_alert1: trip-point1 {
1897 cpu1_alert0: trip-point0 {
1903 cpu1_alert1: trip-point1 {
1921 cpu2_alert0: trip-point0 {
1927 cpu2_alert1: trip-point1 {
1945 cpu3_alert0: trip-point0 {
1951 cpu3_alert1: trip-point1 {
[all …]
/linux/drivers/acpi/
H A Dthermal.c95 struct acpi_thermal_trip trip; member
102 struct acpi_thermal_trip trip; member
195 active = container_of(acpi_trip, struct acpi_thermal_active, trip); in active_trip_index()
230 const struct thermal_trip *trip) in acpi_thermal_update_trip() argument
232 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip()
234 if (trip->type == THERMAL_TRIP_PASSIVE) { in acpi_thermal_update_trip()
280 const struct thermal_trip *trip) in acpi_thermal_update_trip_devices() argument
282 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip_devices()
283 int index = trip->type == THERMAL_TRIP_PASSIVE ? in acpi_thermal_update_trip_devices()
298 static int acpi_thermal_adjust_trip(struct thermal_trip *trip, void *data) in acpi_thermal_adjust_trip() argument
[all …]
/linux/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.c86 const struct thermal_trip *trip = &td->trip; in thermal_zone_trip_update() local
87 enum thermal_trend trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
88 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_zone_trip_update()
92 trace_thermal_zone_trip(tz, trip_id, trip->type); in thermal_zone_trip_update()
95 trip_id, trip->type, trip_threshold, trend, throttle); in thermal_zone_trip_update()
132 const struct thermal_trip *trip = &td->trip; in step_wise_manage() local
134 if (trip->temperature == THERMAL_TEMP_INVALID || in step_wise_manage()
135 trip->type == THERMAL_TRIP_CRITICAL || in step_wise_manage()
136 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 Dthermal_core.c293 if (td->trip.type == THERMAL_TRIP_CRITICAL && in thermal_zone_broken_disable()
294 td->trip.temperature > THERMAL_TEMP_INVALID) { in thermal_zone_broken_disable()
406 const struct thermal_trip *trip) in handle_critical_trips() argument
408 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips()
410 if (trip->type == THERMAL_TRIP_CRITICAL) in handle_critical_trips()
440 td->threshold = td->trip.temperature; in move_to_trips_high()
447 td->threshold = td->trip.temperature - td->trip.hysteresis; in move_to_trips_reached()
460 const struct thermal_trip *trip, in thermal_governor_trip_crossed() argument
463 if (trip->type == THERMAL_TRIP_HOT || trip->type == THERMAL_TRIP_CRITICAL) in thermal_governor_trip_crossed()
467 governor->trip_crossed(tz, trip, upward); in thermal_governor_trip_crossed()
[all …]
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_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.c91 &td->trip; \
98 struct thermal_trip *trip = thermal_trip_of_attr(attr, type); in trip_point_type_show() local
100 return sysfs_emit(buf, "%s\n", thermal_trip_type_name(trip->type)); in trip_point_type_show()
107 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_store() local
116 if (temp == trip->temperature) in trip_point_temp_store()
121 temp <= trip->hysteresis + THERMAL_TEMP_INVALID) in trip_point_temp_store()
127 ret = tz->ops.set_trip_temp(tz, trip, temp); in trip_point_temp_store()
132 thermal_zone_set_trip_temp(tz, trip, temp); in trip_point_temp_store()
143 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_show() local
145 return sysfs_emit(buf, "%d\n", READ_ONCE(trip->temperature)); in trip_point_temp_show()
[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_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,
229 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip);
240 const struct thermal_trip *trip; member
277 container_of(__trip, struct thermal_trip_desc, trip)
283 const struct thermal_trip *trip);
286 struct thermal_trip *trip, int hyst);
/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>;
/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/drivers/thermal/qcom/
H A Dqcom-spmi-temp-alarm.c358 const struct thermal_trip *trip, int temp) in qpnp_tm_set_trip_temp() argument
363 if (trip->type != THERMAL_TRIP_CRITICAL) in qpnp_tm_set_trip_temp()
378 static int qpnp_tm_gen2_rev2_set_temp_thresh(struct qpnp_tm_chip *chip, unsigned int trip, int temp) in qpnp_tm_gen2_rev2_set_temp_thresh() argument
385 if (trip >= STAGE_COUNT) { in qpnp_tm_gen2_rev2_set_temp_thresh()
386 dev_err(chip->dev, "invalid TEMP_DAC trip = %d\n", trip); in qpnp_tm_gen2_rev2_set_temp_thresh()
388 } else if (temp < TEMP_DAC_MIN || temp > temp_dac_max[trip]) { in qpnp_tm_gen2_rev2_set_temp_thresh()
396 ret = qpnp_tm_write(chip, QPNP_TM_REG_TEMP_DAC_STG1 + trip, reg); in qpnp_tm_gen2_rev2_set_temp_thresh()
402 chip->temp_thresh_map[trip] = temp_cfg; in qpnp_tm_gen2_rev2_set_temp_thresh()
408 const struct thermal_trip *trip, int temp) in qpnp_tm_gen2_rev2_set_trip_temp() argument
410 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in qpnp_tm_gen2_rev2_set_trip_temp()
[all …]
/linux/arch/arm64/boot/dts/ti/
H A Dk3-am69-aquila-clover.dts74 trip = <&main0_alert0>;
79 trip = <&main0_alert1>;
88 trip = <&main1_alert0>;
93 trip = <&main1_alert1>;
102 trip = <&main2_alert0>;
107 trip = <&main2_alert1>;
116 trip = <&main3_alert0>;
121 trip = <&main3_alert1>;
130 trip = <&main4_alert0>;
135 trip = <&main4_alert1>;
[all …]
H A Dk3-am69-aquila-dev.dts120 trip = <&main0_alert0>;
125 trip = <&main0_alert1>;
134 trip = <&main1_alert0>;
139 trip = <&main1_alert1>;
148 trip = <&main2_alert0>;
153 trip = <&main2_alert1>;
162 trip = <&main3_alert0>;
167 trip = <&main3_alert1>;
176 trip = <&main4_alert0>;
181 trip = <&main4_alert1>;
[all …]
/linux/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>;
139 cp0_active0: trip-active0 {
144 cp0_active1: trip-active1 {
149 cp0_active2: trip-active2 {
154 cp0_active3: trip-active3 {
162 trip = <&cp0_active0>;
166 trip = <&cp0_active1>;
170 trip = <&cp0_active2>;
[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.c337 struct msc_triplet *trip; in nx_of_update_msc() local
353 trip = msc->trip; in nx_of_update_msc()
366 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
368 "%u/%u (ignored)\n", trip->sglen, in nx_of_update_msc()
369 trip->databytelen); in nx_of_update_msc()
373 switch (trip->keybitlen) { in nx_of_update_msc()
377 trip->databytelen; in nx_of_update_msc()
379 trip->sglen; in nx_of_update_msc()
383 trip->databytelen; in nx_of_update_msc()
385 trip->sglen; in nx_of_update_msc()
[all …]
/linux/drivers/hwmon/
H A Dacpi_power_meter.c94 s64 trip[2]; member
148 if (resource->trip[0] < 0 || resource->trip[1] < 0) in set_acpi_trip()
152 arg_objs[0].integer.value = resource->trip[1]; in set_acpi_trip()
153 arg_objs[1].integer.value = resource->trip[0]; in set_acpi_trip()
297 unsigned long trip) in set_trip() argument
302 trip = DIV_ROUND_CLOSEST(trip, 1000); in set_trip()
303 trip_bk = resource->trip[trip_idx]; in set_trip()
305 resource->trip[trip_idx] = trip; in set_trip()
311 resource->trip[trip_idx] = trip_bk; in set_trip()
544 unsigned long trip; in power1_average_max_store() local
[all …]
/linux/drivers/thermal/intel/
H A DKconfig31 two trip points which can be set by user to get notifications via thermal
54 thermal zone. There are two trip points. One of the trip point can
56 notification methods.The other trip is a critical trip point, which
65 The DTS will be registered as a thermal zone. There are two trip points:
66 hot & critical. The critical trip point default value is set by
81 the alert trip point interrupts and notifies the thermal framework with
82 the trip point and temperature details of the zone.
91 programmable trip points and other information.
/linux/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 …]

12345678910>>...14