Lines Matching defs:divisor
121 /* setting the prescaler and divisor reg is common for all chips */
123 u16 prescaler, unsigned int divisor)
127 out_8(&psc->ctur, divisor >> 8);
128 out_8(&psc->ctlr, divisor & 0xff);
291 unsigned int divisor;
297 divisor = (port->uartclk + 16 * baud) / (32 * baud);
299 /* enable the /32 prescaler and set the divisor */
300 mpc52xx_set_divisor(PSC(port), 0xdd00, divisor);
309 unsigned int divisor;
317 divisor = (port->uartclk + 2 * baud) / (4 * baud);
319 /* select the proper prescaler and set the divisor
321 if (divisor > 0xffff || baud <= 115200) {
322 divisor = (divisor + 4) / 8;
326 mpc52xx_set_divisor(PSC(port), prescaler, divisor);
537 unsigned int divisor;
556 divisor = (port->uartclk + 8 * baud) / (16 * baud);
558 /* enable the /16 prescaler and set the divisor */
559 mpc52xx_set_divisor(PSC(port), 0xdd00, divisor);
874 u8 prescaler, unsigned int divisor)
878 out_8(&psc->ctur, divisor >> 8);
879 out_8(&psc->ctlr, divisor & 0xff);
887 unsigned int divisor;
897 divisor = (port->uartclk + 8 * baud) / (16 * baud);
899 /* enable the /16 prescaler and set the divisor */
900 mpc5125_set_divisor(PSC_5125(port), 0xdd, divisor);