Searched defs:brg (Results 1 - 10 of 10) sorted by relevance

/drivers/tty/serial/cpm_uart/
H A Dcpm_uart_cpm1.h13 static inline void cpm_set_brg(int brg, int baud) argument
15 cpm_setbrg(brg, baud);
H A Dcpm_uart_cpm2.h13 static inline void cpm_set_brg(int brg, int baud) argument
15 cpm_setbrg(brg, baud);
H A Dcpm_uart.h78 u8 brg; member in struct:uart_cpm_port
/drivers/spi/
H A Dspi-au1550.c118 u32 div, brg; local
121 brg = mainclk_hz / speed_hz / (4 << div);
122 /* now we have BRG+1 in brg, so count with that */
123 if (brg < (4 + 1)) {
124 brg = (4 + 1); /* speed_hz too big */
125 break; /* set lowest brg (div is == 0) */
127 if (brg <= (63 + 1))
128 break; /* we have valid brg and div */
132 brg = (63 + 1); /* set highest brg an
[all...]
/drivers/i2c/busses/
H A Di2c-cpm.c441 unsigned char brg; local
577 brg = get_brgfreq() / (32 * 2 * cpm->freq) - 3;
578 out_8(&cpm->i2c_reg->i2brg, brg);
/drivers/tty/serial/
H A Dip22zilog.c799 unsigned int iflag, int brg)
808 up->curregs[R12] = brg & 0xff;
809 up->curregs[R13] = (brg >> 8) & 0xff;
878 int baud, brg; local
884 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR);
886 ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
1130 int brg; local
1141 brg = BPS_TO_BRG(9600, ZS_CLOCK / ZS_CLOCK_DIVISOR);
1142 up->curregs[R12] = (brg & 0xff);
1143 up->curregs[R13] = (brg >>
798 ip22zilog_convert_to_zs(struct uart_ip22zilog_port *up, unsigned int cflag, unsigned int iflag, int brg) argument
[all...]
H A Dpmac_zilog.c1018 int brg; local
1046 brg = BPS_TO_BRG(baud, ZS_CLOCK / 16);
1047 uap->curregs[R12] = (brg & 255);
1048 uap->curregs[R13] = ((brg >> 8) & 255);
H A Dsb1250-duart.c549 unsigned int baud, brg; local
588 brg = V_DUART_BAUD_RATE(baud);
590 if (brg > M_DUART_CLK_COUNTER)
591 brg = M_DUART_CLK_COUNTER;
639 write_sbdchn(sport, R_DUART_CLK_SEL, brg);
H A Dsunzilog.c286 int brg, new_baud; local
291 brg = BPS_TO_BRG(new_baud, ZS_CLOCK / ZS_CLOCK_DIVISOR);
292 up->curregs[R12] = (brg & 0xff);
293 up->curregs[R13] = (brg >> 8) & 0xff;
864 unsigned int iflag, int brg)
873 up->curregs[R12] = brg & 0xff;
874 up->curregs[R13] = (brg >> 8) & 0xff;
943 int baud, brg; local
949 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR);
951 sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
863 sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag, unsigned int iflag, int brg) argument
1216 int baud, brg; local
1278 int baud, brg; local
1329 int baud, brg; local
[all...]
H A Dzs.c858 unsigned int baud, brg; local
917 brg = ZS_BPS_TO_BRG(baud, uport->uartclk / zport->clk_mode);
918 zport->regs[12] = brg & 0xff;
919 zport->regs[13] = (brg >> 8) & 0xff;

Completed in 140 milliseconds