Lines Matching defs:deviation
584 static int clk_fs660c32_get_pe(int m, int si, unsigned long *deviation,
610 if (new_deviation < *deviation) {
615 *deviation = new_deviation;
626 /* initial condition to say: "infinite deviation" */
627 unsigned long deviation = ~0;
633 for (si = 0; (si <= 8) && deviation; si++) {
636 r1 = clk_fs660c32_get_pe(0, si, &deviation,
638 r2 = clk_fs660c32_get_pe(31, si, &deviation,
645 /* Try to find best deviation */
646 for (m = 1; (m < 31) && deviation; m++)
647 clk_fs660c32_get_pe(m, si, &deviation,
652 if (deviation == ~0) /* No solution found */
655 /* pe fine tuning if deviation not 0: +/- 2 around computed pe value */
656 if (deviation) {
674 if (new_deviation < deviation) {
676 deviation = new_deviation;