Searched refs:hyst (Results 1 - 25 of 41) sorted by relevance

12

/linux-master/drivers/hwmon/
H A Dadt7x10.c173 int hyst, temp, ret; local
176 ret = regmap_read(data->regmap, ADT7X10_T_HYST, &hyst);
187 hyst = (hyst & ADT7X10_T_HYST_MASK) * 1000;
195 hyst = -hyst;
197 *val = ADT7X10_REG_TO_TEMP(data, temp) - hyst;
201 static int adt7x10_hyst_write(struct adt7x10_data *data, long hyst) argument
215 hyst = clamp_val(hyst, ADT7X10_TEMP_MI
[all...]
H A Demc1403.c106 unsigned int hyst; local
113 retval = regmap_read(regmap, 0x21, &hyst);
117 return sprintf(buf, "%d000\n", is_min ? limit + hyst : limit - hyst);
140 int hyst; local
151 hyst = limit * 1000 - val;
152 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255);
153 retval = regmap_write(regmap, 0x21, hyst);
173 static SENSOR_DEVICE_ATTR_RO(temp1_max_hyst, hyst,
[all...]
H A Dlm77.c243 int i, cur, conf, hyst, crit, min, max; local
266 hyst = i2c_smbus_read_word_data(client, 2);
272 || i2c_smbus_read_word_data(client, i + 2) != hyst
281 || ((hyst & 0x00f0) != 0xf0 && (hyst & 0x00f0) != 0x0)
296 hyst = i2c_smbus_read_word_data(client, 2);
297 if (i2c_smbus_read_word_data(client, 6) != hyst
298 || i2c_smbus_read_word_data(client, 7) != hyst)
H A Dtmp108.c96 int err, hyst; local
161 hyst = 0;
164 hyst = 1000;
167 hyst = 2000;
170 hyst = 4000;
179 *temp += hyst;
181 *temp -= hyst;
H A Djc42.c240 int ret, temp, hyst; local
280 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK,
282 *val = temp - hyst;
291 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK,
293 *val = temp - hyst;
331 int diff, hyst; local
363 hyst = 0;
366 hyst = 1; /* 1.5 degrees C */
368 hyst = 2; /* 3.0 degrees C */
370 hyst
[all...]
H A Dlm75.c892 int conf, hyst, os; local
940 hyst = i2c_smbus_read_byte_data(new_client, 2);
944 hyst = i2c_smbus_read_byte_data(new_client, 2);
945 if (i2c_smbus_read_byte_data(new_client, 4) != hyst
946 || i2c_smbus_read_byte_data(new_client, 5) != hyst
947 || i2c_smbus_read_byte_data(new_client, 6) != hyst
948 || i2c_smbus_read_byte_data(new_client, 7) != hyst)
961 if (hyst == 0 && os == 0)
967 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst
H A Dstts751.c93 int hyst; member in struct:stts751_priv
456 priv->hyst = temp - (priv->therm - priv->hyst);
472 return sysfs_emit(buf, "%d\n", priv->hyst);
489 priv->hyst = temp;
490 dev_dbg(&priv->client->dev, "setting hyst %ld", temp);
736 priv->hyst = priv->therm - tmp;
747 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, hyst, 0);
H A Dmax31760.c467 unsigned int hyst; local
470 ret = kstrtou32(buf, 10, &hyst);
474 if (hyst < 3000)
H A Dlm85.c266 u8 hyst; /* Low limit hysteresis. (0-15) */ member in struct:lm85_zone
534 data->zone[0].hyst = i >> 4;
535 data->zone[1].hyst = i & 0x0f;
538 data->zone[2].hyst = i >> 4;
1136 HYST_FROM_REG(data->zone[nr].hyst));
1156 data->zone[nr].hyst = HYST_TO_REG(min - val);
1159 (data->zone[0].hyst << 4)
1160 | data->zone[1].hyst);
1163 (data->zone[2].hyst << 4));
/linux-master/tools/thermal/thermal-engine/
H A Dthermal-engine.c43 INFO("trip id=%d, type=%d, temp=%d, hyst=%d\n",
44 tt->id, tt->type, tt->temp, tt->hyst);
136 static int trip_add(int tz_id, int trip_id, int type, int temp, int hyst, __maybe_unused void *arg) argument
138 INFO("Trip point added %d: id=%d, type=%d, temp=%d, hyst=%d\n",
139 tz_id, trip_id, type, temp, hyst);
152 int hyst, __maybe_unused void *arg)
157 INFO("Trip point changed %d: id=%d, type=%d, temp=%d, hyst=%d\n",
158 tz_id, trip_id, type, temp, hyst);
162 tz->trip[trip_id].hyst = hyst;
151 trip_change(int tz_id, int trip_id, int type, int temp, int hyst, __maybe_unused void *arg) argument
[all...]
/linux-master/include/sound/
H A Dda7218.h79 bool hyst; member in struct:da7218_hpldet_pdata
/linux-master/drivers/clk/bcm/
H A Dclk-kona-setup.c74 struct bcm_clk_hyst *hyst; local
100 hyst = &peri->hyst;
108 if (hyst_exists(hyst)) {
109 if (hyst->offset > limit) {
112 name, hyst->offset, limit);
116 } else if (hyst_exists(hyst)) {
268 static bool hyst_valid(struct bcm_clk_hyst *hyst, const char *clock_name) argument
270 if (!bit_posn_valid(hyst->en_bit, "hysteresis enable", clock_name))
273 if (!bit_posn_valid(hyst
397 struct bcm_clk_hyst *hyst; local
[all...]
H A Dclk-kona.h55 #define hyst_exists(hyst) ((hyst)->offset != 0)
204 u32 offset; /* hyst register offset (normally CLKGATE) */
385 struct bcm_clk_hyst hyst; member in struct:peri_clk_data
H A Dclk-kona.c519 static bool hyst_init(struct ccu_data *ccu, struct bcm_clk_hyst *hyst) argument
525 if (!hyst_exists(hyst))
528 offset = hyst->offset;
529 mask = (u32)1 << hyst->en_bit;
530 mask |= (u32)1 << hyst->val_bit;
1204 if (!hyst_init(ccu, &peri->hyst)) {
1205 pr_err("%s: error initializing hyst for %s\n", __func__, name);
H A Dclk-bcm21664.c34 .hyst = HYST(0x0414, 8, 9),
/linux-master/drivers/mfd/
H A Dtps65218.c229 u32 hyst; local
232 "ti,under-voltage-hyst-microvolt", &hyst))
235 if (hyst != 400000 && hyst != 200000) {
237 "Invalid ti,under-voltage-hyst-microvolt value\n");
243 hyst == 400000 ? TPS65218_CONFIG2_UVLOHYS : 0,
/linux-master/drivers/thermal/intel/int340x_thermal/
H A Dint340x_thermal_zone.c132 unsigned long long hyst; local
161 status = acpi_evaluate_integer(adev->handle, "GTSH", NULL, &hyst);
163 hyst *= 100;
165 hyst = 0;
168 zone_trips[i].hysteresis = hyst;
/linux-master/drivers/input/misc/
H A Diqs626a.c289 u8 hyst; member in struct:iqs626_ch_reg_ulp
306 u8 hyst; member in struct:iqs626_tp_grp_reg
315 u8 hyst; member in struct:iqs626_ch_reg_gen
329 u8 hyst; member in struct:iqs626_ch_reg_hall
467 u8 *thresh, *hyst; local
474 hyst = &sys_reg->ch_reg_ulp.hyst;
480 hyst = &sys_reg->tp_grp_reg.hyst;
488 hyst
719 u8 *hyst = &sys_reg->tp_grp_reg.hyst; local
[all...]
H A Dbma150.c226 u8 enable, u8 hyst, u8 dur, u8 thres)
230 error = bma150_set_reg_bits(bma150->client, hyst,
250 u8 enable, u8 hyst, u8 dur, u8 thres)
254 error = bma150_set_reg_bits(bma150->client, hyst,
225 bma150_set_low_g_interrupt(struct bma150_data *bma150, u8 enable, u8 hyst, u8 dur, u8 thres) argument
249 bma150_set_high_g_interrupt(struct bma150_data *bma150, u8 enable, u8 hyst, u8 dur, u8 thres) argument
H A Diqs269a.c279 u8 hyst; member in struct:iqs269_ch_reg
754 if (!fwnode_property_read_u32(ev_node, "azoteq,hyst", &val)) {
755 u8 *hyst = &ch_reg->hyst; local
767 *hyst &= ~IQS269_CHx_HYST_DEEP_MASK;
768 *hyst |= (val << IQS269_CHx_HYST_DEEP_SHIFT);
771 *hyst &= ~IQS269_CHx_HYST_TOUCH_MASK;
772 *hyst |= val;
/linux-master/tools/lib/thermal/include/
H A Dthermal.h27 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 in struct:thermal_trip
/linux-master/drivers/iio/proximity/
H A Dsx9360.c513 unsigned int hyst, val = _val; local
521 hyst = 0;
523 hyst = 3;
525 hyst = 2;
527 hyst = 1;
531 hyst = FIELD_PREP(SX9360_REG_PROX_CTRL4_HYST_MASK, hyst);
534 SX9360_REG_PROX_CTRL4_HYST_MASK, hyst);
H A Dsx9324.c630 unsigned int hyst, val = _val; local
638 hyst = 0;
640 hyst = 3;
642 hyst = 2;
644 hyst = 1;
648 hyst = FIELD_PREP(SX9324_REG_PROX_CTRL5_HYST_MASK, hyst);
652 SX9324_REG_PROX_CTRL5_HYST_MASK, hyst);
H A Dsx9310.c549 unsigned int hyst, val = _val; local
557 hyst = 0;
559 hyst = 3;
561 hyst = 2;
563 hyst = 1;
567 hyst = FIELD_PREP(SX9310_REG_PROX_CTRL10_HYST_MASK, hyst);
571 SX9310_REG_PROX_CTRL10_HYST_MASK, hyst);
/linux-master/drivers/thermal/
H A Dthermal_sysfs.c163 int hyst; local
165 ret = kstrtoint(buf, 10, &hyst);
166 if (ret || hyst < 0)
176 if (hyst != trip->hysteresis) {
177 trip->hysteresis = hyst;

Completed in 278 milliseconds

12