Lines Matching refs:m1

664 static int calc_vclock(int index, int m1, int m2, int n, int p1, int p2,  in calc_vclock()  argument
670 m = (5 * (m1 + 2)) + (m2 + 2); in calc_vclock()
714 int i, m1, m2, n, p1, p2; in intelfbhw_print_hw_state() local
726 m1 = (hw->vga0_divisor >> FP_M1_DIVISOR_SHIFT) & FP_DIVISOR_MASK; in intelfbhw_print_hw_state()
732 m1, m2, n, p1, p2); in intelfbhw_print_hw_state()
734 calc_vclock(index, m1, m2, n, p1, p2, 0)); in intelfbhw_print_hw_state()
737 m1 = (hw->vga1_divisor >> FP_M1_DIVISOR_SHIFT) & FP_DIVISOR_MASK; in intelfbhw_print_hw_state()
742 m1, m2, n, p1, p2); in intelfbhw_print_hw_state()
744 calc_vclock(index, m1, m2, n, p1, p2, 0)); in intelfbhw_print_hw_state()
754 m1 = (hw->fpa0 >> FP_M1_DIVISOR_SHIFT) & FP_DIVISOR_MASK; in intelfbhw_print_hw_state()
760 m1, m2, n, p1, p2); in intelfbhw_print_hw_state()
762 calc_vclock(index, m1, m2, n, p1, p2, 0)); in intelfbhw_print_hw_state()
765 m1 = (hw->fpa1 >> FP_M1_DIVISOR_SHIFT) & FP_DIVISOR_MASK; in intelfbhw_print_hw_state()
771 m1, m2, n, p1, p2); in intelfbhw_print_hw_state()
773 calc_vclock(index, m1, m2, n, p1, p2, 0)); in intelfbhw_print_hw_state()
881 int m1, m2; in splitm() local
886 for (m1 = pll->min_m1; m1 < pll->max_m1 + 1; m1++) { in splitm()
888 testm = (5 * (m1 + 2)) + (m2 + 2); in splitm()
890 *retm1 = (unsigned int)m1; in splitm()
938 u32 m1, m2, n, p1, p2, n1, testm; in calc_pll_params() local
977 if (splitm(index, testm, &m1, &m2)) { in calc_pll_params()
1006 splitm(index, m, &m1, &m2); in calc_pll_params()
1012 m, m1, m2, n, n1, p, p1, p2, in calc_pll_params()
1014 calc_vclock(index, m1, m2, n1, p1, p2, 0), in calc_pll_params()
1016 *retm1 = m1; in calc_pll_params()
1021 *retclock = calc_vclock(index, m1, m2, n1, p1, p2, 0); in calc_pll_params()
1044 u32 m1, m2, n, p1, p2, clock_target, clock; in intelfbhw_mode_to_hw() local
1113 if (calc_pll_params(dinfo->pll_index, clock_target, &m1, &m2, in intelfbhw_mode_to_hw()
1124 if (check_overflow(m1, FP_DIVISOR_MASK, "PLL M1 parameter")) in intelfbhw_mode_to_hw()
1142 (m1 << FP_M1_DIVISOR_SHIFT) | in intelfbhw_mode_to_hw()