Lines Matching refs:clamp_val
356 active = clamp_val(t.active, 2, 15); in ht6560a_set_piomode()
357 recover = clamp_val(t.recover, 4, 15); in ht6560a_set_piomode()
390 active = clamp_val(t.active, 2, 15); in ht6560b_set_piomode()
391 recover = clamp_val(t.recover, 2, 16) & 0x0F; in ht6560b_set_piomode()
474 active = clamp_val(t.active, 2, 17) - 2; in opti82c611a_set_piomode()
475 recover = clamp_val(t.recover, 1, 16) - 1; in opti82c611a_set_piomode()
476 setup = clamp_val(t.setup, 1, 4) - 1; in opti82c611a_set_piomode()
553 active = clamp_val(t.active, 2, 17) - 2; in opti82c46x_set_piomode()
554 recover = clamp_val(t.recover, 1, 16) - 1; in opti82c46x_set_piomode()
555 setup = clamp_val(t.setup, 1, 4) - 1; in opti82c46x_set_piomode()
649 active = 8 - clamp_val(t.active, 1, 8); in qdi65x0_set_piomode()
650 recovery = 18 - clamp_val(t.recover, 3, 18); in qdi65x0_set_piomode()
652 active = 9 - clamp_val(t.active, 2, 9); in qdi65x0_set_piomode()
653 recovery = 15 - clamp_val(t.recover, 0, 15); in qdi65x0_set_piomode()
791 active = (clamp_val(t.active, 3, 17) - 1) & 0x0F; in winbond_set_piomode()
792 recovery = (clamp_val(t.recover, 1, 15) + 1) & 0x0F; in winbond_set_piomode()
803 reg |= (clamp_val(t.setup, 0, 3) << 6); in winbond_set_piomode()