/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | temp.c | 32 therm->bios_sensor.thrs_fan_boost.hysteresis = 3; in nvkm_therm_temp_set_defaults() 35 therm->bios_sensor.thrs_down_clock.hysteresis = 3; in nvkm_therm_temp_set_defaults() 38 therm->bios_sensor.thrs_critical.hysteresis = 5; in nvkm_therm_temp_set_defaults() 41 therm->bios_sensor.thrs_shutdown.hysteresis = 5; /*not that it matters */ in nvkm_therm_temp_set_defaults() 49 /* enforce a minimum hysteresis on thresholds */ in nvkm_therm_temp_safety_checks() 50 s->thrs_fan_boost.hysteresis = max_t(u8, s->thrs_fan_boost.hysteresis, 2); in nvkm_therm_temp_safety_checks() 51 s->thrs_down_clock.hysteresis = max_t(u8, s->thrs_down_clock.hysteresis, 2); in nvkm_therm_temp_safety_checks() 52 s->thrs_critical.hysteresis in nvkm_therm_temp_safety_checks() [all...] |
H A D | g84.c | 67 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms() 83 sensor->thrs_fan_boost.hysteresis, in g84_therm_program_alarms() 85 sensor->thrs_down_clock.hysteresis, in g84_therm_program_alarms() 87 sensor->thrs_critical.hysteresis, in g84_therm_program_alarms() 89 sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms() 110 nvkm_wr32(device, thrs_reg, thrs->temp - thrs->hysteresis); in g84_therm_threshold_hyst_emulation() 122 cur < thrs->temp - thrs->hysteresis) in g84_therm_threshold_hyst_emulation()
|
H A D | base.c | 53 /* account for the hysteresis cycle */ in nvkm_therm_update_trip() 55 temp > (last_trip->temp - last_trip->hysteresis)) in nvkm_therm_update_trip() 227 return therm->bios_sensor.thrs_fan_boost.hysteresis; in nvkm_therm_attr_get() 231 return therm->bios_sensor.thrs_down_clock.hysteresis; in nvkm_therm_attr_get() 235 return therm->bios_sensor.thrs_critical.hysteresis; in nvkm_therm_attr_get() 239 return therm->bios_sensor.thrs_shutdown.hysteresis; in nvkm_therm_attr_get() 271 therm->bios_sensor.thrs_fan_boost.hysteresis = value; in nvkm_therm_attr_set() 279 therm->bios_sensor.thrs_down_clock.hysteresis = value; in nvkm_therm_attr_set() 287 therm->bios_sensor.thrs_critical.hysteresis = value; in nvkm_therm_attr_set() 295 therm->bios_sensor.thrs_shutdown.hysteresis in nvkm_therm_attr_set() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | temp.c | 32 therm->bios_sensor.thrs_fan_boost.hysteresis = 3; in nvkm_therm_temp_set_defaults() 35 therm->bios_sensor.thrs_down_clock.hysteresis = 3; in nvkm_therm_temp_set_defaults() 38 therm->bios_sensor.thrs_critical.hysteresis = 5; in nvkm_therm_temp_set_defaults() 41 therm->bios_sensor.thrs_shutdown.hysteresis = 5; /*not that it matters */ in nvkm_therm_temp_set_defaults() 49 /* enforce a minimum hysteresis on thresholds */ in nvkm_therm_temp_safety_checks() 50 s->thrs_fan_boost.hysteresis = max_t(u8, s->thrs_fan_boost.hysteresis, 2); in nvkm_therm_temp_safety_checks() 51 s->thrs_down_clock.hysteresis = max_t(u8, s->thrs_down_clock.hysteresis, 2); in nvkm_therm_temp_safety_checks() 52 s->thrs_critical.hysteresis in nvkm_therm_temp_safety_checks() [all...] |
H A D | g84.c | 67 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms() 83 sensor->thrs_fan_boost.hysteresis, in g84_therm_program_alarms() 85 sensor->thrs_down_clock.hysteresis, in g84_therm_program_alarms() 87 sensor->thrs_critical.hysteresis, in g84_therm_program_alarms() 89 sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms() 110 nvkm_wr32(device, thrs_reg, thrs->temp - thrs->hysteresis); in g84_therm_threshold_hyst_emulation() 122 cur < thrs->temp - thrs->hysteresis) in g84_therm_threshold_hyst_emulation()
|
H A D | base.c | 53 /* account for the hysteresis cycle */ in nvkm_therm_update_trip() 55 temp > (last_trip->temp - last_trip->hysteresis)) in nvkm_therm_update_trip() 227 return therm->bios_sensor.thrs_fan_boost.hysteresis; in nvkm_therm_attr_get() 231 return therm->bios_sensor.thrs_down_clock.hysteresis; in nvkm_therm_attr_get() 235 return therm->bios_sensor.thrs_critical.hysteresis; in nvkm_therm_attr_get() 239 return therm->bios_sensor.thrs_shutdown.hysteresis; in nvkm_therm_attr_get() 271 therm->bios_sensor.thrs_fan_boost.hysteresis = value; in nvkm_therm_attr_set() 279 therm->bios_sensor.thrs_down_clock.hysteresis = value; in nvkm_therm_attr_set() 287 therm->bios_sensor.thrs_critical.hysteresis = value; in nvkm_therm_attr_set() 295 therm->bios_sensor.thrs_shutdown.hysteresis in nvkm_therm_attr_set() [all...] |
/kernel/linux/linux-6.6/drivers/thermal/ |
H A D | thermal_trip.c | 71 trip_low = trip.temperature - trip.hysteresis; in __thermal_zone_set_trips() 159 if (t.hysteresis != trip->hysteresis && tz->ops->set_trip_hyst) { in thermal_zone_set_trip() 160 ret = tz->ops->set_trip_hyst(tz, trip_id, trip->hysteresis); in thermal_zone_set_trip() 165 if (tz->trips && (t.temperature != trip->temperature || t.hysteresis != trip->hysteresis)) in thermal_zone_set_trip() 169 trip->temperature, trip->hysteresis); in thermal_zone_set_trip()
|
H A D | gov_bang_bang.c | 3 * gov_bang_bang.c - A simple thermal throttling governor using hysteresis 21 if (!trip->hysteresis) in thermal_zone_trip_update() 23 "Zero hysteresis value for thermal zone %s\n", tz->type); in thermal_zone_trip_update() 27 trip->hysteresis); in thermal_zone_trip_update() 46 * the fan in case it falls below trip_temp minus hysteresis in thermal_zone_trip_update() 51 tz->temperature <= trip->temperature - trip->hysteresis) in thermal_zone_trip_update()
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | gpd-pocket-fan.c | 34 static int hysteresis = HYSTERESIS_DEFAULT; variable 35 module_param(hysteresis, int, 0444); 36 MODULE_PARM_DESC(hysteresis, 99 /* Use hysteresis before lowering speed again */ in gpd_pocket_fan_worker() 101 if (temp <= (temp_limits[i] - hysteresis)) in gpd_pocket_fan_worker() 139 if (hysteresis < 1000 || hysteresis > 10000) { in gpd_pocket_fan_probe() 140 dev_err(&pdev->dev, "Invalid hysteresis %d (must be between 1000 and 10000)\n", in gpd_pocket_fan_probe() 141 hysteresis); in gpd_pocket_fan_probe() 142 hysteresis in gpd_pocket_fan_probe() [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/ |
H A D | gpd-pocket-fan.c | 35 static int hysteresis = HYSTERESIS_DEFAULT; variable 36 module_param(hysteresis, int, 0444); 37 MODULE_PARM_DESC(hysteresis, 100 /* Use hysteresis before lowering speed again */ in gpd_pocket_fan_worker() 102 if (temp <= (temp_limits[i] - hysteresis)) in gpd_pocket_fan_worker() 140 if (hysteresis < 1000 || hysteresis > 10000) { in gpd_pocket_fan_probe() 141 dev_err(&pdev->dev, "Invalid hysteresis %d (must be between 1000 and 10000)\n", in gpd_pocket_fan_probe() 142 hysteresis); in gpd_pocket_fan_probe() 143 hysteresis in gpd_pocket_fan_probe() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | therm.c | 103 sensor->thrs_critical.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 110 sensor->thrs_down_clock.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 117 sensor->thrs_fan_boost.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 143 sensor->thrs_shutdown.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 178 cur_trip->hysteresis = value & 0xf; in nvbios_therm_fan_parse()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | therm.c | 103 sensor->thrs_critical.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 110 sensor->thrs_down_clock.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 117 sensor->thrs_fan_boost.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 143 sensor->thrs_shutdown.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() 178 cur_trip->hysteresis = value & 0xf; in nvbios_therm_fan_parse()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | therm.h | 6 u8 hysteresis; member 35 int hysteresis; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | therm.h | 6 u8 hysteresis; member 35 int hysteresis; member
|
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | thermal_helpers.c | 133 int trip_temp, hysteresis; in thermal_zone_set_trips() local 145 tz->ops->get_trip_hyst(tz, i, &hysteresis); in thermal_zone_set_trips() 147 trip_low = trip_temp - hysteresis; in thermal_zone_set_trips()
|
H A D | thermal_core.h | 78 * @hysteresis: relative hysteresis in miliCelsius 84 int hysteresis; member
|
H A D | thermal_of.c | 329 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst() 343 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst() 821 ret = of_property_read_u32(np, "hysteresis", &prop); in thermal_of_populate_trip() 823 pr_err("missing hysteresis property\n"); in thermal_of_populate_trip() 826 trip->hysteresis = prop; in thermal_of_populate_trip()
|
H A D | armada_thermal.c | 475 * high/low watermark = threshold +/- 0.4761 * 2^(hysteresis + 2) 487 * We will always take the smallest possible hysteresis to avoid risking in armada_mc_to_reg_hyst() 503 unsigned int hysteresis = armada_mc_to_reg_hyst(data, hyst_mc); in armada_set_overheat_thresholds() local 518 ctrl1 |= hysteresis << data->hyst_shift; in armada_set_overheat_thresholds() 808 trips[i].hysteresis); in armada_configure_overheat_int()
|
/kernel/linux/linux-5.10/drivers/staging/iio/resolver/ |
H A D | ad2s1210.c | 94 bool hysteresis; member 323 st->hysteresis = !!(data & AD2S1210_ENABLE_HYSTERESIS); in ad2s1210_store_control() 496 if (st->hysteresis) in ad2s1210_read_raw() 669 st->hysteresis = true; in ad2s1210_probe()
|
/kernel/linux/linux-6.6/drivers/staging/iio/resolver/ |
H A D | ad2s1210.c | 95 bool hysteresis; member 324 st->hysteresis = !!(data & AD2S1210_ENABLE_HYSTERESIS); in ad2s1210_store_control() 497 if (st->hysteresis) in ad2s1210_read_raw() 669 st->hysteresis = true; in ad2s1210_probe()
|
/kernel/linux/linux-5.10/tools/thermal/tmon/ |
H A D | tmon.h | 69 unsigned long hysteresis; member
|
/kernel/linux/linux-6.6/tools/thermal/tmon/ |
H A D | tmon.h | 69 unsigned long hysteresis; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_thermal.c | 45 .hysteresis = MLXSW_THERMAL_HYSTERESIS_TEMP, 51 .hysteresis = MLXSW_THERMAL_HYSTERESIS_TEMP, 63 .hysteresis = MLXSW_THERMAL_HYSTERESIS_TEMP, 69 .hysteresis = MLXSW_THERMAL_HYSTERESIS_TEMP,
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | acpi_power_meter.c | 70 u64 hysteresis; member 409 if (resource->caps.hysteresis == UNKNOWN_HYSTERESIS) in show_val() 412 val = resource->caps.hysteresis * 1000; in show_val()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | acpi_power_meter.c | 69 u64 hysteresis; member 414 if (resource->caps.hysteresis == UNKNOWN_HYSTERESIS) in show_val() 417 val = resource->caps.hysteresis * 1000; in show_val()
|