brg 57 arch/powerpc/include/asm/cpm1.h extern void cpm_setbrg(uint brg, uint rate); brg 110 arch/powerpc/include/asm/cpm2.h extern void __cpm2_setbrg(uint brg, uint rate, uint clk, int div16, int src); brg 115 arch/powerpc/include/asm/cpm2.h static inline void cpm_setbrg(uint brg, uint rate) brg 117 arch/powerpc/include/asm/cpm2.h __cpm2_setbrg(brg, rate, CPM2_BRG_UART_CLK, 0, CPM_BRG_EXTC_INT); brg 123 arch/powerpc/include/asm/cpm2.h static inline void cpm2_fastbrg(uint brg, uint rate, int div16) brg 125 arch/powerpc/include/asm/cpm2.h __cpm2_setbrg(brg, rate, CPM2_BRG_INT_CLK, div16, CPM_BRG_EXTC_INT); brg 278 arch/powerpc/platforms/8xx/cpm1.c cpm_setbrg(uint brg, uint rate) brg 284 arch/powerpc/platforms/8xx/cpm1.c bp += brg; brg 115 arch/powerpc/sysdev/cpm2.c void __cpm2_setbrg(uint brg, uint rate, uint clk, int div16, int src) brg 122 arch/powerpc/sysdev/cpm2.c if (brg < 4) { brg 126 arch/powerpc/sysdev/cpm2.c brg -= 4; brg 128 arch/powerpc/sysdev/cpm2.c bp += brg; brg 428 drivers/i2c/busses/i2c-cpm.c unsigned char brg; brg 566 drivers/i2c/busses/i2c-cpm.c brg = get_brgfreq() / (32 * 2 * cpm->freq) - 3; brg 567 drivers/i2c/busses/i2c-cpm.c out_8(&cpm->i2c_reg->i2brg, brg); brg 18 drivers/net/wan/z85230.h #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) brg 208 drivers/soc/fsl/qe/qe.c int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier) brg 213 drivers/soc/fsl/qe/qe.c if ((brg < QE_BRG1) || (brg > QE_BRG16)) brg 233 drivers/soc/fsl/qe/qe.c out_be32(&qe_immr->brg.brgc[brg - QE_BRG1], tempval); brg 105 drivers/spi/spi-au1550.c u32 div, brg; brg 108 drivers/spi/spi-au1550.c brg = mainclk_hz / speed_hz / (4 << div); brg 110 drivers/spi/spi-au1550.c if (brg < (4 + 1)) { brg 111 drivers/spi/spi-au1550.c brg = (4 + 1); /* speed_hz too big */ brg 114 drivers/spi/spi-au1550.c if (brg <= (63 + 1)) brg 119 drivers/spi/spi-au1550.c brg = (63 + 1); /* set highest brg and div */ brg 121 drivers/spi/spi-au1550.c brg--; brg 122 drivers/spi/spi-au1550.c return PSC_SPICFG_SET_BAUD(brg) | PSC_SPICFG_SET_DIV(div); brg 74 drivers/tty/serial/cpm_uart/cpm_uart.h u8 brg; brg 644 drivers/tty/serial/cpm_uart/cpm_uart_core.c cpm_set_brg(pinfo->brg - 1, baud); brg 1165 drivers/tty/serial/cpm_uart/cpm_uart_core.c pinfo->brg = *data; brg 14 drivers/tty/serial/cpm_uart/cpm_uart_cpm1.h static inline void cpm_set_brg(int brg, int baud) brg 16 drivers/tty/serial/cpm_uart/cpm_uart_cpm1.h cpm_setbrg(brg, baud); brg 14 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.h static inline void cpm_set_brg(int brg, int baud) brg 16 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.h cpm_setbrg(brg, baud); brg 805 drivers/tty/serial/ip22zilog.c unsigned int iflag, int brg) brg 814 drivers/tty/serial/ip22zilog.c up->curregs[R12] = brg & 0xff; brg 815 drivers/tty/serial/ip22zilog.c up->curregs[R13] = (brg >> 8) & 0xff; brg 885 drivers/tty/serial/ip22zilog.c int baud, brg; brg 891 drivers/tty/serial/ip22zilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); brg 893 drivers/tty/serial/ip22zilog.c ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); brg 1137 drivers/tty/serial/ip22zilog.c int brg; brg 1148 drivers/tty/serial/ip22zilog.c brg = BPS_TO_BRG(9600, ZS_CLOCK / ZS_CLOCK_DIVISOR); brg 1149 drivers/tty/serial/ip22zilog.c up->curregs[R12] = (brg & 0xff); brg 1150 drivers/tty/serial/ip22zilog.c up->curregs[R13] = (brg >> 8) & 0xff; brg 31 drivers/tty/serial/ip22zilog.h #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) brg 1003 drivers/tty/serial/pmac_zilog.c int brg; brg 1031 drivers/tty/serial/pmac_zilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / 16); brg 1032 drivers/tty/serial/pmac_zilog.c uap->curregs[R12] = (brg & 255); brg 1033 drivers/tty/serial/pmac_zilog.c uap->curregs[R13] = ((brg >> 8) & 255); brg 117 drivers/tty/serial/pmac_zilog.h #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) brg 545 drivers/tty/serial/sb1250-duart.c unsigned int baud, brg; brg 584 drivers/tty/serial/sb1250-duart.c brg = V_DUART_BAUD_RATE(baud); brg 586 drivers/tty/serial/sb1250-duart.c if (brg > M_DUART_CLK_COUNTER) brg 587 drivers/tty/serial/sb1250-duart.c brg = M_DUART_CLK_COUNTER; brg 635 drivers/tty/serial/sb1250-duart.c write_sbdchn(sport, R_DUART_CLK_SEL, brg); brg 287 drivers/tty/serial/sunzilog.c int brg, new_baud; brg 292 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(new_baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); brg 293 drivers/tty/serial/sunzilog.c up->curregs[R12] = (brg & 0xff); brg 294 drivers/tty/serial/sunzilog.c up->curregs[R13] = (brg >> 8) & 0xff; brg 870 drivers/tty/serial/sunzilog.c unsigned int iflag, int brg) brg 879 drivers/tty/serial/sunzilog.c up->curregs[R12] = brg & 0xff; brg 880 drivers/tty/serial/sunzilog.c up->curregs[R13] = (brg >> 8) & 0xff; brg 950 drivers/tty/serial/sunzilog.c int baud, brg; brg 956 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); brg 958 drivers/tty/serial/sunzilog.c sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); brg 1225 drivers/tty/serial/sunzilog.c int baud, brg; brg 1251 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); brg 1256 drivers/tty/serial/sunzilog.c sunzilog_convert_to_zs(up, con->cflag, 0, brg); brg 1287 drivers/tty/serial/sunzilog.c int baud, brg; brg 1298 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); brg 1299 drivers/tty/serial/sunzilog.c sunzilog_convert_to_zs(up, up->cflag, 0, brg); brg 1338 drivers/tty/serial/sunzilog.c int baud, brg; brg 1377 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); brg 1378 drivers/tty/serial/sunzilog.c up->curregs[R12] = (brg & 0xff); brg 1379 drivers/tty/serial/sunzilog.c up->curregs[R13] = (brg >> 8) & 0xff; brg 23 drivers/tty/serial/sunzilog.h #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) brg 859 drivers/tty/serial/zs.c unsigned int baud, brg; brg 918 drivers/tty/serial/zs.c brg = ZS_BPS_TO_BRG(baud, uport->uartclk / zport->clk_mode); brg 919 drivers/tty/serial/zs.c zport->regs[12] = brg & 0xff; brg 920 drivers/tty/serial/zs.c zport->regs[13] = (brg >> 8) & 0xff; brg 52 drivers/tty/serial/zs.h #define ZS_BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) brg 57 include/linux/fs_uart_pd.h u8 brg; brg 741 include/linux/mv643xx.h #define MV64340_BRG_CONFIG_REG(brg) (0xb200 + (brg<<3)) brg 742 include/linux/mv643xx.h #define MV64340_BRG_BAUDE_TUNING_REG(brg) (0xb208 + (brg<<3)) brg 430 include/soc/fsl/qe/immap_qe.h struct qe_brg brg; /* brg */ brg 207 include/soc/fsl/qe/qe.h int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier);