Home
last modified time | relevance | path

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

12

/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c52 int trip, int *temp) in int340x_thermal_get_trip_temp() argument
58 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp()
60 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp()
61 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp()
62 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_temp()
64 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_temp()
66 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_temp()
71 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_temp()
84 int trip, in int340x_thermal_get_trip_type() argument
91 return d->override_ops->get_trip_type(zone, trip, type); in int340x_thermal_get_trip_type()
[all …]
/drivers/thermal/
Dof-thermal.c146 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid() argument
150 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
198 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend() argument
206 return data->ops->get_trend(data->sensor_data, trip, trend); in of_thermal_get_trend()
294 static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_type() argument
299 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
302 *type = data->trips[trip].type; in of_thermal_get_trip_type()
307 static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_temp() argument
312 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
315 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
[all …]
Dstep_wise.c128 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
137 if (trip == THERMAL_TRIPS_NONE) { in thermal_zone_trip_update()
141 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
142 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update()
145 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
149 trace_thermal_zone_trip(tz, trip, trip_type); in thermal_zone_trip_update()
153 trip, trip_type, trip_temp, trend, throttle); in thermal_zone_trip_update()
158 if (instance->trip != trip) in thermal_zone_trip_update()
199 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument
203 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
Dgov_bang_bang.c26 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
31 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
38 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
41 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
47 if (instance->trip != trip) in thermal_zone_trip_update()
109 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
113 thermal_zone_trip_update(tz, trip); in bang_bang_control()
Dintel_quark_dts_thermal.c189 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument
208 *temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in _get_trip_temp()
215 int trip, int *temp) in sys_get_trip_temp() argument
217 return _get_trip_temp(trip, temp); in sys_get_trip_temp()
226 int trip, int temp) in update_trip_temp() argument
261 (trip * QRK_DTS_SHIFT_TP))); in update_trip_temp()
263 (trip * QRK_DTS_SHIFT_TP); in update_trip_temp()
273 static inline int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
276 return update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
280 int trip, enum thermal_trip_type *type) in sys_get_trip_type() argument
[all …]
DKconfig11 Each thermal zone contains its own temperature, trip points,
46 bool "Enable writable trip points"
49 trip temperatures can be changed from userspace. The
54 change trip temperatures.
171 user can manually input temperature and test the different trip
185 CPUs when the passive trip is crossed.
194 It supports one critical trip point and one passive trip point. The
196 passive trip is crossed.
214 It supports one critical trip point and one passive trip point. The
216 passive trip is crossed.
[all …]
Dthermal_core.c233 int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend() argument
238 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend()
252 struct thermal_cooling_device *cdev, int trip) in get_thermal_instance() argument
261 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance()
423 int trip, enum thermal_trip_type trip_type) in handle_non_critical_trips() argument
425 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
426 def_governor->throttle(tz, trip); in handle_non_critical_trips()
430 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument
434 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
440 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
[all …]
Dfair_share.c89 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument
97 if (instance->trip != trip) in fair_share_throttle()
108 if (instance->trip != trip) in fair_share_throttle()
Dintel_pch_thermal.c237 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type() argument
242 if (ptd->crt_trip_id == trip) in pch_get_trip_type()
244 else if (ptd->hot_trip_id == trip) in pch_get_trip_type()
246 else if (ptd->psv_trip_id == trip) in pch_get_trip_type()
254 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument
258 if (ptd->crt_trip_id == trip) in pch_get_trip_temp()
260 else if (ptd->hot_trip_id == trip) in pch_get_trip_temp()
262 else if (ptd->psv_trip_id == trip) in pch_get_trip_temp()
Dintel_soc_dts_iosf.c82 static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_get_trip_temp() argument
99 out = (out >> (trip * 8)) & SOC_DTS_TJMAX_ENCODING; in sys_get_trip_temp()
198 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
209 status = update_trip_temp(tzd->devdata, trip, temp, in sys_set_trip_temp()
210 dts->trip_types[trip]); in sys_set_trip_temp()
217 int trip, enum thermal_trip_type *type) in sys_get_trip_type() argument
223 *type = dts->trip_types[trip]; in sys_get_trip_type()
Dx86_pkg_temp_thermal.c186 int trip, int *temp) in sys_get_trip_temp() argument
194 if (trip >= MAX_NUMBER_OF_TRIPS) in sys_get_trip_temp()
199 if (trip) { in sys_get_trip_temp()
222 static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, in sys_set_trip_temp() argument
232 if (trip >= MAX_NUMBER_OF_TRIPS || temp >= phy_dev_entry->tj_max) in sys_set_trip_temp()
241 if (trip) { in sys_set_trip_temp()
268 int trip, enum thermal_trip_type *type) in sys_get_trip_type() argument
Dpower_allocator.c103 if (instance->trip != params->trip_max_desired_temperature) in estimate_sustainable_power()
349 if ((instance->trip == trip_max_desired_temperature) && in allocate_power()
392 if (instance->trip != trip_max_desired_temperature) in allocate_power()
427 if (instance->trip != trip_max_desired_temperature) in allocate_power()
528 if ((instance->trip != params->trip_max_desired_temperature) || in allow_maximum_power()
612 static int power_allocator_throttle(struct thermal_zone_device *tz, int trip) in power_allocator_throttle() argument
622 if (trip != params->trip_max_desired_temperature) in power_allocator_throttle()
Ddb8500_thermal.c126 int trip, enum thermal_trend *trend) in db8500_sys_get_trend() argument
167 int trip, enum thermal_trip_type *type) in db8500_sys_get_trip_type() argument
172 if (trip >= ptrips->num_trips) in db8500_sys_get_trip_type()
175 *type = ptrips->trip_points[trip].type; in db8500_sys_get_trip_type()
182 int trip, int *temp) in db8500_sys_get_trip_temp() argument
187 if (trip >= ptrips->num_trips) in db8500_sys_get_trip_temp()
190 *temp = ptrips->trip_points[trip].temp; in db8500_sys_get_trip_temp()
Duser_space.c36 static int notify_user_space(struct thermal_zone_device *tz, int trip) in notify_user_space() argument
44 thermal_prop[2] = kasprintf(GFP_KERNEL, "TRIP=%d", trip); in notify_user_space()
Dthermal_core.h43 int trip; member
116 int trip) in of_thermal_is_trip_valid() argument
Dimx_thermal.c254 static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, in imx_get_trip_type() argument
257 *type = (trip == IMX_TRIP_PASSIVE) ? THERMAL_TRIP_PASSIVE : in imx_get_trip_type()
270 static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, in imx_get_trip_temp() argument
275 *temp = (trip == IMX_TRIP_PASSIVE) ? data->temp_passive : in imx_get_trip_temp()
280 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, in imx_set_trip_temp() argument
286 if (trip == IMX_TRIP_CRITICAL) in imx_set_trip_temp()
Drcar_thermal.c251 int trip, enum thermal_trip_type *type) in rcar_thermal_get_trip_type() argument
257 switch (trip) { in rcar_thermal_get_trip_type()
270 int trip, int *temp) in rcar_thermal_get_trip_temp() argument
276 switch (trip) { in rcar_thermal_get_trip_temp()
289 int trip, enum thermal_trip_type type) in rcar_thermal_notify() argument
/drivers/acpi/
Dthermal.c591 int trip, enum thermal_trip_type *type) in thermal_get_trip_type() argument
596 if (!tz || trip < 0) in thermal_get_trip_type()
600 if (!trip) { in thermal_get_trip_type()
604 trip--; in thermal_get_trip_type()
608 if (!trip) { in thermal_get_trip_type()
612 trip--; in thermal_get_trip_type()
616 if (!trip) { in thermal_get_trip_type()
620 trip--; in thermal_get_trip_type()
625 if (!trip) { in thermal_get_trip_type()
629 trip--; in thermal_get_trip_type()
[all …]
/drivers/crypto/nx/
Dnx.c373 struct msc_triplet *trip; in nx_of_update_msc() local
389 trip = msc->trip; in nx_of_update_msc()
402 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
404 "%u/%u (ignored)\n", trip->sglen, in nx_of_update_msc()
405 trip->databytelen); in nx_of_update_msc()
409 switch (trip->keybitlen) { in nx_of_update_msc()
413 trip->databytelen; in nx_of_update_msc()
415 trip->sglen; in nx_of_update_msc()
419 trip->databytelen; in nx_of_update_msc()
421 trip->sglen; in nx_of_update_msc()
[all …]
/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c217 int trip, enum thermal_trip_type *type) in ti_thermal_get_trip_type() argument
219 if (!ti_thermal_is_valid_trip(trip)) in ti_thermal_get_trip_type()
222 if (trip + 1 == OMAP_TRIP_NUMBER) in ti_thermal_get_trip_type()
232 int trip, int *temp) in ti_thermal_get_trip_temp() argument
234 if (!ti_thermal_is_valid_trip(trip)) in ti_thermal_get_trip_temp()
237 *temp = ti_thermal_get_trip_value(trip); in ti_thermal_get_trip_temp()
242 static int __ti_thermal_get_trend(void *p, int trip, enum thermal_trend *trend) in __ti_thermal_get_trend() argument
267 int trip, enum thermal_trend *trend) in ti_thermal_get_trend() argument
269 return __ti_thermal_get_trend(thermal->devdata, trip, trend); in ti_thermal_get_trend()
Dti-thermal.h83 #define ti_thermal_is_valid_trip(trip) \ argument
84 ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER)
/drivers/platform/x86/
Dacerhdf.c441 static int acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_type() argument
444 if (trip == 0) in acerhdf_get_trip_type()
446 else if (trip == 1) in acerhdf_get_trip_type()
454 static int acerhdf_get_trip_hyst(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_hyst() argument
457 if (trip != 0) in acerhdf_get_trip_hyst()
465 static int acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_temp() argument
468 if (trip == 0) in acerhdf_get_trip_temp()
470 else if (trip == 1) in acerhdf_get_trip_temp()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dtt.c648 int trip, int *temp) in iwl_mvm_tzone_get_trip_temp() argument
652 if (trip < 0 || trip >= IWL_MAX_DTS_TRIPS) in iwl_mvm_tzone_get_trip_temp()
655 *temp = mvm->tz_device.temp_trips[trip] * 1000; in iwl_mvm_tzone_get_trip_temp()
661 int trip, enum thermal_trip_type *type) in iwl_mvm_tzone_get_trip_type() argument
663 if (trip < 0 || trip >= IWL_MAX_DTS_TRIPS) in iwl_mvm_tzone_get_trip_type()
672 int trip, int temp) in iwl_mvm_tzone_set_trip_temp() argument
686 if (trip < 0 || trip >= IWL_MAX_DTS_TRIPS) { in iwl_mvm_tzone_set_trip_temp()
705 if (tzone->temp_trips[trip] == temperature) { in iwl_mvm_tzone_set_trip_temp()
718 tzone->temp_trips[trip] = temperature; in iwl_mvm_tzone_set_trip_temp()
/drivers/hwmon/
Dacpi_power_meter.c104 s64 trip[2]; member
276 if (resource->trip[0] < 0 || resource->trip[1] < 0) in set_acpi_trip()
280 arg_objs[0].integer.value = resource->trip[1]; in set_acpi_trip()
281 arg_objs[1].integer.value = resource->trip[0]; in set_acpi_trip()
313 resource->trip[attr->index - 7] = temp; in set_trip()
434 if (resource->trip[attr->index - 7] < 0) in show_val()
437 val = resource->trip[attr->index - 7] * 1000; in show_val()
894 resource->trip[0] = resource->trip[1] = -1; in acpi_power_meter_add()
/drivers/thermal/st/
Dst_thermal.c143 int trip, enum thermal_trip_type *type) in st_thermal_get_trip_type() argument
148 switch (trip) { in st_thermal_get_trip_type()
161 int trip, int *temp) in st_thermal_get_trip_temp() argument
166 switch (trip) { in st_thermal_get_trip_temp()

12