Example #1
0
static u32 uart_8250_tx(struct serial *p, u8 *src, size_t len)
{
	u32 i;
	struct uart_8250_port *port = serial_tx_priv(p);

	for (i = 0; i < len; i++) {
		if (!uart_8250_lowlevel_can_putc(port)) {
			break;
		}
		uart_8250_lowlevel_putc(port, src[i]);
	}

	return i;
}
Example #2
0
static u32 samsung_tx(struct serial *p, u8 *src, size_t len)
{
    u32 i;
    struct samsung_port *port = serial_tx_priv(p);

    for (i = 0; i < len; i++) {
        if (!samsung_lowlevel_can_putc(port->base)) {
            break;
        }
        samsung_lowlevel_putc(port->base, src[i]);
    }

    return i;
}
Example #3
0
static u32 omap_uart_tx(struct serial *p, u8 *src, size_t len)
{
	u32 i;
	struct omap_uart_port *port = serial_tx_priv(p);

	for (i = 0; i < len; i++) {
		if (!omap_uart_lowlevel_can_putc(port->base, port->reg_shift)) {
			break;
		}
		omap_uart_lowlevel_putc(port->base, port->reg_shift, src[i]);
	}

	return i;
}