/linux-master/drivers/tty/serial/ |
H A D | samsung_tty.c | 91 /* uart port features */ 148 struct uart_port port; member in struct:s3c24xx_uart_port 165 #define portaddr(port, reg) ((port)->membase + (reg)) 166 #define portaddrl(port, reg) \ 167 ((unsigned long *)(unsigned long)((port)->membase + (reg))) 169 static u32 rd_reg(const struct uart_port *port, u32 reg) argument 171 switch (port->iotype) { 173 return readb_relaxed(portaddr(port, reg)); 175 return readl_relaxed(portaddr(port, re 184 wr_reg(const struct uart_port *port, u32 reg, u32 val) argument 200 s3c24xx_set_bit(const struct uart_port *port, int idx, u32 reg) argument 213 s3c24xx_clear_bit(const struct uart_port *port, int idx, u32 reg) argument 226 to_ourport(struct uart_port *port) argument 233 s3c24xx_serial_portname(const struct uart_port *port) argument 238 s3c24xx_serial_txempty_nofifo(const struct uart_port *port) argument 243 s3c24xx_serial_rx_enable(struct uart_port *port) argument 267 s3c24xx_serial_rx_disable(struct uart_port *port) argument 283 s3c24xx_serial_stop_tx(struct uart_port *port) argument 331 struct uart_port *port = &ourport->port; local 360 const struct uart_port *port = &ourport->port; local 388 const struct uart_port *port = &ourport->port; local 436 struct uart_port *port = &ourport->port; local 470 struct uart_port *port = &ourport->port; local 490 s3c24xx_serial_start_tx(struct uart_port *port) argument 535 s3c24xx_serial_stop_rx(struct uart_port *port) argument 575 s3c24xx_port_to_info(struct uart_port *port) argument 581 s3c24xx_port_to_cfg(const struct uart_port *port) argument 607 struct uart_port *port = &ourport->port; local 664 struct uart_port *port = &ourport->port; local 687 struct uart_port *port = &ourport->port; local 714 struct uart_port *port = &ourport->port; local 761 struct uart_port *port = &ourport->port; local 850 struct uart_port *port = &ourport->port; local 870 struct uart_port *port = &ourport->port; local 933 struct uart_port *port = &ourport->port; local 947 const struct uart_port *port = &ourport->port; local 966 const struct uart_port *port = &ourport->port; local 983 s3c24xx_serial_tx_empty(struct uart_port *port) argument 1000 s3c24xx_serial_get_mctrl(struct uart_port *port) argument 1010 s3c24xx_serial_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 1030 s3c24xx_serial_break_ctl(struct uart_port *port, int break_state) argument 1168 s3c64xx_serial_shutdown(struct uart_port *port) argument 1187 apple_s5l_serial_shutdown(struct uart_port *port) argument 1213 s3c64xx_serial_startup(struct uart_port *port) argument 1258 apple_s5l_serial_startup(struct uart_port *port) argument 1297 s3c24xx_serial_pm(struct uart_port *port, unsigned int level, unsigned int old) argument 1342 s3c24xx_serial_getsource(struct uart_port *port) argument 1355 s3c24xx_serial_setsource(struct uart_port *port, u8 clk_sel) argument 1467 s3c24xx_serial_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 1622 s3c24xx_serial_type(struct uart_port *port) argument 1636 s3c24xx_serial_config_port(struct uart_port *port, int flags) argument 1648 s3c24xx_serial_verify_port(struct uart_port *port, struct serial_struct *ser) argument 1742 struct uart_port *port = &s3c24xx_serial_ports[index].port; local 1757 s3c24xx_serial_resetport(struct uart_port *port, const struct s3c2410_uartcfg *cfg) argument 1817 struct uart_port *port = &ourport->port; local 2063 struct uart_port *port = s3c24xx_dev_to_port(&dev->dev); local 2075 struct uart_port *port = s3c24xx_dev_to_port(dev); local 2085 struct uart_port *port = s3c24xx_dev_to_port(dev); local 2105 struct uart_port *port = s3c24xx_dev_to_port(dev); local 2190 s3c24xx_serial_console_txrdy(struct uart_port *port, u32 ufcon) argument 2221 s3c24xx_serial_get_poll_char(struct uart_port *port) argument 2233 s3c24xx_serial_put_poll_char(struct uart_port *port, unsigned char c) argument 2251 s3c24xx_serial_console_putchar(struct uart_port *port, unsigned char ch) argument 2287 s3c24xx_serial_get_options(struct uart_port *port, int *baud, int *parity, int *bits) argument 2351 struct uart_port *port; local 2690 wr_reg_barrier(const struct uart_port *port, u32 reg, u32 val) argument 2707 samsung_early_busyuart(const struct uart_port *port) argument 2713 samsung_early_busyuart_fifo(const struct uart_port *port) argument 2721 samsung_early_putc(struct uart_port *port, unsigned char c) argument [all...] |
H A D | uartlite.c | 64 /* Static pointer to console port */ 118 static inline u32 uart_in32(u32 offset, struct uart_port *port) argument 120 struct uartlite_data *pdata = port->private_data; 122 return pdata->reg_ops->in(port->membase + offset); 125 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) argument 127 struct uartlite_data *pdata = port->private_data; 129 pdata->reg_ops->out(val, port->membase + offset); 140 static int ulite_receive(struct uart_port *port, int stat) argument 142 struct tty_port *tport = &port->state->port; 190 ulite_transmit(struct uart_port *port, int stat) argument 219 struct uart_port *port = dev_id; local 241 ulite_tx_empty(struct uart_port *port) argument 253 ulite_get_mctrl(struct uart_port *port) argument 258 ulite_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 263 ulite_stop_tx(struct uart_port *port) argument 268 ulite_start_tx(struct uart_port *port) argument 273 ulite_stop_rx(struct uart_port *port) argument 280 ulite_break_ctl(struct uart_port *port, int ctl) argument 285 ulite_startup(struct uart_port *port) argument 308 ulite_shutdown(struct uart_port *port) argument 318 ulite_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 357 ulite_type(struct uart_port *port) argument 362 ulite_release_port(struct uart_port *port) argument 369 ulite_request_port(struct uart_port *port) argument 400 ulite_config_port(struct uart_port *port, int flags) argument 406 ulite_verify_port(struct uart_port *port, struct serial_struct *ser) argument 412 ulite_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) argument 428 ulite_get_poll_char(struct uart_port *port) argument 436 ulite_put_poll_char(struct uart_port *port, unsigned char ch) argument 474 ulite_console_wait_tx(struct uart_port *port) argument 488 ulite_console_putchar(struct uart_port *port, unsigned char ch) argument 497 struct uart_port *port = console_port; local 525 struct uart_port *port = NULL; local 564 early_uartlite_putc(struct uart_port *port, unsigned char c) argument 635 struct uart_port *port; local 692 struct uart_port *port = dev_get_drvdata(dev); local 709 struct uart_port *port = dev_get_drvdata(dev); local 725 struct uart_port *port = dev_get_drvdata(dev); local 735 struct uart_port *port = dev_get_drvdata(dev); local 744 struct uart_port *port = dev_get_drvdata(dev); local 900 struct uart_port *port = dev_get_drvdata(&pdev->dev); local [all...] |
H A D | sa1100.c | 45 #define UART_GET_UTCR0(sport) __raw_readl((sport)->port.membase + UTCR0) 46 #define UART_GET_UTCR1(sport) __raw_readl((sport)->port.membase + UTCR1) 47 #define UART_GET_UTCR2(sport) __raw_readl((sport)->port.membase + UTCR2) 48 #define UART_GET_UTCR3(sport) __raw_readl((sport)->port.membase + UTCR3) 49 #define UART_GET_UTSR0(sport) __raw_readl((sport)->port.membase + UTSR0) 50 #define UART_GET_UTSR1(sport) __raw_readl((sport)->port.membase + UTSR1) 51 #define UART_GET_CHAR(sport) __raw_readl((sport)->port.membase + UTDR) 53 #define UART_PUT_UTCR0(sport,v) __raw_writel((v),(sport)->port.membase + UTCR0) 54 #define UART_PUT_UTCR1(sport,v) __raw_writel((v),(sport)->port.membase + UTCR1) 55 #define UART_PUT_UTCR2(sport,v) __raw_writel((v),(sport)->port 75 struct uart_port port; member in struct:sa1100_port 129 sa1100_stop_tx(struct uart_port *port) argument 143 sa1100_start_tx(struct uart_port *port) argument 157 sa1100_stop_rx(struct uart_port *port) argument 170 sa1100_enable_ms(struct uart_port *port) argument 287 sa1100_tx_empty(struct uart_port *port) argument 295 sa1100_get_mctrl(struct uart_port *port) argument 306 sa1100_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 317 sa1100_break_ctl(struct uart_port *port, int break_state) argument 334 sa1100_startup(struct uart_port *port) argument 364 sa1100_shutdown(struct uart_port *port) argument 386 sa1100_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 491 sa1100_type(struct uart_port *port) argument 502 sa1100_release_port(struct uart_port *port) argument 513 sa1100_request_port(struct uart_port *port) argument 525 sa1100_config_port(struct uart_port *port, int flags) argument 541 sa1100_verify_port(struct uart_port *port, struct serial_struct *ser) argument 637 sa1100_register_uart(int idx, int port) argument 673 sa1100_console_putchar(struct uart_port *port, unsigned char ch) argument [all...] |
H A D | clps711x.c | 55 struct uart_port port; member in struct:clps711x_port 71 static void uart_clps711x_stop_tx(struct uart_port *port) argument 73 struct clps711x_port *s = dev_get_drvdata(port->dev); 76 disable_irq(port->irq); 81 static void uart_clps711x_start_tx(struct uart_port *port) argument 83 struct clps711x_port *s = dev_get_drvdata(port->dev); 87 enable_irq(port->irq); 93 struct uart_port *port = dev_id; local 94 struct clps711x_port *s = dev_get_drvdata(port->dev); 106 ch = readw(port 147 struct uart_port *port = dev_id; local 183 uart_clps711x_tx_empty(struct uart_port *port) argument 193 uart_clps711x_get_mctrl(struct uart_port *port) argument 201 uart_clps711x_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 208 uart_clps711x_break_ctl(struct uart_port *port, int break_state) argument 220 uart_clps711x_set_ldisc(struct uart_port *port, struct ktermios *termios) argument 231 uart_clps711x_startup(struct uart_port *port) argument 244 uart_clps711x_shutdown(struct uart_port *port) argument 252 uart_clps711x_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 312 uart_clps711x_type(struct uart_port *port) argument 317 uart_clps711x_config_port(struct uart_port *port, int flags) argument 323 uart_clps711x_nop_void(struct uart_port *port) argument 327 uart_clps711x_nop_int(struct uart_port *port) argument 351 uart_clps711x_console_putchar(struct uart_port *port, unsigned char ch) argument 367 struct uart_port *port = clps711x_uart.state[co->index].uart_port; local 384 struct uart_port *port; local [all...] |
H A D | lantiq.c | 104 int (*request_irq)(struct uart_port *port); 105 void (*free_irq)(struct uart_port *port); 109 struct uart_port port; member in struct:ltq_uart_port 131 ltq_uart_port *to_ltq_uart_port(struct uart_port *port) argument 133 return container_of(port, struct ltq_uart_port, port); 137 lqasc_stop_tx(struct uart_port *port) argument 142 static bool lqasc_tx_ready(struct uart_port *port) argument 144 u32 fstat = __raw_readl(port->membase + LTQ_ASC_FSTAT); 150 lqasc_start_tx(struct uart_port *port) argument 165 lqasc_stop_rx(struct uart_port *port) argument 171 lqasc_rx_chars(struct uart_port *port) argument 236 struct uart_port *port = (struct uart_port *)_port; local 250 struct uart_port *port = (struct uart_port *)_port; local 266 struct uart_port *port = (struct uart_port *)_port; local 280 struct uart_port *port = p; local 302 lqasc_tx_empty(struct uart_port *port) argument 311 lqasc_get_mctrl(struct uart_port *port) argument 317 lqasc_set_mctrl(struct uart_port *port, u_int mctrl) argument 322 lqasc_break_ctl(struct uart_port *port, int break_state) argument 327 lqasc_startup(struct uart_port *port) argument 369 lqasc_shutdown(struct uart_port *port) argument 388 lqasc_set_termios(struct uart_port *port, struct ktermios *new, const struct ktermios *old) argument 489 lqasc_type(struct uart_port *port) argument 498 lqasc_release_port(struct uart_port *port) argument 509 lqasc_request_port(struct uart_port *port) argument 539 lqasc_config_port(struct uart_port *port, int flags) argument 548 lqasc_verify_port(struct uart_port *port, struct serial_struct *ser) argument 581 lqasc_console_putchar(struct uart_port *port, unsigned char ch) argument 592 lqasc_serial_port_write(struct uart_port *port, const char *s, u_int count) argument 620 struct uart_port *port; local 705 struct uart_port *port = <q_port->port; local 727 request_irq_lantiq(struct uart_port *port) argument 761 free_irq_lantiq(struct uart_port *port) argument 772 struct uart_port *port = <q_port->port; local 786 request_irq_intel(struct uart_port *port) argument 799 free_irq_intel(struct uart_port *port) argument 810 struct uart_port *port; local 892 struct uart_port *port = platform_get_drvdata(pdev); local [all...] |
H A D | stm32-usart.c | 111 static void stm32_usart_stop_tx(struct uart_port *port); 112 static void stm32_usart_transmit_chars(struct uart_port *port); 113 static void __maybe_unused stm32_usart_console_putchar(struct uart_port *port, unsigned char ch); 115 static inline struct stm32_port *to_stm32_port(struct uart_port *port) argument 117 return container_of(port, struct stm32_port, port); 120 static void stm32_usart_set_bits(struct uart_port *port, u32 reg, u32 bits) argument 124 val = readl_relaxed(port->membase + reg); 126 writel_relaxed(val, port->membase + reg); 129 static void stm32_usart_clr_bits(struct uart_port *port, u3 argument 138 stm32_usart_tx_empty(struct uart_port *port) argument 149 stm32_usart_rs485_rts_enable(struct uart_port *port) argument 167 stm32_usart_rs485_rts_disable(struct uart_port *port) argument 222 stm32_usart_config_rs485(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485conf) argument 279 stm32_usart_init_rs485(struct uart_port *port, struct platform_device *pdev) argument 312 struct uart_port *port = &stm32_port->port; local 348 stm32_usart_pending_rx_pio(struct uart_port *port, u32 *sr) argument 368 stm32_usart_get_char_pio(struct uart_port *port) argument 381 stm32_usart_receive_chars_pio(struct uart_port *port) argument 447 stm32_usart_push_buffer_dma(struct uart_port *port, unsigned int dma_size) argument 474 stm32_usart_receive_chars_dma(struct uart_port *port) argument 494 stm32_usart_receive_chars(struct uart_port *port, bool force_dma_flush) argument 537 struct uart_port *port = arg; local 549 stm32_usart_rx_dma_start_or_resume(struct uart_port *port) argument 641 struct uart_port *port = arg; local 653 stm32_usart_tx_interrupt_enable(struct uart_port *port) argument 668 stm32_usart_tc_interrupt_enable(struct uart_port *port) argument 676 stm32_usart_tx_interrupt_disable(struct uart_port *port) argument 687 stm32_usart_tc_interrupt_disable(struct uart_port *port) argument 695 stm32_usart_transmit_chars_pio(struct uart_port *port) argument 716 stm32_usart_transmit_chars_dma(struct uart_port *port) argument 791 stm32_usart_transmit_chars(struct uart_port *port) argument 858 struct uart_port *port = ptr; local 928 stm32_usart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 941 stm32_usart_get_mctrl(struct uart_port *port) argument 952 stm32_usart_enable_ms(struct uart_port *port) argument 957 stm32_usart_disable_ms(struct uart_port *port) argument 963 stm32_usart_stop_tx(struct uart_port *port) argument 976 stm32_usart_start_tx(struct uart_port *port) argument 991 stm32_usart_flush_buffer(struct uart_port *port) argument 1000 stm32_usart_throttle(struct uart_port *port) argument 1023 stm32_usart_unthrottle(struct uart_port *port) argument 1047 stm32_usart_stop_rx(struct uart_port *port) argument 1060 stm32_usart_break_ctl(struct uart_port *port, int break_state) argument 1076 stm32_usart_startup(struct uart_port *port) argument 1116 stm32_usart_shutdown(struct uart_port *port) argument 1165 stm32_usart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 1408 stm32_usart_type(struct uart_port *port) argument 1413 stm32_usart_release_port(struct uart_port *port) argument 1417 stm32_usart_request_port(struct uart_port *port) argument 1422 stm32_usart_config_port(struct uart_port *port, int flags) argument 1429 stm32_usart_verify_port(struct uart_port *port, struct serial_struct *ser) argument 1435 stm32_usart_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) argument 1460 stm32_usart_poll_init(struct uart_port *port) argument 1467 stm32_usart_poll_get_char(struct uart_port *port) argument 1478 stm32_usart_poll_put_char(struct uart_port *port, unsigned char ch) argument 1580 struct uart_port *port = &stm32port->port; local 1715 struct uart_port *port = &stm32port->port; local 1753 struct uart_port *port = &stm32port->port; local 1883 struct uart_port *port = platform_get_drvdata(pdev); local 1922 stm32_usart_console_putchar(struct uart_port *port, unsigned char ch) argument 1943 struct uart_port *port = &stm32_ports[co->index].port; local 2016 early_stm32_usart_console_putchar(struct uart_port *port, unsigned char ch) argument 2029 struct uart_port *port = &device->port; local 2075 stm32_usart_serial_en_wakeup(struct uart_port *port, bool enable) argument 2131 struct uart_port *port = dev_get_drvdata(dev); local 2160 struct uart_port *port = dev_get_drvdata(dev); local 2176 struct uart_port *port = dev_get_drvdata(dev); local 2187 struct uart_port *port = dev_get_drvdata(dev); local [all...] |
H A D | sh-sci.c | 73 #define SCIx_IRQ_IS_MUXED(port) \ 74 ((port)->irqs[SCIx_ERI_IRQ] == \ 75 (port)->irqs[SCIx_RXI_IRQ]) || \ 76 ((port)->irqs[SCIx_ERI_IRQ] && \ 77 ((port)->irqs[SCIx_RXI_IRQ] < 0)) 118 struct uart_port port; member in struct:sci_port 171 return container_of(uart, struct sci_port, port); 176 * Common SCI definitions, dependent on the port's regshift 501 * value relative to the port mapping rather than the fixed offset 503 * register map for the given port 560 port_rx_irq_mask(struct uart_port *port) argument 572 sci_start_tx(struct uart_port *port) argument 616 sci_stop_tx(struct uart_port *port) argument 639 sci_start_rx(struct uart_port *port) argument 651 sci_stop_rx(struct uart_port *port) argument 665 sci_clear_SCxSR(struct uart_port *port, unsigned int mask) argument 684 sci_poll_get_char(struct uart_port *port) argument 711 sci_poll_put_char(struct uart_port *port, unsigned char c) argument 725 sci_init_pins(struct uart_port *port, unsigned int cflag) argument 775 sci_txfill(struct uart_port *port) argument 792 sci_txroom(struct uart_port *port) argument 797 sci_rxfill(struct uart_port *port) argument 818 sci_transmit_chars(struct uart_port *port) argument 878 sci_receive_chars(struct uart_port *port) argument 952 sci_handle_errors(struct uart_port *port) argument 990 sci_handle_fifo_overrun(struct uart_port *port) argument 1017 sci_handle_breaks(struct uart_port *port) argument 1042 scif_set_rtrg(struct uart_port *port, int rx_trig) argument 1101 scif_rtrg_enabled(struct uart_port *port) argument 1113 struct uart_port *port = &s->port; local 1122 struct uart_port *port = dev_get_drvdata(dev); local 1132 struct uart_port *port = dev_get_drvdata(dev); local 1154 struct uart_port *port = dev_get_drvdata(dev); local 1171 struct uart_port *port = dev_get_drvdata(dev); local 1201 struct uart_port *port = &s->port; local 1237 struct uart_port *port = &s->port; local 1294 struct uart_port *port = &s->port; local 1314 struct uart_port *port = &s->port; local 1381 struct uart_port *port = &s->port; local 1426 struct uart_port *port = &s->port; local 1490 struct uart_port *port = &s->port; local 1553 sci_request_dma_chan(struct uart_port *port, enum dma_transfer_direction dir) argument 1585 sci_request_dma(struct uart_port *port) argument 1672 sci_free_dma(struct uart_port *port) argument 1682 sci_flush_buffer(struct uart_port *port) argument 1698 sci_request_dma(struct uart_port *port) argument 1702 sci_free_dma(struct uart_port *port) argument 1711 struct uart_port *port = ptr; local 1768 struct uart_port *port = ptr; local 1780 struct uart_port *port = ptr; local 1798 struct uart_port *port = ptr; local 1813 struct uart_port *port = ptr; local 1854 struct uart_port *port = ptr; local 1944 sci_request_irq(struct sci_port *port) argument 2003 sci_free_irq(struct sci_port *port) argument 2038 sci_tx_empty(struct uart_port *port) argument 2046 sci_set_rts(struct uart_port *port, bool state) argument 2073 sci_get_cts(struct uart_port *port) argument 2098 sci_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 2142 sci_get_mctrl(struct uart_port *port) argument 2168 sci_enable_ms(struct uart_port *port) argument 2173 sci_break_ctl(struct uart_port *port, int break_state) argument 2204 sci_startup(struct uart_port *port) argument 2222 sci_shutdown(struct uart_port *port) argument 2385 sci_reset(struct uart_port *port) argument 2420 sci_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 2675 sci_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) argument 2690 sci_type(struct uart_port *port) argument 2710 sci_remap_port(struct uart_port *port) argument 2738 sci_release_port(struct uart_port *port) argument 2750 sci_request_port(struct uart_port *port) argument 2772 sci_config_port(struct uart_port *port, int flags) argument 2782 sci_verify_port(struct uart_port *port, struct serial_struct *ser) argument 2903 struct uart_port *port = &sci_port->port; local 3021 sci_cleanup_single(struct sci_port *port) argument 3028 serial_console_putchar(struct uart_port *port, unsigned char ch) argument 3041 struct uart_port *port = &sci_port->port; local 3077 struct uart_port *port; local 3189 struct sci_port *port = platform_get_drvdata(dev); local [all...] |
H A D | sc16is7xx.c | 326 struct uart_port port; member in struct:sc16is7xx_one 363 static u8 sc16is7xx_port_read(struct uart_port *port, u8 reg) argument 365 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); 373 static void sc16is7xx_port_write(struct uart_port *port, u8 reg, u8 val) argument 375 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); 380 static void sc16is7xx_fifo_read(struct uart_port *port, u8 *rxbuf, unsigned int rxlen) argument 382 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); 387 sc16is7xx_fifo_write(struct uart_port *port, u8 *txbuf, u8 to_send) argument 401 sc16is7xx_port_update(struct uart_port *port, u8 reg, u8 mask, u8 val) argument 409 sc16is7xx_power(struct uart_port *port, int on) argument 430 sc16is7xx_efr_lock(struct uart_port *port) argument 446 sc16is7xx_efr_unlock(struct uart_port *port) argument 459 sc16is7xx_ier_clear(struct uart_port *port, u8 bit) argument 472 sc16is7xx_ier_set(struct uart_port *port, u8 bit) argument 485 sc16is7xx_stop_tx(struct uart_port *port) argument 490 sc16is7xx_stop_rx(struct uart_port *port) argument 557 sc16is7xx_set_baud(struct uart_port *port, int baud) argument 597 sc16is7xx_handle_rx(struct uart_port *port, unsigned int rxlen, unsigned int iir) argument 676 sc16is7xx_handle_tx(struct uart_port *port) argument 730 sc16is7xx_get_hwmctrl(struct uart_port *port) argument 744 struct uart_port *port = &one->port; local 776 struct uart_port *port = &s->p[portno].port; local 851 struct uart_port *port = &(to_sc16is7xx_one(ws, tx_work)->port); local 863 sc16is7xx_reconf_rs485(struct uart_port *port) argument 935 sc16is7xx_enable_ms(struct uart_port *port) argument 945 sc16is7xx_start_tx(struct uart_port *port) argument 953 sc16is7xx_throttle(struct uart_port *port) argument 967 sc16is7xx_unthrottle(struct uart_port *port) argument 976 sc16is7xx_tx_empty(struct uart_port *port) argument 985 sc16is7xx_get_mctrl(struct uart_port *port) argument 993 sc16is7xx_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 1002 sc16is7xx_break_ctl(struct uart_port *port, int break_state) argument 1009 sc16is7xx_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 1112 sc16is7xx_config_rs485(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485) argument 1134 sc16is7xx_startup(struct uart_port *port) argument 1202 sc16is7xx_shutdown(struct uart_port *port) argument 1223 sc16is7xx_type(struct uart_port *port) argument 1230 sc16is7xx_request_port(struct uart_port *port) argument 1236 sc16is7xx_config_port(struct uart_port *port, int flags) argument 1242 sc16is7xx_verify_port(struct uart_port *port, struct serial_struct *s) argument 1253 sc16is7xx_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) argument 1259 sc16is7xx_null_void(struct uart_port *port) argument 1291 struct uart_port *port = &s->p[0].port; local 1301 struct uart_port *port = &s->p[0].port; local 1311 struct uart_port *port = &s->p[0].port; local 1322 struct uart_port *port = &s->p[0].port; local [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_execlist.c | 94 static void __xe_execlist_port_start(struct xe_execlist_port *port, argument 97 struct xe_device *xe = gt_to_xe(port->hwe->gt); 103 xe_execlist_port_assert_held(port); 105 if (port->running_exl != exl || !exl->has_run) { 106 port->last_ctx_id++; 109 if (port->last_ctx_id > max_ctx) 110 port->last_ctx_id = 1; 113 __start_lrc(port->hwe, exl->q->lrc, port->last_ctx_id); 114 port 118 __xe_execlist_port_idle(struct xe_execlist_port *port) argument 139 __xe_execlist_port_start_next_active(struct xe_execlist_port *port) argument 178 xe_execlist_port_irq_handler_locked(struct xe_execlist_port *port) argument 194 struct xe_execlist_port *port = hwe->exl_port; local 201 xe_execlist_port_wake_locked(struct xe_execlist_port *port, enum xe_exec_queue_priority priority) argument 214 struct xe_execlist_port *port = exl->port; local 242 struct xe_execlist_port *port = local 257 struct xe_execlist_port *port; local 283 xe_execlist_port_destroy(struct xe_execlist_port *port) argument [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_switchdev.c | 10 static void lan966x_port_set_mcast_ip_flood(struct lan966x_port *port, argument 13 struct lan966x *lan966x = port->lan966x; 22 if (!port->mcast_ena) { 28 if (flood_mask & BIT(port->chip_port)) 29 flood_mask_ip |= BIT(port->chip_port); 31 flood_mask_ip &= ~BIT(port->chip_port); 33 flood_mask_ip &= ~BIT(port->chip_port); 41 static void lan966x_port_set_mcast_flood(struct lan966x_port *port, argument 44 u32 val = lan_rd(port->lan966x, ANA_PGID(PGID_MC)); 48 val |= BIT(port 62 lan966x_port_set_ucast_flood(struct lan966x_port *port, bool enabled) argument 78 lan966x_port_set_bcast_flood(struct lan966x_port *port, bool enabled) argument 94 lan966x_port_set_learning(struct lan966x_port *port, bool enabled) argument 103 lan966x_port_bridge_flags(struct lan966x_port *port, struct switchdev_brport_flags flags) argument 123 lan966x_port_pre_bridge_flags(struct lan966x_port *port, struct switchdev_brport_flags flags) argument 138 struct lan966x_port *port = lan966x->ports[i]; local 156 lan966x_port_stp_state_set(struct lan966x_port *port, u8 state) argument 177 lan966x_port_ageing_set(struct lan966x_port *port, unsigned long ageing_clock_t) argument 186 lan966x_port_mc_set(struct lan966x_port *port, bool mcast_ena) argument 212 struct lan966x_port *port = netdev_priv(dev); local 246 lan966x_port_bridge_join(struct lan966x_port *port, struct net_device *brport_dev, struct net_device *bridge, struct netlink_ext_ack *extack) argument 281 lan966x_port_bridge_leave(struct lan966x_port *port, struct net_device *bridge) argument 306 struct lan966x_port *port = netdev_priv(dev); local 337 struct lan966x_port *port = netdev_priv(dev); local 372 struct lan966x_port *port = netdev_priv(dev); local 490 struct lan966x_port *port = netdev_priv(dev); local 531 lan966x_handle_port_vlan_add(struct lan966x_port *port, const struct switchdev_obj *obj) argument 551 struct lan966x_port *port = netdev_priv(dev); local 573 lan966x_handle_port_vlan_del(struct lan966x_port *port, const struct switchdev_obj *obj) argument 590 struct lan966x_port *port = netdev_priv(dev); local [all...] |
H A D | lan966x_mirror.c | 5 int lan966x_mirror_port_add(struct lan966x_port *port, argument 11 struct lan966x *lan966x = port->lan966x; 16 "Destination not an lan966x port"); 22 if (lan966x->mirror_mask[ingress] & BIT(port->chip_port)) { 31 "Cannot change mirror port while in use"); 35 if (port == monitor_port) { 37 "Cannot mirror the monitor port"); 41 lan966x->mirror_mask[ingress] |= BIT(port->chip_port); 49 lan966x, ANA_PORT_CFG(port->chip_port)); 58 port 65 lan966x_mirror_port_del(struct lan966x_port *port, bool ingress, struct netlink_ext_ack *extack) argument 103 lan966x_mirror_port_stats(struct lan966x_port *port, struct flow_stats *stats, bool ingress) argument [all...] |
/linux-master/drivers/usb/serial/ |
H A D | cypress_m8.c | 115 static int cypress_earthmate_port_probe(struct usb_serial_port *port); 116 static int cypress_hidcom_port_probe(struct usb_serial_port *port); 117 static int cypress_ca42v2_port_probe(struct usb_serial_port *port); 118 static void cypress_port_remove(struct usb_serial_port *port); 119 static int cypress_open(struct tty_struct *tty, struct usb_serial_port *port); 120 static void cypress_close(struct usb_serial_port *port); 121 static void cypress_dtr_rts(struct usb_serial_port *port, int on); 122 static int cypress_write(struct tty_struct *tty, struct usb_serial_port *port, 124 static void cypress_send(struct usb_serial_port *port); 128 struct usb_serial_port *port, 235 analyze_baud_rate(struct usb_serial_port *port, speed_t new_rate) argument 291 cypress_serial_control(struct tty_struct *tty, struct usb_serial_port *port, speed_t baud_rate, int data_bits, int stop_bits, int parity_enable, int parity_type, int reset, int cypress_request_type) argument 418 cypress_set_dead(struct usb_serial_port *port) argument 441 cypress_generic_port_probe(struct usb_serial_port *port) argument 502 cypress_earthmate_port_probe(struct usb_serial_port *port) argument 534 cypress_hidcom_port_probe(struct usb_serial_port *port) argument 551 cypress_ca42v2_port_probe(struct usb_serial_port *port) argument 568 cypress_port_remove(struct usb_serial_port *port) argument 578 cypress_open(struct tty_struct *tty, struct usb_serial_port *port) argument 624 cypress_dtr_rts(struct usb_serial_port *port, int on) argument 638 cypress_close(struct usb_serial_port *port) argument 657 cypress_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument 684 cypress_send(struct usb_serial_port *port) argument 795 struct usb_serial_port *port = tty->driver_data; local 811 struct usb_serial_port *port = tty->driver_data; local 838 struct usb_serial_port *port = tty->driver_data; local 862 cypress_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 962 struct usb_serial_port *port = tty->driver_data; local 978 struct usb_serial_port *port = tty->driver_data; local 989 struct usb_serial_port *port = tty->driver_data; local 1014 struct usb_serial_port *port = urb->context; local 1166 struct usb_serial_port *port = urb->context; local [all...] |
H A D | iuu_phoenix.c | 46 static int iuu_create_sysfs_attrs(struct usb_serial_port *port); 47 static int iuu_remove_sysfs_attrs(struct usb_serial_port *port); 65 static int iuu_port_probe(struct usb_serial_port *port) argument 90 usb_set_serial_port_data(port, priv); 92 ret = iuu_create_sysfs_attrs(port); 103 static void iuu_port_remove(struct usb_serial_port *port) argument 105 struct iuu_private *priv = usb_get_serial_port_data(port); 107 iuu_remove_sysfs_attrs(port); 116 struct usb_serial_port *port = tty->driver_data; local 117 struct iuu_private *priv = usb_get_serial_port_data(port); 144 struct usb_serial_port *port = tty->driver_data; local 158 struct usb_serial_port *port = urb->context; local 177 iuu_reset(struct usb_serial_port *port, u8 wt) argument 210 struct usb_serial_port *port = urb->context; local 240 struct usb_serial_port *port = urb->context; local 252 iuu_status(struct usb_serial_port *port) argument 267 bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count) argument 288 read_immediate(struct usb_serial_port *port, u8 *buf, u8 count) argument 308 iuu_led(struct usb_serial_port *port, unsigned int R, unsigned int G, unsigned int B, u8 f) argument 349 struct usb_serial_port *port = urb->context; local 370 struct usb_serial_port *port = urb->context; local 390 iuu_clk(struct usb_serial_port *port, int dwFrq) argument 528 iuu_uart_flush(struct usb_serial_port *port) argument 578 struct usb_serial_port *port = urb->context; local 598 iuu_bulk_write(struct usb_serial_port *port) argument 627 iuu_read_buf(struct usb_serial_port *port, int len) argument 642 struct usb_serial_port *port = urb->context; local 698 iuu_uart_write(struct tty_struct *tty, struct usb_serial_port *port, const u8 *buf, int count) argument 721 struct usb_serial_port *port = urb->context; local 739 iuu_uart_on(struct usb_serial_port *port) argument 769 iuu_uart_off(struct usb_serial_port *port) argument 786 iuu_uart_baud(struct usb_serial_port *port, u32 baud_base, u32 *actual, u8 parity) argument 881 iuu_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 936 iuu_close(struct usb_serial_port *port) argument 958 iuu_open(struct tty_struct *tty, struct usb_serial_port *port) argument 1078 iuu_vcc_set(struct usb_serial_port *port, unsigned int vcc) argument 1111 struct usb_serial_port *port = to_usb_serial_port(dev); local 1120 struct usb_serial_port *port = to_usb_serial_port(dev); local 1143 iuu_create_sysfs_attrs(struct usb_serial_port *port) argument 1148 iuu_remove_sysfs_attrs(struct usb_serial_port *port) argument [all...] |
/linux-master/drivers/block/ |
H A D | sunvdc.c | 91 static void vdc_ldc_reset(struct vdc_port *port); 107 static inline int vdc_version_supported(struct vdc_port *port, argument 110 return port->vio.ver.major == major && port->vio.ver.minor >= minor; 145 struct vdc_port *port = bdev->bd_disk->private_data; local 157 if (!vdc_version_supported(port, 1, 1)) 159 switch (port->vdisk_mtype) { 179 static void vdc_blk_queue_start(struct vdc_port *port) argument 181 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; 187 if (port 204 struct vdc_port *port = to_vdc_port(vio); local 211 vdc_handle_unknown(struct vdc_port *port, void *arg) argument 226 struct vdc_port *port = to_vdc_port(vio); local 248 struct vdc_port *port = to_vdc_port(vio); local 300 vdc_end_special(struct vdc_port *port, struct vio_disk_desc *desc) argument 307 vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr, unsigned int index) argument 334 vdc_ack(struct vdc_port *port, void *msgbuf) argument 349 vdc_nack(struct vdc_port *port, void *msgbuf) argument 357 struct vdc_port *port = arg; local 425 __vdc_tx_trigger(struct vdc_port *port) argument 464 struct vdc_port *port = req->q->disk->private_data; local 540 struct vdc_port *port = hctx->queue->queuedata; local 573 generic_request(struct vdc_port *port, u8 op, void *buf, int len) argument 713 vdc_alloc_tx_ring(struct vdc_port *port) argument 743 vdc_free_tx_ring(struct vdc_port *port) argument 759 vdc_port_up(struct vdc_port *port) argument 773 vdc_port_down(struct vdc_port *port) argument 785 probe_disk(struct vdc_port *port) argument 968 struct vdc_port *port; local 1065 struct vdc_port *port = dev_get_drvdata(&vdev->dev); local 1087 vdc_requeue_inflight(struct vdc_port *port) argument 1112 vdc_queue_drain(struct vdc_port *port) argument 1134 struct vdc_port *port; local 1152 struct vdc_port *port; local 1164 vdc_ldc_reset(struct vdc_port *port) argument [all...] |
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_hdcp_regs.h | 74 #define _PORT_HDCP_AUTHENC(port, x) _MMIO(_PICK(port, \ 81 #define PORT_HDCP_CONF(port) _PORT_HDCP_AUTHENC(port, 0x0) 86 #define HDCP_CONF(dev_priv, trans, port) \ 89 PORT_HDCP_CONF(port)) 93 #define PORT_HDCP_ANINIT(port) _PORT_HDCP_AUTHENC(port, 0x4) 99 #define HDCP_ANINIT(dev_priv, trans, port) \ 102 PORT_HDCP_ANINIT(port)) [all...] |
H A D | vlv_dsi_regs.h | 16 #define _MIPI_PORT(port, a, c) (((port) == PORT_A) ? a : c) /* ports A and C only */ 17 #define _MMIO_MIPI(port, a, c) _MMIO(_MIPI_PORT(port, a, c)) 43 #define MIPI_PORT_CTRL(port) _MMIO_MIPI(port, _MIPIA_PORT_CTRL, _MIPIC_PORT_CTRL) 45 /* BXT port control */ 92 #define MIPI_TEARING_CTRL(port) _MMIO_MIPI(port, _MIPIA_TEARING_CTRL, _MIPIC_TEARING_CTRL) 103 #define MIPI_DEVICE_READY(port) _MMIO_MIP [all...] |
/linux-master/lib/ |
H A D | iomap.c | 40 static void bad_io_access(unsigned long port, const char *access) argument 45 WARN(1, KERN_ERR "Bad IO access at port %#lx (%s)\n", port, access); 53 unsigned long port = (unsigned long __force)addr; \ 54 if (port >= PIO_RESERVED) { \ 56 } else if (port > PIO_OFFSET) { \ 57 port &= PIO_MASK; \ 60 bad_io_access(port, #is_pio ); \ 64 #define pio_read16be(port) swab16(inw(port)) 115 pio_read64_lo_hi(unsigned long port) argument 125 pio_read64_hi_lo(unsigned long port) argument 135 pio_read64be_lo_hi(unsigned long port) argument 145 pio_read64be_hi_lo(unsigned long port) argument 240 pio_write64_lo_hi(u64 val, unsigned long port) argument 246 pio_write64_hi_lo(u64 val, unsigned long port) argument 252 pio_write64be_lo_hi(u64 val, unsigned long port) argument 258 pio_write64be_hi_lo(u64 val, unsigned long port) argument 406 ioport_map(unsigned long port, unsigned int nr) argument [all...] |
/linux-master/arch/mips/pic32/pic32mzda/ |
H A D | early_console.c | 32 static int __init configure_uart_pins(int port) argument 34 switch (port) { 50 static void __init configure_uart(int port, int baud) argument 56 __raw_writel(0, uart_base + U_MODE(port)); 57 __raw_writel(((pbclk / baud) / 16) - 1, uart_base + U_BRG(port)); 58 __raw_writel(UART_ENABLE, uart_base + U_MODE(port)); 60 uart_base + PIC32_SET(U_STA(port))); 63 static void __init setup_early_console(int port, int baud) argument 65 if (configure_uart_pins(port)) 68 console_port = port; 88 int port = -1; local 136 int baud, port; local [all...] |
/linux-master/include/trace/events/ |
H A D | qrtr.h | 14 unsigned int node, unsigned int port), 16 TP_ARGS(service, instance, node, port), 22 __field(unsigned int, port) 29 __entry->port = port; 34 __entry->port 41 unsigned int node, unsigned int port), 43 TP_ARGS(service, instance, node, port), 49 __field(unsigned int, port) 56 __entry->port [all...] |
/linux-master/drivers/platform/chrome/ |
H A D | cros_ec_typec.c | 93 static int cros_typec_get_switch_handles(struct cros_typec_port *port, argument 99 port->mux = fwnode_typec_mux_get(fwnode); 100 if (IS_ERR(port->mux)) { 101 ret = PTR_ERR(port->mux); 106 port->retimer = fwnode_typec_retimer_get(fwnode); 107 if (IS_ERR(port->retimer)) { 108 ret = PTR_ERR(port->retimer); 113 port->ori_sw = fwnode_typec_switch_get(fwnode); 114 if (IS_ERR(port->ori_sw)) { 115 ret = PTR_ERR(port 145 struct cros_typec_port *port = typec->ports[port_num]; local 169 struct cros_typec_port *port = typec->ports[port_num]; local 196 cros_typec_usb_disconnect_state(struct cros_typec_port *port) argument 212 struct cros_typec_port *port = typec->ports[port_num]; local 239 struct cros_typec_port *port = typec->ports[port_num]; local 254 cros_typec_unregister_port_altmodes(struct cros_typec_port *port) argument 288 struct cros_typec_port *port = typec->ports[port_num]; local 416 cros_typec_usb_safe_state(struct cros_typec_port *port) argument 435 cros_typec_get_cable_vdo(struct cros_typec_port *port, u16 svid) argument 457 struct cros_typec_port *port = typec->ports[port_num]; local 512 struct cros_typec_port *port = typec->ports[port_num]; local 585 struct cros_typec_port *port = typec->ports[port_num]; local 614 struct cros_typec_port *port = typec->ports[port_num]; local 698 struct typec_port *port = typec->ports[port_num]->port; local 715 struct typec_port *port = typec->ports[port_num]->port; local 757 struct cros_typec_port *port = typec->ports[port_num]; local 843 struct cros_typec_port *port = typec->ports[port_num]; local 919 struct cros_typec_port *port = typec->ports[port_num]; local 982 struct cros_typec_port *port = typec->ports[port_num]; local [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | vga.c | 27 nvkm_rdport(struct nvkm_device *device, int head, u16 port) argument 30 return nvkm_rd08(device, 0x601000 + port); 32 if (port == 0x03c0 || port == 0x03c1 || /* AR */ 33 port == 0x03c2 || port == 0x03da || /* INP0 */ 34 port == 0x03d4 || port == 0x03d5) /* CR */ 35 return nvkm_rd08(device, 0x601000 + (head * 0x2000) + port); 37 if (port 49 nvkm_wrport(struct nvkm_device *device, int head, u16 port, u8 data) argument 111 nvkm_rdvgai(struct nvkm_device *device, int head, u16 port, u8 index) argument 120 nvkm_wrvgai(struct nvkm_device *device, int head, u16 port, u8 index, u8 value) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/fman/ |
H A D | fman_port.h | 12 * The FM uses a general module called "port" to represent a Tx port (MAC), 13 * an Rx port (MAC). 17 * The port is initialized aware of its type, but other functions on a port 20 * On initialization, user specifies the port type and it's index (relative 21 * to the port's type) - always starting at 0. 72 /* A structure for additional Rx port parameters */ 85 /* A structure for additional non-Rx port parameters */ 90 * for processed frames. For OP port [all...] |
/linux-master/arch/x86/boot/compressed/ |
H A D | tdx.c | 19 static inline unsigned int tdx_io_in(int size, u16 port) argument 26 .r14 = port, 35 static inline void tdx_io_out(int size, u16 port, u32 value) argument 42 .r14 = port, 49 static inline u8 tdx_inb(u16 port) argument 51 return tdx_io_in(1, port); 54 static inline void tdx_outb(u8 value, u16 port) argument 56 tdx_io_out(1, port, value); 59 static inline void tdx_outw(u16 value, u16 port) argument 61 tdx_io_out(2, port, valu [all...] |
/linux-master/drivers/net/wwan/t7xx/ |
H A D | t7xx_port_trace.c | 52 static void t7xx_trace_port_uninit(struct t7xx_port *port) argument 54 struct dentry *debugfs_dir = port->t7xx_dev->debugfs_dir; 55 struct rchan *relaych = port->log.relaych; 64 static int t7xx_trace_port_recv_skb(struct t7xx_port *port, struct sk_buff *skb) argument 66 struct rchan *relaych = port->log.relaych; 76 static void t7xx_port_trace_md_state_notify(struct t7xx_port *port, unsigned int state) argument 78 struct rchan *relaych = port->log.relaych; 85 debugfs_wwan_dir = wwan_get_debugfs_dir(port->dev); 92 dev_err(port->dev, "Unable to create debugfs for trace"); 102 port [all...] |
/linux-master/drivers/media/pci/ddbridge/ |
H A D | ddbridge-ci.c | 26 if (ddbreadl(ci->port->dev, 44 ddbwritel(ci->port->dev, CI_READ_CMD | (1 << 16) | address, 47 val = 0xff & ddbreadl(ci->port->dev, CI_BUFFER(ci->nr) + off); 56 ddbwritel(ci->port->dev, CI_WRITE_CMD | (value << 16) | address, 69 ddbwritel(ci->port->dev, CI_READ_CMD | address, 73 res = ddbreadl(ci->port->dev, CI_READDATA(ci->nr)); 88 ddbwritel(ci->port->dev, CI_WRITE_CMD | (value << 16) | address, 98 ddbwritel(ci->port->dev, CI_POWER_ON, 101 ddbwritel(ci->port->dev, CI_POWER_ON | CI_RESET_CAM, 103 ddbwritel(ci->port 154 ci_attach(struct ddb_port *port) argument 287 ci_xo2_attach(struct ddb_port *port) argument 312 ci_cxd2099_attach(struct ddb_port *port, u32 bitrate) argument 334 ddb_ci_attach(struct ddb_port *port, u32 bitrate) argument 361 ddb_ci_detach(struct ddb_port *port) argument [all...] |