/drivers/tty/serial/ |
H A D | sh-sci.h | 5 #define SCxSR_TEND(port) (((port)->type == PORT_SCI) ? SCI_TEND : SCIF_TEND) 6 #define SCxSR_RDxF(port) (((port)->type == PORT_SCI) ? SCI_RDRF : SCIF_RDF) 7 #define SCxSR_TDxE(port) (((port)->type == PORT_SCI) ? SCI_TDRE : SCIF_TDFE) 8 #define SCxSR_FER(port) (((port)->type == PORT_SCI) ? SCI_FER : SCIF_FER) 9 #define SCxSR_PER(port) (((port) [all...] |
H A D | apbuart.h | 45 #define APBBASE(port) ((struct grlib_apbuart_regs_map *)((port)->membase)) 47 #define APBBASE_DATA_P(port) (&(APBBASE(port)->data)) 48 #define APBBASE_STATUS_P(port) (&(APBBASE(port)->status)) 49 #define APBBASE_CTRL_P(port) (&(APBBASE(port)->ctrl)) 50 #define APBBASE_SCALAR_P(port) (&(APBBASE(port) [all...] |
H A D | timbuart.c | 37 struct uart_port port; member in struct:timbuart_port 47 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier); 51 static void timbuart_stop_rx(struct uart_port *port) argument 54 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; 55 iowrite32(ier, port->membase + TIMBUART_IER); 58 static void timbuart_stop_tx(struct uart_port *port) argument 61 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE; 62 iowrite32(ier, port->membase + TIMBUART_IER); 65 static void timbuart_start_tx(struct uart_port *port) argument 68 container_of(port, struc 74 timbuart_tx_empty(struct uart_port *port) argument 81 timbuart_flush_buffer(struct uart_port *port) argument 92 timbuart_rx_chars(struct uart_port *port) argument 110 timbuart_tx_chars(struct uart_port *port) argument 131 timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) argument 165 timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) argument 211 timbuart_get_mctrl(struct uart_port *port) argument 222 timbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 232 timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier) argument 247 timbuart_break_ctl(struct uart_port *port, int ctl) argument 252 timbuart_startup(struct uart_port *port) argument 269 timbuart_shutdown(struct uart_port *port) argument 289 timbuart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument 317 timbuart_type(struct uart_port *port) argument 325 timbuart_release_port(struct uart_port *port) argument 339 timbuart_request_port(struct uart_port *port) argument 380 timbuart_config_port(struct uart_port *port, int flags) argument 388 timbuart_verify_port(struct uart_port *port, struct serial_struct *ser) argument [all...] |
H A D | bcm63xx_uart.c | 80 static inline unsigned int bcm_uart_readl(struct uart_port *port, argument 83 return __raw_readl(port->membase + offset); 86 static inline void bcm_uart_writel(struct uart_port *port, argument 89 __raw_writel(value, port->membase + offset); 95 static unsigned int bcm_uart_tx_empty(struct uart_port *port) argument 99 val = bcm_uart_readl(port, UART_IR_REG); 106 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 110 val = bcm_uart_readl(port, UART_MCTL_REG); 117 bcm_uart_writel(port, val, UART_MCTL_REG); 119 val = bcm_uart_readl(port, UART_CTL_RE 130 bcm_uart_get_mctrl(struct uart_port *port) argument 150 bcm_uart_stop_tx(struct uart_port *port) argument 166 bcm_uart_start_tx(struct uart_port *port) argument 182 bcm_uart_stop_rx(struct uart_port *port) argument 194 bcm_uart_enable_ms(struct uart_port *port) argument 206 bcm_uart_break_ctl(struct uart_port *port, int ctl) argument 226 bcm_uart_type(struct uart_port *port) argument 234 bcm_uart_do_rx(struct uart_port *port) argument 313 bcm_uart_do_tx(struct uart_port *port) argument 369 struct uart_port *port; local 401 bcm_uart_enable(struct uart_port *port) argument 413 bcm_uart_disable(struct uart_port *port) argument 426 bcm_uart_flush(struct uart_port *port) argument 443 bcm_uart_startup(struct uart_port *port) argument 488 bcm_uart_shutdown(struct uart_port *port) argument 504 bcm_uart_set_termios(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument 589 bcm_uart_request_port(struct uart_port *port) argument 611 bcm_uart_release_port(struct uart_port *port) argument 620 bcm_uart_config_port(struct uart_port *port, int flags) argument 633 bcm_uart_verify_port(struct uart_port *port, struct serial_struct *serinfo) argument 670 wait_for_xmitr(struct uart_port *port) argument 702 bcm_console_putchar(struct uart_port *port, int ch) argument 714 struct uart_port *port; local 748 struct uart_port *port; local 806 struct uart_port *port; local 855 struct uart_port *port; local [all...] |
H A D | st-asc.c | 40 struct uart_port port; member in struct:asc_port 147 static inline struct asc_port *to_asc_port(struct uart_port *port) argument 149 return container_of(port, struct asc_port, port); 152 static inline u32 asc_in(struct uart_port *port, u32 offset) argument 155 return readl_relaxed(port->membase + offset); 157 return readl(port->membase + offset); 161 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) argument 164 writel_relaxed(value, port->membase + offset); 166 writel(value, port 174 asc_disable_tx_interrupts(struct uart_port *port) argument 181 asc_enable_tx_interrupts(struct uart_port *port) argument 187 asc_disable_rx_interrupts(struct uart_port *port) argument 194 asc_enable_rx_interrupts(struct uart_port *port) argument 200 asc_txfifo_is_empty(struct uart_port *port) argument 205 asc_txfifo_is_half_empty(struct uart_port *port) argument 210 asc_port_name(struct uart_port *port) argument 222 asc_hw_txroom(struct uart_port *port) argument 239 asc_transmit_chars(struct uart_port *port) argument 287 asc_receive_chars(struct uart_port *port) argument 348 struct uart_port *port = ptr; local 377 asc_tx_empty(struct uart_port *port) argument 382 asc_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 392 asc_get_mctrl(struct uart_port *port) argument 402 asc_start_tx(struct uart_port *port) argument 411 asc_stop_tx(struct uart_port *port) argument 417 asc_stop_rx(struct uart_port *port) argument 423 asc_break_ctl(struct uart_port *port, int break_state) argument 431 asc_startup(struct uart_port *port) argument 445 asc_shutdown(struct uart_port *port) argument 452 asc_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) argument 478 asc_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument 586 asc_type(struct uart_port *port) argument 591 asc_release_port(struct uart_port *port) argument 595 asc_request_port(struct uart_port *port) argument 604 asc_config_port(struct uart_port *port, int flags) argument 611 asc_verify_port(struct uart_port *port, struct serial_struct *ser) argument 623 asc_get_poll_char(struct uart_port *port) argument 631 asc_put_poll_char(struct uart_port *port, unsigned char c) argument 668 struct uart_port *port = &ascport->port; local 755 struct uart_port *port = platform_get_drvdata(pdev); local 764 struct uart_port *port = platform_get_drvdata(pdev); local 772 struct uart_port *port = platform_get_drvdata(pdev); local 782 asc_console_putchar(struct uart_port *port, int ch) argument 800 struct uart_port *port = &asc_ports[co->index].port; local [all...] |
H A D | mcf.c | 57 struct uart_port port; member in struct:mcf_uart 65 static unsigned int mcf_tx_empty(struct uart_port *port) argument 67 return (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXEMPTY) ? 73 static unsigned int mcf_get_mctrl(struct uart_port *port) argument 75 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); 78 sigs = (readb(port->membase + MCFUART_UIPR) & MCFUART_UIPR_CTS) ? 81 sigs |= (mcf_getppdcd(port->line) ? TIOCM_CD : 0); 82 sigs |= (mcf_getppdtr(port->line) ? TIOCM_DTR : 0); 89 static void mcf_set_mctrl(struct uart_port *port, unsigne argument 103 mcf_start_tx(struct uart_port *port) argument 119 mcf_stop_tx(struct uart_port *port) argument 129 mcf_stop_rx(struct uart_port *port) argument 139 mcf_break_ctl(struct uart_port *port, int break_state) argument 153 mcf_startup(struct uart_port *port) argument 179 mcf_shutdown(struct uart_port *port) argument 199 mcf_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument 289 struct uart_port *port = &pp->port; local 337 struct uart_port *port = &pp->port; local 373 struct uart_port *port = data; local 396 mcf_config_port(struct uart_port *port, int flags) argument 411 mcf_type(struct uart_port *port) argument 418 mcf_request_port(struct uart_port *port) argument 426 mcf_release_port(struct uart_port *port) argument 433 mcf_verify_port(struct uart_port *port, struct serial_struct *ser) argument 443 mcf_config_rs485(struct uart_port *port, struct serial_rs485 *rs485) argument 467 mcf_ioctl(struct uart_port *port, unsigned int cmd, unsigned long arg) argument 526 struct uart_port *port; local 551 struct uart_port *port = &(mcf_ports + co->index)->port; local 580 struct uart_port *port; local 650 struct uart_port *port; local 677 struct uart_port *port; local [all...] |
H A D | vr41xx_siu.c | 72 #define siu_read(port, offset) readb((port)->membase + (offset)) 73 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) 77 struct uart_port *port; local 81 port = &siu_uart_ports[0]; 83 spin_lock_irqsave(&port->lock, flags); 85 irsel = siu_read(port, SIUIRSEL); 90 siu_write(port, SIUIRSEL, irsel); 92 spin_unlock_irqrestore(&port 98 struct uart_port *port; local 119 struct uart_port *port; local 150 siu_clear_fifo(struct uart_port *port) argument 158 siu_port_size(struct uart_port *port) argument 170 siu_check_type(struct uart_port *port) argument 180 siu_type_name(struct uart_port *port) argument 192 siu_tx_empty(struct uart_port *port) argument 203 siu_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 221 siu_get_mctrl(struct uart_port *port) argument 239 siu_stop_tx(struct uart_port *port) argument 253 siu_start_tx(struct uart_port *port) argument 267 siu_stop_rx(struct uart_port *port) argument 283 siu_enable_ms(struct uart_port *port) argument 297 siu_break_ctl(struct uart_port *port, int ctl) argument 314 receive_chars(struct uart_port *port, uint8_t *status) argument 371 check_modem_status(struct uart_port *port) argument 390 transmit_chars(struct uart_port *port) argument 426 struct uart_port *port; local 447 siu_startup(struct uart_port *port) argument 487 siu_shutdown(struct uart_port *port) argument 515 siu_set_termios(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument 597 siu_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) argument 623 siu_type(struct uart_port *port) argument 628 siu_release_port(struct uart_port *port) argument 641 siu_request_port(struct uart_port *port) argument 662 siu_config_port(struct uart_port *port, int flags) argument 670 siu_verify_port(struct uart_port *port, struct serial_struct *serial) argument 706 struct uart_port *port; local 738 wait_for_xmitr(struct uart_port *port) argument 763 siu_console_putchar(struct uart_port *port, int ch) argument 771 struct uart_port *port; local 787 struct uart_port *port; local 826 struct uart_port *port; local 841 vr41xx_siu_early_setup(struct uart_port *port) argument 869 struct uart_port *port; local 903 struct uart_port *port; local 921 struct uart_port *port; local 937 struct uart_port *port; local [all...] |
H A D | arc_uart.c | 75 #define RBASE(port, reg) (port->membase + reg) 103 struct uart_port port; member in struct:arc_uart_port 107 #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) 129 static void arc_serial_stop_rx(struct uart_port *port) argument 131 UART_RX_IRQ_DISABLE(port); 134 static void arc_serial_stop_tx(struct uart_port *port) argument 136 while (!(UART_GET_STATUS(port) & TXEMPTY)) 139 UART_TX_IRQ_DISABLE(port); 145 static unsigned int arc_serial_tx_empty(struct uart_port *port) argument 163 arc_serial_tx_chars(struct uart_port *port) argument 199 arc_serial_start_tx(struct uart_port *port) argument 204 arc_serial_rx_chars(struct uart_port *port, unsigned int status) argument 282 struct uart_port *port = dev_id; local 318 arc_serial_get_mctrl(struct uart_port *port) argument 330 arc_serial_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 335 arc_serial_break_ctl(struct uart_port *port, int break_state) argument 340 arc_serial_startup(struct uart_port *port) argument 356 arc_serial_shutdown(struct uart_port *port) argument 362 arc_serial_set_termios(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument 410 arc_serial_type(struct uart_port *port) argument 415 arc_serial_release_port(struct uart_port *port) argument 419 arc_serial_request_port(struct uart_port *port) argument 428 arc_serial_verify_port(struct uart_port *port, struct serial_struct *ser) argument 439 arc_serial_config_port(struct uart_port *port, int flags) argument 447 arc_serial_poll_putchar(struct uart_port *port, unsigned char chr) argument 455 arc_serial_poll_getchar(struct uart_port *port) argument 493 struct uart_port *port; local 520 arc_serial_console_putchar(struct uart_port *port, int ch) argument 534 struct uart_port *port = &arc_uart_ports[co->index].port; local 563 struct uart_port *port = &dev->port; local 588 struct uart_port *port; local [all...] |
H A D | altera_jtaguart.c | 61 struct uart_port port; member in struct:altera_jtaguart 66 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) argument 68 return (readl(port->membase + ALTERA_JTAGUART_CONTROL_REG) & 72 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) argument 77 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) argument 81 static void altera_jtaguart_start_tx(struct uart_port *port) argument 84 container_of(port, struct altera_jtaguart, port); 87 writel(pp->imr, port->membase + ALTERA_JTAGUART_CONTROL_REG); 90 static void altera_jtaguart_stop_tx(struct uart_port *port) argument 99 altera_jtaguart_stop_rx(struct uart_port *port) argument 108 altera_jtaguart_break_ctl(struct uart_port *port, int break_state) argument 112 altera_jtaguart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument 123 struct uart_port *port = &pp->port; local 145 struct uart_port *port = &pp->port; local 185 struct uart_port *port = data; local 205 altera_jtaguart_config_port(struct uart_port *port, int flags) argument 213 altera_jtaguart_startup(struct uart_port *port) argument 239 altera_jtaguart_shutdown(struct uart_port *port) argument 256 altera_jtaguart_type(struct uart_port *port) argument 261 altera_jtaguart_request_port(struct uart_port *port) argument 267 altera_jtaguart_release_port(struct uart_port *port) argument 272 altera_jtaguart_verify_port(struct uart_port *port, struct serial_struct *ser) argument 307 altera_jtaguart_console_putc(struct uart_port *port, int c) argument 327 altera_jtaguart_console_putc(struct uart_port *port, int c) argument 346 struct uart_port *port = &(altera_jtaguart_ports + co->index)->port; local 354 struct uart_port *port; local 406 struct uart_port *port; local 452 struct uart_port *port; local [all...] |
H A D | mpc52xx_uart.c | 80 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) 85 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port); 92 void (*fifo_init)(struct uart_port *port); 93 int (*raw_rx_rdy)(struct uart_port *port); 94 int (*raw_tx_rdy)(struct uart_port *port); 95 int (*rx_rdy)(struct uart_port *port); 96 int (*tx_rdy)(struct uart_port *port); 97 int (*tx_empty)(struct uart_port *port); 98 void (*stop_rx)(struct uart_port *port); 138 mpc52xx_psc_get_status(struct uart_port *port) argument 143 mpc52xx_psc_get_ipcr(struct uart_port *port) argument 148 mpc52xx_psc_command(struct uart_port *port, u8 cmd) argument 153 mpc52xx_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) argument 160 mpc52xx_psc_set_rts(struct uart_port *port, int state) argument 168 mpc52xx_psc_enable_ms(struct uart_port *port) argument 181 mpc52xx_psc_set_sicr(struct uart_port *port, u32 val) argument 186 mpc52xx_psc_set_imr(struct uart_port *port, u16 val) argument 191 mpc52xx_psc_get_mr1(struct uart_port *port) argument 199 mpc52xx_psc_fifo_init(struct uart_port *port) argument 213 mpc52xx_psc_raw_rx_rdy(struct uart_port *port) argument 219 mpc52xx_psc_raw_tx_rdy(struct uart_port *port) argument 226 mpc52xx_psc_rx_rdy(struct uart_port *port) argument 233 mpc52xx_psc_tx_rdy(struct uart_port *port) argument 240 mpc52xx_psc_tx_empty(struct uart_port *port) argument 246 mpc52xx_psc_start_tx(struct uart_port *port) argument 252 mpc52xx_psc_stop_tx(struct uart_port *port) argument 258 mpc52xx_psc_stop_rx(struct uart_port *port) argument 264 mpc52xx_psc_rx_clr_irq(struct uart_port *port) argument 268 mpc52xx_psc_tx_clr_irq(struct uart_port *port) argument 272 mpc52xx_psc_write_char(struct uart_port *port, unsigned char c) argument 277 mpc52xx_psc_read_char(struct uart_port *port) argument 282 mpc52xx_psc_cw_disable_ints(struct uart_port *port) argument 287 mpc52xx_psc_cw_restore_ints(struct uart_port *port) argument 292 mpc5200_psc_set_baudrate(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument 310 mpc5200b_psc_set_baudrate(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument 336 mpc52xx_psc_get_irq(struct uart_port *port, struct device_node *np) argument 343 mpc52xx_psc_handle_irq(struct uart_port *port) argument 426 mpc512x_psc_fifo_init(struct uart_port *port) argument 445 mpc512x_psc_raw_rx_rdy(struct uart_port *port) argument 450 mpc512x_psc_raw_tx_rdy(struct uart_port *port) argument 455 mpc512x_psc_rx_rdy(struct uart_port *port) argument 462 mpc512x_psc_tx_rdy(struct uart_port *port) argument 469 mpc512x_psc_tx_empty(struct uart_port *port) argument 475 mpc512x_psc_stop_rx(struct uart_port *port) argument 484 mpc512x_psc_start_tx(struct uart_port *port) argument 493 mpc512x_psc_stop_tx(struct uart_port *port) argument 502 mpc512x_psc_rx_clr_irq(struct uart_port *port) argument 507 mpc512x_psc_tx_clr_irq(struct uart_port *port) argument 512 mpc512x_psc_write_char(struct uart_port *port, unsigned char c) argument 517 mpc512x_psc_read_char(struct uart_port *port) argument 522 mpc512x_psc_cw_disable_ints(struct uart_port *port) argument 531 mpc512x_psc_cw_restore_ints(struct uart_port *port) argument 538 mpc512x_psc_set_baudrate(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument 642 mpc512x_psc_handle_irq(struct uart_port *port) argument 663 mpc512x_psc_alloc_clock(struct uart_port *port) argument 712 mpc512x_psc_relse_clock(struct uart_port *port) argument 730 mpc512x_psc_endis_clock(struct uart_port *port, int enable) argument 758 mpc512x_psc_get_irq(struct uart_port *port, struct device_node *np) argument 770 mpc5125_psc_fifo_init(struct uart_port *port) argument 789 mpc5125_psc_raw_rx_rdy(struct uart_port *port) argument 794 mpc5125_psc_raw_tx_rdy(struct uart_port *port) argument 799 mpc5125_psc_rx_rdy(struct uart_port *port) argument 805 mpc5125_psc_tx_rdy(struct uart_port *port) argument 811 mpc5125_psc_tx_empty(struct uart_port *port) argument 816 mpc5125_psc_stop_rx(struct uart_port *port) argument 825 mpc5125_psc_start_tx(struct uart_port *port) argument 834 mpc5125_psc_stop_tx(struct uart_port *port) argument 843 mpc5125_psc_rx_clr_irq(struct uart_port *port) argument 848 mpc5125_psc_tx_clr_irq(struct uart_port *port) argument 853 mpc5125_psc_write_char(struct uart_port *port, unsigned char c) argument 858 mpc5125_psc_read_char(struct uart_port *port) argument 863 mpc5125_psc_cw_disable_ints(struct uart_port *port) argument 872 mpc5125_psc_cw_restore_ints(struct uart_port *port) argument 888 mpc5125_psc_set_baudrate(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument 914 mpc5125_psc_get_status(struct uart_port *port) argument 919 mpc5125_psc_get_ipcr(struct uart_port *port) argument 924 mpc5125_psc_command(struct uart_port *port, u8 cmd) argument 929 mpc5125_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) argument 935 mpc5125_psc_set_rts(struct uart_port *port, int state) argument 943 mpc5125_psc_enable_ms(struct uart_port *port) argument 956 mpc5125_psc_set_sicr(struct uart_port *port, u32 val) argument 961 mpc5125_psc_set_imr(struct uart_port *port, u16 val) argument 966 mpc5125_psc_get_mr1(struct uart_port *port) argument 1050 mpc52xx_uart_tx_empty(struct uart_port *port) argument 1056 mpc52xx_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 1062 mpc52xx_uart_get_mctrl(struct uart_port *port) argument 1076 mpc52xx_uart_stop_tx(struct uart_port *port) argument 1083 mpc52xx_uart_start_tx(struct uart_port *port) argument 1090 mpc52xx_uart_stop_rx(struct uart_port *port) argument 1097 mpc52xx_uart_enable_ms(struct uart_port *port) argument 1103 mpc52xx_uart_break_ctl(struct uart_port *port, int ctl) argument 1117 mpc52xx_uart_startup(struct uart_port *port) argument 1148 mpc52xx_uart_shutdown(struct uart_port *port) argument 1169 mpc52xx_uart_set_termios(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument 1257 mpc52xx_uart_type(struct uart_port *port) argument 1267 mpc52xx_uart_release_port(struct uart_port *port) argument 1282 mpc52xx_uart_request_port(struct uart_port *port) argument 1318 mpc52xx_uart_config_port(struct uart_port *port, int flags) argument 1326 mpc52xx_uart_verify_port(struct uart_port *port, struct serial_struct *ser) argument 1368 mpc52xx_uart_int_rx_chars(struct uart_port *port) argument 1435 mpc52xx_uart_int_tx_chars(struct uart_port *port) argument 1476 mpc5xxx_uart_process_int(struct uart_port *port) argument 1514 struct uart_port *port = dev_id; local 1533 mpc52xx_console_get_options(struct uart_port *port, int *baud, int *parity, int *bits, int *flow) argument 1571 struct uart_port *port = &mpc52xx_uart_ports[co->index]; local 1605 struct uart_port *port = &mpc52xx_uart_ports[co->index]; local 1740 struct uart_port *port = NULL; local 1807 struct uart_port *port = platform_get_drvdata(op); local 1819 struct uart_port *port = platform_get_drvdata(op); local 1830 struct uart_port *port = platform_get_drvdata(op); local [all...] |
/drivers/gpu/drm/nouveau/core/subdev/i2c/ |
H A D | bit.c | 33 i2c_drive_scl(struct nouveau_i2c_port *port, int state) argument 35 port->func->drive_scl(port, state); 39 i2c_drive_sda(struct nouveau_i2c_port *port, int state) argument 41 port->func->drive_sda(port, state); 45 i2c_sense_scl(struct nouveau_i2c_port *port) argument 47 return port->func->sense_scl(port); 51 i2c_sense_sda(struct nouveau_i2c_port *port) argument 57 i2c_delay(struct nouveau_i2c_port *port, u32 nsec) argument 63 i2c_raise_scl(struct nouveau_i2c_port *port) argument 76 i2c_start(struct nouveau_i2c_port *port) argument 96 i2c_stop(struct nouveau_i2c_port *port) argument 109 i2c_bitw(struct nouveau_i2c_port *port, int sda) argument 124 i2c_bitr(struct nouveau_i2c_port *port) argument 143 i2c_get_byte(struct nouveau_i2c_port *port, u8 *byte, bool last) argument 159 i2c_put_byte(struct nouveau_i2c_port *port, u8 byte) argument 175 i2c_addr(struct nouveau_i2c_port *port, struct i2c_msg *msg) argument 186 struct nouveau_i2c_port *port = adap->algo_data; local [all...] |
H A D | aux.c | 28 nv_rdaux(struct nouveau_i2c_port *port, u32 addr, u8 *data, u8 size) argument 30 struct nouveau_i2c *i2c = nouveau_i2c(port); 31 if (port->func->aux) { 32 int ret = i2c->acquire(port, 0); 34 ret = port->func->aux(port, true, 9, addr, data, size); 35 i2c->release(port); 43 nv_wraux(struct nouveau_i2c_port *port, u32 addr, u8 *data, u8 size) argument 45 struct nouveau_i2c *i2c = nouveau_i2c(port); 46 if (port 60 struct nouveau_i2c_port *port = adap->algo_data; local [all...] |
/drivers/tty/ |
H A D | tty_port.c | 2 * Tty port functions 20 void tty_port_init(struct tty_port *port) argument 22 memset(port, 0, sizeof(*port)); 23 tty_buffer_init(port); 24 init_waitqueue_head(&port->open_wait); 25 init_waitqueue_head(&port->close_wait); 26 init_waitqueue_head(&port->delta_msr_wait); 27 mutex_init(&port->mutex); 28 mutex_init(&port 47 tty_port_link_device(struct tty_port *port, struct tty_driver *driver, unsigned index) argument 67 tty_port_register_device(struct tty_port *port, struct tty_driver *driver, unsigned index, struct device *device) argument 89 tty_port_register_device_attr(struct tty_port *port, struct tty_driver *driver, unsigned index, struct device *device, void *drvdata, const struct attribute_group **attr_grp) argument 100 tty_port_alloc_xmit_buf(struct tty_port *port) argument 113 tty_port_free_xmit_buf(struct tty_port *port) argument 132 tty_port_destroy(struct tty_port *port) argument 141 struct tty_port *port = container_of(kref, struct tty_port, kref); local 155 tty_port_put(struct tty_port *port) argument 170 tty_port_tty_get(struct tty_port *port) argument 191 tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) argument 203 tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) argument 234 tty_port_hangup(struct tty_port *port) argument 260 tty_port_tty_hangup(struct tty_port *port, bool check_clocal) argument 275 tty_port_tty_wakeup(struct tty_port *port) argument 295 tty_port_carrier_raised(struct tty_port *port) argument 312 tty_port_raise_dtr_rts(struct tty_port *port) argument 328 tty_port_lower_dtr_rts(struct tty_port *port) argument 360 tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument 453 tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) argument 471 tty_port_close_start(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument 521 tty_port_close_end(struct tty_port *port, struct tty_struct *tty) argument 553 tty_port_close(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument 575 tty_port_install(struct tty_port *port, struct tty_driver *driver, struct tty_struct *tty) argument 591 tty_port_open(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument [all...] |
/drivers/scsi/libsas/ |
H A D | sas_dump.c | 49 SAS_DPRINTK("phy%d: port event: %s\n", phyid, sas_porte_str[pe]); 62 void sas_dump_port(struct asd_sas_port *port) argument 64 SAS_DPRINTK("port%d: class:0x%x\n", port->id, port->class); 65 SAS_DPRINTK("port%d: sas_addr:%llx\n", port->id, 66 SAS_ADDR(port->sas_addr)); 67 SAS_DPRINTK("port%d: attached_sas_addr:%llx\n", port [all...] |
H A D | sas_port.c | 31 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) argument 35 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, 37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) 45 struct asd_sas_port *port = phy->port; local 52 if (port->suspended) 53 port->suspended = 0; 59 /* if the port came back: 63 list_for_each_entry(dev, &port->dev_list, dev_list_node) { 68 sas_unregister_dev(port, de 96 struct asd_sas_port *port = phy->port; local 207 struct asd_sas_port *port = phy->port; local 318 sas_init_port(struct asd_sas_port *port, struct sas_ha_struct *sas_ha, int i) argument 339 struct asd_sas_port *port = sas_ha->sas_port[i]; local [all...] |
/drivers/staging/xgifb/ |
H A D | vb_util.c | 4 void xgifb_reg_set(unsigned long port, u8 index, u8 data) argument 6 outb(index, port); 7 outb(data, port + 1); 10 u8 xgifb_reg_get(unsigned long port, u8 index) argument 14 outb(index, port); 15 data = inb(port + 1); 19 void xgifb_reg_and_or(unsigned long port, u8 index, argument 24 temp = xgifb_reg_get(port, index); /* XGINew_Part1Port index 02 */ 26 xgifb_reg_set(port, index, temp); 29 void xgifb_reg_and(unsigned long port, u argument 38 xgifb_reg_or(unsigned long port, u8 index, unsigned data_or) argument [all...] |
/drivers/mmc/card/ |
H A D | sdio_uart.c | 26 * concurrent access to the same port. 68 struct tty_port port; member in struct:sdio_uart_port 90 static int sdio_uart_add_port(struct sdio_uart_port *port) argument 94 mutex_init(&port->func_lock); 95 spin_lock_init(&port->write_lock); 96 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) 102 port->index = index; 103 sdio_uart_table[index] = port; 115 struct sdio_uart_port *port; local 121 port 129 sdio_uart_port_put(struct sdio_uart_port *port) argument 134 sdio_uart_port_remove(struct sdio_uart_port *port) argument 167 sdio_uart_claim_func(struct sdio_uart_port *port) argument 180 sdio_uart_release_func(struct sdio_uart_port *port) argument 186 sdio_in(struct sdio_uart_port *port, int offset) argument 193 sdio_out(struct sdio_uart_port *port, int offset, int value) argument 198 sdio_uart_get_mctrl(struct sdio_uart_port *port) argument 219 sdio_uart_write_mctrl(struct sdio_uart_port *port, unsigned int mctrl) argument 238 sdio_uart_update_mctrl(struct sdio_uart_port *port, unsigned int set, unsigned int clear) argument 252 sdio_uart_change_speed(struct sdio_uart_port *port, struct ktermios *termios, struct ktermios *old) argument 353 sdio_uart_start_tx(struct sdio_uart_port *port) argument 361 sdio_uart_stop_tx(struct sdio_uart_port *port) argument 369 sdio_uart_stop_rx(struct sdio_uart_port *port) argument 376 sdio_uart_receive_chars(struct sdio_uart_port *port, unsigned int *status) argument 430 sdio_uart_transmit_chars(struct sdio_uart_port *port) argument 469 sdio_uart_check_modem_status(struct sdio_uart_port *port) argument 520 struct sdio_uart_port *port = sdio_get_drvdata(func); local 550 struct sdio_uart_port *port = local 573 struct sdio_uart_port *port = local 602 struct sdio_uart_port *port = local 685 struct sdio_uart_port *port = local 717 struct sdio_uart_port *port = local 735 struct sdio_uart_port *port = sdio_uart_port_get(idx); local 756 struct sdio_uart_port *port = tty->driver_data; local 767 struct sdio_uart_port *port = tty->driver_data; local 773 struct sdio_uart_port *port = tty->driver_data; local 779 struct sdio_uart_port *port = tty->driver_data; local 786 struct sdio_uart_port *port = tty->driver_data; local 808 struct sdio_uart_port *port = tty->driver_data; local 814 struct sdio_uart_port *port = tty->driver_data; local 820 struct sdio_uart_port *port = tty->driver_data; local 834 struct sdio_uart_port *port = tty->driver_data; local 856 struct sdio_uart_port *port = tty->driver_data; local 883 struct sdio_uart_port *port = tty->driver_data; local 922 struct sdio_uart_port *port = tty->driver_data; local 941 struct sdio_uart_port *port = tty->driver_data; local 956 struct sdio_uart_port *port = tty->driver_data; local 975 struct sdio_uart_port *port = sdio_uart_port_get(i); local 1058 struct sdio_uart_port *port; local 1131 struct sdio_uart_port *port = sdio_get_drvdata(func); local [all...] |
/drivers/parport/ |
H A D | ieee1284.c | 42 static void parport_ieee1284_wakeup (struct parport *port) argument 44 up (&port->physport->ieee1284.irq); 54 * parport_wait_event - wait for an event on a parallel port 55 * @port: port to wait on 59 * interrupt to occur on a parallel port. If the port timeout is 69 int parport_wait_event (struct parport *port, signed long timeout) argument 74 if (!port->physport->cad->timeout) 82 port_from_cookie[port 120 parport_poll_peripheral(struct parport *port, unsigned char mask, unsigned char result, int usec) argument 169 parport_wait_peripheral(struct parport *port, unsigned char mask, unsigned char result) argument 227 parport_ieee1284_terminate(struct parport *port) argument 334 parport_negotiate(struct parport *port, int mode) argument 560 parport_ieee1284_ack_data_avail(struct parport *port) argument 576 struct parport *port = handle; local 607 parport_write(struct parport *port, const void *buffer, size_t len) argument 700 parport_read(struct parport *port, void *buffer, size_t len) argument [all...] |
H A D | daisy.c | 2 * IEEE 1284.3 Parallel port daisy chain and multiplexor code 12 * 31-01-1999: Make port-cloning transparent. 41 struct parport *port; member in struct:daisydev 50 static int mux_present(struct parport *port); 51 static int num_mux_ports(struct parport *port); 52 static int select_port(struct parport *port); 53 static int assign_addrs(struct parport *port); 56 static void add_dev(int devnum, struct parport *port, int daisy) argument 61 newdev->port = port; 92 parport_daisy_init(struct parport *port) argument 175 parport_daisy_fini(struct parport *port) argument 216 struct parport *port; local 271 cpp_daisy(struct parport *port, int cmd) argument 319 cpp_mux(struct parport *port, int cmd) argument 348 parport_daisy_deselect_all(struct parport *port) argument 353 parport_daisy_select(struct parport *port, int daisy, int mode) argument 384 mux_present(struct parport *port) argument 389 num_mux_ports(struct parport *port) argument 394 select_port(struct parport *port) argument 400 assign_addrs(struct parport *port) argument [all...] |
H A D | ieee1284_ops.c | 6 * the function pointers in port->ops); if not, they can just use these 40 size_t parport_ieee1284_write_compat (struct parport *port, argument 48 struct pardevice *dev = port->physport->cad; 52 if (port->irq != PARPORT_IRQ_NONE) { 53 parport_enable_irq (port); 57 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; 58 parport_write_control (port, ctl); 59 parport_data_forward (port); 71 if (!parport_wait_peripheral (port, mask, val)) 76 if ((parport_read_status (port) 149 parport_ieee1284_read_nibble(struct parport *port, void *buffer, size_t len, int flags) argument 240 parport_ieee1284_read_byte(struct parport *port, void *buffer, size_t len, int flags) argument 334 ecp_forward_to_reverse(struct parport *port) argument 368 ecp_reverse_to_forward(struct parport *port) argument 403 parport_ieee1284_ecp_write_data(struct parport *port, const void *buffer, size_t len, int flags) argument 490 parport_ieee1284_ecp_read_data(struct parport *port, void *buffer, size_t len, int flags) argument 638 parport_ieee1284_ecp_write_addr(struct parport *port, const void *buffer, size_t len, int flags) argument 730 parport_ieee1284_epp_write_data(struct parport *port, const void *buffer, size_t len, int flags) argument 774 parport_ieee1284_epp_read_data(struct parport *port, void *buffer, size_t len, int flags) argument 818 parport_ieee1284_epp_write_addr(struct parport *port, const void *buffer, size_t len, int flags) argument 862 parport_ieee1284_epp_read_addr(struct parport *port, void *buffer, size_t len, int flags) argument [all...] |
/drivers/tty/serial/8250/ |
H A D | 8250_early.c | 17 * we locate the device directly by its MMIO or I/O port address. 41 unsigned int __weak __init serial8250_early_in(struct uart_port *port, int offset) argument 43 switch (port->iotype) { 45 return readb(port->membase + offset); 47 return readl(port->membase + (offset << 2)); 49 return inb(port->iobase + offset); 55 void __weak __init serial8250_early_out(struct uart_port *port, int offset, int value) argument 57 switch (port->iotype) { 59 writeb(value, port->membase + offset); 62 writel(value, port 72 wait_for_xmitr(struct uart_port *port) argument 84 serial_putc(struct uart_port *port, int c) argument 93 struct uart_port *port = &early_device->port; local 107 probe_baud(struct uart_port *port) argument 124 struct uart_port *port = &device->port; local 175 struct uart_port *port = device ? &device->port : NULL; local [all...] |
H A D | 8250_fsl.c | 26 int fsl8250_handle_irq(struct uart_port *port) argument 31 struct uart_8250_port *up = up_to_u8250p(port); 33 spin_lock_irqsave(&up->port.lock, flags); 35 iir = port->serial_in(port, UART_IIR); 37 spin_unlock_irqrestore(&up->port.lock, flags); 44 port->serial_in(port, UART_RX); 45 spin_unlock_irqrestore(&up->port.lock, flags); 49 lsr = orig_lsr = up->port [all...] |
/drivers/net/bonding/ |
H A D | bond_3ad.c | 103 static int ad_lacpdu_send(struct port *port); 104 static int ad_marker_send(struct port *port, struct bond_marker *marker); 105 static void ad_mux_machine(struct port *port, bool *update_slave_arr); 106 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port); 107 static void ad_tx_machine(struct port *port); 133 __get_bond_by_port(struct port *port) argument 149 __get_first_agg(struct port *port) argument 183 __disable_port(struct port *port) argument 192 __enable_port(struct port *port) argument 204 __port_is_enabled(struct port *port) argument 215 __get_agg_selection_mode(struct port *port) argument 229 __check_agg_selection_timer(struct port *port) argument 250 __get_link_speed(struct port *port) argument 300 __get_duplex(struct port *port) argument 393 __choose_matched(struct lacpdu *lacpdu, struct port *port) argument 422 __record_pdu(struct lacpdu *lacpdu, struct port *port) argument 460 __record_default(struct port *port) argument 485 __update_selected(struct lacpdu *lacpdu, struct port *port) argument 516 __update_default_selected(struct port *port) argument 549 __update_ntt(struct lacpdu *lacpdu, struct port *port) argument 578 struct port *port; local 606 struct port *port; local 673 __update_lacpdu_from_port(struct port *port) argument 724 ad_lacpdu_send(struct port *port) argument 765 ad_marker_send(struct port *port, struct bond_marker *marker) argument 804 ad_mux_machine(struct port *port, bool *update_slave_arr) argument 947 ad_rx_machine(struct lacpdu *lacpdu, struct port *port) argument 1079 ad_tx_machine(struct port *port) argument 1112 ad_periodic_machine(struct port *port) argument 1203 ad_port_selection_logic(struct port *port, bool *update_slave_arr) argument 1434 struct port *port = agg->lag_ports; local 1476 struct port *port; local 1629 ad_initialize_port(struct port *port, int lacp_fast) argument 1697 ad_enable_collecting_distributing(struct port *port, bool *update_slave_arr) argument 1715 ad_disable_collecting_distributing(struct port *port, bool *update_slave_arr) argument 1735 ad_marker_info_received(struct bond_marker *marker_info, struct port *port) argument 1761 ad_marker_response_received(struct bond_marker *marker, struct port *port) argument 1826 struct port *port; local 1885 struct port *port, *prev_port, *temp_port; local 2056 struct port *port; local 2144 struct port *port; local 2204 struct port *port; local 2237 struct port *port; local 2271 struct port *port; local 2380 struct port *port; local 2441 struct port *port = NULL; local [all...] |
/drivers/usb/gadget/function/ |
H A D | u_serial.c | 2 * u_serial.c - utilities for USB gadget "serial port"/TTY support 36 * "serial port" functionality through the USB gadget stack. Each such 37 * port is exposed through a /dev/ttyGS* node. 39 * After this module has been loaded, the individual TTY port can be requested 43 * host issues a config change event. Data can only flow when the port is 46 * A given TTY port can be made available in multiple configurations. 53 * Configurations may expose more than one TTY port. For example, if 92 * The port structure holds info for each port, one for each minor number 96 struct tty_port port; member in struct:gs_port 123 struct gs_port *port; member in struct:portmaster 332 gs_send_packet(struct gs_port *port, char *packet, unsigned size) argument 355 gs_start_tx(struct gs_port *port) argument 422 gs_start_rx(struct gs_port *port) argument 482 struct gs_port *port = (void *)_port; local 582 struct gs_port *port = ep->driver_data; local 593 struct gs_port *port = ep->driver_data; local 666 gs_start_io(struct gs_port *port) argument 720 struct gs_port *port; local 830 struct gs_port *port = tty->driver_data; local 891 struct gs_port *port = tty->driver_data; local 911 struct gs_port *port = tty->driver_data; local 927 struct gs_port *port = tty->driver_data; local 940 struct gs_port *port = tty->driver_data; local 957 struct gs_port *port = tty->driver_data; local 974 struct gs_port *port = tty->driver_data; local 991 struct gs_port *port = tty->driver_data; local 1026 struct gs_port *port; local 1060 gs_closed(struct gs_port *port) argument 1070 gserial_free_port(struct gs_port *port) argument 1082 struct gs_port *port; local 1127 struct gs_port *port; local 1166 struct gs_port *port; local 1242 struct gs_port *port = gser->ioport; local [all...] |
/drivers/usb/serial/ |
H A D | generic.c | 80 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) argument 85 spin_lock_irqsave(&port->lock, flags); 86 port->throttled = 0; 87 port->throttle_req = 0; 88 spin_unlock_irqrestore(&port->lock, flags); 90 if (port->bulk_in_size) 91 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); 97 void usb_serial_generic_close(struct usb_serial_port *port) argument 102 if (port->bulk_out_size) { 103 for (i = 0; i < ARRAY_SIZE(port 117 usb_serial_generic_prepare_write_buffer(struct usb_serial_port *port, void *dest, size_t size) argument 132 usb_serial_generic_write_start(struct usb_serial_port *port, gfp_t mem_flags) argument 191 usb_serial_generic_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument 213 struct usb_serial_port *port = tty->driver_data; local 230 struct usb_serial_port *port = tty->driver_data; local 248 struct usb_serial_port *port = tty->driver_data; local 277 usb_serial_generic_submit_read_urb(struct usb_serial_port *port, int index, gfp_t mem_flags) argument 301 usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, gfp_t mem_flags) argument 324 struct usb_serial_port *port = urb->context; local 349 struct usb_serial_port *port = urb->context; local 400 struct usb_serial_port *port = urb->context; local 439 struct usb_serial_port *port = tty->driver_data; local 450 struct usb_serial_port *port = tty->driver_data; local 466 struct usb_serial_port *port = tty->driver_data; local 494 struct usb_serial_port *port = tty->driver_data; local 515 struct usb_serial_port *port = tty->driver_data; local 540 usb_serial_handle_sysrq_char(struct usb_serial_port *port, unsigned int ch) argument 553 usb_serial_handle_sysrq_char(struct usb_serial_port *port, unsigned int ch) argument 560 usb_serial_handle_break(struct usb_serial_port *port) argument 580 struct tty_port *port = &usb_port->port; local 603 struct usb_serial_port *port; local [all...] |