Home
last modified time | relevance | path

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

12

/linux/drivers/thermal/
H A Dthermal_sysfs.c149 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); in trip_point_hyst_store()
151 int hyst; in trip_point_hyst_store() local
153 if (kstrtoint(buf, 10, &hyst) || hyst < 0) in trip_point_hyst_store()
158 if (hyst == trip->hysteresis) in trip_point_hyst_store()
168 WRITE_ONCE(trip->hysteresis, hyst); in trip_point_hyst_store()
172 if (trip->temperature - hyst <= THERMAL_TEMP_INVALID) in trip_point_hyst_store()
175 thermal_zone_set_trip_hyst(tz, trip, hyst); in trip_point_hyst_store()
186 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); in trip_point_hyst_show()
424 snprintf(trip_attrs->hyst.name, THERMAL_NAME_LENGTH, in create_trip_attrs()
427 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-bcm21664.c34 .hyst = HYST(0x0414, 8, 9),
/linux/drivers/hwmon/
H A Dadt7x10.c174 int hyst, ret; in adt7x10_hyst_read() local
181 hyst = (regdata[0] & ADT7X10_T_HYST_MASK) * 1000; in adt7x10_hyst_read()
189 hyst = -hyst; in adt7x10_hyst_read()
191 *val = ADT7X10_REG_TO_TEMP(data, regdata[1]) - hyst; in adt7x10_hyst_read()
195 static int adt7x10_hyst_write(struct adt7x10_data *data, long hyst) in adt7x10_hyst_write() argument
209 hyst = clamp_val(hyst, ADT7X10_TEMP_MIN, ADT7X10_TEMP_MAX); in adt7x10_hyst_write()
210 regval = clamp_val(DIV_ROUND_CLOSEST(limit - hyst, 1000), 0, in adt7x10_hyst_write()
H A Djc42.c217 int ret, temp, hyst; in jc42_read() local
257 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read()
259 *val = temp - hyst; in jc42_read()
268 hyst = jc42_hysteresis[FIELD_GET(JC42_CFG_HYST_MASK, in jc42_read()
270 *val = temp - hyst; in jc42_read()
308 int diff, hyst; in jc42_write() local
340 hyst = 0; in jc42_write()
343 hyst = 1; /* 1.5 degrees C */ in jc42_write()
345 hyst = 2; /* 3.0 degrees C */ in jc42_write()
347 hyst = 3; /* 6.0 degrees C */ in jc42_write()
[all …]
H A Dlm77.c243 int i, cur, conf, hyst, crit, min, max; in lm77_detect() local
266 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect()
272 || i2c_smbus_read_word_data(client, i + 2) != hyst in lm77_detect()
281 || ((hyst & 0x00f0) != 0xf0 && (hyst & 0x00f0) != 0x0) in lm77_detect()
296 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect()
297 if (i2c_smbus_read_word_data(client, 6) != hyst in lm77_detect()
298 || i2c_smbus_read_word_data(client, 7) != hyst) in lm77_detect()
H A Demc1403.c313 int hyst, ret; in emc1403_get_hyst() local
320 ret = regmap_read(data->regmap, 0x21, &hyst); in emc1403_get_hyst()
324 *val = limit + hyst * 1000; in emc1403_get_hyst()
326 *val = limit - hyst * 1000; in emc1403_get_hyst()
446 int hyst, ret; in emc1403_set_hyst() local
459 hyst = limit - val; in emc1403_set_hyst()
461 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 127); in emc1403_set_hyst()
463 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255); in emc1403_set_hyst()
464 ret = regmap_write(data->regmap, 0x21, hyst); in emc1403_set_hyst()
H A Dstts751.c93 int hyst; member
455 priv->hyst = temp - (priv->therm - priv->hyst); in therm_store()
471 return sysfs_emit(buf, "%d\n", priv->hyst); in hyst_show()
488 priv->hyst = temp; in hyst_store()
735 priv->hyst = priv->therm - tmp; in stts751_read_chip_config()
746 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, hyst, 0);
H A Dlm85.c266 u8 hyst; /* Low limit hysteresis. (0-15) */ member
534 data->zone[0].hyst = i >> 4; in lm85_update_device()
535 data->zone[1].hyst = i & 0x0f; in lm85_update_device()
538 data->zone[2].hyst = i >> 4; in lm85_update_device()
1136 HYST_FROM_REG(data->zone[nr].hyst)); in temp_auto_temp_off_show()
1156 data->zone[nr].hyst = HYST_TO_REG(min - val); in temp_auto_temp_off_store()
1159 (data->zone[0].hyst << 4) in temp_auto_temp_off_store()
1160 | data->zone[1].hyst); in temp_auto_temp_off_store()
1163 (data->zone[2].hyst << 4)); in temp_auto_temp_off_store()
H A Dmax31760.c467 unsigned int hyst; in pwm1_auto_point_temp_hyst_store() local
470 ret = kstrtou32(buf, 10, &hyst); in pwm1_auto_point_temp_hyst_store()
474 if (hyst < 3000) in pwm1_auto_point_temp_hyst_store()
H A Dintel-m10-bmc-hwmon.c613 long hyst, value; in m10bmc_hwmon_read() local
696 ret = do_sensor_read(hw, data, reg_hyst, &hyst); in m10bmc_hwmon_read()
700 value -= hyst; in m10bmc_hwmon_read()
H A Dlm63.c623 long hyst; in temp2_crit_hyst_store() local
630 hyst = temp8_from_reg(data, 2) + data->temp2_offset - val; in temp2_crit_hyst_store()
632 HYST_TO_REG(hyst)); in temp2_crit_hyst_store()
/linux/drivers/input/misc/
H A Diqs626a.c289 u8 hyst; member
306 u8 hyst; member
315 u8 hyst; member
329 u8 hyst; member
466 u8 *thresh, *hyst; in iqs626_parse_events() local
473 hyst = &sys_reg->ch_reg_ulp.hyst; in iqs626_parse_events()
479 hyst = &sys_reg->tp_grp_reg.hyst; in iqs626_parse_events()
487 hyst = &sys_reg->ch_reg_gen[i].hyst; in iqs626_parse_events()
492 hyst = &sys_reg->ch_reg_hall.hyst; in iqs626_parse_events()
552 *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.c279 u8 hyst; member
747 u8 *hyst = &ch_reg->hyst; in iqs269_parse_chan() local
758 *hyst &= ~IQS269_CHx_HYST_DEEP_MASK; in iqs269_parse_chan()
759 *hyst |= (val << IQS269_CHx_HYST_DEEP_SHIFT); in iqs269_parse_chan()
762 *hyst &= ~IQS269_CHx_HYST_TOUCH_MASK; in iqs269_parse_chan()
763 *hyst |= val; in iqs269_parse_chan()
/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.c512 unsigned int hyst, val = _val; in sx9360_write_hysteresis() local
520 hyst = 0; in sx9360_write_hysteresis()
522 hyst = 3; in sx9360_write_hysteresis()
524 hyst = 2; in sx9360_write_hysteresis()
526 hyst = 1; in sx9360_write_hysteresis()
530 hyst = FIELD_PREP(SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
533 SX9360_REG_PROX_CTRL4_HYST_MASK, hyst); in sx9360_write_hysteresis()
H A Dsx9310.c549 unsigned int hyst, val = _val; in sx9310_write_hysteresis() local
557 hyst = 0; in sx9310_write_hysteresis()
559 hyst = 3; in sx9310_write_hysteresis()
561 hyst = 2; in sx9310_write_hysteresis()
563 hyst = 1; in sx9310_write_hysteresis()
567 hyst = FIELD_PREP(SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
571 SX9310_REG_PROX_CTRL10_HYST_MASK, hyst); in sx9310_write_hysteresis()
H A Dsx9324.c630 unsigned int hyst, val = _val; in sx9324_write_hysteresis() local
638 hyst = 0; in sx9324_write_hysteresis()
640 hyst = 3; in sx9324_write_hysteresis()
642 hyst = 2; in sx9324_write_hysteresis()
644 hyst = 1; in sx9324_write_hysteresis()
648 hyst = FIELD_PREP(SX9324_REG_PROX_CTRL5_HYST_MASK, hyst); in sx9324_write_hysteresis()
652 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/net/wireless/rsi/
H A Drsi_91x_mac80211.c1278 u32 hyst = common->cqm_info.rssi_hyst; in rsi_perform_cqm() local
1281 if (rssi < thold && (last_event == 0 || rssi < (last_event - hyst))) in rsi_perform_cqm()
1284 (last_event == 0 || rssi > (last_event + hyst))) in rsi_perform_cqm()
/linux/drivers/gpu/drm/amd/pm/
H A Damdgpu_pm.c2613 int hyst = to_sensor_dev_attr(attr)->index; in amdgpu_hwmon_show_temp_thresh() local
2616 if (hyst) in amdgpu_hwmon_show_temp_thresh()
2629 int hyst = to_sensor_dev_attr(attr)->index; in amdgpu_hwmon_show_hotspot_temp_thresh() local
2632 if (hyst) in amdgpu_hwmon_show_hotspot_temp_thresh()
2645 int hyst = to_sensor_dev_attr(attr)->index; in amdgpu_hwmon_show_mem_temp_thresh() local
2648 if (hyst) in amdgpu_hwmon_show_mem_temp_thresh()
/linux/drivers/net/wireless/ti/wlcore/
H A Dacx.c1213 bool enable, s16 thold, u8 hyst) in wl1271_acx_rssi_snr_trigger() argument
1240 acx->hysteresis = hyst; in wl1271_acx_rssi_snr_trigger()

12