Home
last modified time | relevance | path

Searched refs:trip_temp (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/thermal/intel/
H A Dintel_pch_thermal.c96 unsigned long trip_temp; in pch_wpt_add_acpi_psv_trip() local
98 trip_temp = deci_kelvin_to_millicelsius(r); in pch_wpt_add_acpi_psv_trip()
99 if (trip_temp) { in pch_wpt_add_acpi_psv_trip()
100 ptd->psv_temp = trip_temp; in pch_wpt_add_acpi_psv_trip()
119 u16 trip_temp; in pch_wpt_init() local
147 trip_temp = readw(ptd->hw_base + WPT_CTT); in pch_wpt_init()
148 trip_temp &= 0x1FF; in pch_wpt_init()
149 if (trip_temp) { in pch_wpt_init()
151 ptd->crt_temp = trip_temp * 1000 / 2 - 50000; in pch_wpt_init()
157 trip_temp in pch_wpt_init()
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dgov_bang_bang.c18 int trip_temp, trip_hyst; in thermal_zone_trip_update() local
21 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
31 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
52 * enable fan when temperature exceeds trip_temp and disable in thermal_zone_trip_update()
53 * the fan in case it falls below trip_temp minus hysteresis in thermal_zone_trip_update()
55 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
58 tz->temperature <= trip_temp - trip_hyst) in thermal_zone_trip_update()
84 * trip_temp: +---->+
88 * (trip_temp - hyst): +<----+
93 * * If the fan is not running and temperature exceeds trip_temp, th
[all...]
H A Dgov_step_wise.c118 int trip_temp; in thermal_zone_trip_update() local
126 trip_temp = tz->forced_passive; in thermal_zone_trip_update()
129 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
135 if (tz->temperature >= trip_temp) { in thermal_zone_trip_update()
141 trip, trip_type, trip_temp, trend, throttle); in thermal_zone_trip_update()
H A Dthermal_helpers.c133 int trip_temp, hysteresis; in thermal_zone_set_trips() local
144 tz->ops->get_trip_temp(tz, i, &trip_temp); in thermal_zone_set_trips()
147 trip_low = trip_temp - hysteresis; in thermal_zone_set_trips()
152 if (trip_temp > tz->temperature && trip_temp < high) in thermal_zone_set_trips()
153 high = trip_temp; in thermal_zone_set_trips()
H A Dgov_fair_share.c25 int trip_temp; in get_trip_level() local
32 tz->ops->get_trip_temp(tz, count, &trip_temp); in get_trip_level()
33 if (tz->temperature < trip_temp) in get_trip_level()
H A Dthermal_netlink.c55 int trip_temp; member
135 nla_put_u32(p->msg, THERMAL_GENL_ATTR_TZ_TRIP_TEMP, p->trip_temp) || in thermal_genl_event_tz_trip_add()
303 int trip_temp, int trip_hyst) in thermal_notify_tz_trip_add()
306 .trip_type = trip_type, .trip_temp = trip_temp, in thermal_notify_tz_trip_add()
320 int trip_temp, int trip_hyst) in thermal_notify_tz_trip_change()
323 .trip_type = trip_type, .trip_temp = trip_temp, in thermal_notify_tz_trip_change()
302 thermal_notify_tz_trip_add(int tz_id, int trip_id, int trip_type, int trip_temp, int trip_hyst) thermal_notify_tz_trip_add() argument
319 thermal_notify_tz_trip_change(int tz_id, int trip_id, int trip_type, int trip_temp, int trip_hyst) thermal_notify_tz_trip_change() argument
H A Dthermal_core.c385 int trip_temp; in handle_critical_trips() local
387 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
389 /* If we have not crossed the trip_temp, we do not care. */ in handle_critical_trips()
390 if (trip_temp <= 0 || tz->temperature < trip_temp) in handle_critical_trips()
419 int trip_temp, hyst = 0; in handle_thermal_trip() local
425 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_thermal_trip()
431 if (tz->last_temperature < trip_temp && in handle_thermal_trip()
432 tz->temperature >= trip_temp) in handle_thermal_trip()
434 if (tz->last_temperature >= trip_temp in handle_thermal_trip()
1394 int trip_temp; thermal_zone_device_register() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/intel/
H A Dintel_pch_thermal.c165 u16 trip_temp; in intel_pch_thermal_probe() local
220 trip_temp = readw(ptd->hw_base + WPT_CTT); in intel_pch_thermal_probe()
221 trip_temp &= 0x1FF; in intel_pch_thermal_probe()
222 if (trip_temp) { in intel_pch_thermal_probe()
223 ptd->trips[nr_trips].temperature = GET_WPT_TEMP(trip_temp); in intel_pch_thermal_probe()
227 trip_temp = readw(ptd->hw_base + WPT_PHL); in intel_pch_thermal_probe()
228 trip_temp &= 0x1FF; in intel_pch_thermal_probe()
229 if (trip_temp) { in intel_pch_thermal_probe()
230 ptd->trips[nr_trips].temperature = GET_WPT_TEMP(trip_temp); in intel_pch_thermal_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_thermal.c37 if (!adap->ch_thermal.trip_temp) in cxgb4_thermal_get_trip_type()
49 if (!adap->ch_thermal.trip_temp) in cxgb4_thermal_get_trip_temp()
52 *temp = adap->ch_thermal.trip_temp; in cxgb4_thermal_get_trip_temp()
82 ch_thermal->trip_temp = val * 1000; in cxgb4_thermal_init()
H A Dcxgb4.h1084 int trip_temp; member
/kernel/linux/linux-6.6/drivers/thermal/
H A Dthermal_netlink.c60 int trip_temp; member
143 nla_put_u32(p->msg, THERMAL_GENL_ATTR_TZ_TRIP_TEMP, p->trip_temp) || in thermal_genl_event_tz_trip_add()
348 int trip_temp, int trip_hyst) in thermal_notify_tz_trip_add()
351 .trip_type = trip_type, .trip_temp = trip_temp, in thermal_notify_tz_trip_add()
365 int trip_temp, int trip_hyst) in thermal_notify_tz_trip_change()
368 .trip_type = trip_type, .trip_temp = trip_temp, in thermal_notify_tz_trip_change()
347 thermal_notify_tz_trip_add(int tz_id, int trip_id, int trip_type, int trip_temp, int trip_hyst) thermal_notify_tz_trip_add() argument
364 thermal_notify_tz_trip_change(int tz_id, int trip_id, int trip_type, int trip_temp, int trip_hyst) thermal_notify_tz_trip_change() argument
H A Dthermal_core.c330 int trip, int trip_temp, enum thermal_trip_type trip_type) in handle_critical_trips()
332 /* If we have not crossed the trip_temp, we do not care. */ in handle_critical_trips()
333 if (trip_temp <= 0 || tz->temperature < trip_temp) in handle_critical_trips()
329 handle_critical_trips(struct thermal_zone_device *tz, int trip, int trip_temp, enum thermal_trip_type trip_type) handle_critical_trips() argument
/kernel/linux/linux-5.10/drivers/thermal/broadcom/
H A Dbcm2835_thermal.c228 int trip_temp, offset, slope; in bcm2835_thermal_probe() local
236 err = tz->ops->get_trip_temp(tz, 0, &trip_temp); in bcm2835_thermal_probe()
239 "Not able to read trip_temp: %d\n", in bcm2835_thermal_probe()
253 val |= bcm2835_thermal_temp2adc(trip_temp, in bcm2835_thermal_probe()
/kernel/linux/linux-5.10/drivers/thermal/tegra/
H A Dsoctherm.c439 * @trip_temp: the trip temperature to check
447 static int enforce_temp_range(struct device *dev, int trip_temp) in enforce_temp_range() argument
451 temp = clamp_val(trip_temp, min_low_temp, max_high_temp); in enforce_temp_range()
452 if (temp != trip_temp) in enforce_temp_range()
454 trip_temp, temp); in enforce_temp_range()
463 * @trip_temp: the temperature in millicelsius to trigger the thermal trip at
466 * @trip_temp. If this threshold is crossed, the hardware will shut
469 * Note that, although @trip_temp is specified in millicelsius, the
476 int trip_temp) in thermtrip_program()
485 temp = enforce_temp_range(dev, trip_temp) / t in thermtrip_program()
474 thermtrip_program(struct device *dev, const struct tegra_tsensor_group *sg, int trip_temp) thermtrip_program() argument
513 throttrip_program(struct device *dev, const struct tegra_tsensor_group *sg, struct soctherm_throt_cfg *stc, int trip_temp) throttrip_program() argument
641 int trip_temp, temp, last_temp, ret; tegra_thermctl_get_trend() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/tegra/
H A Dsoctherm.c439 * @trip_temp: the trip temperature to check
447 static int enforce_temp_range(struct device *dev, int trip_temp) in enforce_temp_range() argument
451 temp = clamp_val(trip_temp, min_low_temp, max_high_temp); in enforce_temp_range()
452 if (temp != trip_temp) in enforce_temp_range()
454 trip_temp, temp); in enforce_temp_range()
463 * @trip_temp: the temperature in millicelsius to trigger the thermal trip at
466 * @trip_temp. If this threshold is crossed, the hardware will shut
469 * Note that, although @trip_temp is specified in millicelsius, the
476 int trip_temp) in thermtrip_program()
485 temp = enforce_temp_range(dev, trip_temp) / t in thermtrip_program()
474 thermtrip_program(struct device *dev, const struct tegra_tsensor_group *sg, int trip_temp) thermtrip_program() argument
513 throttrip_program(struct device *dev, const struct tegra_tsensor_group *sg, struct soctherm_throt_cfg *stc, int trip_temp) throttrip_program() argument
[all...]
/kernel/linux/linux-5.10/drivers/acpi/
H A Dthermal.c642 int trip_temp; in thermal_get_trend() local
645 if (thermal_get_trip_temp(thermal, trip, &trip_temp)) in thermal_get_trend()
648 if (temp > trip_temp) { in thermal_get_trend()

Completed in 18 milliseconds