Home
last modified time | relevance | path

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

/drivers/soc/fsl/qe/
Dqe.c162 u32 brg; in qe_get_brg_clk() local
172 if (!of_property_read_u32(qe, "brg-frequency", &brg)) in qe_get_brg_clk()
173 brg_clk = brg; in qe_get_brg_clk()
209 int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier) in qe_setbrg() argument
214 if ((brg < QE_BRG1) || (brg > QE_BRG16)) in qe_setbrg()
234 iowrite32be(tempval, &qe_immr->brg.brgc[brg - QE_BRG1]); in qe_setbrg()
/drivers/tty/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()
946 int baud, brg; in sunzilog_set_termios() local
952 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in sunzilog_set_termios()
954 sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); in sunzilog_set_termios()
[all …]
Dip22zilog.c801 unsigned int iflag, int brg) in ip22zilog_convert_to_zs() argument
810 up->curregs[R12] = brg & 0xff; in ip22zilog_convert_to_zs()
811 up->curregs[R13] = (brg >> 8) & 0xff; in ip22zilog_convert_to_zs()
881 int baud, brg; in ip22zilog_set_termios() local
887 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_set_termios()
889 ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); in ip22zilog_set_termios()
1136 int brg; in ip22zilog_prepare() local
1147 brg = BPS_TO_BRG(9600, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_prepare()
1148 up->curregs[R12] = (brg & 0xff); in ip22zilog_prepare()
1149 up->curregs[R13] = (brg >> 8) & 0xff; in ip22zilog_prepare()
Dzs.h52 #define ZS_BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dsunzilog.h23 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dip22zilog.h31 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dpmac_zilog.h117 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dsb1250-duart.c540 unsigned int baud, brg; in sbd_set_termios() local
579 brg = V_DUART_BAUD_RATE(baud); in sbd_set_termios()
581 if (brg > M_DUART_CLK_COUNTER) in sbd_set_termios()
582 brg = M_DUART_CLK_COUNTER; in sbd_set_termios()
630 write_sbdchn(sport, R_DUART_CLK_SEL, brg); in sbd_set_termios()
Dzs.c855 unsigned int baud, brg; in zs_set_termios() local
914 brg = ZS_BPS_TO_BRG(baud, uport->uartclk / zport->clk_mode); in zs_set_termios()
915 zport->regs[12] = brg & 0xff; in zs_set_termios()
916 zport->regs[13] = (brg >> 8) & 0xff; in zs_set_termios()
Dpmac_zilog.c1000 int brg; in pmz_convert_to_zs() local
1028 brg = BPS_TO_BRG(baud, ZS_CLOCK / 16); in pmz_convert_to_zs()
1029 uap->curregs[R12] = (brg & 255); in pmz_convert_to_zs()
1030 uap->curregs[R13] = ((brg >> 8) & 255); in pmz_convert_to_zs()
/drivers/tty/serial/cpm_uart/
Dcpm_uart_cpm1.h14 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument
16 cpm_setbrg(brg, baud); in cpm_set_brg()
Dcpm_uart_cpm2.h14 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument
16 cpm_setbrg(brg, baud); in cpm_set_brg()
Dcpm_uart.h76 u8 brg; member
Dcpm_uart_core.c619 cpm_set_brg(pinfo->brg - 1, baud); in cpm_uart_set_termios()
1169 pinfo->brg = *data; in cpm_uart_init_port()
/drivers/spi/
Dspi-au1550.c104 u32 div, brg; in au1550_spi_baudcfg() local
107 brg = mainclk_hz / speed_hz / (4 << div); in au1550_spi_baudcfg()
109 if (brg < (4 + 1)) { in au1550_spi_baudcfg()
110 brg = (4 + 1); /* speed_hz too big */ in au1550_spi_baudcfg()
113 if (brg <= (63 + 1)) in au1550_spi_baudcfg()
118 brg = (63 + 1); /* set highest brg and div */ in au1550_spi_baudcfg()
120 brg--; in au1550_spi_baudcfg()
121 return PSC_SPICFG_SET_BAUD(brg) | PSC_SPICFG_SET_DIV(div); in au1550_spi_baudcfg()
/drivers/net/wan/
Dz85230.h18 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
/drivers/i2c/busses/
Di2c-cpm.c431 unsigned char brg; in cpm_i2c_setup() local
569 brg = get_brgfreq() / (32 * 2 * cpm->freq) - 3; in cpm_i2c_setup()
570 out_8(&cpm->i2c_reg->i2brg, brg); in cpm_i2c_setup()