Home
last modified time | relevance | path

Searched refs:trip (Results 1 - 25 of 94) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/thermal/
H A Dthermal_trip.c37 * __thermal_zone_set_trips - Computes the next trip points for the driver
41 * the trip points. The result is the closer low and high trip points
53 struct thermal_trip trip; in __thermal_zone_set_trips() local
67 ret = __thermal_zone_get_trip(tz, i , &trip); in __thermal_zone_set_trips()
71 trip_low = trip.temperature - trip.hysteresis; in __thermal_zone_set_trips()
79 if (trip.temperature > tz->temperature && in __thermal_zone_set_trips()
80 trip.temperature < high) { in __thermal_zone_set_trips()
81 high = trip in __thermal_zone_set_trips()
113 __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, struct thermal_trip *trip) __thermal_zone_get_trip() argument
124 thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, struct thermal_trip *trip) thermal_zone_get_trip() argument
137 thermal_zone_set_trip(struct thermal_zone_device *tz, int trip_id, const struct thermal_trip *trip) thermal_zone_set_trip() argument
176 thermal_zone_trip_id(struct thermal_zone_device *tz, const struct thermal_trip *trip) thermal_zone_trip_id() argument
[all...]
H A Dgov_bang_bang.c18 const struct thermal_trip *trip = &tz->trips[trip_index]; in thermal_zone_trip_update() local
21 if (!trip->hysteresis) in thermal_zone_trip_update()
26 trip_index, trip->temperature, tz->temperature, in thermal_zone_trip_update()
27 trip->hysteresis); in thermal_zone_trip_update()
30 if (instance->trip != trip) in thermal_zone_trip_update()
48 if (instance->target == 0 && tz->temperature >= trip->temperature) in thermal_zone_trip_update()
51 tz->temperature <= trip->temperature - trip->hysteresis) in thermal_zone_trip_update()
68 * @trip
92 bang_bang_control(struct thermal_zone_device *tz, int trip) bang_bang_control() argument
[all...]
H A Dgov_step_wise.c20 * If the temperature is higher than a trip point,
22 * state for this trip point
24 * If the temperature is lower than a trip point,
27 * state for this trip point, if the cooling state already
84 const struct thermal_trip *trip = &tz->trips[trip_id]; in thermal_zone_trip_update() local
92 if (tz->temperature >= trip->temperature) { in thermal_zone_trip_update()
94 trace_thermal_zone_trip(tz, trip_id, trip->type); in thermal_zone_trip_update()
98 trip_id, trip->type, trip->temperature, trend, throttle); in thermal_zone_trip_update()
101 if (instance->trip ! in thermal_zone_trip_update()
139 step_wise_throttle(struct thermal_zone_device *tz, int trip) step_wise_throttle() argument
[all...]
H A Dgov_fair_share.c19 * get_trip_level: - obtains the current trip level for a zone
24 struct thermal_trip trip; in get_trip_level() local
28 __thermal_zone_get_trip(tz, count, &trip); in get_trip_level()
29 if (tz->temperature < trip.temperature) in get_trip_level()
34 * count > 0 only if temperature is greater than first trip in get_trip_level()
38 trace_thermal_zone_trip(tz, count - 1, trip.type); in get_trip_level()
52 * @trip_index: trip point index
63 * We do not want to throttle too much when we trip a lower temperature,
64 * whereas the throttling is at full swing if we trip critical levels.
65 * (Heavily assumes the trip point
70 const struct thermal_trip *trip = &tz->trips[trip_index]; fair_share_throttle() local
[all...]
H A Dthermal_helpers.c27 struct thermal_trip *trip = tz->trips ? &tz->trips[trip_index] : NULL; in get_tz_trend() local
31 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend()
49 const struct thermal_trip *trip; in get_thermal_instance() local
54 trip = &tz->trips[trip_index]; in get_thermal_instance()
57 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance()
89 struct thermal_trip trip; in __thermal_zone_get_temp() local
97 ret = __thermal_zone_get_trip(tz, count, &trip); in __thermal_zone_get_temp()
98 if (!ret && trip.type == THERMAL_TRIP_CRITICAL) { in __thermal_zone_get_temp()
99 crit_temp = trip in __thermal_zone_get_temp()
[all...]
H A Dgov_power_allocator.c58 * @trip_switch_on: first passive trip point of the thermal zone. The
59 * governor switches on when this trip point is crossed.
60 * If the thermal zone only has one passive trip point,
62 * @trip_max_desired_temperature: last passive trip point of the thermal
100 if (instance->trip != trip_max_desired_temperature) in estimate_sustainable_power()
119 * @trip_switch_on: trip point number for the switch on temperature
129 struct thermal_trip trip; in estimate_pid_constants() local
134 ret = __thermal_zone_get_trip(tz, trip_switch_on, &trip); in estimate_pid_constants()
136 temperature_threshold -= trip.temperature; in estimate_pid_constants()
142 * passive trip point in estimate_pid_constants()
524 struct thermal_trip trip; get_governor_trips() local
639 struct thermal_trip trip; power_allocator_bind() local
703 struct thermal_trip trip; power_allocator_throttle() local
[all...]
H A Dthermal_core.c286 * - Critical trip point will cause a system shutdown.
308 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument
310 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
311 def_governor->throttle(tz, trip); in handle_non_critical_trips()
330 int trip, int trip_temp, enum thermal_trip_type trip_type) in handle_critical_trips()
336 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
346 struct thermal_trip trip; in handle_thermal_trip() local
348 /* Ignore disabled trip points */ in handle_thermal_trip()
352 __thermal_zone_get_trip(tz, trip_id, &trip); in handle_thermal_trip()
354 if (trip in handle_thermal_trip()
329 handle_critical_trips(struct thermal_zone_device *tz, int trip, int trip_temp, enum thermal_trip_type trip_type) handle_critical_trips() argument
636 const struct thermal_trip *trip; thermal_zone_bind_cooling_device() local
764 const struct thermal_trip *trip; thermal_zone_unbind_cooling_device() local
1337 struct thermal_trip trip; thermal_zone_device_register_with_trips() local
[all...]
/kernel/linux/linux-6.6/drivers/acpi/
H A Dthermal.c60 * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid
69 "ACPI thermal trip point %s changed\n" \
75 MODULE_PARM_DESC(act, "Disable or override all lowest active trip points.");
79 MODULE_PARM_DESC(crt, "Disable or lower all critical trip points.");
91 MODULE_PARM_DESC(psv, "Disable or override all passive trip points.");
101 struct acpi_thermal_trip trip; member
109 struct acpi_thermal_trip trip; member
256 if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.trip.valid) || in __acpi_thermal_trips_update()
258 valid = tz->trips.passive.trip in __acpi_thermal_trips_update()
402 acpi_thermal_adjust_trip(struct thermal_trip *trip, void *data) acpi_thermal_adjust_trip() argument
494 thermal_get_trend(struct thermal_zone_device *thermal, const struct thermal_trip *trip, enum thermal_trend *trend) thermal_get_trend() argument
570 int trip = -1; acpi_thermal_cooling_device_cb() local
685 struct thermal_trip *trip; acpi_thermal_register_thermal_zone() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c178 * defined with four trip points. The critical and emergency in mlxsw_thermal_module_trips_update()
180 * and "hot" trip points, "normal" and "critical" trip points are in mlxsw_thermal_module_trips_update()
202 struct mlxsw_thermal_trip *trip = trips; in mlxsw_thermal_tz_score_update() local
210 i++, trip++) { in mlxsw_thermal_tz_score_update()
211 if (temp < trip->temp) { in mlxsw_thermal_tz_score_update()
212 delta = DIV_ROUND_CLOSEST(temp, trip->temp - temp); in mlxsw_thermal_tz_score_update()
237 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind() local
240 trip->max_state, in mlxsw_thermal_bind()
241 trip in mlxsw_thermal_bind()
298 mlxsw_thermal_get_trip_type(struct thermal_zone_device *tzdev, int trip, enum thermal_trip_type *p_type) mlxsw_thermal_get_trip_type() argument
311 mlxsw_thermal_get_trip_temp(struct thermal_zone_device *tzdev, int trip, int *p_temp) mlxsw_thermal_get_trip_temp() argument
323 mlxsw_thermal_set_trip_temp(struct thermal_zone_device *tzdev, int trip, int temp) mlxsw_thermal_set_trip_temp() argument
336 mlxsw_thermal_get_trip_hyst(struct thermal_zone_device *tzdev, int trip, int *p_hyst) mlxsw_thermal_get_trip_hyst() argument
345 mlxsw_thermal_set_trip_hyst(struct thermal_zone_device *tzdev, int trip, int hyst) mlxsw_thermal_set_trip_hyst() argument
354 mlxsw_thermal_trend_get(struct thermal_zone_device *tzdev, int trip, enum thermal_trend *trend) mlxsw_thermal_trend_get() argument
393 const struct mlxsw_thermal_trip *trip = &tz->trips[i]; mlxsw_thermal_module_bind() local
466 mlxsw_thermal_module_trip_type_get(struct thermal_zone_device *tzdev, int trip, enum thermal_trip_type *p_type) mlxsw_thermal_module_trip_type_get() argument
479 mlxsw_thermal_module_trip_temp_get(struct thermal_zone_device *tzdev, int trip, int *p_temp) mlxsw_thermal_module_trip_temp_get() argument
492 mlxsw_thermal_module_trip_temp_set(struct thermal_zone_device *tzdev, int trip, int temp) mlxsw_thermal_module_trip_temp_set() argument
506 mlxsw_thermal_module_trip_hyst_get(struct thermal_zone_device *tzdev, int trip, int *p_hyst) mlxsw_thermal_module_trip_hyst_get() argument
516 mlxsw_thermal_module_trip_hyst_set(struct thermal_zone_device *tzdev, int trip, int hyst) mlxsw_thermal_module_trip_hyst_set() argument
525 mlxsw_thermal_module_trend_get(struct thermal_zone_device *tzdev, int trip, enum thermal_trend *trend) mlxsw_thermal_module_trend_get() argument
[all...]
/kernel/linux/linux-5.10/drivers/thermal/intel/int340x_thermal/
H A Dint340x_thermal_zone.c44 int trip, int *temp) in int340x_thermal_get_trip_temp()
50 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp()
54 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp()
55 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp()
56 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_temp()
58 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_temp()
60 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_temp()
65 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_temp()
80 int trip, in int340x_thermal_get_trip_type()
87 return d->override_ops->get_trip_type(zone, trip, typ in int340x_thermal_get_trip_type()
43 int340x_thermal_get_trip_temp(struct thermal_zone_device *zone, int trip, int *temp) int340x_thermal_get_trip_temp() argument
79 int340x_thermal_get_trip_type(struct thermal_zone_device *zone, int trip, enum thermal_trip_type *type) int340x_thermal_get_trip_type() argument
116 int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, int trip, int temp) int340x_thermal_set_trip_temp() argument
138 int340x_thermal_get_trip_hyst(struct thermal_zone_device *zone, int trip, int *temp) int340x_thermal_get_trip_hyst() argument
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dthermal_of.c25 * struct __thermal_cooling_bind_param - a cooling device for a trip point
27 * @min: minimum cooling state used at this trip point
28 * @max: maximum cooling state used at this trip point
38 * struct __thermal_bind_param - a match between trip and cooling device
41 * @trip_id: the trip point index
58 * @ntrips: number of trip points
59 * @trips: an array of trip points (0..ntrips - 1)
72 /* trip data */
110 * of_thermal_get_ntrips - function to export number of available trip
114 * This function is a globally visible wrapper to get number of trip point
140 of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) of_thermal_is_trip_valid() argument
195 of_thermal_get_trend(struct thermal_zone_device *tz, int trip, enum thermal_trend *trend) of_thermal_get_trend() argument
273 of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, enum thermal_trip_type *type) of_thermal_get_trip_type() argument
286 of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, int *temp) of_thermal_get_trip_temp() argument
299 of_thermal_set_trip_temp(struct thermal_zone_device *tz, int trip, int temp) of_thermal_set_trip_temp() argument
321 of_thermal_get_trip_hyst(struct thermal_zone_device *tz, int trip, int *hyst) of_thermal_get_trip_hyst() argument
334 of_thermal_set_trip_hyst(struct thermal_zone_device *tz, int trip, int hyst) of_thermal_set_trip_hyst() argument
683 struct device_node *trip; thermal_of_populate_bind_params() local
808 thermal_of_populate_trip(struct device_node *np, struct thermal_trip *trip) thermal_of_populate_trip() argument
[all...]
H A Dgov_bang_bang.c16 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
21 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
28 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
31 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
37 if (instance->trip != trip) in thermal_zone_trip_update()
75 * @trip: the trip point
99 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
103 thermal_zone_trip_update(tz, trip); in bang_bang_control()
[all...]
H A Dgov_step_wise.c19 * If the temperature is higher than a trip point,
21 * state for this trip point
24 * for this trip point
26 * for this trip point
27 * If the temperature is lower than a trip point,
30 * state for this trip point, if the cooling state already
116 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
125 if (trip == THERMAL_TRIPS_NONE) { in thermal_zone_trip_update()
129 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
130 tz->ops->get_trip_type(tz, trip, in thermal_zone_trip_update()
186 step_wise_throttle(struct thermal_zone_device *tz, int trip) step_wise_throttle() argument
[all...]
H A Dgov_fair_share.c19 * get_trip_level: - obtains the current trip level for a zone
38 * count > 0 only if temperature is greater than first trip in get_trip_level()
62 * @trip: trip point index
73 * We do not want to throttle too much when we trip a lower temperature,
74 * whereas the throttling is at full swing if we trip critical levels.
75 * (Heavily assumes the trip points are in ascending order)
78 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument
88 if (instance->trip != trip) in fair_share_throttle()
[all...]
H A Dthermal_core.c288 * - Critical trip point will cause a system shutdown.
328 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument
330 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
331 def_governor->throttle(tz, trip); in handle_non_critical_trips()
383 int trip, enum thermal_trip_type trip_type) in handle_critical_trips()
387 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
393 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
396 tz->ops->notify(tz, trip, trip_type); in handle_critical_trips()
416 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
421 /* Ignore disabled trip point in handle_thermal_trip()
382 handle_critical_trips(struct thermal_zone_device *tz, int trip, enum thermal_trip_type trip_type) handle_critical_trips() argument
583 thermal_notify_framework(struct thermal_zone_device *tz, int trip) thermal_notify_framework() argument
821 thermal_zone_bind_cooling_device(struct thermal_zone_device *tz, int trip, struct thermal_cooling_device *cdev, unsigned long upper, unsigned long lower, unsigned int weight) thermal_zone_bind_cooling_device() argument
948 thermal_zone_unbind_cooling_device(struct thermal_zone_device *tz, int trip, struct thermal_cooling_device *cdev) thermal_zone_unbind_cooling_device() argument
[all...]
H A Dthermal_sysfs.c83 int trip, result; in trip_point_type_show() local
88 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1) in trip_point_type_show()
91 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
114 int trip, ret; in trip_point_temp_store() local
121 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_store()
127 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
132 ret = tz->ops->get_trip_hyst(tz, trip, &hyst); in trip_point_temp_store()
137 ret = tz->ops->get_trip_type(tz, trip, &type); in trip_point_temp_store()
141 thermal_notify_tz_trip_change(tz->id, trip, type, temperature, hyst); in trip_point_temp_store()
153 int trip, re in trip_point_temp_show() local
175 int trip, ret; trip_point_hyst_store() local
205 int trip, ret; trip_point_hyst_show() local
[all...]
/kernel/linux/linux-5.10/drivers/thermal/broadcom/
H A Dbrcmstb_thermal.c68 /* HW bit to enable the trip */
72 /* HW field to read the trip temperature */
180 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local
181 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
183 dev_dbg(priv->dev, "%sable trip, type %d\n", en ? "en" : "dis", type); in avs_tmon_trip_enable()
186 val |= trip->enable_mask; in avs_tmon_trip_enable()
188 val &= ~trip->enable_mask; in avs_tmon_trip_enable()
190 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
196 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local
197 u32 val = __raw_readl(priv->tmon_base + trip in avs_tmon_get_trip_temp()
209 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; avs_tmon_set_trip_temp() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/broadcom/
H A Dbrcmstb_thermal.c68 /* HW bit to enable the trip */
72 /* HW field to read the trip temperature */
178 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()
181 dev_dbg(priv->dev, "%sable trip, type %d\n", en ? "en" : "dis", type); 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 in avs_tmon_get_trip_temp()
207 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; avs_tmon_set_trip_temp() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/samsung/
H A Dexynos_tmu.c165 * @ntrip: number of supported trip points.
167 * @tmu_set_trip_temp: SoC specific method to set trip (rising threshold)
196 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
198 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
269 "No CRITICAL trip point defined in device tree!\n"); in exynos_tmu_initialize()
275 "More trip points than supported by this TMU.\n"); in exynos_tmu_initialize()
277 "%d trip points should be configured in polling mode.\n", in exynos_tmu_initialize()
298 struct thermal_trip trip; in exynos_tmu_initialize() local
300 ret = thermal_zone_get_trip(tzd, i, &trip); in exynos_tmu_initialize()
304 data->tmu_set_trip_temp(data, i, trip in exynos_tmu_initialize()
353 struct thermal_trip trip; exynos4210_tmu_set_trip_temp() local
371 exynos4210_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos4210_tmu_set_trip_hyst() argument
383 exynos4412_tmu_set_trip_temp(struct exynos_tmu_data *data, int trip, u8 temp) exynos4412_tmu_set_trip_temp() argument
400 exynos4412_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos4412_tmu_set_trip_hyst() argument
439 exynos5433_tmu_set_trip_temp(struct exynos_tmu_data *data, int trip, u8 temp) exynos5433_tmu_set_trip_temp() argument
459 exynos5433_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos5433_tmu_set_trip_hyst() argument
512 exynos7_tmu_set_trip_temp(struct exynos_tmu_data *data, int trip, u8 temp) exynos7_tmu_set_trip_temp() argument
527 exynos7_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos7_tmu_set_trip_hyst() argument
555 struct thermal_trip trip; exynos4210_tmu_control() local
586 struct thermal_trip trip; exynos5433_tmu_control() local
618 struct thermal_trip trip; exynos7_tmu_control() local
[all...]
/kernel/linux/linux-5.10/drivers/thermal/intel/
H A Dintel_quark_dts_thermal.c93 /* Quark DTS has 2 trip points: hot & catastrophic */
95 /* If DTS not locked, all trip points are configurable */
97 /* If DTS locked, all trip points are not configurable */
114 "Polling interval for checking trip points (in milliseconds)");
175 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument
190 * fields for critical (catastrophic) and hot set trip point in _get_trip_temp()
194 *temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in _get_trip_temp()
201 int trip, int *temp) in sys_get_trip_temp()
203 return _get_trip_temp(trip, temp); in sys_get_trip_temp()
212 int trip, in in update_trip_temp()
200 sys_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) sys_get_trip_temp() argument
211 update_trip_temp(struct soc_sensor_entry *aux_entry, int trip, int temp) update_trip_temp() argument
259 sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, int temp) sys_set_trip_temp() argument
265 sys_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) sys_get_trip_type() argument
[all...]
H A Dintel_pch_thermal.c78 * passive trip temperature using _PSV method. There is no specific
234 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type() argument
239 if (ptd->crt_trip_id == trip) in pch_get_trip_type()
241 else if (ptd->hot_trip_id == trip) in pch_get_trip_type()
243 else if (ptd->psv_trip_id == trip) in pch_get_trip_type()
251 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument
255 if (ptd->crt_trip_id == trip) in pch_get_trip_temp()
257 else if (ptd->hot_trip_id == trip) in pch_get_trip_temp()
259 else if (ptd->psv_trip_id == trip) in pch_get_trip_temp()
/kernel/linux/linux-5.10/drivers/acpi/
H A Dthermal.c55 MODULE_PARM_DESC(act, "Disable or override all lowest active trip points.");
59 MODULE_PARM_DESC(crt, "Disable or lower all critical trip points.");
75 MODULE_PARM_DESC(psv, "Disable or override all passive trip points.");
252 * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid
261 "ACPI thermal trip point %s changed\n" \
405 break; /* disable all active trip points */ in acpi_thermal_trips_update()
423 * the next higher trip point in acpi_thermal_trips_update()
494 pr_warn(FW_BUG "No valid trip found\n"); in acpi_thermal_get_trip_points()
520 int trip, enu in thermal_get_trip_type()
519 thermal_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) thermal_get_trip_type() argument
564 thermal_get_trip_temp(struct thermal_zone_device *thermal, int trip, int *temp) thermal_get_trip_temp() argument
631 thermal_get_trend(struct thermal_zone_device *thermal, int trip, enum thermal_trend *trend) thermal_get_trend() argument
675 thermal_notify(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type trip_type) thermal_notify() argument
708 int trip = -1; acpi_thermal_cooling_device_cb() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/nx/
H A Dnx.c360 struct msc_triplet *trip; in nx_of_update_msc() local
376 trip = msc->trip; in nx_of_update_msc()
389 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
391 "%u/%u (ignored)\n", trip->sglen, in nx_of_update_msc()
392 trip->databytelen); in nx_of_update_msc()
396 switch (trip->keybitlen) { in nx_of_update_msc()
400 trip->databytelen; in nx_of_update_msc()
402 trip in nx_of_update_msc()
[all...]
/kernel/linux/linux-6.6/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 in nx_of_update_msc()
[all...]
/kernel/linux/linux-5.10/drivers/thermal/samsung/
H A Dexynos_tmu.c166 * @ntrip: number of supported trip points.
168 * @tmu_set_trip_temp: SoC specific method to set trip (rising threshold)
197 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
199 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
270 "Cannot get trip points from device tree!\n"); in exynos_tmu_initialize()
278 "No CRITICAL trip point defined in device tree!\n"); in exynos_tmu_initialize()
284 "More trip points than supported by this TMU.\n"); in exynos_tmu_initialize()
286 "%d trip points should be configured in polling mode.\n", in exynos_tmu_initialize()
363 int trip, u8 temp) in exynos4210_tmu_set_trip_temp()
371 if (trip in exynos4210_tmu_set_trip_temp()
362 exynos4210_tmu_set_trip_temp(struct exynos_tmu_data *data, int trip, u8 temp) exynos4210_tmu_set_trip_temp() argument
381 exynos4210_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos4210_tmu_set_trip_hyst() argument
393 exynos4412_tmu_set_trip_temp(struct exynos_tmu_data *data, int trip, u8 temp) exynos4412_tmu_set_trip_temp() argument
410 exynos4412_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos4412_tmu_set_trip_hyst() argument
449 exynos5433_tmu_set_trip_temp(struct exynos_tmu_data *data, int trip, u8 temp) exynos5433_tmu_set_trip_temp() argument
469 exynos5433_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos5433_tmu_set_trip_hyst() argument
522 exynos7_tmu_set_trip_temp(struct exynos_tmu_data *data, int trip, u8 temp) exynos7_tmu_set_trip_temp() argument
537 exynos7_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos7_tmu_set_trip_hyst() argument
[all...]

Completed in 17 milliseconds

1234