/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | emc1403.c | 106 unsigned int hyst; in show_hyst_common() local 113 retval = regmap_read(regmap, 0x21, &hyst); in show_hyst_common() 117 return sprintf(buf, "%d000\n", is_min ? limit + hyst : limit - hyst); in show_hyst_common() 140 int hyst; in hyst_store() local 151 hyst = limit * 1000 - val; in hyst_store() 152 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255); in hyst_store() 153 retval = regmap_write(regmap, 0x21, hyst); in hyst_store() 173 static SENSOR_DEVICE_ATTR_RO(temp1_max_hyst, hyst, [all...] |
H A D | adt7x10.c | 69 u8 hyst; /* hysteresis offset */ member 193 data->hyst = ret; in adt7x10_fill_cache() 268 int hyst; in adt7x10_t_hyst_show() local 270 hyst = (data->hyst & ADT7X10_T_HYST_MASK) * 1000; in adt7x10_t_hyst_show() 277 hyst = -hyst; in adt7x10_t_hyst_show() 279 ADT7X10_REG_TO_TEMP(data, data->temp[nr]) - hyst); in adt7x10_t_hyst_show() 288 long hyst; in adt7x10_t_hyst_store() local 290 ret = kstrtol(buf, 10, &hyst); in adt7x10_t_hyst_store() [all...] |
H A D | lm77.c | 243 int i, cur, conf, hyst, crit, min, max; in lm77_detect() local 266 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect() 272 || i2c_smbus_read_word_data(client, i + 2) != hyst in lm77_detect() 281 || ((hyst & 0x00f0) != 0xf0 && (hyst & 0x00f0) != 0x0) in lm77_detect() 296 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect() 297 if (i2c_smbus_read_word_data(client, 6) != hyst in lm77_detect() 298 || i2c_smbus_read_word_data(client, 7) != hyst) in lm77_detect()
|
H A D | jc42.c | 230 int ret, temp, hyst; in jc42_read() local 270 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in jc42_read() 272 *val = temp - hyst; in jc42_read() 281 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in jc42_read() 283 *val = temp - hyst; in jc42_read() 321 int diff, hyst; in jc42_write() local 353 hyst = 0; in jc42_write() 356 hyst = 1; /* 1.5 degrees C */ in jc42_write() 358 hyst = 2; /* 3.0 degrees C */ in jc42_write() 360 hyst in jc42_write() [all...] |
H A D | tmp108.c | 96 int err, hyst; in tmp108_read() local 161 hyst = 0; in tmp108_read() 164 hyst = 1000; in tmp108_read() 167 hyst = 2000; in tmp108_read() 170 hyst = 4000; in tmp108_read() 179 *temp += hyst; in tmp108_read() 181 *temp -= hyst; in tmp108_read()
|
H A D | lm75.c | 786 int conf, hyst, os; in lm75_detect() local 834 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 838 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 839 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect() 840 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect() 841 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect() 842 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect() 855 if (hyst == 0 && os == 0) in lm75_detect() 861 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | emc1403.c | 106 unsigned int hyst; in show_hyst_common() local 113 retval = regmap_read(regmap, 0x21, &hyst); in show_hyst_common() 117 return sprintf(buf, "%d000\n", is_min ? limit + hyst : limit - hyst); in show_hyst_common() 140 int hyst; in hyst_store() local 151 hyst = limit * 1000 - val; in hyst_store() 152 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255); in hyst_store() 153 retval = regmap_write(regmap, 0x21, hyst); in hyst_store() 173 static SENSOR_DEVICE_ATTR_RO(temp1_max_hyst, hyst, [all...] |
H A D | adt7x10.c | 173 int hyst, temp, ret; in adt7x10_hyst_read() local 176 ret = regmap_read(data->regmap, ADT7X10_T_HYST, &hyst); in adt7x10_hyst_read() 187 hyst = (hyst & ADT7X10_T_HYST_MASK) * 1000; in adt7x10_hyst_read() 195 hyst = -hyst; in adt7x10_hyst_read() 197 *val = ADT7X10_REG_TO_TEMP(data, temp) - hyst; in adt7x10_hyst_read() 201 static int adt7x10_hyst_write(struct adt7x10_data *data, long hyst) in adt7x10_hyst_write() argument 215 hyst = clamp_val(hyst, ADT7X10_TEMP_MI in adt7x10_hyst_write() [all...] |
H A D | lm77.c | 243 int i, cur, conf, hyst, crit, min, max; in lm77_detect() local 266 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect() 272 || i2c_smbus_read_word_data(client, i + 2) != hyst in lm77_detect() 281 || ((hyst & 0x00f0) != 0xf0 && (hyst & 0x00f0) != 0x0) in lm77_detect() 296 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect() 297 if (i2c_smbus_read_word_data(client, 6) != hyst in lm77_detect() 298 || i2c_smbus_read_word_data(client, 7) != hyst) in lm77_detect()
|
H A D | jc42.c | 240 int ret, temp, hyst; in jc42_read() local 280 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read() 282 *val = temp - hyst; in jc42_read() 291 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read() 293 *val = temp - hyst; in jc42_read() 331 int diff, hyst; in jc42_write() local 363 hyst = 0; in jc42_write() 366 hyst = 1; /* 1.5 degrees C */ in jc42_write() 368 hyst = 2; /* 3.0 degrees C */ in jc42_write() 370 hyst in jc42_write() [all...] |
H A D | tmp108.c | 96 int err, hyst; in tmp108_read() local 161 hyst = 0; in tmp108_read() 164 hyst = 1000; in tmp108_read() 167 hyst = 2000; in tmp108_read() 170 hyst = 4000; in tmp108_read() 179 *temp += hyst; in tmp108_read() 181 *temp -= hyst; in tmp108_read()
|
H A D | lm75.c | 812 int conf, hyst, os; in lm75_detect() local 860 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 864 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 865 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect() 866 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect() 867 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect() 868 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect() 881 if (hyst == 0 && os == 0) in lm75_detect() 887 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
|
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | thermal_netlink.h | 18 int temp, int hyst); 20 int temp, int hyst); 68 int temp, int hyst) in thermal_notify_tz_trip_add() 74 int temp, int hyst) in thermal_notify_tz_trip_change() 67 thermal_notify_tz_trip_add(int tz_id, int id, int type, int temp, int hyst) thermal_notify_tz_trip_add() argument 73 thermal_notify_tz_trip_change(int tz_id, int id, int type, int temp, int hyst) thermal_notify_tz_trip_change() argument
|
/kernel/linux/linux-6.6/drivers/thermal/ |
H A D | thermal_netlink.h | 25 int temp, int hyst); 27 int temp, int hyst); 77 int temp, int hyst) in thermal_notify_tz_trip_add() 83 int temp, int hyst) in thermal_notify_tz_trip_change() 76 thermal_notify_tz_trip_add(int tz_id, int id, int type, int temp, int hyst) thermal_notify_tz_trip_add() argument 82 thermal_notify_tz_trip_change(int tz_id, int id, int type, int temp, int hyst) thermal_notify_tz_trip_change() argument
|
/kernel/linux/linux-5.10/drivers/clk/bcm/ |
H A D | clk-kona-setup.c | 82 struct bcm_clk_hyst *hyst; in peri_clk_data_offsets_valid() local 108 hyst = &peri->hyst; in peri_clk_data_offsets_valid() 116 if (hyst_exists(hyst)) { in peri_clk_data_offsets_valid() 117 if (hyst->offset > limit) { in peri_clk_data_offsets_valid() 120 name, hyst->offset, limit); in peri_clk_data_offsets_valid() 124 } else if (hyst_exists(hyst)) { in peri_clk_data_offsets_valid() 276 static bool hyst_valid(struct bcm_clk_hyst *hyst, const char *clock_name) in hyst_valid() argument 278 if (!bit_posn_valid(hyst->en_bit, "hysteresis enable", clock_name)) in hyst_valid() 281 if (!bit_posn_valid(hyst in hyst_valid() 405 struct bcm_clk_hyst *hyst; peri_clk_data_valid() local [all...] |
/kernel/linux/linux-6.6/drivers/clk/bcm/ |
H A D | clk-kona-setup.c | 74 struct bcm_clk_hyst *hyst; in peri_clk_data_offsets_valid() local 100 hyst = &peri->hyst; in peri_clk_data_offsets_valid() 108 if (hyst_exists(hyst)) { in peri_clk_data_offsets_valid() 109 if (hyst->offset > limit) { in peri_clk_data_offsets_valid() 112 name, hyst->offset, limit); in peri_clk_data_offsets_valid() 116 } else if (hyst_exists(hyst)) { in peri_clk_data_offsets_valid() 268 static bool hyst_valid(struct bcm_clk_hyst *hyst, const char *clock_name) in hyst_valid() argument 270 if (!bit_posn_valid(hyst->en_bit, "hysteresis enable", clock_name)) in hyst_valid() 273 if (!bit_posn_valid(hyst in hyst_valid() 397 struct bcm_clk_hyst *hyst; peri_clk_data_valid() local [all...] |
/kernel/linux/linux-6.6/tools/thermal/thermal-engine/ |
H A D | thermal-engine.c | 43 INFO("trip id=%d, type=%d, temp=%d, hyst=%d\n", in show_trip() 44 tt->id, tt->type, tt->temp, tt->hyst); in show_trip() 136 static int trip_add(int tz_id, int trip_id, int type, int temp, int hyst, __maybe_unused void *arg) in trip_add() argument 138 INFO("Trip point added %d: id=%d, type=%d, temp=%d, hyst=%d\n", in trip_add() 139 tz_id, trip_id, type, temp, hyst); in trip_add() 152 int hyst, __maybe_unused void *arg) in trip_change() 157 INFO("Trip point changed %d: id=%d, type=%d, temp=%d, hyst=%d\n", in trip_change() 158 tz_id, trip_id, type, temp, hyst); in trip_change() 162 tz->trip[trip_id].hyst = hyst; in trip_change() 151 trip_change(int tz_id, int trip_id, int type, int temp, int hyst, __maybe_unused void *arg) trip_change() argument [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | tps65218.c | 229 u32 hyst; in tps65218_voltage_set_uv_hyst() local 232 "ti,under-voltage-hyst-microvolt", &hyst)) in tps65218_voltage_set_uv_hyst() 235 if (hyst != 400000 && hyst != 200000) { in tps65218_voltage_set_uv_hyst() 237 "Invalid ti,under-voltage-hyst-microvolt value\n"); in tps65218_voltage_set_uv_hyst() 243 hyst == 400000 ? TPS65218_CONFIG2_UVLOHYS : 0, in tps65218_voltage_set_uv_hyst()
|
/kernel/linux/linux-6.6/drivers/thermal/intel/int340x_thermal/ |
H A D | int340x_thermal_zone.c | 121 unsigned long long hyst; in int340x_thermal_zone_add() local 162 status = acpi_evaluate_integer(adev->handle, "GTSH", NULL, &hyst); in int340x_thermal_zone_add() 164 hyst *= 100; in int340x_thermal_zone_add() 166 hyst = 0; in int340x_thermal_zone_add() 169 zone_trips[i].hysteresis = hyst; in int340x_thermal_zone_add()
|
/kernel/linux/linux-6.6/tools/lib/thermal/include/ |
H A D | thermal.h | 27 int (*trip_add)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg); 28 int (*trip_change)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg); 45 int hyst; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_thermal.c | 46 int hyst; member 55 .hyst = MLXSW_THERMAL_HYSTERESIS_TEMP, 63 .hyst = MLXSW_THERMAL_HYSTERESIS_TEMP, 70 .hyst = MLXSW_THERMAL_HYSTERESIS_TEMP, 341 *p_hyst = thermal->trips[trip].hyst; in mlxsw_thermal_get_trip_hyst() 346 int trip, int hyst) in mlxsw_thermal_set_trip_hyst() 350 thermal->trips[trip].hyst = hyst; in mlxsw_thermal_set_trip_hyst() 511 *p_hyst = tz->trips[trip].hyst; in mlxsw_thermal_module_trip_hyst_get() 517 int hyst) in mlxsw_thermal_module_trip_hyst_set() 345 mlxsw_thermal_set_trip_hyst(struct thermal_zone_device *tzdev, int trip, int hyst) mlxsw_thermal_set_trip_hyst() argument 516 mlxsw_thermal_module_trip_hyst_set(struct thermal_zone_device *tzdev, int trip, int hyst) mlxsw_thermal_module_trip_hyst_set() argument [all...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | iqs626a.c | 289 u8 hyst; member 306 u8 hyst; member 315 u8 hyst; member 329 u8 hyst; member 467 u8 *thresh, *hyst; in iqs626_parse_events() local 474 hyst = &sys_reg->ch_reg_ulp.hyst; in iqs626_parse_events() 480 hyst = &sys_reg->tp_grp_reg.hyst; in iqs626_parse_events() 488 hyst in iqs626_parse_events() 719 u8 *hyst = &sys_reg->tp_grp_reg.hyst; iqs626_parse_trackpad() local [all...] |
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | tps65218.c | 238 u32 hyst; in tps65218_voltage_set_uv_hyst() local 241 "ti,under-voltage-hyst-microvolt", &hyst)) in tps65218_voltage_set_uv_hyst() 244 if (hyst != 400000 && hyst != 200000) { in tps65218_voltage_set_uv_hyst() 246 "Invalid ti,under-voltage-hyst-microvolt value\n"); in tps65218_voltage_set_uv_hyst() 252 hyst == 400000 ? TPS65218_CONFIG2_UVLOHYS : 0, in tps65218_voltage_set_uv_hyst()
|
/kernel/linux/linux-6.6/drivers/iio/proximity/ |
H A D | sx9360.c | 530 unsigned int hyst, val = _val; in sx9360_write_hysteresis() local 538 hyst = 0; in sx9360_write_hysteresis() 540 hyst = 3; in sx9360_write_hysteresis() 542 hyst = 2; in sx9360_write_hysteresis() 544 hyst = 1; in sx9360_write_hysteresis() 548 hyst = FIELD_PREP(SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis() 551 SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
|
/kernel/linux/linux-5.10/drivers/thermal/samsung/ |
H A D | exynos_tmu.c | 200 u8 temp, u8 hyst); 266 int ret = 0, temp, hyst; in exynos_tmu_initialize() local 314 ret = tzd->ops->get_trip_hyst(tzd, i, &hyst); in exynos_tmu_initialize() 317 hyst /= MCELSIUS; in exynos_tmu_initialize() 318 data->tmu_set_trip_hyst(data, i, temp, hyst); in exynos_tmu_initialize() 382 int trip, u8 temp, u8 hyst) in exynos4210_tmu_set_trip_hyst() 411 int trip, u8 temp, u8 hyst) in exynos4412_tmu_set_trip_hyst() 417 if (hyst) in exynos4412_tmu_set_trip_hyst() 418 th |= temp_to_code(data, temp - hyst) << 8 * trip; in exynos4412_tmu_set_trip_hyst() 470 int trip, u8 temp, u8 hyst) in exynos5433_tmu_set_trip_hyst() 381 exynos4210_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos4210_tmu_set_trip_hyst() argument 410 exynos4412_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos4412_tmu_set_trip_hyst() argument 469 exynos5433_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos5433_tmu_set_trip_hyst() argument 537 exynos7_tmu_set_trip_hyst(struct exynos_tmu_data *data, int trip, u8 temp, u8 hyst) exynos7_tmu_set_trip_hyst() argument [all...] |