Home
last modified time | relevance | path

Searched refs:uart_port (Results 1 – 25 of 126) sorted by relevance

123456

/linux/include/linux/
H A Dserial_8250.h49 u32 (*serial_in)(struct uart_port *, unsigned int offset);
50 void (*serial_out)(struct uart_port *, unsigned int offset, u32 val);
53 void (*set_termios)(struct uart_port *,
56 void (*set_ldisc)(struct uart_port *,
58 unsigned int (*get_mctrl)(struct uart_port *);
59 int (*handle_irq)(struct uart_port *);
60 void (*pm)(struct uart_port *, unsigned int state,
62 void (*handle_break)(struct uart_port *);
125 struct uart_port port;
172 static inline struct uart_8250_port *up_to_u8250p(struct uart_port *up) in up_to_u8250p()
[all …]
/linux/drivers/tty/serial/
H A Dsh-sci-common.h38 void sci_release_port(struct uart_port *port);
39 int sci_request_port(struct uart_port *port);
40 void sci_config_port(struct uart_port *port, int flags);
41 int sci_verify_port(struct uart_port *port, struct serial_struct *ser);
42 void sci_pm(struct uart_port *port, unsigned int state,
77 u32 (*read_reg)(struct uart_port *port, int reg);
78 void (*write_reg)(struct uart_port *port, int reg, int value);
79 void (*clear_SCxSR)(struct uart_port *port, unsigned int mask);
81 void (*transmit_chars)(struct uart_port *port);
82 void (*receive_chars)(struct uart_port *port);
[all …]
H A Desp32_acm.c46 static struct uart_port *esp32s3_acm_ports[UART_NR];
48 static void esp32s3_acm_write(struct uart_port *port, unsigned long reg, u32 v) in esp32s3_acm_write()
53 static u32 esp32s3_acm_read(struct uart_port *port, unsigned long reg) in esp32s3_acm_read()
58 static u32 esp32s3_acm_tx_fifo_free(struct uart_port *port) in esp32s3_acm_tx_fifo_free()
65 static u32 esp32s3_acm_tx_fifo_cnt(struct uart_port *port) in esp32s3_acm_tx_fifo_cnt()
72 static u32 esp32s3_acm_rx_fifo_cnt(struct uart_port *port) in esp32s3_acm_rx_fifo_cnt()
80 static unsigned int esp32s3_acm_tx_empty(struct uart_port *port) in esp32s3_acm_tx_empty()
85 static void esp32s3_acm_set_mctrl(struct uart_port *port, unsigned int mctrl) in esp32s3_acm_set_mctrl()
89 static unsigned int esp32s3_acm_get_mctrl(struct uart_port *port) in esp32s3_acm_get_mctrl()
94 static void esp32s3_acm_stop_tx(struct uart_port *port) in esp32s3_acm_stop_tx()
[all …]
H A Dserial_base.h13 struct uart_port;
24 struct uart_port *port;
34 void serial_base_port_startup(struct uart_port *port);
35 void serial_base_port_shutdown(struct uart_port *port);
40 struct serial_ctrl_device *serial_base_ctrl_add(struct uart_port *port,
42 struct serial_port_device *serial_base_port_add(struct uart_port *port,
47 int serial_ctrl_register_port(struct uart_driver *drv, struct uart_port *port);
48 void serial_ctrl_unregister_port(struct uart_driver *drv, struct uart_port *port);
50 int serial_core_register_port(struct uart_driver *drv, struct uart_port *port);
51 void serial_core_unregister_port(struct uart_driver *drv, struct uart_port *port);
[all …]
H A Dsunhv.c42 static void transmit_chars_putchar(struct uart_port *port, in transmit_chars_putchar()
57 static void transmit_chars_write(struct uart_port *port, struct tty_port *tport) in transmit_chars_write()
74 static int receive_chars_getchar(struct uart_port *port) in receive_chars_getchar()
117 static int receive_chars_read(struct uart_port *port) in receive_chars_read()
173 void (*transmit_chars)(struct uart_port *port, struct tty_port *tport);
174 int (*receive_chars)(struct uart_port *port);
189 static struct tty_port *receive_chars(struct uart_port *port) in receive_chars()
202 static void transmit_chars(struct uart_port *port) in transmit_chars()
221 struct uart_port *port = dev_id; in sunhv_interrupt()
237 static unsigned int sunhv_tx_empty(struct uart_port *port) in sunhv_tx_empty()
[all …]
H A Dapbuart.c36 static void apbuart_tx_chars(struct uart_port *port);
38 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx()
47 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx()
59 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx()
68 static void apbuart_rx_chars(struct uart_port *port) in apbuart_rx_chars()
121 static void apbuart_tx_chars(struct uart_port *port) in apbuart_tx_chars()
133 struct uart_port *port = dev_id; in apbuart_int()
149 static unsigned int apbuart_tx_empty(struct uart_port *port) in apbuart_tx_empty()
155 static unsigned int apbuart_get_mctrl(struct uart_port *port) in apbuart_get_mctrl()
161 static void apbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) in apbuart_set_mctrl()
[all …]
H A D21285.c51 static bool is_enabled(struct uart_port *port, int bit) in is_enabled()
60 static void enable(struct uart_port *port, int bit) in enable()
67 static void disable(struct uart_port *port, int bit) in disable()
93 static void serial21285_stop_tx(struct uart_port *port) in serial21285_stop_tx()
101 static void serial21285_start_tx(struct uart_port *port) in serial21285_start_tx()
109 static void serial21285_stop_rx(struct uart_port *port) in serial21285_stop_rx()
119 struct uart_port *port = dev_id; in serial21285_rx_chars()
157 struct uart_port *port = dev_id; in serial21285_tx_chars()
168 static unsigned int serial21285_tx_empty(struct uart_port *port) in serial21285_tx_empty()
174 static unsigned int serial21285_get_mctrl(struct uart_port *port) in serial21285_get_mctrl()
[all …]
H A Dst-asc.c36 struct uart_port port;
146 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port()
151 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in()
160 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out()
173 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts()
180 static inline void asc_enable_tx_interrupts(struct uart_port *port) in asc_enable_tx_interrupts()
186 static inline void asc_disable_rx_interrupts(struct uart_port *port) in asc_disable_rx_interrupts()
193 static inline void asc_enable_rx_interrupts(struct uart_port *port) in asc_enable_rx_interrupts()
199 static inline u32 asc_txfifo_is_empty(struct uart_port *port) in asc_txfifo_is_empty()
204 static inline u32 asc_txfifo_is_half_empty(struct uart_port *port) in asc_txfifo_is_half_empty()
[all …]
H A Dserial_txx9.c159 static inline unsigned int sio_in(struct uart_port *up, int offset) in sio_in()
170 sio_out(struct uart_port *up, int offset, int value) in sio_out()
183 sio_mask(struct uart_port *up, int offset, unsigned int value) in sio_mask()
188 sio_set(struct uart_port *up, int offset, unsigned int value) in sio_set()
194 sio_quot_set(struct uart_port *up, int quot) in sio_quot_set()
209 static void serial_txx9_stop_tx(struct uart_port *up) in serial_txx9_stop_tx()
214 static void serial_txx9_start_tx(struct uart_port *up) in serial_txx9_start_tx()
219 static void serial_txx9_stop_rx(struct uart_port *up) in serial_txx9_stop_rx()
224 static void serial_txx9_initialize(struct uart_port *up) in serial_txx9_initialize()
248 receive_chars(struct uart_port *up, unsigned int *status) in receive_chars()
[all …]
H A Dmux.c47 struct uart_port port;
104 static unsigned int mux_tx_empty(struct uart_port *port) in mux_tx_empty()
117 static void mux_set_mctrl(struct uart_port *port, unsigned int mctrl) in mux_set_mctrl()
128 static unsigned int mux_get_mctrl(struct uart_port *port) in mux_get_mctrl()
139 static void mux_stop_tx(struct uart_port *port) in mux_stop_tx()
149 static void mux_start_tx(struct uart_port *port) in mux_start_tx()
159 static void mux_stop_rx(struct uart_port *port) in mux_stop_rx()
170 static void mux_break_ctl(struct uart_port *port, int break_state) in mux_break_ctl()
174 static void mux_tx_done(struct uart_port *port) in mux_tx_done()
188 static void mux_write(struct uart_port *port) in mux_write()
[all …]
H A Dliteuart.c46 struct uart_port port;
71 static void liteuart_update_irq_reg(struct uart_port *port, bool set, u8 mask) in liteuart_update_irq_reg()
84 static void liteuart_stop_tx(struct uart_port *port) in liteuart_stop_tx()
89 static void liteuart_start_tx(struct uart_port *port) in liteuart_start_tx()
94 static void liteuart_stop_rx(struct uart_port *port) in liteuart_stop_rx()
102 static void liteuart_rx_chars(struct uart_port *port) in liteuart_rx_chars()
122 static void liteuart_tx_chars(struct uart_port *port) in liteuart_tx_chars()
134 struct uart_port *port = &uart->port; in liteuart_interrupt()
156 struct uart_port *port = &uart->port; in liteuart_timer()
162 static unsigned int liteuart_tx_empty(struct uart_port *port) in liteuart_tx_empty()
[all …]
H A Duartlite.c66 static struct uart_port *console_port;
118 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32()
125 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32()
132 static struct uart_port ulite_ports[ULITE_NR_UARTS];
140 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive()
190 static int ulite_transmit(struct uart_port *port, int stat) in ulite_transmit()
222 struct uart_port *port = dev_id; in ulite_isr()
244 static unsigned int ulite_tx_empty(struct uart_port *port) in ulite_tx_empty()
256 static unsigned int ulite_get_mctrl(struct uart_port *port) in ulite_get_mctrl()
261 static void ulite_set_mctrl(struct uart_port *port, unsigned int mctrl) in ulite_set_mctrl()
[all …]
H A Daltera_uart.c77 struct uart_port port;
83 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl()
88 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel()
93 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty()
99 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl()
125 static void altera_uart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_uart_set_mctrl()
137 static void altera_uart_start_tx(struct uart_port *port) in altera_uart_start_tx()
145 static void altera_uart_stop_tx(struct uart_port *port) in altera_uart_stop_tx()
153 static void altera_uart_stop_rx(struct uart_port *port) in altera_uart_stop_rx()
161 static void altera_uart_break_ctl(struct uart_port *port, int break_state) in altera_uart_break_ctl()
[all …]
H A Dlantiq.c104 int (*request_irq)(struct uart_port *port);
105 void (*free_irq)(struct uart_port *port);
109 struct uart_port port;
131 ltq_uart_port *to_ltq_uart_port(struct uart_port *port) in to_ltq_uart_port()
137 lqasc_stop_tx(struct uart_port *port) in lqasc_stop_tx()
142 static bool lqasc_tx_ready(struct uart_port *port) in lqasc_tx_ready()
150 lqasc_start_tx(struct uart_port *port) in lqasc_start_tx()
165 lqasc_stop_rx(struct uart_port *port) in lqasc_stop_rx()
171 lqasc_rx_chars(struct uart_port *port) in lqasc_rx_chars()
236 struct uart_port *port = (struct uart_port *)_port; in lqasc_tx_int()
[all …]
H A Drsci.c124 static u32 rsci_serial_in(struct uart_port *p, int offset) in rsci_serial_in()
129 static void rsci_serial_out(struct uart_port *p, int offset, int value) in rsci_serial_out()
134 static void rsci_clear_DRxC(struct uart_port *port) in rsci_clear_DRxC()
140 static void rsci_clear_SCxSR(struct uart_port *port, unsigned int mask) in rsci_clear_SCxSR()
145 static void rsci_start_rx(struct uart_port *port) in rsci_start_rx()
154 static void rsci_set_termios(struct uart_port *port, struct ktermios *termios, in rsci_set_termios()
171 static int rsci_txfill(struct uart_port *port) in rsci_txfill()
176 static int rsci_rxfill(struct uart_port *port) in rsci_rxfill()
183 static unsigned int rsci_tx_empty(struct uart_port *port) in rsci_tx_empty()
191 static void rsci_set_mctrl(struct uart_port *port, unsigned int mctrl) in rsci_set_mctrl()
[all …]
H A Dmps2-uart.c71 struct uart_port port;
78 static inline struct mps2_uart_port *to_mps2_port(struct uart_port *port) in to_mps2_port()
83 static void mps2_uart_write8(struct uart_port *port, u8 val, unsigned int off) in mps2_uart_write8()
90 static u8 mps2_uart_read8(struct uart_port *port, unsigned int off) in mps2_uart_read8()
97 static void mps2_uart_write32(struct uart_port *port, u32 val, unsigned int off) in mps2_uart_write32()
104 static unsigned int mps2_uart_tx_empty(struct uart_port *port) in mps2_uart_tx_empty()
111 static void mps2_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in mps2_uart_set_mctrl()
115 static unsigned int mps2_uart_get_mctrl(struct uart_port *port) in mps2_uart_get_mctrl()
120 static void mps2_uart_stop_tx(struct uart_port *port) in mps2_uart_stop_tx()
129 static void mps2_uart_tx_chars(struct uart_port *port) in mps2_uart_tx_chars()
[all …]
H A Dbcm63xx_uart.c31 static struct uart_port ports[BCM63XX_NR_UARTS];
73 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl()
79 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel()
88 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty()
99 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl()
123 static unsigned int bcm_uart_get_mctrl(struct uart_port *port) in bcm_uart_get_mctrl()
143 static void bcm_uart_stop_tx(struct uart_port *port) in bcm_uart_stop_tx()
159 static void bcm_uart_start_tx(struct uart_port *port) in bcm_uart_start_tx()
175 static void bcm_uart_stop_rx(struct uart_port *port) in bcm_uart_stop_rx()
187 static void bcm_uart_enable_ms(struct uart_port *port) in bcm_uart_enable_ms()
[all …]
H A Desp32_uart.c93 struct uart_port port;
139 static const struct esp32_uart_variant *port_variant(struct uart_port *port) in port_variant()
144 static void esp32_uart_write(struct uart_port *port, unsigned long reg, u32 v) in esp32_uart_write()
149 static u32 esp32_uart_read(struct uart_port *port, unsigned long reg) in esp32_uart_read()
154 static u32 esp32_uart_tx_fifo_cnt(struct uart_port *port) in esp32_uart_tx_fifo_cnt()
161 static u32 esp32_uart_rx_fifo_cnt(struct uart_port *port) in esp32_uart_rx_fifo_cnt()
169 static unsigned int esp32_uart_tx_empty(struct uart_port *port) in esp32_uart_tx_empty()
174 static void esp32_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in esp32_uart_set_mctrl()
192 static unsigned int esp32_uart_get_mctrl(struct uart_port *port) in esp32_uart_get_mctrl()
205 static void esp32_uart_stop_tx(struct uart_port *port) in esp32_uart_stop_tx()
[all …]
H A Dsprd_serial.c131 struct uart_port port;
144 static int sprd_start_dma_rx(struct uart_port *port);
145 static int sprd_tx_dma_config(struct uart_port *port);
159 static inline unsigned int serial_in(struct uart_port *port, in serial_in()
165 static inline void serial_out(struct uart_port *port, unsigned int offset, in serial_out()
171 static unsigned int sprd_tx_empty(struct uart_port *port) in sprd_tx_empty()
179 static unsigned int sprd_get_mctrl(struct uart_port *port) in sprd_get_mctrl()
184 static void sprd_set_mctrl(struct uart_port *port, unsigned int mctrl) in sprd_set_mctrl()
196 static void sprd_stop_rx(struct uart_port *port) in sprd_stop_rx()
215 static void sprd_uart_dma_enable(struct uart_port *port, bool enable) in sprd_uart_dma_enable()
[all …]
H A Dvt8500_serial.c96 struct uart_port uart;
111 static inline void vt8500_write(struct uart_port *port, unsigned int val, in vt8500_write()
117 static inline unsigned int vt8500_read(struct uart_port *port, unsigned int off) in vt8500_read()
122 static void vt8500_stop_tx(struct uart_port *port) in vt8500_stop_tx()
132 static void vt8500_stop_rx(struct uart_port *port) in vt8500_stop_rx()
142 static void vt8500_enable_ms(struct uart_port *port) in vt8500_enable_ms()
152 static void handle_rx(struct uart_port *port) in handle_rx()
190 static unsigned int vt8500_tx_empty(struct uart_port *port) in vt8500_tx_empty()
197 static void handle_tx(struct uart_port *port) in handle_tx()
206 static void vt8500_start_tx(struct uart_port *port) in vt8500_start_tx()
[all …]
H A Ddigicolor-usart.c77 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()
180 static void digicolor_uart_tx(struct uart_port *port) in digicolor_uart_tx()
219 struct uart_port *port = dev_id; in digicolor_uart_int()
[all …]
H A Dtimbuart.c25 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()
96 static void timbuart_tx_chars(struct uart_port *port) in timbuart_tx_chars()
113 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port()
[all …]
H A Dqcom_geni_serial.c112 int (*resources_init)(struct uart_port *uport);
113 int (*set_rate)(struct uart_port *uport, unsigned int baud);
114 int (*power_state)(struct uart_port *uport, bool state);
129 struct uart_port uport;
160 static void __qcom_geni_serial_cancel_tx_cmd(struct uart_port *uport);
161 static void qcom_geni_serial_cancel_tx_cmd(struct uart_port *uport);
162 static int qcom_geni_serial_port_setup(struct uart_port *uport);
164 static inline struct qcom_geni_serial_port *to_dev_port(struct uart_port *uport) in to_dev_port()
190 static void qcom_geni_set_rs485_mode(struct uart_port *uport, u32 flag) in qcom_geni_set_rs485_mode()
205 static int qcom_geni_serial_request_port(struct uart_port *uport) in qcom_geni_serial_request_port()
[all …]
H A Dserial_core.c60 static int uart_dcd_enabled(struct uart_port *uport) in uart_dcd_enabled()
65 static inline struct uart_port *uart_port_ref(struct uart_state *state) in uart_port_ref()
68 return state->uart_port; in uart_port_ref()
72 static inline void uart_port_deref(struct uart_port *uport) in uart_port_deref()
78 static inline struct uart_port *uart_port_ref_lock(struct uart_state *state, unsigned long *flags) in uart_port_ref_lock()
80 struct uart_port *uport = uart_port_ref(state); in uart_port_ref_lock()
88 static inline void uart_port_unlock_deref(struct uart_port *uport, unsigned long flags) in uart_port_unlock_deref()
96 static inline struct uart_port *uart_port_check(struct uart_state *state) in uart_port_check()
99 return state->uart_port; in uart_port_check()
113 void uart_write_wakeup(struct uart_port *port) in uart_write_wakeup()
[all …]
/linux/drivers/tty/serial/jsm/
H A Djsm_tty.c55 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 …]

123456