/Linux-v5.4/drivers/thermal/intel/int340x_thermal/ |
D | int340x_thermal_zone.c | 43 int trip, int *temp) in int340x_thermal_get_trip_temp() argument 49 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp() 51 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp() 52 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp() 53 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_temp() 55 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_temp() 57 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_temp() 62 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_temp() 75 int trip, in int340x_thermal_get_trip_type() argument 82 return d->override_ops->get_trip_type(zone, trip, type); in int340x_thermal_get_trip_type() [all …]
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 208 struct mlxsw_thermal_trip *trip = trips; in mlxsw_thermal_tz_score_update() local 216 i++, trip++) { in mlxsw_thermal_tz_score_update() 217 if (temp < trip->temp) { in mlxsw_thermal_tz_score_update() 218 delta = DIV_ROUND_CLOSEST(temp, trip->temp - temp); in mlxsw_thermal_tz_score_update() 243 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind() local 246 trip->max_state, in mlxsw_thermal_bind() 247 trip->min_state, in mlxsw_thermal_bind() 335 int trip, in mlxsw_thermal_get_trip_type() argument 340 if (trip < 0 || trip >= MLXSW_THERMAL_NUM_TRIPS) in mlxsw_thermal_get_trip_type() 343 *p_type = thermal->trips[trip].type; in mlxsw_thermal_get_trip_type() [all …]
|
/Linux-v5.4/drivers/thermal/ |
D | gov_bang_bang.c | 16 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() 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()
|
D | step_wise.c | 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, &trip_type); in thermal_zone_trip_update() 133 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update() 137 trace_thermal_zone_trip(tz, trip, trip_type); in thermal_zone_trip_update() 141 trip, trip_type, trip_temp, trend, throttle); in thermal_zone_trip_update() 146 if (instance->trip != trip) in thermal_zone_trip_update() 186 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument 190 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
|
D | of-thermal.c | 142 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) in of_thermal_is_trip_valid() argument 146 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid() 194 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend() argument 202 return data->ops->get_trend(data->sensor_data, trip, trend); in of_thermal_get_trend() 305 static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_type() argument 310 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type() 313 *type = data->trips[trip].type; in of_thermal_get_trip_type() 318 static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_temp() argument 323 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp() 326 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp() [all …]
|
D | fair_share.c | 78 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument 86 if (instance->trip != trip) in fair_share_throttle() 97 if (instance->trip != trip) in fair_share_throttle()
|
D | thermal_core.c | 324 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument 326 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips() 327 def_governor->throttle(tz, trip); in handle_non_critical_trips() 379 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument 383 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips() 389 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips() 392 tz->ops->notify(tz, trip, trip_type); in handle_critical_trips() 412 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument 417 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip() 420 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip() [all …]
|
/Linux-v5.4/drivers/thermal/broadcom/ |
D | brcmstb_thermal.c | 182 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local 183 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() 188 val |= trip->enable_mask; in avs_tmon_trip_enable() 190 val &= ~trip->enable_mask; in avs_tmon_trip_enable() 192 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() 198 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local 199 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp() 201 val &= trip->reg_msk; in avs_tmon_get_trip_temp() 202 val >>= trip->reg_shift; in avs_tmon_get_trip_temp() 211 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_set_trip_temp() local [all …]
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | exynos5422-odroidxu3-common.dtsi | 78 * Exynos542x supports only 4 trip-points 81 * interrupt-driven trip: cpu0_alert2 96 trip = <&cpu0_alert0>; 100 trip = <&cpu0_alert1>; 104 trip = <&cpu0_alert2>; 113 trip = <&cpu0_alert3>; 129 trip = <&cpu0_alert4>; 179 trip = <&cpu1_alert0>; 183 trip = <&cpu1_alert1>; 187 trip = <&cpu1_alert2>; [all …]
|
D | exynos5422-odroidhc1.dts | 58 trip = <&cpu0_alert0>; 74 trip = <&cpu0_alert1>; 107 trip = <&cpu1_alert0>; 118 trip = <&cpu1_alert1>; 151 trip = <&cpu2_alert0>; 162 trip = <&cpu2_alert1>; 195 trip = <&cpu3_alert0>; 206 trip = <&cpu3_alert1>;
|
D | rk3288-veyron-mickey.dts | 81 trip = <&cpu_alert_warm>; 88 trip = <&cpu_alert_warm>; 109 trip = <&cpu_alert_almost_hot>; 114 trip = <&cpu_alert_hot>; 119 trip = <&cpu_alert_hotter>; 124 trip = <&cpu_alert_very_hot>; 133 trip = <&cpu_alert_very_hot>; 174 trip = <&gpu_alert_warmish>; 185 trip = <&gpu_alert_warm>; 194 trip = <&gpu_alert_hotter>; [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/thermal/ |
D | zx2967-thermal.txt | 78 trip = <&trip0>; 83 trip = <&trip0>; 88 trip = <&trip1>; 93 trip = <&crit>; 98 trip = <&trip0>; 104 trip = <&trip1>; 110 trip = <&crit>;
|
D | db8500-thermal.txt | 9 - num-trips : number of total trip points, this is required, set it 0 if none, 11 - tripN-temp : temperature of trip point N, should be in ascending order; 12 - tripN-type : type of trip point N, should be one of "active" "passive" "hot" 14 - tripN-cdev-num : number of the cooling devices which can be bound to trip 15 point N, this is required if trip point N is defined, set it 0 if none, 17 - tripN-cdev-nameM : name of the No. M cooling device of trip point N;
|
D | thermal.txt | 6 such as trip points, polling intervals, sensors and cooling devices 18 - trip points: describe key temperatures at which cooling is recommended. The 20 - cooling maps: used to describe links between trip points and cooling devices; 73 The trip node is a node to describe a point in the temperature domain 78 - temperature: An integer indicating the trip temperature level, 86 - type: a string containing the trip type. Expected values are: 87 "active": A trip point to enable active cooling 88 "passive": A trip point to enable passive cooling 89 "hot": A trip point to notify emergency 96 get assigned to trip points of the zone. The cooling devices are expected [all …]
|
/Linux-v5.4/drivers/acpi/ |
D | thermal.c | 572 int trip, enum thermal_trip_type *type) in thermal_get_trip_type() argument 577 if (!tz || trip < 0) in thermal_get_trip_type() 581 if (!trip) { in thermal_get_trip_type() 585 trip--; in thermal_get_trip_type() 589 if (!trip) { in thermal_get_trip_type() 593 trip--; in thermal_get_trip_type() 597 if (!trip) { in thermal_get_trip_type() 601 trip--; in thermal_get_trip_type() 606 if (!trip) { in thermal_get_trip_type() 610 trip--; in thermal_get_trip_type() [all …]
|
/Linux-v5.4/drivers/thermal/intel/ |
D | Kconfig | 20 two trip points which can be set by user to get notifications via thermal 42 thermal zone. There are two trip points. One of the trip point can 44 notification methods.The other trip is a critical trip point, which 53 The DTS will be registered as a thermal zone. There are two trip points: 54 hot & critical. The critical trip point default value is set by 68 the alert trip point interrupts and notifies the thermal framework with 69 the trip point and temperature details of the zone. 77 programmable trip points and other information.
|
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 | intel_pch_thermal.c | 231 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type() argument 236 if (ptd->crt_trip_id == trip) in pch_get_trip_type() 238 else if (ptd->hot_trip_id == trip) in pch_get_trip_type() 240 else if (ptd->psv_trip_id == trip) in pch_get_trip_type() 248 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument 252 if (ptd->crt_trip_id == trip) in pch_get_trip_temp() 254 else if (ptd->hot_trip_id == trip) in pch_get_trip_temp() 256 else if (ptd->psv_trip_id == trip) in pch_get_trip_temp()
|
/Linux-v5.4/arch/arm64/boot/dts/exynos/ |
D | exynos5433-tmu.dtsi | 57 trip = <&atlas0_alert_0>; 63 trip = <&atlas0_alert_1>; 69 trip = <&atlas0_alert_2>; 75 trip = <&atlas0_alert_3>; 81 trip = <&atlas0_alert_4>; 87 trip = <&atlas0_alert_5>; 93 trip = <&atlas0_alert_6>; 231 trip = <&apollo_alert_2>; 237 trip = <&apollo_alert_3>; 243 trip = <&apollo_alert_4>; [all …]
|
/Linux-v5.4/drivers/crypto/nx/ |
D | nx.c | 360 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->sglen; in nx_of_update_msc() 406 trip->databytelen; in nx_of_update_msc() 408 trip->sglen; in nx_of_update_msc() [all …]
|
/Linux-v5.4/drivers/thermal/samsung/ |
D | exynos_tmu.c | 194 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip, 196 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip, 360 int trip, u8 temp) in exynos4210_tmu_set_trip_temp() argument 368 if (trip == 0) { in exynos4210_tmu_set_trip_temp() 374 writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip * 4); in exynos4210_tmu_set_trip_temp() 379 int trip, u8 temp, u8 hyst) in exynos4210_tmu_set_trip_hyst() argument 391 int trip, u8 temp) in exynos4412_tmu_set_trip_temp() argument 396 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_temp() 397 th |= temp_to_code(data, temp) << 8 * trip; in exynos4412_tmu_set_trip_temp() 400 if (trip == 3) { in exynos4412_tmu_set_trip_temp() [all …]
|
/Linux-v5.4/Documentation/driver-api/thermal/ |
D | x86_pkg_temperature_thermal.rst | 23 zone with maximum two user mode configurable trip points. Number of trip points 24 depends on the capability of the package. Once the trip point is violated, 37 This contains two trip points: 46 Any value other than 0 in these trip points, can trigger thermal notifications.
|
D | sysfs-api.rst | 27 inputs from thermal zone attributes (the current temperature and trip point 55 the total number of trip points this thermal zone supports. 57 Bit string: If 'n'th bit is set, then trip point 'n' is writeable. 70 set the trip points window. Whenever the current temperature 71 is updated, the trip points immediately below and above the 79 upon trip points so that user applications can take 84 get the type of certain trip point. 86 get the temperature above which the certain trip point 98 whether trip points have been crossed (0 for interrupt driven systems). 260 int trip, struct thermal_cooling_device *cdev, [all …]
|
/Linux-v5.4/drivers/thermal/ti-soc-thermal/ |
D | ti-thermal.h | 53 #define ti_thermal_is_valid_trip(trip) \ argument 54 ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER)
|
/Linux-v5.4/include/trace/events/ |
D | thermal.h | 70 TP_PROTO(struct thermal_zone_device *tz, int trip, 73 TP_ARGS(tz, trip, trip_type), 78 __field(int, trip) 85 __entry->trip = trip; 90 __get_str(thermal_zone), __entry->id, __entry->trip,
|