/kernel/linux/linux-6.6/drivers/thermal/ |
H A D | gov_step_wise.c | 21 * a. if the trend is THERMAL_TREND_RAISING, use higher cooling 23 * b. if the trend is THERMAL_TREND_DROPPING, do nothing 25 * a. if the trend is THERMAL_TREND_RAISING, do nothing 26 * b. if the trend is THERMAL_TREND_DROPPING, use lower cooling 31 enum thermal_trend trend, bool throttle) in get_target_state() 57 if (trend == THERMAL_TREND_RAISING) in get_target_state() 60 if (trend == THERMAL_TREND_DROPPING) { in get_target_state() 85 enum thermal_trend trend; in thermal_zone_trip_update() local 90 trend = get_tz_trend(tz, trip_id); in thermal_zone_trip_update() 97 dev_dbg(&tz->device, "Trip%d[type=%d,temp=%d]:trend in thermal_zone_trip_update() 30 get_target_state(struct thermal_instance *instance, enum thermal_trend trend, bool throttle) get_target_state() argument [all...] |
H A D | thermal_helpers.c | 28 enum thermal_trend trend; in get_tz_trend() local 31 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend() 33 trend = THERMAL_TREND_RAISING; in get_tz_trend() 35 trend = THERMAL_TREND_DROPPING; in get_tz_trend() 37 trend = THERMAL_TREND_STABLE; in get_tz_trend() 40 return trend; in get_tz_trend()
|
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | db8500_thermal.c | 56 enum thermal_trend trend; member 76 /* Callback to get temperature changing trend */ 77 static int db8500_thermal_get_trend(void *data, int trip, enum thermal_trend *trend) in db8500_thermal_get_trend() argument 81 *trend = th->trend; in db8500_thermal_get_trend() 93 enum thermal_trend trend, in db8500_thermal_update_config() 101 th->trend = trend; in db8500_thermal_update_config() 91 db8500_thermal_update_config(struct db8500_thermal_zone *th, unsigned int idx, enum thermal_trend trend, unsigned long next_low, unsigned long next_high) db8500_thermal_update_config() argument
|
H A D | gov_step_wise.c | 20 * a. if the trend is THERMAL_TREND_RAISING, use higher cooling 22 * b. if the trend is THERMAL_TREND_DROPPING, do nothing 23 * c. if the trend is THERMAL_TREND_RAISE_FULL, use upper limit 25 * d. if the trend is THERMAL_TREND_DROP_FULL, use lower limit 28 * a. if the trend is THERMAL_TREND_RAISING, do nothing 29 * b. if the trend is THERMAL_TREND_DROPPING, use lower cooling 32 * c. if the trend is THERMAL_TREND_RAISE_FULL, do nothing 33 * d. if the trend is THERMAL_TREND_DROP_FULL, use lower limit, 38 enum thermal_trend trend, bool throttle) in get_target_state() 66 switch (trend) { in get_target_state() 37 get_target_state(struct thermal_instance *instance, enum thermal_trend trend, bool throttle) get_target_state() argument 120 enum thermal_trend trend; thermal_zone_trip_update() local [all...] |
H A D | thermal_helpers.c | 28 enum thermal_trend trend; in get_tz_trend() local 31 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend() 33 trend = THERMAL_TREND_RAISING; in get_tz_trend() 35 trend = THERMAL_TREND_DROPPING; in get_tz_trend() 37 trend = THERMAL_TREND_STABLE; in get_tz_trend() 40 return trend; in get_tz_trend()
|
H A D | thermal_of.c | 62 * @sensor_data: sensor private data used while reading temperature and trend 196 enum thermal_trend *trend) in of_thermal_get_trend() 203 return data->ops->get_trend(data->sensor_data, trip, trend); in of_thermal_get_trend() 478 * The thermal zone temperature trend is provided by the @get_trend function 195 of_thermal_get_trend(struct thermal_zone_device *tz, int trip, enum thermal_trend *trend) of_thermal_get_trend() argument
|
/kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/ |
H A D | ti-thermal-common.c | 117 static int __ti_thermal_get_trend(void *p, int trip, enum thermal_trend *trend) in __ti_thermal_get_trend() argument 131 *trend = THERMAL_TREND_RAISING; in __ti_thermal_get_trend() 133 *trend = THERMAL_TREND_DROPPING; in __ti_thermal_get_trend() 135 *trend = THERMAL_TREND_STABLE; in __ti_thermal_get_trend()
|
H A D | ti-bandgap.h | 349 int ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend);
|
H A D | ti-bandgap.c | 663 * ti_bandgap_get_trend() - To fetch the temperature trend of a sensor 666 * @trend: Pointer to trend. 668 * This function needs to be called to fetch the temperature trend of a 675 * error then the trend value is passed on to trend parameter 677 int ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend) in ti_bandgap_get_trend() argument 727 *trend = (t1 - t2) / interval; in ti_bandgap_get_trend() 729 dev_dbg(bgp->dev, "The temperatures are t1 = %d and t2 = %d and trend =%d\n", in ti_bandgap_get_trend() 730 t1, t2, *trend); in ti_bandgap_get_trend() [all...] |
/kernel/linux/linux-6.6/drivers/thermal/ti-soc-thermal/ |
H A D | ti-thermal-common.c | 114 enum thermal_trend *trend) in __ti_thermal_get_trend() 128 *trend = THERMAL_TREND_RAISING; in __ti_thermal_get_trend() 130 *trend = THERMAL_TREND_DROPPING; in __ti_thermal_get_trend() 132 *trend = THERMAL_TREND_STABLE; in __ti_thermal_get_trend() 112 __ti_thermal_get_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip, enum thermal_trend *trend) __ti_thermal_get_trend() argument
|
H A D | ti-bandgap.h | 351 int ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend);
|
H A D | ti-bandgap.c | 668 * ti_bandgap_get_trend() - To fetch the temperature trend of a sensor 671 * @trend: Pointer to trend. 673 * This function needs to be called to fetch the temperature trend of a 680 * error then the trend value is passed on to trend parameter 682 int ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend) in ti_bandgap_get_trend() argument 732 *trend = (t1 - t2) / interval; in ti_bandgap_get_trend() 734 dev_dbg(bgp->dev, "The temperatures are t1 = %d and t2 = %d and trend =%d\n", in ti_bandgap_get_trend() 735 t1, t2, *trend); in ti_bandgap_get_trend() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | thermal.c | 496 enum thermal_trend *trend) in thermal_get_trend() 516 *trend = THERMAL_TREND_RAISING; in thermal_get_trend() 518 *trend = THERMAL_TREND_DROPPING; in thermal_get_trend() 520 *trend = THERMAL_TREND_STABLE; in thermal_get_trend() 529 *trend = THERMAL_TREND_RAISING; in thermal_get_trend() 494 thermal_get_trend(struct thermal_zone_device *thermal, const struct thermal_trip *trip, enum thermal_trend *trend) thermal_get_trend() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_thermal.c | 355 int trip, enum thermal_trend *trend) in mlxsw_thermal_trend_get() 365 *trend = THERMAL_TREND_STABLE; in mlxsw_thermal_trend_get() 526 int trip, enum thermal_trend *trend) in mlxsw_thermal_module_trend_get() 537 *trend = THERMAL_TREND_STABLE; in mlxsw_thermal_module_trend_get() 354 mlxsw_thermal_trend_get(struct thermal_zone_device *tzdev, int trip, enum thermal_trend *trend) mlxsw_thermal_trend_get() argument 525 mlxsw_thermal_module_trend_get(struct thermal_zone_device *tzdev, int trip, enum thermal_trend *trend) mlxsw_thermal_module_trend_get() argument
|
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | thermal.c | 632 int trip, enum thermal_trend *trend) in thermal_get_trend() 649 *trend = THERMAL_TREND_RAISING; in thermal_get_trend() 652 /* Fall back on default trend */ in thermal_get_trend() 666 *trend = THERMAL_TREND_RAISING; in thermal_get_trend() 668 *trend = THERMAL_TREND_DROPPING; in thermal_get_trend() 670 *trend = THERMAL_TREND_STABLE; in thermal_get_trend() 631 thermal_get_trend(struct thermal_zone_device *thermal, int trip, enum thermal_trend *trend) thermal_get_trend() argument
|
/kernel/linux/linux-5.10/drivers/thermal/tegra/ |
H A D | soctherm.c | 637 enum thermal_trend *trend) in tegra_thermctl_get_trend() 655 *trend = THERMAL_TREND_RAISING; in tegra_thermctl_get_trend() 657 *trend = THERMAL_TREND_STABLE; in tegra_thermctl_get_trend() 659 *trend = THERMAL_TREND_DROPPING; in tegra_thermctl_get_trend() 661 *trend = THERMAL_TREND_STABLE; in tegra_thermctl_get_trend() 636 tegra_thermctl_get_trend(void *data, int trip, enum thermal_trend *trend) tegra_thermctl_get_trend() argument
|
/kernel/linux/linux-5.10/drivers/thermal/qcom/ |
H A D | tsens.h | 66 * @get_trend: Function to get the thermal/temp trend 78 int (*get_trend)(struct tsens_sensor *s, enum thermal_trend *trend);
|
H A D | tsens.c | 865 static int tsens_get_trend(void *data, int trip, enum thermal_trend *trend) in tsens_get_trend() argument 871 return priv->ops->get_trend(s, trend); in tsens_get_trend()
|