Lines Matching refs:pll

128 int matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int freq, unsigned int f…  in matroxfb_PLL_calcclock()  argument
132 unsigned int fxtal = pll->ref_freq; in matroxfb_PLL_calcclock()
141 printk(KERN_ERR "post_shift_max: %d\n", pll->post_shift_max); in matroxfb_PLL_calcclock()
142 printk(KERN_ERR "ref_freq: %d\n", pll->ref_freq); in matroxfb_PLL_calcclock()
144 printk(KERN_ERR "vco_freq_min: %d\n", pll->vco_freq_min); in matroxfb_PLL_calcclock()
145 printk(KERN_ERR "in_div_min: %d\n", pll->in_div_min); in matroxfb_PLL_calcclock()
146 printk(KERN_ERR "in_div_max: %d\n", pll->in_div_max); in matroxfb_PLL_calcclock()
147 printk(KERN_ERR "feed_div_min: %d\n", pll->feed_div_min); in matroxfb_PLL_calcclock()
148 printk(KERN_ERR "feed_div_max: %d\n", pll->feed_div_max); in matroxfb_PLL_calcclock()
151 for (p = 1; p <= pll->post_shift_max; p++) { in matroxfb_PLL_calcclock()
156 if (fwant < pll->vco_freq_min) fwant = pll->vco_freq_min; in matroxfb_PLL_calcclock()
161 if (fwant < pll->vco_freq_min) break; in matroxfb_PLL_calcclock()
162 for (m = pll->in_div_min; m <= pll->in_div_max; m++) { in matroxfb_PLL_calcclock()
167 if (n > pll->feed_div_max) in matroxfb_PLL_calcclock()
169 if (n < pll->feed_div_min) in matroxfb_PLL_calcclock()
170 n = pll->feed_div_min; in matroxfb_PLL_calcclock()
543 minfo->values.pll.system = get_unaligned_le16(bd->pins + 28) ? in parse_pins1()
546 minfo->features.pll.ref_freq = 14318; in parse_pins1()
555 minfo->values.pll.system = 50000; in default_pins1()
556 minfo->features.pll.ref_freq = 14318; in default_pins1()
569 minfo->values.pll.system = (bd->pins[43] == 0xFF) ? 50000 : ((bd->pins[43] + 100) * 1000); in parse_pins2()
570 minfo->features.pll.ref_freq = 14318; in parse_pins2()
580 minfo->values.pll.system = 50000; in default_pins2()
581 minfo->features.pll.ref_freq = 14318; in default_pins2()
598 minfo->features.pll.ref_freq = (bd->pins[52] & 0x20) ? 14318 : 27000; in parse_pins3()
611 minfo->features.pll.ref_freq = 27000; in default_pins3()
628 minfo->values.pll.system = (bd->pins[ 65] == 0xFF) ? 200000 : bd->pins[ 65] * 4000; in parse_pins4()
629 minfo->features.pll.ref_freq = (bd->pins[ 92] & 0x01) ? 14318 : 27000; in parse_pins4()
642 minfo->values.pll.system = 200000; in default_pins4()
643 minfo->features.pll.ref_freq = 27000; in default_pins4()
659 minfo->values.pll.system = in parse_pins5()
660 minfo->values.pll.video = (bd->pins[ 92] == 0xFF) ? 284000 : bd->pins[ 92] * 4000; in parse_pins5()
667 minfo->features.pll.ref_freq = (bd->pins[110] & 0x01) ? 14318 : 27000; in parse_pins5()
692 minfo->values.pll.system = in default_pins5()
693 minfo->values.pll.video = 284000; in default_pins5()
701 minfo->features.pll.ref_freq = 27000; in default_pins5()