/linux/drivers/usb/typec/tcpm/ |
A D | tcpm.c | 807 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity); in tcpm_apply_rc() 985 cc = port->polarity ? port->cc2 : port->cc1; in tcpm_get_current_limit() 1248 port->prev_state = port->state; in tcpm_set_state() 2927 event->port = port; in tcpm_pd_receive() 3324 port->cc_req, port->cc1, port->cc2, port->vbus_source, in tcpm_pd_build_request() 3436 port->cc_req, port->cc1, port->cc2, port->vbus_source, in tcpm_pd_build_pps_request() 3501 ret = port->tcpc->set_vbus(port->tcpc, port->vbus_source, in tcpm_set_charge() 4035 port->ams = port->next_ams; in run_state_machine() 4321 port->ams = port->next_ams; in run_state_machine() 5835 port->tcpc->init(port->tcpc); in tcpm_init() [all …]
|
/linux/drivers/mmc/core/ |
A D | sdio_uart.c | 119 tty_port_get(&port->port); in sdio_uart_port_get() 127 tty_port_put(&port->port); in sdio_uart_port_put() 145 mutex_lock(&port->port.mutex); in sdio_uart_port_remove() 153 mutex_unlock(&port->port.mutex); in sdio_uart_port_remove() 337 sdio_out(port, UART_IER, port->ier); in sdio_uart_change_speed() 351 sdio_out(port, UART_IER, port->ier); in sdio_uart_start_tx() 367 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_rx() 421 tty_flip_buffer_push(&port->port); in sdio_uart_receive_chars() 439 tty = tty_port_tty_get(&port->port); in sdio_uart_transmit_chars() 774 tty_port_hangup(&port->port); in sdio_uart_hangup() [all …]
|
/linux/drivers/tty/ |
A D | tty_port.c | 64 memset(port, 0, sizeof(*port)); in tty_port_init() 264 if (port->ops && port->ops->destruct) in tty_port_destructor() 265 port->ops->destruct(port); in tty_port_destructor() 272 if (port) in tty_port_put() 331 port->ops->shutdown(port); in tty_port_shutdown() 389 port->client_ops->write_wakeup(port); in tty_port_tty_wakeup() 405 return port->ops->carrier_raised(port); in tty_port_carrier_raised() 420 port->ops->dtr_rts(port, 1); in tty_port_raise_dtr_rts() 435 port->ops->dtr_rts(port, 0); in tty_port_lower_dtr_rts() 662 tty->port = port; in tty_port_install() [all …]
|
A D | vcc.c | 166 if (!port) { in vcc_get() 196 return port; in vcc_get() 211 if (!port) in vcc_put() 245 if (port && port->removed) { in vcc_get_ne() 370 if (!port->tty || port->removed) in vcc_rx_timer() 393 if (!port->tty || port->removed) in vcc_tx_timer() 484 if (!port) in domain_show() 518 if (!port) in break_store() 577 if (!port) in vcc_probe() 590 rv = vio_ldc_alloc(&port->vio, &vcc_ldc_cfg, port); in vcc_probe() [all …]
|
/linux/drivers/net/bonding/ |
A D | bond_3ad.c | 113 struct port *port); 641 struct port *port; in __agg_ports_are_ready() local 669 struct port *port; in __set_agg_ports_ready() local 682 struct port *port; in __agg_active_ports() local 1679 struct port *port; in ad_agg_selection_logic() local 2045 struct port *port; in bond_3ad_bind_slave() local 2300 struct port *port; in bond_3ad_state_machine_handler() local 2390 struct port *port; in bond_3ad_rx_indication() local 2502 struct port *port; in bond_3ad_adapter_speed_duplex_changed() local 2530 struct port *port; in bond_3ad_handle_link_change() local [all …]
|
/linux/drivers/tty/serial/ |
A D | vr41xx_siu.c | 157 if (port->line == 1 && port->irq) in siu_check_type() 349 tty_flip_buffer_push(&port->state->port); in receive_chars() 381 siu_write(port, UART_TX, port->x_char); in transmit_chars() 447 retval = request_irq(port->irq, siu_interrupt, 0, siu_type_name(port), port); in siu_startup() 457 siu_set_mctrl(port, port->mctrl); in siu_startup() 480 siu_set_mctrl(port, port->mctrl); in siu_shutdown() 495 free_irq(port->irq, port); in siu_shutdown() 575 siu_set_mctrl(port, port->mctrl); in siu_set_termios() 648 port->type = siu_check_type(port); in siu_config_port() 783 port->membase = ioremap(port->mapbase, siu_port_size(port)); in siu_console_setup() [all …]
|
A D | mvebu-uart.c | 188 writel(ctl, port->membase + UART_INTR(port)); in mvebu_uart_stop_tx() 237 struct tty_port *tport = &port->state->port; in mvebu_uart_rx_chars() 304 writel(port->x_char, port->membase + UART_TSH(port)); in mvebu_uart_tx_chars() 380 port->membase + UART_CTRL(port)); in mvebu_uart_startup() 398 dev_name(port->dev), port); in mvebu_uart_startup() 408 dev_name(port->dev), port); in mvebu_uart_startup() 573 writel(c, port->membase + UART_TSH(port)); in mvebu_uart_put_poll_char() 716 if (!port->mapbase || !port->membase) { in mvebu_uart_console_setup() 764 struct uart_port *port = mvuart->port; in mvebu_uart_suspend() local 784 struct uart_port *port = mvuart->port; in mvebu_uart_resume() local [all …]
|
A D | mpc52xx_uart.c | 1123 port->irqflags, "mpc52xx_psc_uart", port); in mpc52xx_uart_startup() 1157 psc_ops->set_imr(port, port->read_status_mask); in mpc52xx_uart_shutdown() 1166 free_irq(port->irq, port); in mpc52xx_uart_shutdown() 1288 port->membase = ioremap(port->mapbase, in mpc52xx_uart_request_port() 1371 struct tty_port *tport = &port->state->port; in mpc52xx_uart_int_rx_chars() 1436 psc_ops->write_char(port, port->x_char); in mpc52xx_uart_int_tx_chars() 1653 (void *)port->mapbase, port->membase, in mpc52xx_console_setup() 1654 port->irq, port->uartclk); in mpc52xx_console_setup() 1789 (void *)port->mapbase, port->irq, port->uartclk); in mpc52xx_uart_of_probe() 1805 if (port) in mpc52xx_uart_of_remove() [all …]
|
A D | bcm63xx_uart.c | 229 struct tty_port *tty_port = &port->state->port; in bcm_uart_do_rx() 261 port->icount.rx++; in bcm_uart_do_rx() 309 if (port->x_char) { in bcm_uart_do_tx() 310 bcm_uart_writel(port, port->x_char, UART_FIFO_REG); in bcm_uart_do_tx() 311 port->icount.tx++; in bcm_uart_do_tx() 312 port->x_char = 0; in bcm_uart_do_tx() 363 port = dev_id; in bcm_uart_interrupt() 468 dev_name(port->dev), port); in bcm_uart_startup() 489 free_irq(port->irq, port); in bcm_uart_shutdown() 547 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); in bcm_uart_set_termios() [all …]
|
A D | altera_uart.c | 86 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl() 91 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel() 204 struct uart_port *port = &pp->port; in altera_uart_rx_chars() local 246 tty_flip_buffer_push(&port->state->port); in altera_uart_rx_chars() 251 struct uart_port *port = &pp->port; in altera_uart_tx_chars() local 302 struct uart_port *port = &pp->port; in altera_uart_timer() local 363 free_irq(port->irq, port); in altera_uart_shutdown() 468 port = &altera_uart_ports[co->index].port; in altera_uart_console_setup() 511 struct uart_port *port = &dev->port; in altera_uart_earlycon_setup() local 570 port = &altera_uart_ports[i].port; in altera_uart_probe() [all …]
|
A D | mcf.c | 283 struct uart_port *port = &pp->port; in mcf_rx_chars() local 322 tty_flip_buffer_push(&port->state->port); in mcf_rx_chars() 329 struct uart_port *port = &pp->port; in mcf_tx_chars() local 334 writeb(port->x_char, port->membase + MCFUART_UTB); in mcf_tx_chars() 398 "interrupt vector=%d\n", port->line, port->irq); in mcf_config_port() 494 port = &mcf_ports[i].port; in early_mcf_setup() 516 struct uart_port *port = &(mcf_ports + co->index)->port; in mcf_console_putc() local 553 port = &mcf_ports[co->index].port; in mcf_console_setup() 619 port = &mcf_ports[i].port; in mcf_probe() 649 port = &mcf_ports[i].port; in mcf_remove() [all …]
|
A D | atmel_serial.c | 588 if (atmel_use_pdc_tx(port) || atmel_use_dma_tx(port)) in atmel_start_tx() 829 atmel_uart_write_char(port, port->x_char); in atmel_tx_chars() 1107 struct tty_port *tport = &port->state->port; in atmel_rx_from_dma() 1389 wake_up_interruptible(&port->state->port.delta_msr_wait); in atmel_handle_status() 1573 tty_flip_buffer_push(&port->state->port); in atmel_rx_from_ring() 1595 struct tty_port *tport = &port->state->port; in atmel_rx_from_pdc() 2073 free_irq(port->irq, port); in atmel_shutdown() 2177 atmel_uart_writel(port, ATMEL_US_IER, port->read_status_mask); in atmel_set_termios() 2217 atmel_uart_writel(port, ATMEL_US_TTGR, port->iso7816.tg); in atmel_set_termios() 2375 port->membase = ioremap(port->mapbase, size); in atmel_request_port() [all …]
|
A D | timbuart.c | 25 struct uart_port port; member 56 container_of(port, struct timbuart_port, port); in timbuart_start_tx() 82 struct tty_port *tport = &port->state->port; in timbuart_rx_chars() 108 dev_dbg(port->dev, in timbuart_tx_chars() 111 port->icount.tx, in timbuart_tx_chars() 120 container_of(port, struct timbuart_port, port); in timbuart_handle_tx_port() 126 if (port->x_char) in timbuart_handle_tx_port() 227 wake_up_interruptible(&port->state->port.delta_msr_wait); in timbuart_mctrl_check() 241 container_of(port, struct timbuart_port, port); in timbuart_startup() 258 container_of(port, struct timbuart_port, port); in timbuart_shutdown() [all …]
|
A D | apbuart.c | 83 port->icount.rx++; in apbuart_rx_chars() 120 tty_flip_buffer_push(&port->state->port); in apbuart_rx_chars() 128 if (port->x_char) { in apbuart_tx_chars() 129 UART_PUT_CHAR(port, port->x_char); in apbuart_tx_chars() 130 port->icount.tx++; in apbuart_tx_chars() 131 port->x_char = 0; in apbuart_tx_chars() 145 port->icount.tx++; in apbuart_tx_chars() 203 retval = request_irq(port->irq, apbuart_int, 0, "apbuart", port); in apbuart_startup() 227 free_irq(port->irq, port); in apbuart_shutdown() 566 (unsigned long long) port->mapbase, port->irq); in apbuart_probe() [all …]
|
A D | xilinx_uartps.c | 298 tty_insert_flip_char(&port->state->port, 0, in cdns_uart_handle_rx() 301 tty_insert_flip_char(&port->state->port, data, status); in cdns_uart_handle_rx() 305 tty_flip_buffer_push(&port->state->port); in cdns_uart_handle_rx() 331 port->state->xmit.buf[port->state->xmit.tail], in cdns_uart_handle_tx() 503 port = cdns_uart->port; in cdns_uart_clk_notifier_cb() 918 free_irq(port->irq, port); in cdns_uart_shutdown() 948 if (port->iobase != ser->port) in cdns_uart_verify_port() 1163 struct uart_port *port = &device->port; in cdns_early_console_setup() local 1446 port = devm_kzalloc(&pdev->dev, sizeof(*port), GFP_KERNEL); in cdns_uart_probe() 1447 if (!port) in cdns_uart_probe() [all …]
|
/linux/drivers/parport/ |
A D | ieee1284_ops.c | 198 port->name); in parport_ieee1284_read_nibble() 377 port->name); in ecp_reverse_to_forward() 399 port = port->physport; in parport_ieee1284_ecp_write_data() 487 port = port->physport; in parport_ieee1284_ecp_read_data() 629 port = port->physport; in parport_ieee1284_ecp_write_addr() 724 port->ops->data_forward (port); in parport_ieee1284_epp_write_data() 767 port->ops->data_reverse (port); in parport_ieee1284_epp_read_data() 791 port->ops->data_forward (port); in parport_ieee1284_epp_read_data() 812 port->ops->data_forward (port); in parport_ieee1284_epp_write_addr() 855 port->ops->data_reverse (port); in parport_ieee1284_epp_read_addr() [all …]
|
A D | ieee1284.c | 43 struct parport *port = from_timer(port, t, timer); in timeout_waiting_on_port() local 217 port = port->physport; in parport_ieee1284_terminate() 256 port->name); in parport_ieee1284_terminate() 329 port = port->physport; in parport_negotiate() 400 port->name, parport_read_status (port)); in parport_negotiate() 423 port->name, mode, port->ops->read_status (port)); in parport_negotiate() 472 port->ops->read_status(port)); in parport_negotiate() 543 port->ops->frob_control (port, PARPORT_CONTROL_AUTOFD, 0); in parport_ieee1284_ack_data_avail() 586 return port->ops->compat_write_data (port, buffer, len, 0); in parport_write() 646 port->name, port->ieee1284.mode); in parport_write() [all …]
|
/linux/drivers/usb/gadget/function/ |
A D | u_serial.c | 291 tty_wakeup(port->port.tty); in gs_start_tx() 313 tty = port->port.tty; in gs_start_rx() 367 tty = port->port.tty; in gs_rx_push() 625 if (port->port.count++) in gs_open() 629 port->port.tty = tty; in gs_open() 679 if (port->port.count == 0) in gs_close() 682 --port->port.count; in gs_close() 718 port->port.count = 0; in gs_close() 719 port->port.tty = NULL; in gs_close() 1338 if (port->port.count) { in gserial_connect() [all …]
|
/linux/drivers/scsi/libsas/ |
A D | sas_port.c | 29 struct asd_sas_port *port = phy->port; in sas_resume_port() local 81 struct asd_sas_port *port = phy->port; in sas_form_port() local 144 phy->port = port; in sas_form_port() 161 if (!port->port) { in sas_form_port() 162 port->port = sas_port_alloc(phy->phy->dev.parent, port->id); in sas_form_port() 163 BUG_ON(!port->port); in sas_form_port() 164 sas_port_add(port->port); in sas_form_port() 218 sas_port_delete(port->port); in sas_deform_port() 219 port->port = NULL; in sas_deform_port() 319 memset(port, 0, sizeof(*port)); in sas_init_port() [all …]
|
/linux/drivers/char/ |
A D | virtio_console.c | 245 struct port *port; in find_port_by_vtermno() local 265 struct port *port; in find_port_by_devt_in_portdev() local 285 struct port *port; in find_port_by_devt() local 302 struct port *port; in find_port_by_id() local 319 struct port *port; in find_port_by_vq() local 741 struct port *port; in port_fops_read() local 808 struct port *port; in port_fops_write() local 972 struct port *port; in port_fops_poll() local 997 struct port *port; in port_fops_release() local 1032 struct port *port; in port_fops_open() local [all …]
|
/linux/drivers/tty/serial/8250/ |
A D | 8250_core.c | 124 port = &up->port; in serial8250_interrupt() 126 if (port->handle_irq(port)) { in serial8250_interrupt() 251 up->port.handle_irq(&up->port); in serial8250_timeout() 304 struct uart_port *port = &up->port; in univ8250_setup_irq() local 334 struct uart_port *port = &up->port; in univ8250_release_irq() local 347 struct uart_port *port = &up->port; in serial8250_request_rsa_resource() local 368 struct uart_port *port = &up->port; in serial8250_release_rsa_resource() local 500 struct uart_port *port = &up->port; in serial8250_isa_init_ports() local 1019 uart->port.dev = up->port.dev; in serial8250_register_8250_port() 1026 uart->port.type = up->port.type; in serial8250_register_8250_port() [all …]
|
/linux/drivers/staging/fwserial/ |
A D | fwserial.c | 240 txn->port = port; in fwtty_send_data_async() 259 txn->port = port; in fwtty_send_txn_async() 1380 if (port->port.console) in fwtty_get_icount() 1402 if (port->port.console) in fwtty_proc_show_port() 1418 if (port->port.console) in fwtty_debugfs_show_port() 1637 if (port->port.console && port->fwcon_ops->notify) in fwserial_virt_plug_complete() 1744 if (port->port.console && port->fwcon_ops->notify) in fwserial_release_port() 1797 peer->port = port; in fwserial_connect_peer() 2061 peer->port = port; in fwserial_add_peer() 2106 port = peer->port; in fwserial_remove_peer() [all …]
|
/linux/drivers/usb/host/ |
A D | xhci-dbgtty.c | 70 if (do_tty_wake && port->port.tty) in dbc_start_tx() 71 tty_wakeup(port->port.tty); in dbc_start_tx() 85 if (!port->port.tty) in dbc_start_rx() 194 return tty_port_open(&port->port, tty, file); in dbc_tty_open() 201 tty_port_close(&port->port, tty, file); in dbc_tty_close() 302 tty = port->port.tty; in dbc_rx_push() 347 tty_flip_buffer_push(&port->port); in dbc_rx_push() 383 tty_port_init(&port->port); in xhci_dbc_tty_init_port() 390 port->port.ops = &dbc_port_ops; in xhci_dbc_tty_init_port() 398 tty_port_destroy(&port->port); in xhci_dbc_tty_exit_port() [all …]
|
/linux/drivers/usb/serial/ |
A D | generic.c | 176 count = port->serial->type->prepare_write_buffer(port, in usb_serial_generic_write_start() 260 chars = kfifo_len(&port->write_fifo) + port->tx_bytes; in usb_serial_generic_chars_in_buffer() 290 while (!port->serial->type->tx_empty(port)) { in usb_serial_generic_wait_until_sent() 361 tty_insert_flip_char(&port->port, *ch, TTY_NORMAL); in usb_serial_generic_process_read_urb() 366 tty_flip_buffer_push(&port->port); in usb_serial_generic_process_read_urb() 510 if (!tty_port_initialized(&port->port)) in usb_serial_generic_msr_changed() 540 if (!ret && !tty_port_initialized(&port->port)) in usb_serial_generic_tiocmiwait() 591 if (!port->port.console) in usb_serial_handle_break() 626 wake_up_interruptible(&port->port.open_wait); in usb_serial_handle_dcd_change() 638 port = serial->port[i]; in usb_serial_generic_resume() [all …]
|
/linux/drivers/net/wan/ |
A D | hd64572.c | 239 u32 desc_off = desc_offset(port, port->rxin, 0); in sca_rx_done() 246 desc = desc_address(port, port->rxin, 0); in sca_rx_done() 262 sca_rx(card, port, desc, port->rxin); in sca_rx_done() 388 port->rxs = (port->rxs & ~CLK_BRG_MASK) | br; in sca_set_port() 389 port->txs = (port->txs & ~CLK_BRG_MASK) | br; in sca_set_port() 537 sca_in(DSR_TX(port->chan), card), port->txin, port->txlast, in sca_dump_rings() 572 desc = desc_address(port, port->txin + 1, 1); in sca_xmit() 580 desc = desc_address(port, port->txin, 1); in sca_xmit() 581 buff = buffer_offset(port, port->txin, 1); in sca_xmit() 589 sca_outl(desc_offset(port, port->txin, 1), in sca_xmit() [all …]
|