Home
last modified time | relevance | path

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

12

/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()
831 trip = trip_table; in acpi_thermal_add()
836 trip++; in acpi_thermal_add()
842 trip++; in acpi_thermal_add()
851 trip->priv = acpi_trip; in acpi_thermal_add()
852 trip++; in acpi_thermal_add()
863 trip->priv = acpi_trip; in acpi_thermal_add()
864 trip++; in acpi_thermal_add()
[all …]
/drivers/thermal/
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()
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()
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()
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 …]
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()
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 …]
A Dthermal_sysfs.c91 &td->trip; \
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()
161 if (hyst == trip->hysteresis) in trip_point_hyst_store()
170 if (trip->temperature == THERMAL_TEMP_INVALID) { in trip_point_hyst_store()
171 WRITE_ONCE(trip->hysteresis, hyst); in trip_point_hyst_store()
178 thermal_zone_set_trip_hyst(tz, trip, hyst); in trip_point_hyst_store()
421 if (td->trip.flags & THERMAL_TRIP_FLAG_RW_TEMP) { in create_trip_attrs()
[all …]
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
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.
399 thermal zone if trip points reached.
[all …]
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);
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_trace.h72 TP_PROTO(struct thermal_zone_device *tz, int trip,
75 TP_ARGS(tz, trip, trip_type),
80 __field(int, trip)
87 __entry->trip = trip;
92 __get_str(thermal_zone), __entry->id, __entry->trip,
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 …]
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()
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()
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()
/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 …]
/drivers/thermal/qcom/
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()
385 if (trip >= STAGE_COUNT) { 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
435 if (trip >= STAGE_COUNT) { in qpnp_tm_lite_set_temp_thresh()
440 switch (trip) { in qpnp_tm_lite_set_temp_thresh()
476 if (temp_cfg == chip->temp_thresh_map[trip]) in qpnp_tm_lite_set_temp_thresh()
494 chip->temp_thresh_map[trip] = temp_cfg; in qpnp_tm_lite_set_temp_thresh()
500 const struct thermal_trip *trip, int temp) in qpnp_tm_lite_set_trip_temp() argument
[all …]
/drivers/crypto/nx/
A Dnx.c353 trip = msc->trip; in nx_of_update_msc()
366 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { 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()
392 trip->sglen; in nx_of_update_msc()
398 trip->sglen; in nx_of_update_msc()
407 trip->databytelen; in nx_of_update_msc()
409 trip->sglen; in nx_of_update_msc()
[all …]
/drivers/hwmon/
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 …]
/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.
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()
/drivers/thermal/intel/int340x_thermal/
A Dint340x_thermal_zone.c42 const struct thermal_trip *trip, int temp) in int340x_thermal_set_trip_temp() argument
45 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in int340x_thermal_set_trip_temp()
200 static int int340x_update_one_trip(struct thermal_trip *trip, void *arg) in int340x_update_one_trip() argument
206 switch (trip->type) { in int340x_update_one_trip()
218 THERMAL_TRIP_PRIV_TO_INT(trip->priv), in int340x_update_one_trip()
227 thermal_zone_set_trip_temp(int34x_zone->zone, trip, temp); in int340x_update_one_trip()
/drivers/thermal/testing/
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()

Completed in 86 milliseconds

12