Searched defs:hyst (Results 1 - 21 of 21) sorted by relevance

/drivers/hwmon/
H A Demc1403.c117 unsigned int hyst; local
124 retval = regmap_read(regmap, 0x21, &hyst);
128 return sprintf(buf, "%d000\n", is_min ? limit + hyst : limit - hyst);
151 int hyst; local
162 hyst = limit * 1000 - val;
163 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255);
164 retval = regmap_write(regmap, 0x21, hyst);
H A Dlm77.c255 int i, cur, conf, hyst, crit, min, max; local
278 hyst = i2c_smbus_read_word_data(client, 2);
284 || i2c_smbus_read_word_data(client, i + 2) != hyst
293 || ((hyst & 0x00f0) != 0xf0 && (hyst & 0x00f0) != 0x0)
308 hyst = i2c_smbus_read_word_data(client, 2);
309 if (i2c_smbus_read_word_data(client, 6) != hyst
310 || i2c_smbus_read_word_data(client, 7) != hyst)
H A Dadt7x10.c82 u8 hyst; /* hysteresis offset */ member in struct:adt7x10_data
206 data->hyst = ret;
283 int hyst; local
285 hyst = (data->hyst & ADT7X10_T_HYST_MASK) * 1000;
292 hyst = -hyst;
294 ADT7X10_REG_TO_TEMP(data, data->temp[nr]) - hyst);
303 long hyst; local
305 ret = kstrtol(buf, 10, &hyst);
[all...]
H A Dlm75.c71 0x02, /* hyst */
89 2 = hyst */
349 int conf, hyst, os; local
395 hyst = i2c_smbus_read_byte_data(new_client, 2);
399 hyst = i2c_smbus_read_byte_data(new_client, 2);
400 if (i2c_smbus_read_byte_data(new_client, 4) != hyst
401 || i2c_smbus_read_byte_data(new_client, 5) != hyst
402 || i2c_smbus_read_byte_data(new_client, 6) != hyst
403 || i2c_smbus_read_byte_data(new_client, 7) != hyst)
416 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst
[all...]
H A Dlm95245.c279 int hyst = data->regs[index] - data->regs[8]; local
281 return snprintf(buf, PAGE_SIZE - 1, "%d\n", hyst * 1000);
291 int hyst, limit; local
299 hyst = limit - val / 1000;
300 hyst = clamp_val(hyst, 0, 31);
301 data->regs[8] = hyst;
305 hyst);
H A Djc42.c270 int temp, hyst; local
276 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK)
278 return sprintf(buf, "%d\n", temp - hyst);
312 int diff, hyst; local
320 hyst = 0;
323 hyst = 1; /* 1.5 degrees C */
325 hyst = 2; /* 3.0 degrees C */
327 hyst = 3; /* 6.0 degrees C */
332 | (hyst << JC42_CFG_HYST_SHIFT);
H A Dlm63.c635 long hyst; local
642 hyst = temp8_from_reg(data, 2) + data->temp2_offset - val;
644 HYST_TO_REG(hyst));
H A Dlm85.c284 u8 hyst; /* Low limit hysteresis. (0-15) */ member in struct:lm85_zone
550 data->zone[0].hyst = i >> 4;
551 data->zone[1].hyst = i & 0x0f;
554 data->zone[2].hyst = i >> 4;
1143 HYST_FROM_REG(data->zone[nr].hyst));
1162 data->zone[nr].hyst = HYST_TO_REG(min - val);
1165 (data->zone[0].hyst << 4)
1166 | data->zone[1].hyst);
1169 (data->zone[2].hyst << 4));
H A Ddme1737.c336 int hyst = clamp_val((val + 500) / 1000, 0, 15); local
338 return (ix == 1) ? (reg & 0xf0) | hyst : (reg & 0x0f) | (hyst << 4);
1037 /* Modify the temp hyst value */
H A Dlm93.c107 /* temp[1-4]_auto_pwm_[min|hyst] */
535 static u8 LM93_AUTO_BOOST_HYST_TO_REG(struct lm93_data *data, long hyst, argument
539 (LM93_TEMP_FROM_REG(data->boost[nr]) - hyst), mode);
/drivers/net/wireless/iwlwifi/mvm/
H A Drx.c427 int hyst = vif->bss_conf.cqm_rssi_hyst; local
466 sig < last_event - hyst)) {
475 (last_event == 0 || sig > last_event + hyst)) {
/drivers/clk/bcm/
H A Dclk-kona-setup.c84 struct bcm_clk_hyst *hyst; local
110 hyst = &peri->hyst;
118 if (hyst_exists(hyst)) {
119 if (hyst->offset > limit) {
122 name, hyst->offset, limit);
126 } else if (hyst_exists(hyst)) {
278 static bool hyst_valid(struct bcm_clk_hyst *hyst, const char *clock_name) argument
280 if (!bit_posn_valid(hyst->en_bit, "hysteresis enable", clock_name))
283 if (!bit_posn_valid(hyst
407 struct bcm_clk_hyst *hyst; local
[all...]
H A Dclk-kona.c539 static bool hyst_init(struct ccu_data *ccu, struct bcm_clk_hyst *hyst) argument
545 if (!hyst_exists(hyst))
548 offset = hyst->offset;
549 mask = (u32)1 << hyst->en_bit;
550 mask |= (u32)1 << hyst->val_bit;
1215 if (!hyst_init(ccu, &peri->hyst)) {
1216 pr_err("%s: error initializing hyst for %s\n", __func__, name);
H A Dclk-kona.h63 #define hyst_exists(hyst) ((hyst)->offset != 0)
212 u32 offset; /* hyst register offset (normally CLKGATE) */
393 struct bcm_clk_hyst hyst; member in struct:peri_clk_data
/drivers/thermal/int340x_thermal/
H A Dint3403_thermal.c88 unsigned long long hyst; local
91 status = acpi_evaluate_integer(device->handle, "GTSH", NULL, &hyst);
101 *temp = hyst * 100;
/drivers/thermal/
H A Dof-thermal.c266 unsigned long *hyst)
273 *hyst = data->trips[trip].hysteresis;
279 unsigned long hyst)
287 data->trips[trip].hysteresis = hyst;
265 of_thermal_get_trip_hyst(struct thermal_zone_device *tz, int trip, unsigned long *hyst) argument
278 of_thermal_set_trip_hyst(struct thermal_zone_device *tz, int trip, unsigned long hyst) argument
/drivers/gpu/drm/radeon/
H A Dradeon_pm.c590 int hyst = to_sensor_dev_attr(attr)->index; local
593 if (hyst)
/drivers/net/wireless/rsi/
H A Drsi_91x_mac80211.c811 u32 hyst = common->cqm_info.rssi_hyst; local
814 if (rssi < thold && (last_event == 0 || rssi < (last_event - hyst)))
817 (last_event == 0 || rssi > (last_event + hyst)))
/drivers/input/misc/
H A Dbma150.c242 u8 enable, u8 hyst, u8 dur, u8 thres)
246 error = bma150_set_reg_bits(bma150->client, hyst,
266 u8 enable, u8 hyst, u8 dur, u8 thres)
270 error = bma150_set_reg_bits(bma150->client, hyst,
241 bma150_set_low_g_interrupt(struct bma150_data *bma150, u8 enable, u8 hyst, u8 dur, u8 thres) argument
265 bma150_set_high_g_interrupt(struct bma150_data *bma150, u8 enable, u8 hyst, u8 dur, u8 thres) argument
/drivers/net/wireless/ti/wlcore/
H A Dacx.c1228 bool enable, s16 thold, u8 hyst)
1255 acx->hysteresis = hyst;
1227 wl1271_acx_rssi_snr_trigger(struct wl1271 *wl, struct wl12xx_vif *wlvif, bool enable, s16 thold, u8 hyst) argument
/drivers/net/wireless/
H A Drndis_wlan.c3169 int thold, hyst, last_event; local
3178 hyst = priv->cqm_rssi_hyst;
3180 if (rssi < thold && (last_event == 0 || rssi < last_event - hyst))
3182 else if (rssi > thold && (last_event == 0 || rssi > last_event + hyst))

Completed in 385 milliseconds