Searched refs:hyst (Results 1 - 25 of 42) sorted by path

12

/linux-master/drivers/net/wireless/ti/wlcore/
H A Dacx.c1213 bool enable, s16 thold, u8 hyst)
1240 acx->hysteresis = hyst;
1212 wl1271_acx_rssi_snr_trigger(struct wl1271 *wl, struct wl12xx_vif *wlvif, bool enable, s16 thold, u8 hyst) argument
/linux-master/include/sound/
H A Dda7218.h79 bool hyst; member in struct:da7218_hpldet_pdata
/linux-master/drivers/clk/bcm/
H A Dclk-bcm21664.c34 .hyst = HYST(0x0414, 8, 9),
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.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-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
/linux-master/drivers/gpu/drm/amd/pm/
H A Damdgpu_pm.c2487 int hyst = to_sensor_dev_attr(attr)->index; local
2490 if (hyst)
2503 int hyst = to_sensor_dev_attr(attr)->index; local
2506 if (hyst)
2519 int hyst = to_sensor_dev_attr(attr)->index; local
2522 if (hyst)
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_pm.c694 int hyst = to_sensor_dev_attr(attr)->index; local
697 if (hyst)
/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 Dchipcap2.c419 long *hyst, long *measurement)
428 *hyst = cc2_rh_convert(reg_val);
418 cc2_read_hyst_and_measure(struct cc2_data *data, u8 reg, long *hyst, long *measurement) argument
H A Ddme1737.c323 static inline int TEMP_HYST_TO_REG(int temp, long hyst, int ix, int reg) argument
325 hyst = clamp_val(hyst, temp - 15000, temp);
326 hyst = DIV_ROUND_CLOSEST(temp - hyst, 1000);
328 return (ix == 1) ? (reg & 0xf0) | hyst : (reg & 0x0f) | (hyst << 4);
1029 /* Modify the temp hyst value */
H A Demc1403.c313 int hyst, ret; local
320 ret = regmap_read(data->regmap, 0x21, &hyst);
324 *val = limit + hyst * 1000;
326 *val = limit - hyst * 1000;
446 int hyst, ret; local
459 hyst = limit - val;
461 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 127);
463 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 100
[all...]
H A Dintel-m10-bmc-hwmon.c620 long hyst, value; local
703 ret = do_sensor_read(hw, data, reg_hyst, &hyst);
707 value -= 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 Dlm63.c623 long hyst; local
630 hyst = temp8_from_reg(data, 2) + data->temp2_offset - val;
632 HYST_TO_REG(hyst));
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 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 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));
H A Dlm93.c94 /* temp[1-4]_auto_pwm_[min|hyst] */
522 static u8 LM93_AUTO_BOOST_HYST_TO_REG(struct lm93_data *data, long hyst, argument
526 (LM93_TEMP_FROM_REG(data->boost[nr]) - hyst), mode);
H A Dmax31760.c467 unsigned int hyst; local
470 ret = kstrtou32(buf, 10, &hyst);
474 if (hyst < 3000)
H A Dstts751.c93 int hyst; member in struct:stts751_priv
455 priv->hyst = temp - (priv->therm - priv->hyst);
471 return sysfs_emit(buf, "%d\n", priv->hyst);
488 priv->hyst = temp;
489 dev_dbg(&priv->client->dev, "setting hyst %ld", temp);
735 priv->hyst = priv->therm - tmp;
746 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, hyst, 0);
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;
/linux-master/drivers/iio/proximity/
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);
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 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);

Completed in 788 milliseconds

12