Lines Matching refs:steps
591 long steps = LONG_MIN; in rs5c372_set_offset() local
608 steps = DIV_ROUND_CLOSEST(offset, 1017); in rs5c372_set_offset()
609 if (steps >= -0x3E && steps <= 0x3E) { in rs5c372_set_offset()
619 steps = LONG_MIN; in rs5c372_set_offset()
626 if (steps == LONG_MIN) { in rs5c372_set_offset()
627 steps = DIV_ROUND_CLOSEST(offset, ppb_per_step); in rs5c372_set_offset()
628 if (steps > 0x3E || steps < -0x3E) in rs5c372_set_offset()
632 if (steps > 0) { in rs5c372_set_offset()
633 val |= steps + 1; in rs5c372_set_offset()
636 val |= (~(-steps - 1)) & 0x3F; in rs5c372_set_offset()
639 if (!steps || !(val & 0x3E)) { in rs5c372_set_offset()