Home
last modified time | relevance | path

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

12

/linux/drivers/thermal/
H A Dthermal_sysfs.c151 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); in trip_point_hyst_store()
153 int hyst; in trip_point_hyst_store() local
155 if (kstrtoint(buf, 10, &hyst) || hyst < 0) in trip_point_hyst_store()
160 if (hyst == trip->hysteresis) in trip_point_hyst_store()
170 WRITE_ONCE(trip->hysteresis, hyst); in trip_point_hyst_store()
174 if (trip->temperature - hyst <= THERMAL_TEMP_INVALID) in trip_point_hyst_store()
177 thermal_zone_set_trip_hyst(tz, trip, hyst); in trip_point_hyst_store()
188 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); in trip_point_hyst_show()
426 scnprintf(trip_attrs->hyst.name, sizeof(trip_attrs->hyst.name), in create_trip_attrs()
429 sysfs_attr_init(&trip_attrs->hyst.attr.attr); in create_trip_attrs()
[all …]
/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
385 struct bcm_clk_hyst hyst; member
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()
1186 if (!hyst_init(ccu, &peri->hyst)) { in __peri_clk_init()
H A Dclk-bcm21664.c34 .hyst = HYST(0x0414, 8, 9),
/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 Dmcp9982.c366 unsigned int reg_high, reg_low, hyst, reg_status; in mcp9982_read() local
481 ret = regmap_read(priv->regmap, MCP9982_HYS_ADDR, &hyst); in mcp9982_read()
485 *val -= hyst * 1000; in mcp9982_read()
516 ret = regmap_read(priv->regmap, MCP9982_HYS_ADDR, &hyst); in mcp9982_read()
520 *val -= hyst * 1000; in mcp9982_read()
606 int hyst, ret; in mcp9982_write_hyst() local
617 hyst = clamp_val(limit - val, 0, 255); in mcp9982_write_hyst()
619 return regmap_write(priv->regmap, MCP9982_HYS_ADDR, hyst); in mcp9982_write_hyst()
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 Dlm63.c730 u8 hyst; in pwm1_auto_point_temp_hyst_show() local
733 hyst = data->lut_temp_hyst; in pwm1_auto_point_temp_hyst_show()
736 return sprintf(buf, "%d\n", TEMP8_FROM_REG(hyst)); in pwm1_auto_point_temp_hyst_show()
772 long hyst; in temp2_crit_hyst_store() local
779 hyst = temp8_from_reg(data, 2) + data->temp2_offset - val; in temp2_crit_hyst_store()
781 HYST_TO_REG(hyst)); in temp2_crit_hyst_store()
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()
H A Dnct6694-hwmon.c99 u8 hyst; member
385 data->msg->hwmon_alarm.tin_cfg[channel].hyst); in nct6694_temp_read()
637 data->msg->hwmon_alarm.tin_cfg[channel].hyst = in nct6694_temp_write()
638 (data->msg->hwmon_alarm.tin_cfg[channel].hyst & ~NCT6694_TIN_HYST_MASK) | in nct6694_temp_write()
H A Dchipcap2.c417 long *hyst, long *measurement) in cc2_read_hyst_and_measure() argument
426 *hyst = cc2_rh_convert(reg_val); in cc2_read_hyst_and_measure()
/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()
551 *hyst &= ~IQS626_CHx_HYST_DEEP_MASK; 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()
H A Diqs269a.c278 u8 hyst; member
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/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/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/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/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/include/sound/
H A Dda7218.h79 bool hyst; member
/linux/Documentation/devicetree/bindings/sound/
H A Dda7218.txt63 - dlg,hyst : Boolean flag, enable hysteresis
100 dlg,hyst;
/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()

12