Lines Matching defs:divisor
416 static int pc98_ttspeedtab(struct com_s *com, int speed, u_int *divisor);
765 u_int divisor;
1064 divisor = siodivisor(rclk, SIO_TEST_SPEED);
1065 sio_setreg(com, com_dlbl, divisor & 0xff);
1066 sio_setreg(com, com_dlbh, divisor >> 8);
2022 u_int divisor;
2031 divisor = (rclk / (8UL * speed) + 1) / 2;
2032 if (divisor == 0 || divisor >= 65536)
2034 actual_speed = rclk / (16UL * divisor);
2043 return (divisor);
2738 u_int divisor;
2755 if (pc98_ttspeedtab(com, t->c_ospeed, &divisor) != 0)
2762 divisor = siodivisor(com->rclk, t->c_ispeed);
2763 if (divisor == 0)
2855 * Only set the divisor registers if they would change, since on
2859 dlbl = divisor & 0xFF;
2862 dlbh = divisor >> 8;
3499 u_int divisor;
3512 divisor = dlbh << 8 | dlbl;
3515 if (divisor == 0)
3517 return (rclk / (16UL * divisor));
3526 u_int divisor;
3543 * Only set the divisor registers if they would change, since on
3548 divisor = siodivisor(comdefaultrclk, speed);
3549 dlbl = divisor & 0xFF;
3552 dlbh = divisor >> 8;
3593 u_int divisor;
3636 * Initialize the divisor latch. We can't rely on
3646 divisor = siodivisor(comdefaultrclk, comdefaultrate);
3647 outb(iobase + com_dlbl, divisor & 0xff);
3648 outb(iobase + com_dlbh, divisor >> 8);
4153 pc98_ttspeedtab(struct com_s *com, int speed, u_int *divisor)
4211 *divisor = (u_int) count;