Lines Matching defs:ch
267 * @ch: character to transmit
269 * Enqueue a byte @ch onto the transmit FIFO, given a pointer @ssp to the
275 static void __ssp_transmit_char(struct sifive_serial_port *ssp, int ch)
277 __ssp_writel(ch, SIFIVE_SERIAL_TXDATA_OFFS, ssp);
291 u8 ch;
293 uart_port_tx_limited(&ssp->port, ch, SIFIVE_TX_FIFO_DEPTH,
295 __ssp_transmit_char(ssp, ch),
370 * the char pointed to by @ch. The caller must pass the byte back to the
378 u8 ch;
388 ch = (v & SIFIVE_SERIAL_RXDATA_DATA_MASK) >>
391 return ch;
407 u8 ch;
410 ch = __ssp_receive_char(ssp, &is_empty);
415 if (!uart_prepare_sysrq_char(&ssp->port, ch))
416 uart_insert_char(&ssp->port, 0, 0, ch, TTY_NORMAL);
708 char is_empty, ch;
710 ch = __ssp_receive_char(ssp, &is_empty);
714 return ch;
776 static void sifive_serial_console_putchar(struct uart_port *port, unsigned char ch)
781 __ssp_transmit_char(ssp, ch);