/drivers/thermal/int340x_thermal/ |
D | int340x_thermal_zone.c | 52 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/ |
D | of-thermal.c | 135 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid() argument 139 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid() 190 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend() argument 303 static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_type() argument 308 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type() 311 *type = data->trips[trip].type; in of_thermal_get_trip_type() 316 static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_temp() argument 321 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp() 324 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp() 329 static int of_thermal_set_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_set_trip_temp() argument [all …]
|
D | step_wise.c | 128 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() 197 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument 201 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
|
D | gov_bang_bang.c | 26 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() 32 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update() 35 trip, trip_temp, tz->temperature, in thermal_zone_trip_update() 41 if (instance->trip != trip) in thermal_zone_trip_update() 101 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument 105 thermal_zone_trip_update(tz, trip); in bang_bang_control()
|
D | intel_quark_dts_thermal.c | 189 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 …]
|
D | thermal_core.c | 233 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 …]
|
D | Kconfig | 11 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 184 CPUs when the passive trip is crossed. 193 It supports one critical trip point and one passive trip point. The 195 passive trip is crossed. 212 trip point. Cpufreq is used as the cooling device and will throttle 213 CPUs when the Temperature crosses the passive trip point. [all …]
|
D | fair_share.c | 89 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument 99 if (instance->trip != trip) in fair_share_throttle() 110 if (instance->trip != trip) in fair_share_throttle()
|
D | intel_pch_thermal.c | 151 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type() argument 156 if (ptd->crt_trip_id == trip) in pch_get_trip_type() 158 else if (ptd->hot_trip_id == trip) in pch_get_trip_type() 166 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument 170 if (ptd->crt_trip_id == trip) in pch_get_trip_temp() 172 else if (ptd->hot_trip_id == trip) in pch_get_trip_temp()
|
D | intel_soc_dts_iosf.c | 82 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()
|
D | db8500_thermal.c | 126 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()
|
D | x86_pkg_temp_thermal.c | 186 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
|
D | power_allocator.c | 103 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() 610 static int power_allocator_throttle(struct thermal_zone_device *tz, int trip) in power_allocator_throttle() argument 620 if (trip != params->trip_max_desired_temperature) in power_allocator_throttle()
|
D | thermal_core.h | 43 int trip; member 116 int trip) in of_thermal_is_trip_valid() argument
|
D | imx_thermal.c | 254 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()
|
D | rcar_thermal.c | 218 int trip, enum thermal_trip_type *type) in rcar_thermal_get_trip_type() argument 224 switch (trip) { in rcar_thermal_get_trip_type() 237 int trip, int *temp) in rcar_thermal_get_trip_temp() argument 243 switch (trip) { in rcar_thermal_get_trip_temp() 256 int trip, enum thermal_trip_type type) in rcar_thermal_notify() argument
|
D | hisi_thermal.c | 241 const struct thermal_trip *trip; in hisi_thermal_register_sensor() local 255 trip = of_thermal_get_trip_points(sensor->tzd); in hisi_thermal_register_sensor() 258 if (trip[i].type == THERMAL_TRIP_PASSIVE) { in hisi_thermal_register_sensor() 259 sensor->thres_temp = trip[i].temperature; in hisi_thermal_register_sensor()
|
/drivers/acpi/ |
D | thermal.c | 584 int trip, enum thermal_trip_type *type) in thermal_get_trip_type() argument 589 if (!tz || trip < 0) in thermal_get_trip_type() 593 if (!trip) { in thermal_get_trip_type() 597 trip--; in thermal_get_trip_type() 601 if (!trip) { in thermal_get_trip_type() 605 trip--; in thermal_get_trip_type() 609 if (!trip) { in thermal_get_trip_type() 613 trip--; in thermal_get_trip_type() 618 if (!trip) { in thermal_get_trip_type() 622 trip--; in thermal_get_trip_type() [all …]
|
/drivers/crypto/nx/ |
D | nx.c | 373 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/platform/x86/ |
D | acerhdf.c | 442 static int acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_type() argument 445 if (trip == 0) in acerhdf_get_trip_type() 447 else if (trip == 1) in acerhdf_get_trip_type() 455 static int acerhdf_get_trip_hyst(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_hyst() argument 458 if (trip != 0) in acerhdf_get_trip_hyst() 466 static int acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip, in acerhdf_get_trip_temp() argument 469 if (trip == 0) in acerhdf_get_trip_temp() 471 else if (trip == 1) in acerhdf_get_trip_temp()
|
/drivers/thermal/ti-soc-thermal/ |
D | ti-thermal-common.c | 217 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() 262 int trip, enum thermal_trend *trend) in ti_thermal_get_trend() argument
|
D | ti-thermal.h | 83 #define ti_thermal_is_valid_trip(trip) \ argument 84 ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER)
|
/drivers/hwmon/ |
D | acpi_power_meter.c | 104 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/ |
D | st_thermal.c | 143 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()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | base.c | 37 struct nvbios_therm_trip_point *trip = therm->fan->bios.trip, in nvkm_therm_update_trip() local 46 if (temp >= trip[i].temp) in nvkm_therm_update_trip() 47 cur_trip = &trip[i]; in nvkm_therm_update_trip()
|