/drivers/tty/serial/ |
D | sunzilog.c | 286 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 …]
|
D | ip22zilog.c | 797 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()
|
D | zs.h | 51 #define ZS_BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
|
D | ip22zilog.h | 30 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
|
D | sunzilog.h | 22 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
|
D | pmac_zilog.h | 116 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
|
D | sb1250-duart.c | 549 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()
|
D | zs.c | 858 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()
|
D | pmac_zilog.c | 1013 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/ |
D | cpm_uart_cpm1.h | 13 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument 15 cpm_setbrg(brg, baud); in cpm_set_brg()
|
D | cpm_uart_cpm2.h | 13 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument 15 cpm_setbrg(brg, baud); in cpm_set_brg()
|
D | cpm_uart.h | 78 u8 brg; member
|
D | cpm_uart_core.c | 646 cpm_set_brg(pinfo->brg - 1, baud); in cpm_uart_set_termios() 1163 pinfo->brg = *data; in cpm_uart_init_port()
|
/drivers/spi/ |
D | spi-au1550.c | 120 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/ |
D | z85230.h | 17 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
|
/drivers/i2c/busses/ |
D | i2c-cpm.c | 437 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()
|