Lines Matching refs:deviation
646 static int clk_fs660c32_get_pe(int m, int si, unsigned long *deviation,
672 if (new_deviation < *deviation) {
677 *deviation = new_deviation;
688 /* initial condition to say: "infinite deviation" */
689 unsigned long deviation = ~0;
695 for (si = 0; (si <= 8) && deviation; si++) {
698 r1 = clk_fs660c32_get_pe(0, si, &deviation,
700 r2 = clk_fs660c32_get_pe(31, si, &deviation,
707 /* Try to find best deviation */
708 for (m = 1; (m < 31) && deviation; m++)
709 clk_fs660c32_get_pe(m, si, &deviation,
714 if (deviation == ~0) /* No solution found */
717 /* pe fine tuning if deviation not 0: +/- 2 around computed pe value */
718 if (deviation) {
736 if (new_deviation < deviation) {
738 deviation = new_deviation;