Lines Matching refs:p2
666 static int calc_vclock(int index, int m1, int m2, int n, int p1, int p2, in calc_vclock() argument
677 p = ((p1 + 2) * (1 << (p2 + 1))); in calc_vclock()
679 p = ((p1) * (p2 ? 5 : 10)); in calc_vclock()
687 int p1, p2; in intelfbhw_get_p1p2() local
697 p2 = (dpll >> DPLL_I9XX_P2_SHIFT) & DPLL_P2_MASK; in intelfbhw_get_p1p2()
703 p2 = (dpll >> DPLL_P2_SHIFT) & DPLL_P2_MASK; in intelfbhw_get_p1p2()
707 *o_p2 = p2; in intelfbhw_get_p1p2()
716 int i, m1, m2, n, p1, p2; in intelfbhw_print_hw_state() local
731 intelfbhw_get_p1p2(dinfo, hw->vga_pd, &p1, &p2); in intelfbhw_print_hw_state()
734 m1, m2, n, p1, p2); in intelfbhw_print_hw_state()
736 calc_vclock(index, m1, m2, n, p1, p2, 0)); in intelfbhw_print_hw_state()
742 intelfbhw_get_p1p2(dinfo, hw->vga_pd, &p1, &p2); in intelfbhw_print_hw_state()
744 m1, m2, n, p1, p2); in intelfbhw_print_hw_state()
746 calc_vclock(index, m1, m2, n, p1, p2, 0)); in intelfbhw_print_hw_state()
759 intelfbhw_get_p1p2(dinfo, hw->dpll_a, &p1, &p2); in intelfbhw_print_hw_state()
762 m1, m2, n, p1, p2); in intelfbhw_print_hw_state()
764 calc_vclock(index, m1, m2, n, p1, p2, 0)); in intelfbhw_print_hw_state()
770 intelfbhw_get_p1p2(dinfo, hw->dpll_a, &p1, &p2); in intelfbhw_print_hw_state()
773 m1, m2, n, p1, p2); in intelfbhw_print_hw_state()
775 calc_vclock(index, m1, m2, n, p1, p2, 0)); in intelfbhw_print_hw_state()
905 int p1, p2; in splitp() local
909 p2 = (p % 10) ? 1 : 0; in splitp()
911 p1 = p / (p2 ? 5 : 10); in splitp()
914 *retp2 = (unsigned int)p2; in splitp()
919 p2 = 1; in splitp()
921 p2 = 0; in splitp()
922 p1 = (p / (1 << (p2 + 1))) - 2; in splitp()
924 p2 = 0; in splitp()
925 p1 = (p / (1 << (p2 + 1))) - 2; in splitp()
928 (p1 + 2) * (1 << (p2 + 1)) != p) { in splitp()
932 *retp2 = (unsigned int)p2; in splitp()
940 u32 m1, m2, n, p1, p2, n1, testm; in calc_pll_params() local
963 if (splitp(index, p, &p1, &p2)) { in calc_pll_params()
1009 splitp(index, p, &p1, &p2); in calc_pll_params()
1014 m, m1, m2, n, n1, p, p1, p2, in calc_pll_params()
1016 calc_vclock(index, m1, m2, n1, p1, p2, 0), in calc_pll_params()
1022 *retp2 = p2; in calc_pll_params()
1023 *retclock = calc_vclock(index, m1, m2, n1, p1, p2, 0); in calc_pll_params()
1046 u32 m1, m2, n, p1, p2, clock_target, clock; in intelfbhw_mode_to_hw() local
1116 &n, &p1, &p2, &clock)) { in intelfbhw_mode_to_hw()
1124 if (check_overflow(p2, DPLL_P2_MASK, "PLL P2 parameter")) in intelfbhw_mode_to_hw()
1138 *dpll |= (p2 << DPLL_I9XX_P2_SHIFT); in intelfbhw_mode_to_hw()
1141 *dpll |= (p2 << DPLL_P2_SHIFT) | (p1 << DPLL_P1_SHIFT); in intelfbhw_mode_to_hw()