Lines Matching refs:ucon

248 	u32 ucon, ufcon;  in s3c24xx_serial_rx_enable()  local
259 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_rx_enable()
260 ucon |= S3C2410_UCON_RXIRQMODE; in s3c24xx_serial_rx_enable()
261 wr_regl(port, S3C2410_UCON, ucon); in s3c24xx_serial_rx_enable()
271 u32 ucon; in s3c24xx_serial_rx_disable() local
275 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_rx_disable()
276 ucon &= ~S3C2410_UCON_RXIRQMODE; in s3c24xx_serial_rx_disable()
277 wr_regl(port, S3C2410_UCON, ucon); in s3c24xx_serial_rx_disable()
361 u32 ucon; in enable_tx_dma() local
377 ucon = rd_regl(port, S3C2410_UCON); in enable_tx_dma()
378 ucon &= ~(S3C64XX_UCON_TXBURST_MASK | S3C64XX_UCON_TXMODE_MASK); in enable_tx_dma()
379 ucon |= S3C64XX_UCON_TXBURST_1; in enable_tx_dma()
380 ucon |= S3C64XX_UCON_TXMODE_DMA; in enable_tx_dma()
381 wr_regl(port, S3C2410_UCON, ucon); in enable_tx_dma()
389 u32 ucon, ufcon; in enable_tx_pio() local
397 ucon = rd_regl(port, S3C2410_UCON); in enable_tx_pio()
398 ucon &= ~(S3C64XX_UCON_TXMODE_MASK); in enable_tx_pio()
399 ucon |= S3C64XX_UCON_TXMODE_CPU; in enable_tx_pio()
400 wr_regl(port, S3C2410_UCON, ucon); in enable_tx_pio()
409 ucon |= APPLE_S5L_UCON_TXTHRESH_ENA_MSK; in enable_tx_pio()
410 wr_regl(port, S3C2410_UCON, ucon); in enable_tx_pio()
665 u32 ucon; in enable_rx_dma() local
668 ucon = rd_regl(port, S3C2410_UCON); in enable_rx_dma()
669 ucon &= ~(S3C64XX_UCON_RXBURST_MASK | in enable_rx_dma()
675 ucon |= S3C64XX_UCON_RXBURST_1 | in enable_rx_dma()
680 wr_regl(port, S3C2410_UCON, ucon); in enable_rx_dma()
688 u32 ucon; in enable_rx_pio() local
691 ucon = rd_regl(port, S3C2410_UCON); in enable_rx_pio()
692 ucon &= ~S3C64XX_UCON_RXMODE_MASK; in enable_rx_pio()
693 ucon |= S3C64XX_UCON_RXMODE_CPU; in enable_rx_pio()
697 ucon &= ~(S3C64XX_UCON_TIMEOUT_MASK | in enable_rx_pio()
701 ucon |= 0xf << S3C64XX_UCON_TIMEOUT_SHIFT | in enable_rx_pio()
704 wr_regl(port, S3C2410_UCON, ucon); in enable_rx_pio()
1012 u32 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_set_mctrl() local
1022 ucon |= S3C2410_UCON_LOOPBACK; in s3c24xx_serial_set_mctrl()
1024 ucon &= ~S3C2410_UCON_LOOPBACK; in s3c24xx_serial_set_mctrl()
1026 wr_regl(port, S3C2410_UCON, ucon); in s3c24xx_serial_set_mctrl()
1032 u32 ucon; in s3c24xx_serial_break_ctl() local
1036 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_break_ctl()
1039 ucon |= S3C2410_UCON_SBREAK; in s3c24xx_serial_break_ctl()
1041 ucon &= ~S3C2410_UCON_SBREAK; in s3c24xx_serial_break_ctl()
1043 wr_regl(port, S3C2410_UCON, ucon); in s3c24xx_serial_break_ctl()
1191 u32 ucon; in apple_s5l_serial_shutdown() local
1193 ucon = rd_regl(port, S3C2410_UCON); in apple_s5l_serial_shutdown()
1194 ucon &= ~(APPLE_S5L_UCON_TXTHRESH_ENA_MSK | in apple_s5l_serial_shutdown()
1198 wr_regl(port, S3C2410_UCON, ucon); in apple_s5l_serial_shutdown()
1347 u32 ucon; in s3c24xx_serial_getsource() local
1352 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_getsource()
1353 ucon &= info->clksel_mask; in s3c24xx_serial_getsource()
1354 return ucon >> info->clksel_shift; in s3c24xx_serial_getsource()
1360 u32 ucon; in s3c24xx_serial_setsource() local
1365 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_setsource()
1366 if ((ucon & info->clksel_mask) >> info->clksel_shift == clk_sel) in s3c24xx_serial_setsource()
1369 ucon &= ~info->clksel_mask; in s3c24xx_serial_setsource()
1370 ucon |= clk_sel << info->clksel_shift; in s3c24xx_serial_setsource()
1371 wr_regl(port, S3C2410_UCON, ucon); in s3c24xx_serial_setsource()
1763 u32 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_resetport() local
1765 ucon &= (info->clksel_mask | info->ucon_mask); in s3c24xx_serial_resetport()
1766 wr_regl(port, S3C2410_UCON, ucon | cfg->ucon); in s3c24xx_serial_resetport()
1908 u32 ucon; in s3c24xx_serial_init_port() local
1910 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_init_port()
1911 ucon &= ~(APPLE_S5L_UCON_TXTHRESH_ENA_MSK | in s3c24xx_serial_init_port()
1914 wr_regl(port, S3C2410_UCON, ucon); in s3c24xx_serial_init_port()
2130 u32 ucon; in s3c24xx_serial_resume_noirq() local
2147 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_resume_noirq()
2149 ucon &= ~(APPLE_S5L_UCON_TXTHRESH_ENA_MSK | in s3c24xx_serial_resume_noirq()
2155 ucon |= APPLE_S5L_UCON_TXTHRESH_ENA_MSK; in s3c24xx_serial_resume_noirq()
2157 ucon |= APPLE_S5L_UCON_RXTHRESH_ENA_MSK | in s3c24xx_serial_resume_noirq()
2161 wr_regl(port, S3C2410_UCON, ucon); in s3c24xx_serial_resume_noirq()
2213 s3c24xx_port_configured(u32 ucon) in s3c24xx_port_configured() argument
2216 return (ucon & 0xf) != 0; in s3c24xx_port_configured()
2241 u32 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_put_poll_char() local
2244 if (!s3c24xx_port_configured(ucon)) in s3c24xx_serial_put_poll_char()
2268 u32 ucon = rd_regl(cons_uart, S3C2410_UCON); in s3c24xx_serial_console_write() local
2273 if (!s3c24xx_port_configured(ucon)) in s3c24xx_serial_console_write()
2296 u32 ulcon, ucon, ubrdiv; in s3c24xx_serial_get_options() local
2301 ucon = rd_regl(port, S3C2410_UCON); in s3c24xx_serial_get_options()
2304 if (s3c24xx_port_configured(ucon)) { in s3c24xx_serial_get_options()
2422 .ucon = S3C2410_UCON_DEFAULT,
2451 .ucon = S5PV210_UCON_DEFAULT,
2481 .ucon = S5PV210_UCON_DEFAULT, \
2520 .ucon = S5PV210_UCON_DEFAULT,
2561 .ucon = APPLE_S5L_UCON_DEFAULT,
2591 .ucon = S5PV210_UCON_DEFAULT,