Home
last modified time | relevance | path

Searched refs:s_hyst (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/humidity/
H A Dhdc3020.c453 int hdc3020_thresh_clr(s64 s_thresh, s64 s_hyst, enum iio_event_direction dir) in hdc3020_thresh_clr() argument
463 s_clr = s_thresh - s_hyst; in hdc3020_thresh_clr()
465 s_clr = s_thresh + s_hyst; in hdc3020_thresh_clr()
491 s64 s_thresh, s_hyst, s_clr; in hdc3020_write_thresh() local
535 s_hyst = div_s64(abs(s_thresh - s_clr), in hdc3020_write_thresh()
540 s_val = s_hyst; in hdc3020_write_thresh()
555 s_hyst = (s64)s_val * HDC3020_THRESH_FRACTION; in hdc3020_write_thresh()
556 s_clr = hdc3020_thresh_clr(s_thresh, s_hyst, dir); in hdc3020_write_thresh()
579 s_hyst = div_s64(abs(s_thresh - s_clr), in hdc3020_write_thresh()
584 s_val = min(abs(s_hyst), HDC3020_MAX_HUM_MICRO); in hdc3020_write_thresh()
[all …]