/drivers/serial/ |
D | sunzilog.c | 283 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 …]
|
D | ip22zilog.c | 803 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()
|
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 | 113 #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 | 857 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()
|
D | pmac_zilog.c | 1041 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/ |
D | cpm_uart_cpm1.h | 15 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument 17 cpm_setbrg(brg, baud); in cpm_set_brg()
|
D | cpm_uart_cpm2.h | 15 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument 17 cpm_setbrg(brg, baud); in cpm_set_brg()
|
D | cpm_uart.h | 81 u8 brg; member
|
D | cpm_uart_core.c | 603 cpm_set_brg(pinfo->brg - 1, baud); in cpm_uart_set_termios() 1043 pinfo->brg = *data; in cpm_uart_init_port()
|
/drivers/spi/ |
D | au1550_spi.c | 118 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/ |
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()
|