Home
last modified time | relevance | path

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

/linux/drivers/tty/serial/
H A Desp32_uart.c139 static const struct esp32_uart_variant *port_variant(struct uart_port *port) in port_variant() function
158 return (status & port_variant(port)->txfifo_cnt_mask) >> UART_TXFIFO_CNT_SHIFT; in esp32_uart_tx_fifo_cnt()
165 return (status & port_variant(port)->rxfifo_cnt_mask) >> UART_RXFIFO_CNT_SHIFT; in esp32_uart_rx_fifo_cnt()
340 if (port_variant(port)->has_clkconf) in esp32_uart_startup()
345 (1 << port_variant(port)->txfifo_empty_thrhd_shift)); in esp32_uart_startup()
367 if (port_variant(port)->has_clkconf) { in esp32_uart_set_baud()
368 u32 sclk_div = div / port_variant(port)->clkdiv_mask; in esp32_uart_set_baud()
370 if (div > port_variant(port)->clkdiv_mask) { in esp32_uart_set_baud()
379 if (div <= port_variant(port)->clkdiv_mask) { in esp32_uart_set_baud()
397 const u32 rx_flow_en = port_variant(port)->rx_flow_en; in esp32_uart_set_termios()
[all …]