/linux-master/arch/x86/boot/ |
H A D | early_serial_console.c | 3 * Serial port routines for use during early boot reporting. This code is 26 static void early_serial_init(int port, int baud) argument 31 outb(0x3, port + LCR); /* 8n1 */ 32 outb(0, port + IER); /* no interrupt */ 33 outb(0, port + FCR); /* no fifo */ 34 outb(0x3, port + MCR); /* DTR + RTS */ 37 c = inb(port + LCR); 38 outb(c | DLAB, port + LCR); 39 outb(divisor & 0xff, port + DLL); 40 outb((divisor >> 8) & 0xff, port 51 int port = 0; local 102 probe_baud(int port) argument 121 int port = 0; local [all...] |
/linux-master/drivers/parport/ |
H A D | ieee1284_ops.c | 7 * the function pointers in port->ops); if not, they can just use these 35 size_t parport_ieee1284_write_compat (struct parport *port, argument 43 struct pardevice *dev = port->physport->cad; 47 if (port->irq != PARPORT_IRQ_NONE) { 48 parport_enable_irq (port); 52 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; 53 parport_write_control (port, ctl); 54 parport_data_forward (port); 66 if (!parport_wait_peripheral (port, mask, val)) 71 if ((parport_read_status (port) 144 parport_ieee1284_read_nibble(struct parport *port, void *buffer, size_t len, int flags) argument 232 parport_ieee1284_read_byte(struct parport *port, void *buffer, size_t len, int flags) argument 323 ecp_forward_to_reverse(struct parport *port) argument 355 ecp_reverse_to_forward(struct parport *port) argument 388 parport_ieee1284_ecp_write_data(struct parport *port, const void *buffer, size_t len, int flags) argument 474 parport_ieee1284_ecp_read_data(struct parport *port, void *buffer, size_t len, int flags) argument 618 parport_ieee1284_ecp_write_addr(struct parport *port, const void *buffer, size_t len, int flags) argument 709 parport_ieee1284_epp_write_data(struct parport *port, const void *buffer, size_t len, int flags) argument 753 parport_ieee1284_epp_read_data(struct parport *port, void *buffer, size_t len, int flags) argument 797 parport_ieee1284_epp_write_addr(struct parport *port, const void *buffer, size_t len, int flags) argument 841 parport_ieee1284_epp_read_addr(struct parport *port, void *buffer, size_t len, int flags) argument [all...] |
/linux-master/drivers/gpio/ |
H A D | gpio-mxc.c | 123 #define GPIO_DR (port->hwdata->dr_reg) 124 #define GPIO_GDIR (port->hwdata->gdir_reg) 125 #define GPIO_PSR (port->hwdata->psr_reg) 126 #define GPIO_ICR1 (port->hwdata->icr1_reg) 127 #define GPIO_ICR2 (port->hwdata->icr2_reg) 128 #define GPIO_IMR (port->hwdata->imr_reg) 129 #define GPIO_ISR (port->hwdata->isr_reg) 130 #define GPIO_EDGE_SEL (port->hwdata->edge_sel_reg) 132 #define GPIO_INT_LOW_LEV (port->hwdata->low_level) 133 #define GPIO_INT_HIGH_LEV (port 163 struct mxc_gpio_port *port = gc->private; local 230 mxc_flip_edge(struct mxc_gpio_port *port, u32 gpio) argument 262 mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat) argument 280 struct mxc_gpio_port *port = irq_desc_get_handler_data(desc); local 299 struct mxc_gpio_port *port; local 329 struct mxc_gpio_port *port = gc->private; local 350 mxc_gpio_init_gc(struct mxc_gpio_port *port, int irq_base) argument 381 struct mxc_gpio_port *port = gpiochip_get_data(gc); local 403 mxc_update_irq_chained_handler(struct mxc_gpio_port *port, bool enable) argument 424 struct mxc_gpio_port *port; local 536 mxc_gpio_save_regs(struct mxc_gpio_port *port) argument 549 mxc_gpio_restore_regs(struct mxc_gpio_port *port) argument 562 mxc_gpio_generic_config(struct mxc_gpio_port *port, unsigned int offset, unsigned long conf) argument 575 mxc_gpio_set_pad_wakeup(struct mxc_gpio_port *port, bool enable) argument 609 struct mxc_gpio_port *port = dev_get_drvdata(dev); local 620 struct mxc_gpio_port *port = dev_get_drvdata(dev); local 638 struct mxc_gpio_port *port = platform_get_drvdata(pdev); local 649 struct mxc_gpio_port *port = platform_get_drvdata(pdev); local 665 struct mxc_gpio_port *port; local 682 struct mxc_gpio_port *port; local [all...] |
/linux-master/drivers/tty/serial/ |
H A D | arc_uart.c | 68 #define RBASE(port, reg) (port->membase + reg) 96 struct uart_port port; member in struct:arc_uart_port 100 #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) 122 static void arc_serial_stop_rx(struct uart_port *port) argument 124 UART_RX_IRQ_DISABLE(port); 127 static void arc_serial_stop_tx(struct uart_port *port) argument 129 while (!(UART_GET_STATUS(port) & TXEMPTY)) 132 UART_TX_IRQ_DISABLE(port); 138 static unsigned int arc_serial_tx_empty(struct uart_port *port) argument 156 arc_serial_tx_chars(struct uart_port *port) argument 191 arc_serial_start_tx(struct uart_port *port) argument 196 arc_serial_rx_chars(struct uart_port *port, unsigned int status) argument 269 struct uart_port *port = dev_id; local 305 arc_serial_get_mctrl(struct uart_port *port) argument 317 arc_serial_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 322 arc_serial_break_ctl(struct uart_port *port, int break_state) argument 327 arc_serial_startup(struct uart_port *port) argument 343 arc_serial_shutdown(struct uart_port *port) argument 349 arc_serial_set_termios(struct uart_port *port, struct ktermios *new, const struct ktermios *old) argument 397 arc_serial_type(struct uart_port *port) argument 402 arc_serial_release_port(struct uart_port *port) argument 406 arc_serial_request_port(struct uart_port *port) argument 415 arc_serial_verify_port(struct uart_port *port, struct serial_struct *ser) argument 426 arc_serial_config_port(struct uart_port *port, int flags) argument 434 arc_serial_poll_putchar(struct uart_port *port, unsigned char chr) argument 442 arc_serial_poll_getchar(struct uart_port *port) argument 480 struct uart_port *port; local 507 arc_serial_console_putchar(struct uart_port *port, unsigned char ch) argument 521 struct uart_port *port = &arc_uart_ports[co->index].port; local 550 struct uart_port *port = &dev->port; local 574 struct uart_port *port; local [all...] |
H A D | amba-pl010.c | 49 * We wrap our port structure around the generic uart_port. 52 struct uart_port port; member in struct:uart_amba_port 59 static void pl010_stop_tx(struct uart_port *port) argument 62 container_of(port, struct uart_amba_port, port); 65 cr = readb(uap->port.membase + UART010_CR); 67 writel(cr, uap->port.membase + UART010_CR); 70 static void pl010_start_tx(struct uart_port *port) argument 73 container_of(port, struct uart_amba_port, port); 81 pl010_stop_rx(struct uart_port *port) argument 92 pl010_disable_ms(struct uart_port *port) argument 102 pl010_enable_ms(struct uart_port *port) argument 113 pl010_rx_chars(struct uart_port *port) argument 166 pl010_tx_chars(struct uart_port *port) argument 178 struct uart_port *port = &uap->port; local 206 struct uart_port *port = &uap->port; local 236 pl010_tx_empty(struct uart_port *port) argument 243 pl010_get_mctrl(struct uart_port *port) argument 259 pl010_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 268 pl010_break_ctl(struct uart_port *port, int break_state) argument 283 pl010_startup(struct uart_port *port) argument 324 pl010_shutdown(struct uart_port *port) argument 351 pl010_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 444 pl010_set_ldisc(struct uart_port *port, struct ktermios *termios) argument 461 pl010_type(struct uart_port *port) argument 469 pl010_release_port(struct uart_port *port) argument 477 pl010_request_port(struct uart_port *port) argument 486 pl010_config_port(struct uart_port *port, int flags) argument 497 pl010_verify_port(struct uart_port *port, struct serial_struct *ser) argument 533 pl010_console_putchar(struct uart_port *port, unsigned char ch) argument 548 struct uart_port *port = &uap->port; local [all...] |
H A D | mpc52xx_uart.c | 75 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) 80 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port); 87 void (*fifo_init)(struct uart_port *port); 88 unsigned int (*raw_rx_rdy)(struct uart_port *port); 89 unsigned int (*raw_tx_rdy)(struct uart_port *port); 90 unsigned int (*rx_rdy)(struct uart_port *port); 91 unsigned int (*tx_rdy)(struct uart_port *port); 92 unsigned int (*tx_empty)(struct uart_port *port); 93 void (*stop_rx)(struct uart_port *port); 133 mpc52xx_psc_get_status(struct uart_port *port) argument 138 mpc52xx_psc_get_ipcr(struct uart_port *port) argument 143 mpc52xx_psc_command(struct uart_port *port, u8 cmd) argument 148 mpc52xx_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) argument 155 mpc52xx_psc_set_rts(struct uart_port *port, int state) argument 163 mpc52xx_psc_enable_ms(struct uart_port *port) argument 176 mpc52xx_psc_set_sicr(struct uart_port *port, u32 val) argument 181 mpc52xx_psc_set_imr(struct uart_port *port, u16 val) argument 186 mpc52xx_psc_get_mr1(struct uart_port *port) argument 194 mpc52xx_psc_fifo_init(struct uart_port *port) argument 208 mpc52xx_psc_raw_rx_rdy(struct uart_port *port) argument 214 mpc52xx_psc_raw_tx_rdy(struct uart_port *port) argument 221 mpc52xx_psc_rx_rdy(struct uart_port *port) argument 228 mpc52xx_psc_tx_rdy(struct uart_port *port) argument 235 mpc52xx_psc_tx_empty(struct uart_port *port) argument 242 mpc52xx_psc_start_tx(struct uart_port *port) argument 248 mpc52xx_psc_stop_tx(struct uart_port *port) argument 254 mpc52xx_psc_stop_rx(struct uart_port *port) argument 260 mpc52xx_psc_rx_clr_irq(struct uart_port *port) argument 264 mpc52xx_psc_tx_clr_irq(struct uart_port *port) argument 268 mpc52xx_psc_write_char(struct uart_port *port, unsigned char c) argument 273 mpc52xx_psc_read_char(struct uart_port *port) argument 278 mpc52xx_psc_cw_disable_ints(struct uart_port *port) argument 283 mpc52xx_psc_cw_restore_ints(struct uart_port *port) argument 288 mpc5200_psc_set_baudrate(struct uart_port *port, struct ktermios *new, const struct ktermios *old) argument 306 mpc5200b_psc_set_baudrate(struct uart_port *port, struct ktermios *new, const struct ktermios *old) argument 332 mpc52xx_psc_get_irq(struct uart_port *port, struct device_node *np) argument 339 mpc52xx_psc_handle_irq(struct uart_port *port) argument 422 mpc512x_psc_fifo_init(struct uart_port *port) argument 441 mpc512x_psc_raw_rx_rdy(struct uart_port *port) argument 446 mpc512x_psc_raw_tx_rdy(struct uart_port *port) argument 451 mpc512x_psc_rx_rdy(struct uart_port *port) argument 458 mpc512x_psc_tx_rdy(struct uart_port *port) argument 465 mpc512x_psc_tx_empty(struct uart_port *port) argument 471 mpc512x_psc_stop_rx(struct uart_port *port) argument 480 mpc512x_psc_start_tx(struct uart_port *port) argument 489 mpc512x_psc_stop_tx(struct uart_port *port) argument 498 mpc512x_psc_rx_clr_irq(struct uart_port *port) argument 503 mpc512x_psc_tx_clr_irq(struct uart_port *port) argument 508 mpc512x_psc_write_char(struct uart_port *port, unsigned char c) argument 513 mpc512x_psc_read_char(struct uart_port *port) argument 518 mpc512x_psc_cw_disable_ints(struct uart_port *port) argument 527 mpc512x_psc_cw_restore_ints(struct uart_port *port) argument 534 mpc512x_psc_set_baudrate(struct uart_port *port, struct ktermios *new, const struct ktermios *old) argument 638 mpc512x_psc_handle_irq(struct uart_port *port) argument 659 mpc512x_psc_alloc_clock(struct uart_port *port) argument 708 mpc512x_psc_relse_clock(struct uart_port *port) argument 726 mpc512x_psc_endis_clock(struct uart_port *port, int enable) argument 754 mpc512x_psc_get_irq(struct uart_port *port, struct device_node *np) argument 763 mpc5125_psc_fifo_init(struct uart_port *port) argument 782 mpc5125_psc_raw_rx_rdy(struct uart_port *port) argument 787 mpc5125_psc_raw_tx_rdy(struct uart_port *port) argument 792 mpc5125_psc_rx_rdy(struct uart_port *port) argument 798 mpc5125_psc_tx_rdy(struct uart_port *port) argument 804 mpc5125_psc_tx_empty(struct uart_port *port) argument 809 mpc5125_psc_stop_rx(struct uart_port *port) argument 818 mpc5125_psc_start_tx(struct uart_port *port) argument 827 mpc5125_psc_stop_tx(struct uart_port *port) argument 836 mpc5125_psc_rx_clr_irq(struct uart_port *port) argument 841 mpc5125_psc_tx_clr_irq(struct uart_port *port) argument 846 mpc5125_psc_write_char(struct uart_port *port, unsigned char c) argument 851 mpc5125_psc_read_char(struct uart_port *port) argument 856 mpc5125_psc_cw_disable_ints(struct uart_port *port) argument 865 mpc5125_psc_cw_restore_ints(struct uart_port *port) argument 881 mpc5125_psc_set_baudrate(struct uart_port *port, struct ktermios *new, const struct ktermios *old) argument 907 mpc5125_psc_get_status(struct uart_port *port) argument 912 mpc5125_psc_get_ipcr(struct uart_port *port) argument 917 mpc5125_psc_command(struct uart_port *port, u8 cmd) argument 922 mpc5125_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) argument 928 mpc5125_psc_set_rts(struct uart_port *port, int state) argument 936 mpc5125_psc_enable_ms(struct uart_port *port) argument 949 mpc5125_psc_set_sicr(struct uart_port *port, u32 val) argument 954 mpc5125_psc_set_imr(struct uart_port *port, u16 val) argument 959 mpc5125_psc_get_mr1(struct uart_port *port) argument 1043 mpc52xx_uart_tx_empty(struct uart_port *port) argument 1049 mpc52xx_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 1055 mpc52xx_uart_get_mctrl(struct uart_port *port) argument 1069 mpc52xx_uart_stop_tx(struct uart_port *port) argument 1076 mpc52xx_uart_start_tx(struct uart_port *port) argument 1083 mpc52xx_uart_stop_rx(struct uart_port *port) argument 1090 mpc52xx_uart_enable_ms(struct uart_port *port) argument 1096 mpc52xx_uart_break_ctl(struct uart_port *port, int ctl) argument 1110 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, const 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 1429 mpc52xx_uart_int_tx_chars(struct uart_port *port) argument 1439 mpc5xxx_uart_process_int(struct uart_port *port) argument 1477 struct uart_port *port = dev_id; local 1496 mpc52xx_console_get_options(struct uart_port *port, int *baud, int *parity, int *bits, int *flow) argument 1534 struct uart_port *port = &mpc52xx_uart_ports[co->index]; local 1568 struct uart_port *port = &mpc52xx_uart_ports[co->index]; local 1703 struct uart_port *port = NULL; local 1770 struct uart_port *port = platform_get_drvdata(op); local 1780 struct uart_port *port = platform_get_drvdata(op); local 1791 struct uart_port *port = platform_get_drvdata(op); local [all...] |
H A D | esp32_uart.c | 93 struct uart_port port; member in struct:esp32_port 139 static const struct esp32_uart_variant *port_variant(struct uart_port *port) argument 141 return port->private_data; 144 static void esp32_uart_write(struct uart_port *port, unsigned long reg, u32 v) argument 146 writel(v, port->membase + reg); 149 static u32 esp32_uart_read(struct uart_port *port, unsigned long reg) argument 151 return readl(port->membase + reg); 154 static u32 esp32_uart_tx_fifo_cnt(struct uart_port *port) argument 156 u32 status = esp32_uart_read(port, UART_STATUS_REG); 158 return (status & port_variant(port) 161 esp32_uart_rx_fifo_cnt(struct uart_port *port) argument 169 esp32_uart_tx_empty(struct uart_port *port) argument 174 esp32_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 192 esp32_uart_get_mctrl(struct uart_port *port) argument 205 esp32_uart_stop_tx(struct uart_port *port) argument 214 esp32_uart_rxint(struct uart_port *port) argument 246 esp32_uart_put_char(struct uart_port *port, u8 c) argument 251 esp32_uart_put_char_sync(struct uart_port *port, u8 c) argument 265 esp32_uart_transmit_buffer(struct uart_port *port) argument 287 esp32_uart_txint(struct uart_port *port) argument 294 struct uart_port *port = dev_id; local 309 esp32_uart_start_tx(struct uart_port *port) argument 314 esp32_uart_stop_rx(struct uart_port *port) argument 323 esp32_uart_startup(struct uart_port *port) argument 353 esp32_uart_shutdown(struct uart_port *port) argument 362 esp32_uart_set_baud(struct uart_port *port, u32 baud) argument 390 esp32_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 466 esp32_uart_type(struct uart_port *port) argument 472 esp32_uart_config_port(struct uart_port *port, int flags) argument 479 esp32_uart_poll_init(struct uart_port *port) argument 486 esp32_uart_poll_put_char(struct uart_port *port, unsigned char c) argument 491 esp32_uart_poll_get_char(struct uart_port *port) argument 520 esp32_uart_console_putchar(struct uart_port *port, u8 c) argument 525 esp32_uart_string_write(struct uart_port *port, const char *s, unsigned int count) argument 535 struct uart_port *port = &sport->port; local 603 esp32_uart_earlycon_putchar(struct uart_port *port, u8 c) argument 682 struct uart_port *port; local 738 struct uart_port *port = platform_get_drvdata(pdev); local [all...] |
H A D | sunhv.c | 42 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) argument 50 uart_xmit_advance(port, 1); 54 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) argument 65 uart_xmit_advance(port, sent); 69 static int receive_chars_getchar(struct uart_port *port) argument 82 if (uart_handle_break(port)) 90 uart_handle_dcd_change(port, false); 93 uart_handle_dcd_change(port, true); 96 if (port->state == NULL) { 97 uart_handle_sysrq_char(port, 112 receive_chars_read(struct uart_port *port) argument 184 receive_chars(struct uart_port *port) argument 197 transmit_chars(struct uart_port *port) argument 216 struct uart_port *port = dev_id; local 232 sunhv_tx_empty(struct uart_port *port) argument 242 sunhv_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 248 sunhv_get_mctrl(struct uart_port *port) argument 254 sunhv_stop_tx(struct uart_port *port) argument 260 sunhv_start_tx(struct uart_port *port) argument 266 sunhv_send_xchar(struct uart_port *port, char ch) argument 287 sunhv_stop_rx(struct uart_port *port) argument 292 sunhv_break_ctl(struct uart_port *port, int break_state) argument 312 sunhv_startup(struct uart_port *port) argument 318 sunhv_shutdown(struct uart_port *port) argument 323 sunhv_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 349 sunhv_type(struct uart_port *port) argument 354 sunhv_release_port(struct uart_port *port) argument 358 sunhv_request_port(struct uart_port *port) argument 363 sunhv_config_port(struct uart_port *port, int flags) argument 367 sunhv_verify_port(struct uart_port *port, struct serial_struct *ser) argument 435 struct uart_port *port = sunhv_port; local 476 sunhv_console_putchar(struct uart_port *port, char c) argument 490 struct uart_port *port = sunhv_port; local 520 struct uart_port *port; local 600 struct uart_port *port = platform_get_drvdata(dev); local [all...] |
H A D | liteuart.c | 46 struct uart_port port; member in struct:liteuart_port 51 #define to_liteuart_port(port) container_of(port, struct liteuart_port, port) 71 static void liteuart_update_irq_reg(struct uart_port *port, bool set, u8 mask) argument 73 struct liteuart_port *uart = to_liteuart_port(port); 80 if (port->irq) 81 litex_write8(port->membase + OFF_EV_ENABLE, uart->irq_reg); 84 static void liteuart_stop_tx(struct uart_port *port) argument 86 liteuart_update_irq_reg(port, fals 89 liteuart_start_tx(struct uart_port *port) argument 94 liteuart_stop_rx(struct uart_port *port) argument 102 liteuart_rx_chars(struct uart_port *port) argument 122 liteuart_tx_chars(struct uart_port *port) argument 134 struct uart_port *port = &uart->port; local 156 struct uart_port *port = &uart->port; local 162 liteuart_tx_empty(struct uart_port *port) argument 171 liteuart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument 176 liteuart_get_mctrl(struct uart_port *port) argument 181 liteuart_startup(struct uart_port *port) argument 211 liteuart_shutdown(struct uart_port *port) argument 226 liteuart_set_termios(struct uart_port *port, struct ktermios *new, const struct ktermios *old) argument 241 liteuart_type(struct uart_port *port) argument 246 liteuart_config_port(struct uart_port *port, int flags) argument 256 liteuart_verify_port(struct uart_port *port, struct serial_struct *ser) argument 283 struct uart_port *port; local 341 struct uart_port *port = platform_get_drvdata(pdev); local 365 liteuart_putchar(struct uart_port *port, unsigned char ch) argument 377 struct uart_port *port; local 391 struct uart_port *port; local 433 struct uart_port *port = &device->port; local [all...] |
/linux-master/drivers/scsi/libsas/ |
H A D | sas_port.c | 15 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) argument 19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, 21 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) 29 struct asd_sas_port *port = phy->port; local 36 if (port->suspended) 37 port->suspended = 0; 43 /* if the port came back: 47 list_for_each_entry_safe(dev, n, &port->dev_list, dev_list_node) { 52 sas_unregister_dev(port, de 70 sas_form_port_add_phy(struct asd_sas_port *port, struct asd_sas_phy *phy, bool wideport) argument 108 struct asd_sas_port *port = phy->port; local 212 struct asd_sas_port *port = phy->port; local 325 sas_init_port(struct asd_sas_port *port, struct sas_ha_struct *sas_ha, int i) argument 347 struct asd_sas_port *port = sas_ha->sas_port[i]; local [all...] |
/linux-master/drivers/net/bonding/ |
H A D | bond_3ad.c | 93 static int ad_lacpdu_send(struct port *port); 94 static int ad_marker_send(struct port *port, struct bond_marker *marker); 95 static void ad_mux_machine(struct port *port, bool *update_slave_arr); 96 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port); 97 static void ad_tx_machine(struct port *port); 127 __get_bond_by_port(struct port *port) argument 143 __get_first_agg(struct port *port) argument 180 __disable_distributing_port(struct port *port) argument 192 __enable_collecting_port(struct port *port) argument 206 __disable_port(struct port *port) argument 217 __enable_port(struct port *port) argument 230 __port_move_to_attached_state(struct port *port) argument 246 __port_is_collecting_distributing(struct port *port) argument 257 __get_agg_selection_mode(struct port *port) argument 271 __check_agg_selection_timer(struct port *port) argument 304 __get_link_speed(struct port *port) argument 407 __get_duplex(struct port *port) argument 433 __ad_actor_update_port(struct port *port) argument 506 __choose_matched(struct lacpdu *lacpdu, struct port *port) argument 535 __record_pdu(struct lacpdu *lacpdu, struct port *port) argument 578 __record_default(struct port *port) argument 603 __update_selected(struct lacpdu *lacpdu, struct port *port) argument 634 __update_default_selected(struct port *port) argument 667 __update_ntt(struct lacpdu *lacpdu, struct port *port) argument 696 struct port *port; local 724 struct port *port; local 737 struct port *port; local 842 __update_lacpdu_from_port(struct port *port) argument 896 ad_lacpdu_send(struct port *port) argument 940 ad_marker_send(struct port *port, struct bond_marker *marker) argument 990 ad_mux_machine(struct port *port, bool *update_slave_arr) argument 1200 ad_rx_machine(struct lacpdu *lacpdu, struct port *port) argument 1338 ad_churn_machine(struct port *port) argument 1376 ad_tx_machine(struct port *port) argument 1412 ad_periodic_machine(struct port *port, struct bond_params *bond_params) argument 1504 ad_port_selection_logic(struct port *port, bool *update_slave_arr) argument 1743 struct port *port = agg->lag_ports; local 1791 struct port *port; local 1948 ad_initialize_port(struct port *port, int lacp_fast) argument 2015 ad_enable_collecting(struct port *port) argument 2033 ad_disable_distributing(struct port *port, bool *update_slave_arr) argument 2053 ad_enable_collecting_distributing(struct port *port, bool *update_slave_arr) argument 2072 ad_disable_collecting_distributing(struct port *port, bool *update_slave_arr) argument 2091 ad_marker_info_received(struct bond_marker *marker_info, struct port *port) argument 2120 ad_marker_response_received(struct bond_marker *marker, struct port *port) argument 2181 struct port *port; local 2231 struct port *port, *prev_port, *temp_port; local 2409 struct port *port = &(SLAVE_AD_INFO(slave))->port; local 2459 struct port *port; local 2547 struct port *port; local 2613 ad_update_actor_keys(struct port *port, bool reset) argument 2659 struct port *port; local 2687 struct port *port; local 2788 struct port *port; local 2855 struct port *port = NULL; local [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc.c | 10 static int lan966x_tc_setup_qdisc_mqprio(struct lan966x_port *port, argument 17 return num_tc ? lan966x_mqprio_add(port, num_tc) : 18 lan966x_mqprio_del(port); 21 static int lan966x_tc_setup_qdisc_taprio(struct lan966x_port *port, argument 26 return lan966x_taprio_add(port, taprio); 28 return lan966x_taprio_del(port); 34 static int lan966x_tc_setup_qdisc_tbf(struct lan966x_port *port, argument 39 return lan966x_tbf_add(port, qopt); 41 return lan966x_tbf_del(port, qopt); 49 static int lan966x_tc_setup_qdisc_cbs(struct lan966x_port *port, argument 56 lan966x_tc_setup_qdisc_ets(struct lan966x_port *port, struct tc_ets_qopt_offload *qopt) argument 74 struct lan966x_port *port = cb_priv; local 98 lan966x_tc_setup_block(struct lan966x_port *port, struct flow_block_offload *f) argument 122 struct lan966x_port *port = netdev_priv(dev); local [all...] |
H A D | lan966x_tc_matchall.c | 5 static int lan966x_tc_matchall_add(struct lan966x_port *port, argument 20 return lan966x_police_port_add(port, &f->rule->action, act, 24 return lan966x_mirror_port_add(port, act, f->cookie, 27 return lan966x_goto_port_add(port, f->common.chain_index, 39 static int lan966x_tc_matchall_del(struct lan966x_port *port, argument 43 if (f->cookie == port->tc.police_id) { 44 return lan966x_police_port_del(port, f->cookie, 46 } else if (f->cookie == port->tc.ingress_mirror_id || 47 f->cookie == port->tc.egress_mirror_id) { 48 return lan966x_mirror_port_del(port, ingres 57 lan966x_tc_matchall_stats(struct lan966x_port *port, struct tc_cls_matchall_offload *f, bool ingress) argument 75 lan966x_tc_matchall(struct lan966x_port *port, struct tc_cls_matchall_offload *f, bool ingress) argument [all...] |
/linux-master/arch/m68k/include/asm/ |
H A D | parport.h | 17 #define insl(port,buf,len) isa_insb(port,buf,(len)<<2) 18 #define outsl(port,buf,len) isa_outsb(port,buf,(len)<<2)
|
/linux-master/arch/riscv/include/asm/ |
H A D | semihost.h | 12 static inline void smh_putc(struct uart_port *port, unsigned char c) argument
|
/linux-master/arch/arm64/include/asm/ |
H A D | semihost.h | 16 static inline void smh_putc(struct uart_port *port, unsigned char c) argument
|
/linux-master/include/linux/ |
H A D | tty_port.h | 18 * @carrier_raised: return true if the carrier is raised on @port 21 * port was initialized. Do not use to free resources. Turn off the device 22 * only. Called under the port mutex to serialize against @activate and 24 * @activate: called under the port mutex from tty_port_open(), serialized using 25 * the port mutex. Supposed to turn on the device. 30 * @destruct: called on the final put of a port. Free resources, possibly incl. 31 * the port itself. 34 bool (*carrier_raised)(struct tty_port *port); 35 void (*dtr_rts)(struct tty_port *port, bool active); 36 void (*shutdown)(struct tty_port *port); 164 tty_port_get(struct tty_port *port) argument 172 tty_port_cts_enabled(const struct tty_port *port) argument 177 tty_port_set_cts_flow(struct tty_port *port, bool val) argument 182 tty_port_active(const struct tty_port *port) argument 187 tty_port_set_active(struct tty_port *port, bool val) argument 192 tty_port_check_carrier(const struct tty_port *port) argument 197 tty_port_set_check_carrier(struct tty_port *port, bool val) argument 202 tty_port_suspended(const struct tty_port *port) argument 207 tty_port_set_suspended(struct tty_port *port, bool val) argument 212 tty_port_initialized(const struct tty_port *port) argument 217 tty_port_set_initialized(struct tty_port *port, bool val) argument 222 tty_port_kopened(const struct tty_port *port) argument 227 tty_port_set_kopened(struct tty_port *port, bool val) argument 252 tty_port_users(struct tty_port *port) argument [all...] |
/linux-master/drivers/media/pci/saa7164/ |
H A D | saa7164-vbi.c | 10 /* Take the encoder configuration from the port struct and 13 static void saa7164_vbi_configure(struct saa7164_port *port) argument 15 struct saa7164_dev *dev = port->dev; 18 port->vbi_params.width = port->enc_port->width; 19 port->vbi_params.height = port->enc_port->height; 20 port->vbi_params.is_50hz = 21 (port->enc_port->encodernorm.id & V4L2_STD_625_50) != 0; 24 saa7164_api_initialize_dif(port); 28 saa7164_vbi_buffers_dealloc(struct saa7164_port *port) argument 66 saa7164_vbi_buffers_alloc(struct saa7164_port *port) argument 140 saa7164_vbi_initialize(struct saa7164_port *port) argument 198 struct saa7164_port *port = fh->port; local 210 saa7164_vbi_stop_port(struct saa7164_port *port) argument 228 saa7164_vbi_acquire_port(struct saa7164_port *port) argument 246 saa7164_vbi_pause_port(struct saa7164_port *port) argument 270 saa7164_vbi_stop_streaming(struct saa7164_port *port) argument 313 saa7164_vbi_start_streaming(struct saa7164_port *port) argument 415 struct saa7164_port *port; local 442 struct saa7164_port *port = fh->port; local 463 saa7164_vbi_next_buf(struct saa7164_port *port) argument 495 struct saa7164_port *port = fh->port; local 602 struct saa7164_port *port = fh->port; local 674 saa7164_vbi_alloc( struct saa7164_port *port, struct pci_dev *pci, struct video_device *template, char *type) argument 698 saa7164_vbi_register(struct saa7164_port *port) argument 751 saa7164_vbi_unregister(struct saa7164_port *port) argument [all...] |
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_port.h | 43 static inline u32 sparx5_to_high_dev(int port) argument 45 if (sparx5_port_is_5g(port)) 47 if (sparx5_port_is_10g(port)) 52 static inline u32 sparx5_to_pcs_dev(int port) argument 54 if (sparx5_port_is_5g(port)) 56 if (sparx5_port_is_10g(port)) 61 static inline int sparx5_port_dev_index(int port) argument 63 if (sparx5_port_is_2g5(port)) 64 return port; 65 if (sparx5_port_is_5g(port)) [all...] |
H A D | sparx5_vlan.c | 44 struct sparx5_port *port = sparx5->ports[portno]; local 48 ANA_CL_VLAN_CTRL_PORT_VID_SET(port->pvid), 52 ANA_CL_VLAN_CTRL(port->portno)); 55 int sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, bool pvid, argument 58 struct sparx5 *sparx5 = port->sparx5; 62 if (untagged && port->vid != vid) { 63 if (port->vid) { 64 netdev_err(port->ndev, 66 port->vid); 69 port 87 sparx5_vlan_vid_del(struct sparx5_port *port, u16 vid) argument 118 sparx5_pgid_update_mask(struct sparx5_port *port, int pgid, bool enable) argument 159 int port; local 199 sparx5_vlan_port_apply(struct sparx5 *sparx5, struct sparx5_port *port) argument [all...] |
/linux-master/arch/sh/include/asm/ |
H A D | io_noioport.h | 23 static inline void outb(unsigned char x, unsigned long port) argument 28 static inline void outw(unsigned short x, unsigned long port) argument 33 static inline void outl(unsigned int x, unsigned long port) argument 38 static inline void __iomem *ioport_map(unsigned long port, unsigned int size) argument 49 static inline void insb(unsigned long port, void *dst, unsigned long count) argument 54 static inline void insw(unsigned long port, void *dst, unsigned long count) argument 59 static inline void insl(unsigned long port, void *dst, unsigned long count) argument 64 static inline void outsb(unsigned long port, const void *src, unsigned long count) argument 69 static inline void outsw(unsigned long port, const void *src, unsigned long count) argument 74 static inline void outsl(unsigned long port, cons argument [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | u_serial.c | 3 * u_serial.c - utilities for USB gadget "serial port"/TTY support 37 * "serial port" functionality through the USB gadget stack. Each such 38 * port is exposed through a /dev/ttyGS* node. 40 * After this module has been loaded, the individual TTY port can be requested 44 * host issues a config change event. Data can only flow when the port is 47 * A given TTY port can be made available in multiple configurations. 54 * Configurations may expose more than one TTY port. For example, if 99 * The port structure holds info for each port, one for each minor number 103 struct tty_port port; member in struct:gs_port 136 struct gs_port *port; member in struct:portmaster 207 gs_send_packet(struct gs_port *port, char *packet, unsigned size) argument 230 gs_start_tx(struct gs_port *port) argument 302 gs_start_rx(struct gs_port *port) argument 363 struct gs_port *port = container_of(w, struct gs_port, push); local 455 struct gs_port *port = ep->driver_data; local 466 struct gs_port *port = ep->driver_data; local 539 gs_start_io(struct gs_port *port) argument 599 struct gs_port *port; local 680 struct gs_port *port = tty->driver_data; local 739 struct gs_port *port = tty->driver_data; local 758 struct gs_port *port = tty->driver_data; local 774 struct gs_port *port = tty->driver_data; local 787 struct gs_port *port = tty->driver_data; local 804 struct gs_port *port = tty->driver_data; local 821 struct gs_port *port = tty->driver_data; local 838 struct gs_port *port = tty->driver_data; local 966 gs_console_connect(struct gs_port *port) argument 995 gs_console_disconnect(struct gs_port *port) argument 1019 gs_console_init(struct gs_port *port) argument 1058 gs_console_exit(struct gs_port *port) argument 1080 struct gs_port *port; local 1109 struct gs_port *port; local 1128 gs_console_connect(struct gs_port *port) argument 1133 gs_console_disconnect(struct gs_port *port) argument 1137 gs_console_init(struct gs_port *port) argument 1142 gs_console_exit(struct gs_port *port) argument 1151 struct gs_port *port; local 1186 gs_closed(struct gs_port *port) argument 1197 gserial_free_port(struct gs_port *port) argument 1209 struct gs_port *port; local 1229 struct gs_port *port; local 1306 struct gs_port *port; local 1382 struct gs_port *port = gser->ioport; local 1430 struct gs_port *port; local 1450 struct gs_port *port; local [all...] |
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_sdvo.h | 15 enum port; 21 i915_reg_t reg, enum port port); 29 i915_reg_t reg, enum port port) 28 intel_sdvo_init(struct drm_i915_private *dev_priv, i915_reg_t reg, enum port port) argument
|
H A D | vlv_dsi.h | 11 enum port; 16 void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port); 20 static inline void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port) argument
|
/linux-master/drivers/pci/controller/ |
H A D | pci-mvebu.c | 103 u32 port; member in struct:mvebu_pcie_port 128 static inline void mvebu_writel(struct mvebu_pcie_port *port, u32 val, u32 reg) argument 130 writel(val, port->base + reg); 133 static inline u32 mvebu_readl(struct mvebu_pcie_port *port, u32 reg) argument 135 return readl(port->base + reg); 138 static inline bool mvebu_has_ioport(struct mvebu_pcie_port *port) argument 140 return port->io_target != -1 && port->io_attr != -1; 143 static bool mvebu_pcie_link_up(struct mvebu_pcie_port *port) argument 145 return !(mvebu_readl(port, PCIE_STAT_OF 148 mvebu_pcie_get_local_bus_nr(struct mvebu_pcie_port *port) argument 153 mvebu_pcie_set_local_bus_nr(struct mvebu_pcie_port *port, int nr) argument 163 mvebu_pcie_set_local_dev_nr(struct mvebu_pcie_port *port, int nr) argument 173 mvebu_pcie_disable_wins(struct mvebu_pcie_port *port) argument 204 mvebu_pcie_setup_wins(struct mvebu_pcie_port *port) argument 249 mvebu_pcie_setup_hw(struct mvebu_pcie_port *port) argument 352 struct mvebu_pcie_port *port; local 388 struct mvebu_pcie_port *port; local 429 mvebu_pcie_del_windows(struct mvebu_pcie_port *port, phys_addr_t base, size_t size) argument 447 mvebu_pcie_add_windows(struct mvebu_pcie_port *port, unsigned int target, unsigned int attribute, phys_addr_t base, size_t size, phys_addr_t remap) argument 481 mvebu_pcie_set_window(struct mvebu_pcie_port *port, unsigned int target, unsigned int attribute, const struct mvebu_pcie_window *desired, struct mvebu_pcie_window *cur) argument 519 mvebu_pcie_handle_iobase_change(struct mvebu_pcie_port *port) argument 549 mvebu_pcie_handle_membase_change(struct mvebu_pcie_port *port) argument 577 struct mvebu_pcie_port *port = bridge->data; local 625 struct mvebu_pcie_port *port = bridge->data; local 700 struct mvebu_pcie_port *port = bridge->data; local 731 struct mvebu_pcie_port *port = bridge->data; local 797 struct mvebu_pcie_port *port = bridge->data; local 859 struct mvebu_pcie_port *port = bridge->data; local 900 mvebu_pci_bridge_emul_init(struct mvebu_pcie_port *port) argument 968 struct mvebu_pcie_port *port = &pcie->ports[i]; local 989 struct mvebu_pcie_port *port; local 1003 struct mvebu_pcie_port *port; local 1019 struct mvebu_pcie_port *port = d->domain->host_data; local 1033 struct mvebu_pcie_port *port = d->domain->host_data; local 1054 struct mvebu_pcie_port *port = h->host_data; local 1068 mvebu_pcie_init_irq_domain(struct mvebu_pcie_port *port) argument 1095 struct mvebu_pcie_port *port = irq_desc_get_handler_data(desc); local 1158 mvebu_pcie_map_registers(struct platform_device *pdev, struct device_node *np, struct mvebu_pcie_port *port) argument 1227 struct mvebu_pcie_port *port = pcie->ports + i; local 1243 struct mvebu_pcie_port *port = pcie->ports + i; local 1255 struct mvebu_pcie_port *port = data; local 1260 mvebu_pcie_parse_port(struct mvebu_pcie *pcie, struct mvebu_pcie_port *port, struct device_node *child) argument 1390 mvebu_pcie_powerup(struct mvebu_pcie_port *port) argument 1417 mvebu_pcie_powerdown(struct mvebu_pcie_port *port) argument 1501 struct mvebu_pcie_port *port = &pcie->ports[i]; local 1517 struct mvebu_pcie_port *port = &pcie->ports[i]; local 1665 struct mvebu_pcie_port *port = &pcie->ports[i]; local [all...] |