/Linux-v6.1/drivers/hwmon/ |
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, 0x05); 174 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, hyst, 0x20); 185 static SENSOR_DEVICE_ATTR_RO(temp2_max_hyst, hyst, 0x07); [all …]
|
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_MIN, ADT7X10_TEMP_MAX); in adt7x10_hyst_write() 216 regval = clamp_val(DIV_ROUND_CLOSEST(limit - hyst, 1000), 0, in adt7x10_hyst_write()
|
D | jc42.c | 281 int temp, hyst; in jc42_read() local 301 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in jc42_read() 303 *val = temp - hyst; in jc42_read() 307 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in jc42_read() 309 *val = temp - hyst; in jc42_read() 330 int diff, hyst; in jc42_write() local 360 hyst = 0; in jc42_write() 363 hyst = 1; /* 1.5 degrees C */ in jc42_write() 365 hyst = 2; /* 3.0 degrees C */ in jc42_write() 367 hyst = 3; /* 6.0 degrees C */ in jc42_write() [all …]
|
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()
|
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()
|
D | lm75.c | 813 int conf, hyst, os; in lm75_detect() local 861 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 865 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 866 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect() 867 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect() 868 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect() 869 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect() 882 if (hyst == 0 && os == 0) in lm75_detect() 888 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
|
D | stts751.c | 93 int hyst; member 456 priv->hyst = temp - (priv->therm - priv->hyst); in therm_store() 472 return sysfs_emit(buf, "%d\n", priv->hyst); in hyst_show() 489 priv->hyst = temp; in hyst_store() 736 priv->hyst = priv->therm - tmp; in stts751_read_chip_config() 747 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, hyst, 0);
|
D | intel-m10-bmc-hwmon.c | 395 long hyst, value; in m10bmc_hwmon_read() local 478 ret = do_sensor_read(hw, data, reg_hyst, &hyst); in m10bmc_hwmon_read() 482 value -= hyst; in m10bmc_hwmon_read()
|
/Linux-v6.1/drivers/thermal/ |
D | thermal_netlink.h | 24 int temp, int hyst); 26 int temp, int hyst); 76 int temp, int hyst) in thermal_notify_tz_trip_add() argument 82 int temp, int hyst) in thermal_notify_tz_trip_change() argument
|
D | thermal_of.c | 97 int *hyst) in of_thermal_get_trip_hyst() argument 102 *hyst = tz->trips[trip].hysteresis; in of_thermal_get_trip_hyst() 108 int hyst) in of_thermal_set_trip_hyst() argument 114 tz->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
|
/Linux-v6.1/drivers/clk/bcm/ |
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->val_bit, "hysteresis value", clock_name)) in hyst_valid() 397 struct bcm_clk_hyst *hyst; in peri_clk_data_valid() local [all …]
|
D | clk-kona.h | 55 #define hyst_exists(hyst) ((hyst)->offset != 0) argument 385 struct bcm_clk_hyst hyst; member
|
/Linux-v6.1/tools/thermal/thermal-engine/ |
D | thermal-engine.c | 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 139 tz_id, trip_id, type, temp, hyst); in trip_add() 152 int hyst, __maybe_unused void *arg) in trip_change() argument 158 tz_id, trip_id, type, temp, hyst); in trip_change() 162 tz->trip[trip_id].hyst = hyst; in trip_change()
|
/Linux-v6.1/drivers/input/misc/ |
D | iqs626a.c | 289 u8 hyst; member 306 u8 hyst; member 315 u8 hyst; member 329 u8 hyst; member 468 u8 *thresh, *hyst; in iqs626_parse_events() local 477 hyst = &sys_reg->ch_reg_ulp.hyst; in iqs626_parse_events() 483 hyst = &sys_reg->tp_grp_reg.hyst; in iqs626_parse_events() 491 hyst = &sys_reg->ch_reg_gen[i].hyst; in iqs626_parse_events() 496 hyst = &sys_reg->ch_reg_hall.hyst; in iqs626_parse_events() 555 *hyst &= ~IQS626_CHx_HYST_DEEP_MASK; in iqs626_parse_events() [all …]
|
D | bma150.c | 226 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_low_g_interrupt() argument 230 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_low_g_interrupt() 250 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_high_g_interrupt() argument 254 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_high_g_interrupt()
|
/Linux-v6.1/drivers/mfd/ |
D | tps65218.c | 230 u32 hyst; in tps65218_voltage_set_uv_hyst() local 233 "ti,under-voltage-hyst-microvolt", &hyst)) in tps65218_voltage_set_uv_hyst() 236 if (hyst != 400000 && hyst != 200000) { in tps65218_voltage_set_uv_hyst() 244 hyst == 400000 ? TPS65218_CONFIG2_UVLOHYS : 0, in tps65218_voltage_set_uv_hyst()
|
/Linux-v6.1/tools/lib/thermal/include/ |
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
|
/Linux-v6.1/drivers/thermal/samsung/ |
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() argument 411 int trip, u8 temp, u8 hyst) in exynos4412_tmu_set_trip_hyst() argument 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() argument [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 42 int hyst; member 51 .hyst = MLXSW_THERMAL_HYSTERESIS_TEMP, 59 .hyst = MLXSW_THERMAL_HYSTERESIS_TEMP, 305 *p_hyst = thermal->trips[trip].hyst; in mlxsw_thermal_get_trip_hyst() 310 int trip, int hyst) in mlxsw_thermal_set_trip_hyst() argument 314 thermal->trips[trip].hyst = hyst; in mlxsw_thermal_set_trip_hyst() 482 *p_hyst = tz->trips[trip].hyst; in mlxsw_thermal_module_trip_hyst_get() 488 int hyst) in mlxsw_thermal_module_trip_hyst_set() argument 492 tz->trips[trip].hyst = hyst; in mlxsw_thermal_module_trip_hyst_set()
|
/Linux-v6.1/drivers/iio/proximity/ |
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()
|
D | sx9324.c | 646 unsigned int hyst, val = _val; in sx9324_write_hysteresis() local 654 hyst = 0; in sx9324_write_hysteresis() 656 hyst = 3; in sx9324_write_hysteresis() 658 hyst = 2; in sx9324_write_hysteresis() 660 hyst = 1; in sx9324_write_hysteresis() 664 hyst = FIELD_PREP(SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis() 667 SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis()
|
D | sx9310.c | 555 unsigned int hyst, val = _val; in sx9310_write_hysteresis() local 563 hyst = 0; in sx9310_write_hysteresis() 565 hyst = 3; in sx9310_write_hysteresis() 567 hyst = 2; in sx9310_write_hysteresis() 569 hyst = 1; in sx9310_write_hysteresis() 573 hyst = FIELD_PREP(SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis() 576 SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
|
/Linux-v6.1/drivers/thermal/intel/int340x_thermal/ |
D | int340x_thermal_zone.c | 135 unsigned long long hyst; in int340x_thermal_get_trip_hyst() local 140 status = acpi_evaluate_integer(d->adev->handle, "GTSH", NULL, &hyst); in int340x_thermal_get_trip_hyst() 144 *temp = hyst * 100; in int340x_thermal_get_trip_hyst()
|
/Linux-v6.1/include/sound/ |
D | da7218.h | 79 bool hyst; member
|
/Linux-v6.1/Documentation/devicetree/bindings/sound/ |
D | da7218.txt | 63 - dlg,hyst : Boolean flag, enable hysteresis 100 dlg,hyst;
|