Home
last modified time | relevance | path

Searched full:hyst (Results 1 – 25 of 35) sorted by relevance

12

/linux/drivers/hwmon/
H A Djc42.c214 int ret, temp, hyst; in jc42_read() local
252 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read()
254 *val = temp - hyst; in jc42_read()
263 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read()
265 *val = temp - hyst; in jc42_read()
301 int diff, hyst; in jc42_write() local
331 hyst = 0; in jc42_write()
334 hyst = 1; /* 1.5 degrees C */ in jc42_write()
336 hyst = 2; /* 3.0 degrees C */ in jc42_write()
338 hyst = 3; /* 6.0 degrees C */ in jc42_write()
[all …]
H A Dtmp108.c123 int err, hyst; in tmp108_read() local
175 hyst = 0; in tmp108_read()
178 hyst = 1000; in tmp108_read()
181 hyst = 2000; in tmp108_read()
184 hyst = 4000; in tmp108_read()
193 *temp += hyst; in tmp108_read()
195 *temp -= hyst; in tmp108_read()
H A Dlm75.c1039 int conf, hyst, os; in lm75_detect() local
1087 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
1091 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
1092 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect()
1093 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect()
1094 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect()
1095 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect()
1108 if (hyst == 0 && os == 0) in lm75_detect()
1114 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
H A Dintel-m10-bmc-hwmon.c612 long hyst, value; in m10bmc_hwmon_read() local
695 ret = do_sensor_read(hw, data, reg_hyst, &hyst); in m10bmc_hwmon_read()
699 value -= hyst; in m10bmc_hwmon_read()
/linux/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()
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()
/linux/drivers/input/misc/
H A Diqs626a.c288 u8 hyst; member
305 u8 hyst; member
314 u8 hyst; member
328 u8 hyst; member
465 u8 *thresh, *hyst; in iqs626_parse_events() local
472 hyst = &sys_reg->ch_reg_ulp.hyst; in iqs626_parse_events()
478 hyst = &sys_reg->tp_grp_reg.hyst; in iqs626_parse_events()
486 hyst = &sys_reg->ch_reg_gen[i].hyst; in iqs626_parse_events()
491 hyst = &sys_reg->ch_reg_hall.hyst; in iqs626_parse_events()
541 if (!fwnode_property_read_u32(ev_node, "azoteq,hyst", &val)) { in iqs626_parse_events()
[all …]
H A Diqs269a.c278 u8 hyst; member
745 if (!fwnode_property_read_u32(ev_node, "azoteq,hyst", &val)) { in iqs269_parse_chan()
746 u8 *hyst = &ch_reg->hyst; in iqs269_parse_chan() local
757 *hyst &= ~IQS269_CHx_HYST_DEEP_MASK; in iqs269_parse_chan()
758 *hyst |= (val << IQS269_CHx_HYST_DEEP_SHIFT); in iqs269_parse_chan()
761 *hyst &= ~IQS269_CHx_HYST_TOUCH_MASK; in iqs269_parse_chan()
762 *hyst |= val; in iqs269_parse_chan()
/linux/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()
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 …]
H A Dclk-kona.h55 #define hyst_exists(hyst) ((hyst)->offset != 0) argument
204 u32 offset; /* hyst register offset (normally CLKGATE) */
211 #define HYST(_offset, _en_bit, _val_bit) \ macro
385 struct bcm_clk_hyst hyst; member
H A Dclk-bcm21664.c34 .hyst = HYST(0x0414, 8, 9),
H A Dclk-kona.c502 static bool hyst_init(struct ccu_data *ccu, struct bcm_clk_hyst *hyst) in hyst_init() argument
508 if (!hyst_exists(hyst)) in hyst_init()
511 offset = hyst->offset; in hyst_init()
512 mask = (u32)1 << hyst->en_bit; in hyst_init()
513 mask |= (u32)1 << hyst->val_bit; in hyst_init()
1187 if (!hyst_init(ccu, &peri->hyst)) { in __peri_clk_init()
1188 pr_err("%s: error initializing hyst for %s\n", __func__, name); in __peri_clk_init()
/linux/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/drivers/iio/proximity/
H A Dsx9360.c518 unsigned int hyst, val = _val; in sx9360_write_hysteresis() local
526 hyst = 0; in sx9360_write_hysteresis()
528 hyst = 3; in sx9360_write_hysteresis()
530 hyst = 2; in sx9360_write_hysteresis()
532 hyst = 1; in sx9360_write_hysteresis()
536 hyst = FIELD_PREP(SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
539 SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
H A Dsx9310.c555 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()
577 SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
H A Dsx9324.c636 unsigned int hyst, val = _val; in sx9324_write_hysteresis() local
644 hyst = 0; in sx9324_write_hysteresis()
646 hyst = 3; in sx9324_write_hysteresis()
648 hyst = 2; in sx9324_write_hysteresis()
650 hyst = 1; in sx9324_write_hysteresis()
654 hyst = FIELD_PREP(SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis()
658 SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis()
/linux/Documentation/devicetree/bindings/sound/
H A Dda7218.txt63 - dlg,hyst : Boolean flag, enable hysteresis
100 dlg,hyst;
/linux/include/sound/
H A Dda7218.h79 bool hyst; member
/linux/drivers/iio/temperature/
H A Dmcp9600.c324 u8 hyst; in mcp9600_write_thresh() local
349 hyst = min(abs(val), 255); in mcp9600_write_thresh()
352 hyst); in mcp9600_write_thresh()
/linux/drivers/gpu/drm/amd/pm/powerplay/inc/
H A Dsmu74_discrete.h529 uint32_t Hyst; member
542 int32_t Hyst; member
H A Dsmu73_discrete.h520 uint32_t Hyst; member
533 int32_t Hyst; member
H A Dsmu72_discrete.h538 uint32_t Hyst; member
551 int32_t Hyst; member
H A Dsmu75_discrete.h540 uint32_t Hyst; member
562 int32_t Hyst; member
/linux/Documentation/devicetree/bindings/input/
H A Diqs626a.yaml483 azoteq,hyst:
613 azoteq,hyst:
783 azoteq,hyst = <4>;
H A Diqs269a.yaml490 azoteq,hyst:
514 azoteq,hyst:
/linux/drivers/macintosh/
H A Dtherm_windtunnel.c247 print_temp(" (Hyst: ", x.overheat_hyst ); in setup_hardware()
394 print_temp(" Hyst: ", hyst_temp ); in attach_thermostat()

12