Lines Matching refs:serial_in
31 #define serial_in(y) inb((ulong)y) macro
34 #define serial_in(y) in_be32(y) macro
37 #define serial_in(y) in_le32(y) macro
40 #define serial_in(y) readb(y) macro
199 #define serial_in(addr) \ macro
219 int lcr_val = serial_in(&com_port->lcr) & ~UART_LCR_BKSE; in ns16550_setbrg()
236 if ((serial_in(&com_port->lsr) & (UART_LSR_TEMT | UART_LSR_THRE)) in ns16550_init()
242 const int dll = serial_in(&com_port->dll); in ns16550_init()
243 const int dlm = serial_in(&com_port->dlm); in ns16550_init()
251 while (!(serial_in(&com_port->lsr) & UART_LSR_TEMT)) in ns16550_init()
288 while ((serial_in(&com_port->lsr) & UART_LSR_THRE) == 0) in ns16550_putc()
305 while ((serial_in(&com_port->lsr) & UART_LSR_DR) == 0) { in ns16550_getc()
312 return serial_in(&com_port->rbr); in ns16550_getc()
317 return (serial_in(&com_port->lsr) & UART_LSR_DR) != 0; in ns16550_tstc()
383 if (!(serial_in(&com_port->lsr) & UART_LSR_THRE)) in ns16550_serial_putc()
404 return (serial_in(&com_port->lsr) & UART_LSR_DR) ? 1 : 0; in ns16550_serial_pending()
406 return (serial_in(&com_port->lsr) & UART_LSR_THRE) ? 0 : 1; in ns16550_serial_pending()
413 if (!(serial_in(&com_port->lsr) & UART_LSR_DR)) in ns16550_serial_getc()
416 return serial_in(&com_port->rbr); in ns16550_serial_getc()