Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/hwmon/
Dadt7x10.c82 u8 hyst; /* hysteresis offset */ member
206 data->hyst = ret; in adt7x10_fill_cache()
283 int hyst; in adt7x10_show_t_hyst() local
285 hyst = (data->hyst & ADT7X10_T_HYST_MASK) * 1000; in adt7x10_show_t_hyst()
292 hyst = -hyst; in adt7x10_show_t_hyst()
294 ADT7X10_REG_TO_TEMP(data, data->temp[nr]) - hyst); in adt7x10_show_t_hyst()
303 long hyst; in adt7x10_set_t_hyst() local
305 ret = kstrtol(buf, 10, &hyst); in adt7x10_set_t_hyst()
310 hyst = clamp_val(hyst, ADT7X10_TEMP_MIN, ADT7X10_TEMP_MAX); in adt7x10_set_t_hyst()
311 data->hyst = clamp_val(DIV_ROUND_CLOSEST(limit - hyst, 1000), in adt7x10_set_t_hyst()
[all …]
Djc42.c284 int temp, hyst; in jc42_read() local
304 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in jc42_read()
306 *val = temp - hyst; in jc42_read()
310 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in jc42_read()
312 *val = temp - hyst; in jc42_read()
333 int diff, hyst; in jc42_write() local
363 hyst = 0; in jc42_write()
366 hyst = 1; /* 1.5 degrees C */ in jc42_write()
368 hyst = 2; /* 3.0 degrees C */ in jc42_write()
370 hyst = 3; /* 6.0 degrees C */ in jc42_write()
[all …]
Dlm77.c255 int i, cur, conf, hyst, crit, min, max; in lm77_detect() local
278 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect()
284 || i2c_smbus_read_word_data(client, i + 2) != hyst in lm77_detect()
293 || ((hyst & 0x00f0) != 0xf0 && (hyst & 0x00f0) != 0x0) in lm77_detect()
308 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect()
309 if (i2c_smbus_read_word_data(client, 6) != hyst in lm77_detect()
310 || i2c_smbus_read_word_data(client, 7) != hyst) in lm77_detect()
Dlm75.c530 int conf, hyst, os; in lm75_detect() local
576 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
580 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
581 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect()
582 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect()
583 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect()
584 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect()
597 if (hyst == 0 && os == 0) in lm75_detect()
603 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
Dtmp108.c105 int err, hyst; in tmp108_read() local
170 hyst = 0; in tmp108_read()
173 hyst = 1000; in tmp108_read()
176 hyst = 2000; in tmp108_read()
179 hyst = 4000; in tmp108_read()
188 *temp += hyst; in tmp108_read()
190 *temp -= hyst; in tmp108_read()
Demc1403.c117 unsigned int hyst; in show_hyst_common() local
124 retval = regmap_read(regmap, 0x21, &hyst); in show_hyst_common()
128 return sprintf(buf, "%d000\n", is_min ? limit + hyst : limit - hyst); in show_hyst_common()
151 int hyst; in store_hyst() local
162 hyst = limit * 1000 - val; in store_hyst()
163 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255); in store_hyst()
164 retval = regmap_write(regmap, 0x21, hyst); in store_hyst()
Dstts751.c102 int hyst; member
465 priv->hyst = temp - (priv->therm - priv->hyst); in set_therm()
481 return snprintf(buf, PAGE_SIZE, "%d\n", priv->hyst); in show_hyst()
498 priv->hyst = temp; in set_hyst()
744 priv->hyst = priv->therm - tmp; in stts751_read_chip_config()
Dlm85.c275 u8 hyst; /* Low limit hysteresis. (0-15) */ member
541 data->zone[0].hyst = i >> 4; in lm85_update_device()
542 data->zone[1].hyst = i & 0x0f; in lm85_update_device()
545 data->zone[2].hyst = i >> 4; in lm85_update_device()
1135 HYST_FROM_REG(data->zone[nr].hyst)); in show_temp_auto_temp_off()
1154 data->zone[nr].hyst = HYST_TO_REG(min - val); in set_temp_auto_temp_off()
1157 (data->zone[0].hyst << 4) in set_temp_auto_temp_off()
1158 | data->zone[1].hyst); in set_temp_auto_temp_off()
1161 (data->zone[2].hyst << 4)); in set_temp_auto_temp_off()
Ddme1737.c336 static inline int TEMP_HYST_TO_REG(int temp, long hyst, int ix, int reg) in TEMP_HYST_TO_REG() argument
338 hyst = clamp_val(hyst, temp - 15000, temp); in TEMP_HYST_TO_REG()
339 hyst = DIV_ROUND_CLOSEST(temp - hyst, 1000); in TEMP_HYST_TO_REG()
341 return (ix == 1) ? (reg & 0xf0) | hyst : (reg & 0x0f) | (hyst << 4); in TEMP_HYST_TO_REG()
Dlm63.c636 long hyst; in temp2_crit_hyst_store() local
643 hyst = temp8_from_reg(data, 2) + data->temp2_offset - val; in temp2_crit_hyst_store()
645 HYST_TO_REG(hyst)); in temp2_crit_hyst_store()
/Linux-v4.19/drivers/clk/bcm/
Dclk-kona-setup.c82 struct bcm_clk_hyst *hyst; in peri_clk_data_offsets_valid() local
108 hyst = &peri->hyst; in peri_clk_data_offsets_valid()
116 if (hyst_exists(hyst)) { in peri_clk_data_offsets_valid()
117 if (hyst->offset > limit) { in peri_clk_data_offsets_valid()
120 name, hyst->offset, limit); in peri_clk_data_offsets_valid()
124 } else if (hyst_exists(hyst)) { in peri_clk_data_offsets_valid()
276 static bool hyst_valid(struct bcm_clk_hyst *hyst, const char *clock_name) in hyst_valid() argument
278 if (!bit_posn_valid(hyst->en_bit, "hysteresis enable", clock_name)) in hyst_valid()
281 if (!bit_posn_valid(hyst->val_bit, "hysteresis value", clock_name)) in hyst_valid()
405 struct bcm_clk_hyst *hyst; in peri_clk_data_valid() local
[all …]
Dclk-kona.h63 #define hyst_exists(hyst) ((hyst)->offset != 0) argument
393 struct bcm_clk_hyst hyst; member
Dclk-kona.c526 static bool hyst_init(struct ccu_data *ccu, struct bcm_clk_hyst *hyst) in hyst_init() argument
532 if (!hyst_exists(hyst)) in hyst_init()
535 offset = hyst->offset; in hyst_init()
536 mask = (u32)1 << hyst->en_bit; in hyst_init()
537 mask |= (u32)1 << hyst->val_bit; in hyst_init()
1211 if (!hyst_init(ccu, &peri->hyst)) { in __peri_clk_init()
Dclk-bcm21664.c42 .hyst = HYST(0x0414, 8, 9),
/Linux-v4.19/drivers/thermal/samsung/
Dexynos_tmu.c211 u8 temp, u8 hyst);
277 int ret = 0, temp, hyst; in exynos_tmu_initialize() local
325 ret = tzd->ops->get_trip_hyst(tzd, i, &hyst); in exynos_tmu_initialize()
328 hyst /= MCELSIUS; in exynos_tmu_initialize()
329 data->tmu_set_trip_hyst(data, i, temp, hyst); in exynos_tmu_initialize()
393 int trip, u8 temp, u8 hyst) in exynos4210_tmu_set_trip_hyst() argument
422 int trip, u8 temp, u8 hyst) in exynos4412_tmu_set_trip_hyst() argument
428 if (hyst) in exynos4412_tmu_set_trip_hyst()
429 th |= temp_to_code(data, temp - hyst) << 8 * trip; in exynos4412_tmu_set_trip_hyst()
481 int trip, u8 temp, u8 hyst) in exynos5433_tmu_set_trip_hyst() argument
[all …]
/Linux-v4.19/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c143 unsigned long long hyst; in int340x_thermal_get_trip_hyst() local
148 status = acpi_evaluate_integer(d->adev->handle, "GTSH", NULL, &hyst); in int340x_thermal_get_trip_hyst()
152 *temp = hyst * 100; in int340x_thermal_get_trip_hyst()
/Linux-v4.19/drivers/input/misc/
Dbma150.c241 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_low_g_interrupt() argument
245 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_low_g_interrupt()
265 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_high_g_interrupt() argument
269 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_high_g_interrupt()
/Linux-v4.19/include/sound/
Dda7218.h83 bool hyst; member
/Linux-v4.19/Documentation/devicetree/bindings/sound/
Dda7218.txt63 - dlg,hyst : Boolean flag, enable hysteresis
100 dlg,hyst;
/Linux-v4.19/drivers/thermal/
Dof-thermal.c328 int *hyst) in of_thermal_get_trip_hyst() argument
335 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
341 int hyst) in of_thermal_set_trip_hyst() argument
349 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/
Drx.c602 int hyst = vif->bss_conf.cqm_rssi_hyst; in iwl_mvm_stat_iterator() local
672 sig < last_event - hyst)) { in iwl_mvm_stat_iterator()
682 (last_event == 0 || sig > last_event + hyst)) { in iwl_mvm_stat_iterator()
/Linux-v4.19/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c1180 u32 hyst = common->cqm_info.rssi_hyst; in rsi_perform_cqm() local
1183 if (rssi < thold && (last_event == 0 || rssi < (last_event - hyst))) in rsi_perform_cqm()
1186 (last_event == 0 || rssi > (last_event + hyst))) in rsi_perform_cqm()
/Linux-v4.19/drivers/net/wireless/
Drndis_wlan.c3180 int thold, hyst, last_event; in rndis_do_cqm() local
3189 hyst = priv->cqm_rssi_hyst; in rndis_do_cqm()
3191 if (rssi < thold && (last_event == 0 || rssi < last_event - hyst)) in rndis_do_cqm()
3193 else if (rssi > thold && (last_event == 0 || rssi > last_event + hyst)) in rndis_do_cqm()
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dacx.h1104 bool enable, s16 thold, u8 hyst);
Dacx.c1227 bool enable, s16 thold, u8 hyst) in wl1271_acx_rssi_snr_trigger() argument
1254 acx->hysteresis = hyst; in wl1271_acx_rssi_snr_trigger()

12