| /linux/drivers/hwmon/ |
| H A D | jc42.c | 214 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 D | tmp108.c | 123 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 D | lm75.c | 1039 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 D | intel-m10-bmc-hwmon.c | 612 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 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()
|
| /linux/drivers/input/misc/ |
| H A D | iqs626a.c | 288 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 D | iqs269a.c | 278 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 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 …]
|
| H A D | clk-kona.h | 55 #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 D | clk-bcm21664.c | 34 .hyst = HYST(0x0414, 8, 9),
|
| H A D | clk-kona.c | 502 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 D | int340x_thermal_zone.c | 122 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 D | sx9360.c | 518 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 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() 577 SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
|
| H A D | sx9324.c | 636 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 D | da7218.txt | 63 - dlg,hyst : Boolean flag, enable hysteresis 100 dlg,hyst;
|
| /linux/include/sound/ |
| H A D | da7218.h | 79 bool hyst; member
|
| /linux/drivers/iio/temperature/ |
| H A D | mcp9600.c | 324 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 D | smu74_discrete.h | 529 uint32_t Hyst; member 542 int32_t Hyst; member
|
| H A D | smu73_discrete.h | 520 uint32_t Hyst; member 533 int32_t Hyst; member
|
| H A D | smu72_discrete.h | 538 uint32_t Hyst; member 551 int32_t Hyst; member
|
| H A D | smu75_discrete.h | 540 uint32_t Hyst; member 562 int32_t Hyst; member
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | iqs626a.yaml | 483 azoteq,hyst: 613 azoteq,hyst: 783 azoteq,hyst = <4>;
|
| H A D | iqs269a.yaml | 490 azoteq,hyst: 514 azoteq,hyst:
|
| /linux/drivers/macintosh/ |
| H A D | therm_windtunnel.c | 247 print_temp(" (Hyst: ", x.overheat_hyst ); in setup_hardware() 394 print_temp(" Hyst: ", hyst_temp ); in attach_thermostat()
|