Lines Matching refs:divisor
123 /* setting the prescaler and divisor reg is common for all chips */
125 u16 prescaler, unsigned int divisor)
129 out_8(&psc->ctur, divisor >> 8);
130 out_8(&psc->ctlr, divisor & 0xff);
293 unsigned int divisor;
299 divisor = (port->uartclk + 16 * baud) / (32 * baud);
301 /* enable the /32 prescaler and set the divisor */
302 mpc52xx_set_divisor(PSC(port), 0xdd00, divisor);
311 unsigned int divisor;
319 divisor = (port->uartclk + 2 * baud) / (4 * baud);
321 /* select the proper prescaler and set the divisor
323 if (divisor > 0xffff || baud <= 115200) {
324 divisor = (divisor + 4) / 8;
328 mpc52xx_set_divisor(PSC(port), prescaler, divisor);
539 unsigned int divisor;
558 divisor = (port->uartclk + 8 * baud) / (16 * baud);
560 /* enable the /16 prescaler and set the divisor */
561 mpc52xx_set_divisor(PSC(port), 0xdd00, divisor);
873 u8 prescaler, unsigned int divisor)
877 out_8(&psc->ctur, divisor >> 8);
878 out_8(&psc->ctlr, divisor & 0xff);
886 unsigned int divisor;
896 divisor = (port->uartclk + 8 * baud) / (16 * baud);
898 /* enable the /16 prescaler and set the divisor */
899 mpc5125_set_divisor(PSC_5125(port), 0xdd, divisor);