Home
last modified time | relevance | path

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

/drivers/tty/serial/
Dsunzilog.c286 int brg, new_baud; in sunzilog_change_mouse_baud() local
291 brg = BPS_TO_BRG(new_baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in sunzilog_change_mouse_baud()
292 up->curregs[R12] = (brg & 0xff); in sunzilog_change_mouse_baud()
293 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_change_mouse_baud()
862 unsigned int iflag, int brg) in sunzilog_convert_to_zs() argument
871 up->curregs[R12] = brg & 0xff; in sunzilog_convert_to_zs()
872 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_convert_to_zs()
941 int baud, brg; in sunzilog_set_termios() local
947 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in sunzilog_set_termios()
949 sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); in sunzilog_set_termios()
[all …]
Dip22zilog.c797 unsigned int iflag, int brg) in ip22zilog_convert_to_zs() argument
806 up->curregs[R12] = brg & 0xff; in ip22zilog_convert_to_zs()
807 up->curregs[R13] = (brg >> 8) & 0xff; in ip22zilog_convert_to_zs()
876 int baud, brg; in ip22zilog_set_termios() local
882 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_set_termios()
884 ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); in ip22zilog_set_termios()
1128 int brg; in ip22zilog_prepare() local
1139 brg = BPS_TO_BRG(9600, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_prepare()
1140 up->curregs[R12] = (brg & 0xff); in ip22zilog_prepare()
1141 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.h116 #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.c858 unsigned int baud, brg; in zs_set_termios() local
917 brg = ZS_BPS_TO_BRG(baud, uport->uartclk / zport->clk_mode); in zs_set_termios()
918 zport->regs[12] = brg & 0xff; in zs_set_termios()
919 zport->regs[13] = (brg >> 8) & 0xff; in zs_set_termios()
Dpmac_zilog.c1013 int brg; in pmz_convert_to_zs() local
1041 brg = BPS_TO_BRG(baud, ZS_CLOCK / 16); in pmz_convert_to_zs()
1042 uap->curregs[R12] = (brg & 255); in pmz_convert_to_zs()
1043 uap->curregs[R13] = ((brg >> 8) & 255); in pmz_convert_to_zs()
/drivers/tty/serial/cpm_uart/
Dcpm_uart_cpm1.h13 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument
15 cpm_setbrg(brg, baud); in cpm_set_brg()
Dcpm_uart_cpm2.h13 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument
15 cpm_setbrg(brg, baud); in cpm_set_brg()
Dcpm_uart.h78 u8 brg; member
Dcpm_uart_core.c646 cpm_set_brg(pinfo->brg - 1, baud); in cpm_uart_set_termios()
1163 pinfo->brg = *data; in cpm_uart_init_port()
/drivers/spi/
Dspi-au1550.c120 u32 div, brg; in au1550_spi_baudcfg() local
123 brg = mainclk_hz / speed_hz / (4 << div); in au1550_spi_baudcfg()
125 if (brg < (4 + 1)) { in au1550_spi_baudcfg()
126 brg = (4 + 1); /* speed_hz too big */ in au1550_spi_baudcfg()
129 if (brg <= (63 + 1)) in au1550_spi_baudcfg()
134 brg = (63 + 1); /* set highest brg and div */ in au1550_spi_baudcfg()
136 brg--; in au1550_spi_baudcfg()
137 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()