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.c444 int hdc3020_thresh_clr(s64 s_thresh, s64 s_hyst, enum iio_event_direction dir) in hdc3020_thresh_clr() argument
454 s_clr = s_thresh - s_hyst; in hdc3020_thresh_clr()
456 s_clr = s_thresh + s_hyst; in hdc3020_thresh_clr()
482 s64 s_thresh, s_hyst, s_clr; in hdc3020_write_thresh() local
526 s_hyst = div_s64(abs(s_thresh - s_clr), 65535); in hdc3020_write_thresh()
530 s_val = s_hyst; in hdc3020_write_thresh()
544 s_hyst = (s64)s_val * 65535; in hdc3020_write_thresh()
545 s_clr = hdc3020_thresh_clr(s_thresh, s_hyst, dir); in hdc3020_write_thresh()
568 s_hyst = div_s64(abs(s_thresh - s_clr), 65535); in hdc3020_write_thresh()
572 s_val = min(abs(s_hyst), HDC3020_MAX_HUM_MICRO); in hdc3020_write_thresh()
[all …]