• Home
  • Raw
  • Download

Lines Matching refs:m2

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
727 m2 = (hw->vga0_divisor >> FP_M2_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()
738 m2 = (hw->vga1_divisor >> FP_M2_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()
755 m2 = (hw->fpa0 >> FP_M2_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()
766 m2 = (hw->fpa1 >> FP_M2_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
887 for (m2 = pll->min_m2; m2 < pll->max_m2 + 1; m2++) { in splitm()
888 testm = (5 * (m1 + 2)) + (m2 + 2); in splitm()
891 *retm2 = (unsigned int)m2; 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()
1017 *retm2 = m2; 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()
1126 if (check_overflow(m2, FP_DIVISOR_MASK, "PLL M2 parameter")) in intelfbhw_mode_to_hw()
1143 (m2 << FP_M2_DIVISOR_SHIFT); in intelfbhw_mode_to_hw()