Home
last modified time | relevance | path

Searched refs:hyst (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.15/drivers/hwmon/
H A Dadt7x10.c174 int hyst, ret; in adt7x10_hyst_read() local
181 hyst = (regdata[0] & ADT7X10_T_HYST_MASK) * 1000; in adt7x10_hyst_read()
189 hyst = -hyst; in adt7x10_hyst_read()
191 *val = ADT7X10_REG_TO_TEMP(data, regdata[1]) - hyst; in adt7x10_hyst_read()
195 static int adt7x10_hyst_write(struct adt7x10_data *data, long hyst) in adt7x10_hyst_write() argument
209 hyst = clamp_val(hyst, ADT7X10_TEMP_MIN, ADT7X10_TEMP_MAX); in adt7x10_hyst_write()
210 regval = clamp_val(DIV_ROUND_CLOSEST(limit - hyst, 1000), 0, in adt7x10_hyst_write()
H A Djc42.c217 int ret, temp, hyst; in jc42_read() local
257 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read()
259 *val = temp - hyst; in jc42_read()
268 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read()
270 *val = temp - hyst; in jc42_read()
308 int diff, hyst; in jc42_write() local
340 hyst = 0; in jc42_write()
343 hyst = 1; /* 1.5 degrees C */ in jc42_write()
345 hyst = 2; /* 3.0 degrees C */ in jc42_write()
347 hyst = 3; /* 6.0 degrees C */ in jc42_write()
[all …]
H A Dlm77.c243 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 Demc1403.c313 int hyst, ret; in emc1403_get_hyst() local
320 ret = regmap_read(data->regmap, 0x21, &hyst); in emc1403_get_hyst()
324 *val = limit + hyst * 1000; in emc1403_get_hyst()
326 *val = limit - hyst * 1000; in emc1403_get_hyst()
446 int hyst, ret; in emc1403_set_hyst() local
459 hyst = limit - val; in emc1403_set_hyst()
461 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 127); in emc1403_set_hyst()
463 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255); in emc1403_set_hyst()
464 ret = regmap_write(data->regmap, 0x21, hyst); in emc1403_set_hyst()
H A Dtmp108.c97 int err, hyst; in tmp108_read() local
162 hyst = 0; in tmp108_read()
165 hyst = 1000; in tmp108_read()
168 hyst = 2000; in tmp108_read()
171 hyst = 4000; in tmp108_read()
180 *temp += hyst; in tmp108_read()
182 *temp -= hyst; in tmp108_read()
H A Dlm75.c991 int conf, hyst, os; in lm75_detect() local
1039 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
1043 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
1044 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect()
1045 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect()
1046 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect()
1047 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect()
1060 if (hyst == 0 && os == 0) in lm75_detect()
1066 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
H A Dstts751.c93 int hyst; member
455 priv->hyst = temp - (priv->therm - priv->hyst); in therm_store()
471 return sysfs_emit(buf, "%d\n", priv->hyst); in hyst_show()
488 priv->hyst = temp; in hyst_store()
735 priv->hyst = priv->therm - tmp; in stts751_read_chip_config()
746 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, hyst, 0);
H A Dmax31760.c467 unsigned int hyst; in pwm1_auto_point_temp_hyst_store() local
470 ret = kstrtou32(buf, 10, &hyst); in pwm1_auto_point_temp_hyst_store()
474 if (hyst < 3000) in pwm1_auto_point_temp_hyst_store()
/linux-6.15/drivers/clk/bcm/
H A Dclk-kona-setup.c74 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()
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
425 hyst = &peri->hyst; in peri_clk_data_valid()
[all …]
H A Dclk-kona.h55 #define hyst_exists(hyst) ((hyst)->offset != 0) argument
385 struct bcm_clk_hyst hyst; member
H A Dclk-kona.c520 static bool hyst_init(struct ccu_data *ccu, struct bcm_clk_hyst *hyst) in hyst_init() argument
526 if (!hyst_exists(hyst)) in hyst_init()
529 offset = hyst->offset; in hyst_init()
530 mask = (u32)1 << hyst->en_bit; in hyst_init()
531 mask |= (u32)1 << hyst->val_bit; in hyst_init()
1205 if (!hyst_init(ccu, &peri->hyst)) { in __peri_clk_init()
/linux-6.15/drivers/thermal/
H A Dthermal_sysfs.c151 int hyst; in trip_point_hyst_store() local
153 if (kstrtoint(buf, 10, &hyst) || hyst < 0) in trip_point_hyst_store()
158 if (hyst == trip->hysteresis) in trip_point_hyst_store()
168 WRITE_ONCE(trip->hysteresis, hyst); in trip_point_hyst_store()
172 if (trip->temperature - hyst <= THERMAL_TEMP_INVALID) in trip_point_hyst_store()
175 thermal_zone_set_trip_hyst(tz, trip, hyst); in trip_point_hyst_store()
427 sysfs_attr_init(&trip_attrs->hyst.attr.attr); in create_trip_attrs()
428 trip_attrs->hyst.attr.attr.name = trip_attrs->hyst.name; in create_trip_attrs()
429 trip_attrs->hyst.attr.attr.mode = S_IRUGO; in create_trip_attrs()
430 trip_attrs->hyst.attr.show = trip_point_hyst_show; in create_trip_attrs()
[all …]
H A Dthermal_core.h28 struct thermal_attr hyst; member
283 struct thermal_trip *trip, int hyst);
/linux-6.15/tools/thermal/thermal-engine/
H A Dthermal-engine.c52 tt->id, tt->type, tt->temp, tt->hyst); in show_trip()
170 static int trip_add(int tz_id, int trip_id, int type, int temp, int hyst, __maybe_unused void *arg) in trip_add() argument
173 tz_id, trip_id, type, temp, hyst); in trip_add()
186 int hyst, __maybe_unused void *arg) in trip_change() argument
192 tz_id, trip_id, type, temp, hyst); in trip_change()
196 tz->trip[trip_id].hyst = hyst; in trip_change()
/linux-6.15/drivers/input/misc/
H A Diqs626a.c289 u8 hyst; member
306 u8 hyst; member
315 u8 hyst; member
329 u8 hyst; member
466 u8 *thresh, *hyst; in iqs626_parse_events() local
473 hyst = &sys_reg->ch_reg_ulp.hyst; in iqs626_parse_events()
479 hyst = &sys_reg->tp_grp_reg.hyst; in iqs626_parse_events()
487 hyst = &sys_reg->ch_reg_gen[i].hyst; in iqs626_parse_events()
492 hyst = &sys_reg->ch_reg_hall.hyst; in iqs626_parse_events()
557 *hyst |= val; in iqs626_parse_events()
[all …]
H A Dbma150.c226 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-6.15/drivers/thermal/intel/int340x_thermal/
H A Dint340x_thermal_zone.c122 unsigned long long hyst; in int340x_thermal_zone_add() local
152 status = acpi_evaluate_integer(adev->handle, "GTSH", NULL, &hyst); in int340x_thermal_zone_add()
154 hyst *= 100; in int340x_thermal_zone_add()
156 hyst = 0; in int340x_thermal_zone_add()
159 zone_trips[i].hysteresis = hyst; in int340x_thermal_zone_add()
/linux-6.15/drivers/mfd/
H A Dtps65218.c229 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()
243 hyst == 400000 ? TPS65218_CONFIG2_UVLOHYS : 0, in tps65218_voltage_set_uv_hyst()
/linux-6.15/drivers/iio/proximity/
H A Dsx9360.c519 unsigned int hyst, val = _val; in sx9360_write_hysteresis() local
527 hyst = 0; in sx9360_write_hysteresis()
529 hyst = 3; in sx9360_write_hysteresis()
531 hyst = 2; in sx9360_write_hysteresis()
533 hyst = 1; in sx9360_write_hysteresis()
537 hyst = FIELD_PREP(SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
540 SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
H A Dsx9310.c556 unsigned int hyst, val = _val; in sx9310_write_hysteresis() local
564 hyst = 0; in sx9310_write_hysteresis()
566 hyst = 3; in sx9310_write_hysteresis()
568 hyst = 2; in sx9310_write_hysteresis()
570 hyst = 1; in sx9310_write_hysteresis()
574 hyst = FIELD_PREP(SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
578 SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
H A Dsx9324.c637 unsigned int hyst, val = _val; in sx9324_write_hysteresis() local
645 hyst = 0; in sx9324_write_hysteresis()
647 hyst = 3; in sx9324_write_hysteresis()
649 hyst = 2; in sx9324_write_hysteresis()
651 hyst = 1; in sx9324_write_hysteresis()
655 hyst = FIELD_PREP(SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis()
659 SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis()
/linux-6.15/tools/lib/thermal/include/
H A Dthermal.h36 int (*trip_add)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg);
37 int (*trip_change)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg);
59 int hyst; member
/linux-6.15/drivers/iio/temperature/
H A Dmcp9600.c268 u8 hyst; in mcp9600_write_thresh() local
293 hyst = min(abs(val), 255); in mcp9600_write_thresh()
296 hyst); in mcp9600_write_thresh()
/linux-6.15/include/sound/
H A Dda7218.h79 bool hyst; member
/linux-6.15/Documentation/devicetree/bindings/sound/
H A Dda7218.txt63 - dlg,hyst : Boolean flag, enable hysteresis
100 dlg,hyst;

12