| /Linux-v5.4/include/linux/ |
| D | serial_core.h | 29 struct uart_port; 38 unsigned int (*tx_empty)(struct uart_port *); 39 void (*set_mctrl)(struct uart_port *, unsigned int mctrl); 40 unsigned int (*get_mctrl)(struct uart_port *); 41 void (*stop_tx)(struct uart_port *); 42 void (*start_tx)(struct uart_port *); 43 void (*throttle)(struct uart_port *); 44 void (*unthrottle)(struct uart_port *); 45 void (*send_xchar)(struct uart_port *, char ch); 46 void (*stop_rx)(struct uart_port *); [all …]
|
| D | serial_8250.h | 30 unsigned int (*serial_in)(struct uart_port *, int); 31 void (*serial_out)(struct uart_port *, int, int); 32 void (*set_termios)(struct uart_port *, 35 void (*set_ldisc)(struct uart_port *, 37 unsigned int (*get_mctrl)(struct uart_port *); 38 int (*handle_irq)(struct uart_port *); 39 void (*pm)(struct uart_port *, unsigned int state, 41 void (*handle_break)(struct uart_port *); 93 struct uart_port port; 140 static inline struct uart_8250_port *up_to_u8250p(struct uart_port *up) in up_to_u8250p() [all …]
|
| /Linux-v5.4/drivers/tty/serial/ |
| D | mpc52xx_uart.c | 62 static struct uart_port mpc52xx_uart_ports[MPC52xx_PSC_MAXNUM]; 82 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port); 89 void (*fifo_init)(struct uart_port *port); 90 int (*raw_rx_rdy)(struct uart_port *port); 91 int (*raw_tx_rdy)(struct uart_port *port); 92 int (*rx_rdy)(struct uart_port *port); 93 int (*tx_rdy)(struct uart_port *port); 94 int (*tx_empty)(struct uart_port *port); 95 void (*stop_rx)(struct uart_port *port); 96 void (*start_tx)(struct uart_port *port); [all …]
|
| D | sunhv.c | 46 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_putchar() 59 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_write() 75 static int receive_chars_getchar(struct uart_port *port) in receive_chars_getchar() 118 static int receive_chars_read(struct uart_port *port) in receive_chars_read() 174 void (*transmit_chars)(struct uart_port *port, struct circ_buf *xmit); 175 int (*receive_chars)(struct uart_port *port); 190 static struct tty_port *receive_chars(struct uart_port *port) in receive_chars() 203 static void transmit_chars(struct uart_port *port) in transmit_chars() 222 struct uart_port *port = dev_id; in sunhv_interrupt() 238 static unsigned int sunhv_tx_empty(struct uart_port *port) in sunhv_tx_empty() [all …]
|
| D | apbuart.c | 43 static void apbuart_tx_chars(struct uart_port *port); 45 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx() 54 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx() 66 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx() 75 static void apbuart_rx_chars(struct uart_port *port) in apbuart_rx_chars() 129 static void apbuart_tx_chars(struct uart_port *port) in apbuart_tx_chars() 165 struct uart_port *port = dev_id; in apbuart_int() 181 static unsigned int apbuart_tx_empty(struct uart_port *port) in apbuart_tx_empty() 187 static unsigned int apbuart_get_mctrl(struct uart_port *port) in apbuart_get_mctrl() 193 static void apbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) in apbuart_set_mctrl() [all …]
|
| D | mux.c | 51 struct uart_port port; 108 static unsigned int mux_tx_empty(struct uart_port *port) in mux_tx_empty() 121 static void mux_set_mctrl(struct uart_port *port, unsigned int mctrl) in mux_set_mctrl() 132 static unsigned int mux_get_mctrl(struct uart_port *port) in mux_get_mctrl() 143 static void mux_stop_tx(struct uart_port *port) in mux_stop_tx() 153 static void mux_start_tx(struct uart_port *port) in mux_start_tx() 163 static void mux_stop_rx(struct uart_port *port) in mux_stop_rx() 174 static void mux_break_ctl(struct uart_port *port, int break_state) in mux_break_ctl() 185 static void mux_write(struct uart_port *port) in mux_write() 229 static void mux_read(struct uart_port *port) in mux_read() [all …]
|
| D | uartlite.c | 62 static struct uart_port *console_port; 106 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() 113 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() 120 static struct uart_port ulite_ports[ULITE_NR_UARTS]; 126 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive() 176 static int ulite_transmit(struct uart_port *port, int stat) in ulite_transmit() 206 struct uart_port *port = dev_id; in ulite_isr() 228 static unsigned int ulite_tx_empty(struct uart_port *port) in ulite_tx_empty() 240 static unsigned int ulite_get_mctrl(struct uart_port *port) in ulite_get_mctrl() 245 static void ulite_set_mctrl(struct uart_port *port, unsigned int mctrl) in ulite_set_mctrl() [all …]
|
| D | altera_jtaguart.c | 57 struct uart_port port; 62 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty() 68 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl() 73 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl() 77 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx() 86 static void altera_jtaguart_stop_tx(struct uart_port *port) in altera_jtaguart_stop_tx() 95 static void altera_jtaguart_stop_rx(struct uart_port *port) in altera_jtaguart_stop_rx() 104 static void altera_jtaguart_break_ctl(struct uart_port *port, int break_state) in altera_jtaguart_break_ctl() 108 static void altera_jtaguart_set_termios(struct uart_port *port, in altera_jtaguart_set_termios() 119 struct uart_port *port = &pp->port; in altera_jtaguart_rx_chars() [all …]
|
| D | arc_uart.c | 100 struct uart_port port; 126 static void arc_serial_stop_rx(struct uart_port *port) in arc_serial_stop_rx() 131 static void arc_serial_stop_tx(struct uart_port *port) in arc_serial_stop_tx() 142 static unsigned int arc_serial_tx_empty(struct uart_port *port) in arc_serial_tx_empty() 160 static void arc_serial_tx_chars(struct uart_port *port) in arc_serial_tx_chars() 196 static void arc_serial_start_tx(struct uart_port *port) in arc_serial_start_tx() 201 static void arc_serial_rx_chars(struct uart_port *port, unsigned int status) in arc_serial_rx_chars() 279 struct uart_port *port = dev_id; in arc_serial_isr() 315 static unsigned int arc_serial_get_mctrl(struct uart_port *port) in arc_serial_get_mctrl() 327 static void arc_serial_set_mctrl(struct uart_port *port, unsigned int mctrl) in arc_serial_set_mctrl() [all …]
|
| D | 21285.c | 58 static void serial21285_stop_tx(struct uart_port *port) in serial21285_stop_tx() 66 static void serial21285_start_tx(struct uart_port *port) in serial21285_start_tx() 74 static void serial21285_stop_rx(struct uart_port *port) in serial21285_stop_rx() 84 struct uart_port *port = dev_id; in serial21285_rx_chars() 121 struct uart_port *port = dev_id; in serial21285_tx_chars() 154 static unsigned int serial21285_tx_empty(struct uart_port *port) in serial21285_tx_empty() 160 static unsigned int serial21285_get_mctrl(struct uart_port *port) in serial21285_get_mctrl() 165 static void serial21285_set_mctrl(struct uart_port *port, unsigned int mctrl) in serial21285_set_mctrl() 169 static void serial21285_break_ctl(struct uart_port *port, int break_state) in serial21285_break_ctl() 184 static int serial21285_startup(struct uart_port *port) in serial21285_startup() [all …]
|
| D | st-asc.c | 41 struct uart_port port; 151 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port() 156 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in() 165 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out() 178 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts() 185 static inline void asc_enable_tx_interrupts(struct uart_port *port) in asc_enable_tx_interrupts() 191 static inline void asc_disable_rx_interrupts(struct uart_port *port) in asc_disable_rx_interrupts() 198 static inline void asc_enable_rx_interrupts(struct uart_port *port) in asc_enable_rx_interrupts() 204 static inline u32 asc_txfifo_is_empty(struct uart_port *port) in asc_txfifo_is_empty() 209 static inline u32 asc_txfifo_is_half_empty(struct uart_port *port) in asc_txfifo_is_half_empty() [all …]
|
| D | altera_uart.c | 78 struct uart_port port; 84 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() 89 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() 94 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() 100 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() 126 static void altera_uart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_uart_set_mctrl() 138 static void altera_uart_start_tx(struct uart_port *port) in altera_uart_start_tx() 146 static void altera_uart_stop_tx(struct uart_port *port) in altera_uart_stop_tx() 154 static void altera_uart_stop_rx(struct uart_port *port) in altera_uart_stop_rx() 162 static void altera_uart_break_ctl(struct uart_port *port, int break_state) in altera_uart_break_ctl() [all …]
|
| D | vr41xx_siu.c | 48 static struct uart_port siu_uart_ports[SIU_PORTS_MAX] = { 64 struct uart_port *port; in vr41xx_select_siu_interface() 85 struct uart_port *port; in vr41xx_use_irda() 106 struct uart_port *port; in vr41xx_select_irda_module() 137 static inline void siu_clear_fifo(struct uart_port *port) in siu_clear_fifo() 145 static inline unsigned long siu_port_size(struct uart_port *port) in siu_port_size() 157 static inline unsigned int siu_check_type(struct uart_port *port) in siu_check_type() 167 static inline const char *siu_type_name(struct uart_port *port) in siu_type_name() 179 static unsigned int siu_tx_empty(struct uart_port *port) in siu_tx_empty() 190 static void siu_set_mctrl(struct uart_port *port, unsigned int mctrl) in siu_set_mctrl() [all …]
|
| D | lantiq.c | 100 static void lqasc_tx_chars(struct uart_port *port); 106 int (*request_irq)(struct uart_port *port); 107 void (*free_irq)(struct uart_port *port); 111 struct uart_port port; 133 ltq_uart_port *to_ltq_uart_port(struct uart_port *port) in to_ltq_uart_port() 139 lqasc_stop_tx(struct uart_port *port) in lqasc_stop_tx() 145 lqasc_start_tx(struct uart_port *port) in lqasc_start_tx() 157 lqasc_stop_rx(struct uart_port *port) in lqasc_stop_rx() 163 lqasc_rx_chars(struct uart_port *port) in lqasc_rx_chars() 225 lqasc_tx_chars(struct uart_port *port) in lqasc_tx_chars() [all …]
|
| D | mps2-uart.c | 72 struct uart_port port; 79 static inline struct mps2_uart_port *to_mps2_port(struct uart_port *port) in to_mps2_port() 84 static void mps2_uart_write8(struct uart_port *port, u8 val, unsigned int off) in mps2_uart_write8() 91 static u8 mps2_uart_read8(struct uart_port *port, unsigned int off) in mps2_uart_read8() 98 static void mps2_uart_write32(struct uart_port *port, u32 val, unsigned int off) in mps2_uart_write32() 105 static unsigned int mps2_uart_tx_empty(struct uart_port *port) in mps2_uart_tx_empty() 112 static void mps2_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in mps2_uart_set_mctrl() 116 static unsigned int mps2_uart_get_mctrl(struct uart_port *port) in mps2_uart_get_mctrl() 121 static void mps2_uart_stop_tx(struct uart_port *port) in mps2_uart_stop_tx() 130 static void mps2_uart_tx_chars(struct uart_port *port) in mps2_uart_tx_chars() [all …]
|
| D | digicolor-usart.c | 77 struct uart_port port; 81 static struct uart_port *digicolor_ports[DIGICOLOR_USART_NR]; 83 static bool digicolor_uart_tx_full(struct uart_port *port) in digicolor_uart_tx_full() 89 static bool digicolor_uart_rx_empty(struct uart_port *port) in digicolor_uart_rx_empty() 95 static void digicolor_uart_stop_tx(struct uart_port *port) in digicolor_uart_stop_tx() 103 static void digicolor_uart_start_tx(struct uart_port *port) in digicolor_uart_start_tx() 111 static void digicolor_uart_stop_rx(struct uart_port *port) in digicolor_uart_stop_rx() 132 static void digicolor_uart_rx(struct uart_port *port) in digicolor_uart_rx() 181 static void digicolor_uart_tx(struct uart_port *port) in digicolor_uart_tx() 221 struct uart_port *port = dev_id; in digicolor_uart_int() [all …]
|
| D | timbuart.c | 25 struct uart_port port; 35 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier); 39 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx() 46 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx() 53 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx() 62 static unsigned int timbuart_tx_empty(struct uart_port *port) in timbuart_tx_empty() 69 static void timbuart_flush_buffer(struct uart_port *port) in timbuart_flush_buffer() 80 static void timbuart_rx_chars(struct uart_port *port) in timbuart_rx_chars() 98 static void timbuart_tx_chars(struct uart_port *port) in timbuart_tx_chars() 119 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port() [all …]
|
| D | bcm63xx_uart.c | 35 static struct uart_port ports[BCM63XX_NR_UARTS]; 77 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() 83 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() 92 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() 103 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() 127 static unsigned int bcm_uart_get_mctrl(struct uart_port *port) in bcm_uart_get_mctrl() 147 static void bcm_uart_stop_tx(struct uart_port *port) in bcm_uart_stop_tx() 163 static void bcm_uart_start_tx(struct uart_port *port) in bcm_uart_start_tx() 179 static void bcm_uart_stop_rx(struct uart_port *port) in bcm_uart_stop_rx() 191 static void bcm_uart_enable_ms(struct uart_port *port) in bcm_uart_enable_ms() [all …]
|
| D | vt8500_serial.c | 100 struct uart_port uart; 115 static inline void vt8500_write(struct uart_port *port, unsigned int val, in vt8500_write() 121 static inline unsigned int vt8500_read(struct uart_port *port, unsigned int off) in vt8500_read() 126 static void vt8500_stop_tx(struct uart_port *port) in vt8500_stop_tx() 136 static void vt8500_stop_rx(struct uart_port *port) in vt8500_stop_rx() 146 static void vt8500_enable_ms(struct uart_port *port) in vt8500_enable_ms() 156 static void handle_rx(struct uart_port *port) in handle_rx() 196 static void handle_tx(struct uart_port *port) in handle_tx() 227 static void vt8500_start_tx(struct uart_port *port) in vt8500_start_tx() 240 static void handle_delta_cts(struct uart_port *port) in handle_delta_cts() [all …]
|
| D | sprd_serial.c | 126 struct uart_port port; 138 static int sprd_start_dma_rx(struct uart_port *port); 139 static int sprd_tx_dma_config(struct uart_port *port); 141 static inline unsigned int serial_in(struct uart_port *port, in serial_in() 147 static inline void serial_out(struct uart_port *port, unsigned int offset, in serial_out() 153 static unsigned int sprd_tx_empty(struct uart_port *port) in sprd_tx_empty() 161 static unsigned int sprd_get_mctrl(struct uart_port *port) in sprd_get_mctrl() 166 static void sprd_set_mctrl(struct uart_port *port, unsigned int mctrl) in sprd_set_mctrl() 178 static void sprd_stop_rx(struct uart_port *port) in sprd_stop_rx() 197 static void sprd_uart_dma_enable(struct uart_port *port, bool enable) in sprd_uart_dma_enable() [all …]
|
| D | meson_uart.c | 82 static struct uart_port *meson_ports[AML_UART_PORT_NUM]; 84 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl() 88 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl() 93 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty() 102 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx() 111 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx() 120 static void meson_uart_shutdown(struct uart_port *port) in meson_uart_shutdown() 137 static void meson_uart_start_tx(struct uart_port *port) in meson_uart_start_tx() 175 static void meson_receive_chars(struct uart_port *port) in meson_receive_chars() 237 struct uart_port *port = (struct uart_port *)dev_id; in meson_uart_interrupt() [all …]
|
| D | clps711x.c | 59 struct uart_port port; 75 static void uart_clps711x_stop_tx(struct uart_port *port) in uart_clps711x_stop_tx() 85 static void uart_clps711x_start_tx(struct uart_port *port) in uart_clps711x_start_tx() 97 struct uart_port *port = dev_id; in uart_clps711x_int_rx() 150 struct uart_port *port = dev_id; in uart_clps711x_int_tx() 187 static unsigned int uart_clps711x_tx_empty(struct uart_port *port) in uart_clps711x_tx_empty() 197 static unsigned int uart_clps711x_get_mctrl(struct uart_port *port) in uart_clps711x_get_mctrl() 205 static void uart_clps711x_set_mctrl(struct uart_port *port, unsigned int mctrl) in uart_clps711x_set_mctrl() 212 static void uart_clps711x_break_ctl(struct uart_port *port, int break_state) in uart_clps711x_break_ctl() 224 static void uart_clps711x_set_ldisc(struct uart_port *port, in uart_clps711x_set_ldisc() [all …]
|
| D | atmel_serial.c | 63 static void atmel_start_rx(struct uart_port *port); 64 static void atmel_stop_rx(struct uart_port *port); 117 struct uart_port uart; /* uart */ 188 int (*prepare_rx)(struct uart_port *port); 189 int (*prepare_tx)(struct uart_port *port); 190 void (*schedule_rx)(struct uart_port *port); 191 void (*schedule_tx)(struct uart_port *port); 192 void (*release_rx)(struct uart_port *port); 193 void (*release_tx)(struct uart_port *port); 211 to_atmel_uart_port(struct uart_port *uart) in to_atmel_uart_port() [all …]
|
| /Linux-v5.4/drivers/tty/serial/jsm/ |
| D | jsm_tty.c | 55 static unsigned int jsm_tty_tx_empty(struct uart_port *port) in jsm_tty_tx_empty() 63 static unsigned int jsm_tty_get_mctrl(struct uart_port *port) in jsm_tty_get_mctrl() 67 container_of(port, struct jsm_channel, uart_port); in jsm_tty_get_mctrl() 86 static void jsm_tty_set_mctrl(struct uart_port *port, unsigned int mctrl) in jsm_tty_set_mctrl() 89 container_of(port, struct jsm_channel, uart_port); in jsm_tty_set_mctrl() 115 static void jsm_tty_write(struct uart_port *port) in jsm_tty_write() 119 channel = container_of(port, struct jsm_channel, uart_port); in jsm_tty_write() 123 static void jsm_tty_start_tx(struct uart_port *port) in jsm_tty_start_tx() 126 container_of(port, struct jsm_channel, uart_port); in jsm_tty_start_tx() 136 static void jsm_tty_stop_tx(struct uart_port *port) in jsm_tty_stop_tx() [all …]
|
| /Linux-v5.4/arch/mips/ar7/ |
| D | platform.c | 552 static struct uart_port uart_port __initdata; in ar7_register_uarts() 556 memset(&uart_port, 0, sizeof(struct uart_port)); in ar7_register_uarts() 562 uart_port.type = PORT_AR7; in ar7_register_uarts() 563 uart_port.uartclk = clk_get_rate(bus_clk) / 2; in ar7_register_uarts() 564 uart_port.iotype = UPIO_MEM32; in ar7_register_uarts() 565 uart_port.flags = UPF_FIXED_TYPE | UPF_BOOT_AUTOCONF; in ar7_register_uarts() 566 uart_port.regshift = 2; in ar7_register_uarts() 568 uart_port.line = 0; in ar7_register_uarts() 569 uart_port.irq = AR7_IRQ_UART0; in ar7_register_uarts() 570 uart_port.mapbase = AR7_REGS_UART0; in ar7_register_uarts() [all …]
|