Home
last modified time | relevance | path

Searched refs:uart_8250_port (Results 1 – 25 of 45) sorted by relevance

12

/linux/drivers/tty/serial/8250/
H A D8250.h18 int (*tx_dma)(struct uart_8250_port *p);
19 int (*rx_dma)(struct uart_8250_port *p);
20 void (*prepare_tx_dma)(struct uart_8250_port *p);
21 void (*prepare_rx_dma)(struct uart_8250_port *p);
126 static inline int serial_in(struct uart_8250_port *up, int offset) in serial_in()
131 static inline void serial_out(struct uart_8250_port *up, int offset, int value) in serial_out()
146 static inline u16 serial_lsr_in(struct uart_8250_port *up) in serial_lsr_in()
159 static void serial_icr_write(struct uart_8250_port *up, int offset, int value) in serial_icr_write()
165 static unsigned int __maybe_unused serial_icr_read(struct uart_8250_port *up, in serial_icr_read()
178 void serial8250_clear_fifos(struct uart_8250_port *p);
[all …]
H A D8250_port.c317 static u32 default_serial_dl_read(struct uart_8250_port *up) in default_serial_dl_read()
327 static void default_serial_dl_write(struct uart_8250_port *up, u32 value) in default_serial_dl_write()
423 struct uart_8250_port *up = up_to_u8250p(p); in set_io_from_upio()
492 void serial8250_clear_fifos(struct uart_8250_port *p) in serial8250_clear_fifos()
506 void serial8250_clear_and_reinit_fifos(struct uart_8250_port *p) in serial8250_clear_and_reinit_fifos()
513 void serial8250_rpm_get(struct uart_8250_port *p) in serial8250_rpm_get()
521 void serial8250_rpm_put(struct uart_8250_port *p) in serial8250_rpm_put()
550 static int serial8250_em485_init(struct uart_8250_port *p) in serial8250_em485_init()
590 void serial8250_em485_destroy(struct uart_8250_port *p) in serial8250_em485_destroy()
624 struct uart_8250_port *up = up_to_u8250p(port); in serial8250_em485_config()
[all …]
H A D8250_rsa.c19 static int rsa8250_request_resource(struct uart_8250_port *up) in rsa8250_request_resource()
37 static void rsa8250_release_resource(struct uart_8250_port *up) in rsa8250_release_resource()
55 struct uart_8250_port *up = up_to_u8250p(port); in univ8250_config_port()
80 struct uart_8250_port *up = up_to_u8250p(port); in univ8250_request_port()
95 struct uart_8250_port *up = up_to_u8250p(port); in univ8250_release_port()
126 static int __rsa_enable(struct uart_8250_port *up) in __rsa_enable()
149 void rsa_enable(struct uart_8250_port *up) in rsa_enable()
167 void rsa_disable(struct uart_8250_port *up) in rsa_disable()
193 void rsa_autoconfig(struct uart_8250_port *up) in rsa_autoconfig()
205 void rsa_reset(struct uart_8250_port *up) in rsa_reset()
H A D8250_core.c83 struct uart_8250_port *up = list_entry(l, struct uart_8250_port, list); in serial8250_interrupt()
108 static void serial_do_unlink(struct irq_info *i, struct uart_8250_port *up) in serial_do_unlink()
133 static struct irq_info *serial_get_or_create_irq_info(const struct uart_8250_port *up) in serial_get_or_create_irq_info()
154 static int serial_link_irq_chain(struct uart_8250_port *up) in serial_link_irq_chain()
181 static void serial_unlink_irq_chain(struct uart_8250_port *up) in serial_unlink_irq_chain()
211 struct uart_8250_port *up = timer_container_of(up, t, timer); in serial8250_timeout()
219 struct uart_8250_port *up = timer_container_of(up, t, timer); in serial8250_backup_timeout()
264 static void univ8250_setup_timer(struct uart_8250_port *up) in univ8250_setup_timer()
289 static int univ8250_setup_irq(struct uart_8250_port *up) in univ8250_setup_irq()
299 static void univ8250_release_irq(struct uart_8250_port *up) in univ8250_release_irq()
[all …]
H A D8250_omap.c169 static void omap_8250_rx_dma_flush(struct uart_8250_port *p);
171 static inline void omap_8250_rx_dma_flush(struct uart_8250_port *p) { } in omap_8250_rx_dma_flush()
185 struct uart_8250_port *up = up_to_u8250p(port); in __omap8250_set_mctrl()
230 static void omap_8250_mdr1_errataset(struct uart_8250_port *up, in omap_8250_mdr1_errataset()
266 static void omap8250_update_scr(struct uart_8250_port *up, in omap8250_update_scr()
286 static void omap8250_update_mdr1(struct uart_8250_port *up, in omap8250_update_mdr1()
295 static void omap8250_restore_regs(struct uart_8250_port *up) in omap8250_restore_regs()
366 struct uart_8250_port *up = up_to_u8250p(port); in omap_8250_set_termios_atomic()
533 struct uart_8250_port *up = up_to_u8250p(port); in omap_8250_pm()
551 static void omap_serial_fill_features_erratas(struct uart_8250_port *up, in omap_serial_fill_features_erratas()
[all …]
H A D8250_aspeed_vuart.c39 struct uart_8250_port *port;
249 struct uart_8250_port *uart_8250_port = up_to_u8250p(uart_port); in aspeed_vuart_startup() local
250 struct aspeed_vuart *vuart = uart_8250_port->port.private_data; in aspeed_vuart_startup()
264 struct uart_8250_port *uart_8250_port = up_to_u8250p(uart_port); in aspeed_vuart_shutdown() local
265 struct aspeed_vuart *vuart = uart_8250_port->port.private_data; in aspeed_vuart_shutdown()
272 static void __aspeed_vuart_set_throttle(struct uart_8250_port *up, in __aspeed_vuart_set_throttle()
287 struct uart_8250_port *up = up_to_u8250p(port); in aspeed_vuart_set_throttle()
309 struct uart_8250_port *up = vuart->port; in aspeed_vuart_unthrottle_exp()
333 struct uart_8250_port *up = up_to_u8250p(port); in aspeed_vuart_handle_irq()
419 struct uart_8250_port port; in aspeed_vuart_probe()
H A D8250_dma.c16 struct uart_8250_port *p = param; in __dma_tx_complete()
41 static void __dma_rx_complete(struct uart_8250_port *p) in __dma_rx_complete()
69 struct uart_8250_port *p = param; in dma_rx_complete()
86 int serial8250_tx_dma(struct uart_8250_port *p) in serial8250_tx_dma()
152 void serial8250_tx_dma_flush(struct uart_8250_port *p) in serial8250_tx_dma_flush()
183 int serial8250_rx_dma(struct uart_8250_port *p) in serial8250_rx_dma()
210 void serial8250_rx_dma_flush(struct uart_8250_port *p) in serial8250_rx_dma_flush()
222 int serial8250_request_dma(struct uart_8250_port *p) in serial8250_request_dma()
318 void serial8250_release_dma(struct uart_8250_port *p) in serial8250_release_dma()
H A D8250_mtk.c89 static void mtk8250_rx_dma(struct uart_8250_port *up);
93 struct uart_8250_port *up = param; in mtk8250_dma_rx_complete()
134 static void mtk8250_rx_dma(struct uart_8250_port *up) in mtk8250_rx_dma()
155 static void mtk8250_dma_enable(struct uart_8250_port *up) in mtk8250_dma_enable()
193 struct uart_8250_port *up = up_to_u8250p(port); in mtk8250_startup()
212 struct uart_8250_port *up = up_to_u8250p(port); in mtk8250_shutdown()
227 static void mtk8250_disable_intrs(struct uart_8250_port *up, int mask) in mtk8250_disable_intrs()
235 static void mtk8250_enable_intrs(struct uart_8250_port *up, int mask) in mtk8250_enable_intrs()
243 static void mtk8250_set_flow_ctrl(struct uart_8250_port *up, int mode) in mtk8250_set_flow_ctrl()
315 struct uart_8250_port *up = up_to_u8250p(port); in mtk8250_set_termios()
[all …]
H A D8250_ni.c109 struct uart_8250_port *up = container_of(port, struct uart_8250_port, port); in ni16550_rs485_config()
133 static bool is_pmr_rs232_mode(struct uart_8250_port *up) in is_pmr_rs232_mode()
159 static void ni16550_config_prescaler(struct uart_8250_port *up, in ni16550_config_prescaler()
258 static u8 ni16550_read_fifo_size(struct uart_8250_port *uart, int reg) in ni16550_read_fifo_size()
270 struct uart_8250_port *up = up_to_u8250p(port); in ni16550_set_mctrl()
278 struct uart_8250_port *uart __free(kfree) = NULL; in ni16550_probe()
H A D8250_exar.c234 int (*register_gpio)(struct pci_dev *pcidev, struct uart_8250_port *port);
235 void (*unregister_gpio)(struct uart_8250_port *port);
249 struct uart_8250_port *port, int idx);
482 struct uart_8250_port *up = up_to_u8250p(port); in exar_shutdown()
502 struct uart_8250_port *port) in default_setup()
539 struct uart_8250_port *port, int idx) in pci_fastcom335_setup()
829 struct uart_8250_port *port) in cti_port_setup_common()
873 struct uart_8250_port *port, in cti_port_setup_fpga()
912 struct uart_8250_port *port, in cti_port_setup_xr17v35x()
977 struct uart_8250_port *port, in cti_port_setup_xr17v25x()
[all …]
H A D8250_uniphier.c148 static u32 uniphier_serial_dl_read(struct uart_8250_port *up) in uniphier_serial_dl_read()
153 static void uniphier_serial_dl_write(struct uart_8250_port *up, u32 value) in uniphier_serial_dl_write()
161 struct uart_8250_port up; in uniphier_uart_probe()
246 struct uart_8250_port *up = serial8250_get_port(priv->line); in uniphier_uart_suspend()
259 struct uart_8250_port *up = serial8250_get_port(priv->line); in uniphier_uart_resume()
H A D8250_platform.c79 struct uart_8250_port *up = serial8250_get_port(i); in __serial8250_isa_init_ports()
114 struct uart_8250_port *uart __free(kfree) = kzalloc_obj(*uart); in serial8250_probe_acpi()
159 struct uart_8250_port *uart __free(kfree) = kzalloc_obj(*uart); in serial8250_probe_platform()
238 struct uart_8250_port *up = serial8250_get_port(i); in serial8250_remove()
250 struct uart_8250_port *up = serial8250_get_port(i); in serial8250_suspend()
264 struct uart_8250_port *up = serial8250_get_port(i); in serial8250_resume()
H A D8250_rt288x.c55 static u32 au_serial_dl_read(struct uart_8250_port *up) in au_serial_dl_read()
60 static void au_serial_dl_write(struct uart_8250_port *up, u32 value) in au_serial_dl_write()
84 struct uart_8250_port *up = up_to_u8250p(p); in rt288x_setup()
H A D8250_pcilib.h12 struct uart_8250_port;
14 int serial8250_pci_setup_port(struct pci_dev *dev, struct uart_8250_port *port, u8 bar,
H A D8250_dw.c131 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_idle_exit()
159 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_idle_enter()
217 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_set_divisor()
294 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_tx_wait_empty()
406 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_quirk_ier_kick()
423 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_handle_irq()
490 struct uart_8250_port *up; in dw8250_clk_work_cb()
565 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_set_ldisc()
619 static void dw8250_prepare_tx_dma(struct uart_8250_port *p) in dw8250_prepare_tx_dma()
632 static void dw8250_prepare_rx_dma(struct uart_8250_port *p) in dw8250_prepare_rx_dma()
[all …]
H A D8250_bcm7271.c366 static void start_rx_dma(struct uart_8250_port *p) in start_rx_dma()
387 static void stop_rx_dma(struct uart_8250_port *p) in stop_rx_dma()
396 static int stop_tx_dma(struct uart_8250_port *p) in stop_tx_dma()
413 static int brcmuart_tx_dma(struct uart_8250_port *p) in brcmuart_tx_dma()
540 struct uart_8250_port *port_8250 = up_to_u8250p(up); in brcmuart_tx_isr()
588 struct uart_8250_port *up = up_to_u8250p(port); in brcmuart_startup()
625 struct uart_8250_port *up = up_to_u8250p(port); in brcmuart_shutdown()
778 struct uart_8250_port *p8250 = up_to_u8250p(up); in brcmstb_set_termios()
795 struct uart_8250_port *up = up_to_u8250p(p); in brcmuart_handle_irq()
843 struct uart_8250_port *up = up_to_u8250p(p); in brcmuart_hrtimer_func()
[all …]
H A D8250_of.c73 struct uart_8250_port *port8250 = serial8250_get_port(info->line); in of_platform_serial_clk_notifier_cb()
88 int type, struct uart_8250_port *up, in of_platform_serial_setup()
204 struct uart_8250_port port8250; in of_platform_serial_probe()
296 struct uart_8250_port *port8250 = serial8250_get_port(info->line); in of_serial_suspend()
312 struct uart_8250_port *port8250 = serial8250_get_port(info->line); in of_serial_resume()
H A D8250_keba.c78 static void kuart_enhanced_mode(struct uart_8250_port *up, bool enable) in kuart_enhanced_mode()
100 static void kuart_dtr_line_config(struct uart_8250_port *up, u8 dtrlc) in kuart_dtr_line_config()
117 struct uart_8250_port *up = up_to_u8250p(port); in kuart_rs485_config()
175 struct uart_8250_port uart = {}; in kuart_probe()
H A D8250_bcm2835aux.c49 static void bcm2835aux_rs485_start_tx(struct uart_8250_port *up, bool toggle_ier) in bcm2835aux_rs485_start_tx()
68 static void bcm2835aux_rs485_stop_tx(struct uart_8250_port *up, bool toggle_ier) in bcm2835aux_rs485_stop_tx()
86 struct uart_8250_port up = { }; in bcm2835aux_serial_probe()
220 struct uart_8250_port *up = serial8250_get_port(data->line); in bcm2835aux_can_disable_clock()
H A D8250_loongson.c100 struct uart_8250_port *up = up_to_u8250p(port); in loongson_frac_set_divisor()
110 struct uart_8250_port uart = {}; in loongson_uart_probe()
187 struct uart_8250_port *up = serial8250_get_port(priv->line); in loongson_uart_suspend()
200 struct uart_8250_port *up = serial8250_get_port(priv->line); in loongson_uart_resume()
H A D8250_tegra.c45 struct uart_8250_port port8250; in tegra_uart_probe()
136 struct uart_8250_port *port8250 = serial8250_get_port(uart->line); in tegra_uart_suspend()
150 struct uart_8250_port *port8250 = serial8250_get_port(uart->line); in tegra_uart_resume()
H A D8250_pci.c122 struct uart_8250_port *, int);
160 const struct pciserial_board*, struct uart_8250_port *, int);
174 setup_port(struct serial_private *priv, struct uart_8250_port *port, in setup_port()
193 struct uart_8250_port *port, int idx) in addidata_apci7800_setup()
220 struct uart_8250_port *port, int idx) in afavlab_setup()
275 struct uart_8250_port *port, int idx) in pci_hp_diva_setup()
444 struct uart_8250_port *port, int idx) in sbs_setup()
599 struct uart_8250_port *port, int idx) in pci_siig_setup()
692 struct uart_8250_port *port, int idx) in pci_timedia_setup()
726 struct uart_8250_port *port, int idx) in titan_400l_800l_setup()
[all …]
H A D8250_mid.c83 struct uart_8250_port *up = up_to_u8250p(p); in tng_handle_irq()
139 struct uart_8250_port *up = up_to_u8250p(p); in dnv_handle_irq()
253 static int mid8250_dma_setup(struct mid8250 *mid, struct uart_8250_port *port) in mid8250_dma_setup()
290 struct uart_8250_port uart; in mid8250_probe()
304 memset(&uart, 0, sizeof(struct uart_8250_port)); in mid8250_probe()
H A D8250_lpss.c167 struct uart_8250_port *up = up_to_u8250p(port); in ehl_serial_setup()
186 struct uart_8250_port *up = serial8250_get_port(lpss->data.line); in ehl_serial_exit()
276 static int lpss8250_dma_setup(struct lpss8250 *lpss, struct uart_8250_port *port) in lpss8250_dma_setup()
313 struct uart_8250_port uart; in lpss8250_probe()
333 memset(&uart, 0, sizeof(struct uart_8250_port)); in lpss8250_probe()
/linux/include/linux/
H A Dserial_8250.h15 struct uart_8250_port;
51 u32 (*dl_read)(struct uart_8250_port *up);
52 void (*dl_write)(struct uart_8250_port *up, u32 value);
84 struct uart_8250_port;
95 int (*setup_irq)(struct uart_8250_port *);
96 void (*release_irq)(struct uart_8250_port *);
97 void (*setup_timer)(struct uart_8250_port *);
104 struct uart_8250_port *port; /* for hrtimer callbacks */
124 struct uart_8250_port { struct
160 u32 (*dl_read)(struct uart_8250_port *up); argument
[all …]

12