Home
last modified time | relevance | path

Searched refs:brg (Results 1 – 16 of 16) sorted by relevance

/drivers/serial/
Dsunzilog.c283 int brg, new_baud; in sunzilog_change_mouse_baud() local
288 brg = BPS_TO_BRG(new_baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in sunzilog_change_mouse_baud()
289 up->curregs[R12] = (brg & 0xff); in sunzilog_change_mouse_baud()
290 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_change_mouse_baud()
866 unsigned int iflag, int brg) in sunzilog_convert_to_zs() argument
875 up->curregs[R12] = brg & 0xff; in sunzilog_convert_to_zs()
876 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_convert_to_zs()
945 int baud, brg; in sunzilog_set_termios() local
951 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in sunzilog_set_termios()
953 sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); in sunzilog_set_termios()
[all …]
Dip22zilog.c803 unsigned int iflag, int brg) in ip22zilog_convert_to_zs() argument
812 up->curregs[R12] = brg & 0xff; in ip22zilog_convert_to_zs()
813 up->curregs[R13] = (brg >> 8) & 0xff; in ip22zilog_convert_to_zs()
882 int baud, brg; in ip22zilog_set_termios() local
888 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_set_termios()
890 ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); in ip22zilog_set_termios()
1134 int brg; in ip22zilog_prepare() local
1145 brg = BPS_TO_BRG(9600, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_prepare()
1146 up->curregs[R12] = (brg & 0xff); in ip22zilog_prepare()
1147 up->curregs[R13] = (brg >> 8) & 0xff; in ip22zilog_prepare()
Dzs.h51 #define ZS_BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dip22zilog.h30 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dsunzilog.h22 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dpmac_zilog.h113 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dsb1250-duart.c549 unsigned int baud, brg; in sbd_set_termios() local
588 brg = V_DUART_BAUD_RATE(baud); in sbd_set_termios()
590 if (brg > M_DUART_CLK_COUNTER) in sbd_set_termios()
591 brg = M_DUART_CLK_COUNTER; in sbd_set_termios()
639 write_sbdchn(sport, R_DUART_CLK_SEL, brg); in sbd_set_termios()
Dzs.c857 unsigned int baud, brg; in zs_set_termios() local
916 brg = ZS_BPS_TO_BRG(baud, uport->uartclk / zport->clk_mode); in zs_set_termios()
917 zport->regs[12] = brg & 0xff; in zs_set_termios()
918 zport->regs[13] = (brg >> 8) & 0xff; in zs_set_termios()
Dpmac_zilog.c1041 int brg; in pmz_convert_to_zs() local
1070 brg = BPS_TO_BRG(baud, ZS_CLOCK / 16); in pmz_convert_to_zs()
1071 uap->curregs[R12] = (brg & 255); in pmz_convert_to_zs()
1072 uap->curregs[R13] = ((brg >> 8) & 255); in pmz_convert_to_zs()
/drivers/serial/cpm_uart/
Dcpm_uart_cpm1.h15 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument
17 cpm_setbrg(brg, baud); in cpm_set_brg()
Dcpm_uart_cpm2.h15 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument
17 cpm_setbrg(brg, baud); in cpm_set_brg()
Dcpm_uart.h81 u8 brg; member
Dcpm_uart_core.c603 cpm_set_brg(pinfo->brg - 1, baud); in cpm_uart_set_termios()
1043 pinfo->brg = *data; in cpm_uart_init_port()
/drivers/spi/
Dau1550_spi.c118 u32 div, brg; in au1550_spi_baudcfg() local
121 brg = mainclk_hz / speed_hz / (4 << div); in au1550_spi_baudcfg()
123 if (brg < (4 + 1)) { in au1550_spi_baudcfg()
124 brg = (4 + 1); /* speed_hz too big */ in au1550_spi_baudcfg()
127 if (brg <= (63 + 1)) in au1550_spi_baudcfg()
132 brg = (63 + 1); /* set highest brg and div */ in au1550_spi_baudcfg()
134 brg--; in au1550_spi_baudcfg()
135 return PSC_SPICFG_SET_BAUD(brg) | PSC_SPICFG_SET_DIV(div); in au1550_spi_baudcfg()
/drivers/net/wan/
Dz85230.h17 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
/drivers/i2c/busses/
Di2c-cpm.c437 unsigned char brg; in cpm_i2c_setup() local
573 brg = get_brgfreq() / (32 * 2 * cpm->freq) - 3; in cpm_i2c_setup()
574 out_8(&cpm->i2c_reg->i2brg, brg); in cpm_i2c_setup()