/drivers/hwmon/ |
D | adt7x10.c | 82 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 …]
|
D | jc42.c | 265 int temp, hyst; in jc42_read() local 285 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in jc42_read() 287 *val = temp - hyst; in jc42_read() 291 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in jc42_read() 293 *val = temp - hyst; in jc42_read() 314 int diff, hyst; in jc42_write() local 344 hyst = 0; in jc42_write() 347 hyst = 1; /* 1.5 degrees C */ in jc42_write() 349 hyst = 2; /* 3.0 degrees C */ in jc42_write() 351 hyst = 3; /* 6.0 degrees C */ in jc42_write() [all …]
|
D | lm75.c | 435 int conf, hyst, os; in lm75_detect() local 481 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 485 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 486 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect() 487 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect() 488 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect() 489 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect() 502 if (hyst == 0 && os == 0) in lm75_detect() 508 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
|
D | lm77.c | 255 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()
|
D | emc1403.c | 117 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()
|
D | lm85.c | 273 u8 hyst; /* Low limit hysteresis. (0-15) */ member 539 data->zone[0].hyst = i >> 4; in lm85_update_device() 540 data->zone[1].hyst = i & 0x0f; in lm85_update_device() 543 data->zone[2].hyst = i >> 4; in lm85_update_device() 1133 HYST_FROM_REG(data->zone[nr].hyst)); in show_temp_auto_temp_off() 1152 data->zone[nr].hyst = HYST_TO_REG(min - val); in set_temp_auto_temp_off() 1155 (data->zone[0].hyst << 4) in set_temp_auto_temp_off() 1156 | data->zone[1].hyst); in set_temp_auto_temp_off() 1159 (data->zone[2].hyst << 4)); in set_temp_auto_temp_off()
|
D | lm63.c | 635 long hyst; in set_temp2_crit_hyst() local 642 hyst = temp8_from_reg(data, 2) + data->temp2_offset - val; in set_temp2_crit_hyst() 644 HYST_TO_REG(hyst)); in set_temp2_crit_hyst()
|
D | dme1737.c | 336 int hyst = clamp_val((val + 500) / 1000, 0, 15); in TEMP_HYST_TO_REG() local 338 return (ix == 1) ? (reg & 0xf0) | hyst : (reg & 0x0f) | (hyst << 4); in TEMP_HYST_TO_REG()
|
D | lm93.c | 535 static u8 LM93_AUTO_BOOST_HYST_TO_REG(struct lm93_data *data, long hyst, in LM93_AUTO_BOOST_HYST_TO_REG() argument 539 (LM93_TEMP_FROM_REG(data->boost[nr]) - hyst), mode); in LM93_AUTO_BOOST_HYST_TO_REG()
|
/drivers/clk/bcm/ |
D | clk-kona-setup.c | 82 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 …]
|
D | clk-kona.h | 63 #define hyst_exists(hyst) ((hyst)->offset != 0) argument 393 struct bcm_clk_hyst hyst; member
|
D | clk-kona.c | 526 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()
|
D | clk-bcm21664.c | 42 .hyst = HYST(0x0414, 8, 9),
|
/drivers/thermal/int340x_thermal/ |
D | int340x_thermal_zone.c | 143 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()
|
/drivers/input/misc/ |
D | bma150.c | 242 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_low_g_interrupt() argument 246 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_low_g_interrupt() 266 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_high_g_interrupt() argument 270 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_high_g_interrupt()
|
/drivers/thermal/ |
D | of-thermal.c | 343 int *hyst) in of_thermal_get_trip_hyst() argument 350 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst() 356 int hyst) in of_thermal_set_trip_hyst() argument 364 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rx.c | 524 int hyst = vif->bss_conf.cqm_rssi_hyst; in iwl_mvm_stat_iterator() local 579 sig < last_event - hyst)) { in iwl_mvm_stat_iterator() 588 (last_event == 0 || sig > last_event + hyst)) { in iwl_mvm_stat_iterator()
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_mac80211.c | 808 u32 hyst = common->cqm_info.rssi_hyst; in rsi_perform_cqm() local 811 if (rssi < thold && (last_event == 0 || rssi < (last_event - hyst))) in rsi_perform_cqm() 814 (last_event == 0 || rssi > (last_event + hyst))) in rsi_perform_cqm()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pm.c | 633 int hyst = to_sensor_dev_attr(attr)->index; in amdgpu_hwmon_show_temp_thresh() local 636 if (hyst) in amdgpu_hwmon_show_temp_thresh()
|
/drivers/net/wireless/ |
D | rndis_wlan.c | 3171 int thold, hyst, last_event; in rndis_do_cqm() local 3180 hyst = priv->cqm_rssi_hyst; in rndis_do_cqm() 3182 if (rssi < thold && (last_event == 0 || rssi < last_event - hyst)) in rndis_do_cqm() 3184 else if (rssi > thold && (last_event == 0 || rssi > last_event + hyst)) in rndis_do_cqm()
|
/drivers/net/wireless/ti/wlcore/ |
D | acx.c | 1228 bool enable, s16 thold, u8 hyst) in wl1271_acx_rssi_snr_trigger() argument 1255 acx->hysteresis = hyst; in wl1271_acx_rssi_snr_trigger()
|
D | acx.h | 1104 bool enable, s16 thold, u8 hyst);
|
/drivers/gpu/drm/radeon/ |
D | radeon_pm.c | 691 int hyst = to_sensor_dev_attr(attr)->index; in radeon_hwmon_show_temp_thresh() local 694 if (hyst) in radeon_hwmon_show_temp_thresh()
|