/linux/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 884 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity); in tcpm_apply_rc() 1083 cc = port->polarity ? port->cc2 : port->cc1; in tcpm_get_current_limit() 1352 port->prev_state = port->state; in tcpm_set_state() 3674 event->port = port; in tcpm_pd_receive() 4041 port->cc_req, port->cc1, port->cc2, port->vbus_source, in tcpm_pd_build_request() 4137 port->cc_req, port->cc1, port->cc2, port->vbus_source, in tcpm_pd_build_pps_request() 4202 ret = port->tcpc->set_vbus(port->tcpc, port->vbus_source, in tcpm_set_charge() 4820 port->ams = port->next_ams; in run_state_machine() 5128 port->ams = port->next_ams; in run_state_machine() 6773 port->tcpc->init(port->tcpc); in tcpm_init() [all …]
|
/linux/drivers/mmc/core/ |
H A D | sdio_uart.c | 120 tty_port_get(&port->port); in sdio_uart_port_get() 128 tty_port_put(&port->port); in sdio_uart_port_put() 146 mutex_lock(&port->port.mutex); in sdio_uart_port_remove() 154 mutex_unlock(&port->port.mutex); in sdio_uart_port_remove() 322 sdio_out(port, UART_IER, port->ier); in sdio_uart_change_speed() 336 sdio_out(port, UART_IER, port->ier); in sdio_uart_start_tx() 352 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_rx() 404 tty_flip_buffer_push(&port->port); in sdio_uart_receive_chars() 422 tty = tty_port_tty_get(&port->port); in sdio_uart_transmit_chars() 756 tty_port_hangup(&port->port); in sdio_uart_hangup() [all …]
|
/linux/drivers/net/bonding/ |
H A D | bond_3ad.c | 115 struct port *port); 696 struct port *port; in __agg_ports_are_ready() local 724 struct port *port; in __set_agg_ports_ready() local 737 struct port *port; in __agg_active_ports() local 1791 struct port *port; in ad_agg_selection_logic() local 2181 struct port *port; in bond_3ad_bind_slave() local 2459 struct port *port; in bond_3ad_state_machine_handler() local 2547 struct port *port; in bond_3ad_rx_indication() local 2659 struct port *port; in bond_3ad_adapter_speed_duplex_changed() local 2687 struct port *port; in bond_3ad_handle_link_change() local [all …]
|
/linux/drivers/tty/ |
H A D | tty_port.c | 92 memset(port, 0, sizeof(*port)); in tty_port_init() 295 if (port->ops && port->ops->destruct) in tty_port_destructor() 296 port->ops->destruct(port); in tty_port_destructor() 310 if (port) in tty_port_put() 379 port->ops->shutdown(port); in tty_port_shutdown() 435 port->client_ops->write_wakeup(port); in tty_port_tty_wakeup() 451 return port->ops->carrier_raised(port); in tty_port_carrier_raised() 466 port->ops->dtr_rts(port, true); in tty_port_raise_dtr_rts() 481 port->ops->dtr_rts(port, false); in tty_port_lower_dtr_rts() 741 tty->port = port; in tty_port_install() [all …]
|
H A D | vcc.c | 167 if (!port) { in vcc_get() 197 return port; in vcc_get() 212 if (!port) in vcc_put() 246 if (port && port->removed) { in vcc_get_ne() 371 if (!port->tty || port->removed) in vcc_rx_timer() 394 if (!port->tty || port->removed) in vcc_tx_timer() 485 if (!port) in domain_show() 519 if (!port) in break_store() 578 if (!port) in vcc_probe() 595 rv = vio_ldc_alloc(&port->vio, &vcc_ldc_cfg, port); in vcc_probe() [all …]
|
/linux/drivers/tty/serial/ |
H A D | mpc52xx_uart.c | 1122 port->irqflags, "mpc52xx_psc_uart", port); in mpc52xx_uart_startup() 1156 psc_ops->set_imr(port, port->read_status_mask); in mpc52xx_uart_shutdown() 1165 free_irq(port->irq, port); in mpc52xx_uart_shutdown() 1287 port->membase = ioremap(port->mapbase, in mpc52xx_uart_request_port() 1370 struct tty_port *tport = &port->state->port; in mpc52xx_uart_int_rx_chars() 1621 (void *)port->mapbase, port->membase, in mpc52xx_console_setup() 1622 port->irq, port->uartclk); in mpc52xx_console_setup() 1757 (void *)port->mapbase, port->irq, port->uartclk); in mpc52xx_uart_of_probe() 1772 if (port) in mpc52xx_uart_of_remove() 1782 if (port) in mpc52xx_uart_of_suspend() [all …]
|
H 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() 312 pending = uart_port_tx_limited(port, ch, port->fifosize - val, in bcm_uart_do_tx() 333 port = dev_id; in bcm_uart_interrupt() 438 dev_name(port->dev), port); in bcm_uart_startup() 459 free_irq(port->irq, port); in bcm_uart_shutdown() 516 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); in bcm_uart_set_termios() 739 if (!port->membase) in bcm_console_setup() 823 if (port->membase) in bcm_uart_probe() 825 memset(port, 0, sizeof(*port)); in bcm_uart_probe() [all …]
|
H A D | timbuart.c | 56 container_of(port, struct timbuart_port, port); in timbuart_start_tx() 82 struct tty_port *tport = &port->state->port; in timbuart_rx_chars() 104 dev_dbg(port->dev, in timbuart_tx_chars() 107 port->icount.tx, in timbuart_tx_chars() 116 container_of(port, struct timbuart_port, port); in timbuart_handle_tx_port() 117 struct tty_port *tport = &port->state->port; in timbuart_handle_tx_port() 122 if (port->x_char) in timbuart_handle_tx_port() 223 wake_up_interruptible(&port->state->port.delta_msr_wait); in timbuart_mctrl_check() 237 container_of(port, struct timbuart_port, port); in timbuart_startup() 254 container_of(port, struct timbuart_port, port); in timbuart_shutdown() [all …]
|
H 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() 245 tty_flip_buffer_push(&port->state->port); in altera_uart_rx_chars() 280 struct uart_port *port = &pp->port; in altera_uart_timer() local 308 dev_name(port->dev), port); in altera_uart_startup() 311 "interrupt vector=%d\n", port->line, port->irq); in altera_uart_startup() 341 free_irq(port->irq, port); in altera_uart_shutdown() 446 port = &altera_uart_ports[co->index].port; in altera_uart_console_setup() 489 struct uart_port *port = &dev->port; in altera_uart_earlycon_setup() local 547 port = &altera_uart_ports[i].port; in altera_uart_probe() [all …]
|
H A D | apbuart.c | 81 port->icount.rx++; in apbuart_rx_chars() 118 tty_flip_buffer_push(&port->state->port); in apbuart_rx_chars() 125 uart_port_tx_limited(port, ch, port->fifosize, in apbuart_tx_chars() 136 uart_port_lock(port); in apbuart_int() 177 retval = request_irq(port->irq, apbuart_int, 0, "apbuart", port); in apbuart_startup() 183 UART_PUT_CTRL(port, in apbuart_startup() 196 UART_PUT_CTRL(port, in apbuart_shutdown() 201 free_irq(port->irq, port); in apbuart_shutdown() 212 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in apbuart_set_termios() 540 (unsigned long long) port->mapbase, port->irq); in apbuart_probe() [all …]
|
H A D | mcf.c | 70 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_get_mctrl() 86 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_set_mctrl() 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 379 "interrupt vector=%d\n", port->line, port->irq); in mcf_config_port() 475 struct uart_port *port = &(mcf_ports + co->index)->port; in mcf_console_putc() local 512 port = &mcf_ports[co->index].port; in mcf_console_setup() 578 port = &mcf_ports[i].port; in mcf_probe() 609 port = &mcf_ports[i].port; in mcf_remove() [all …]
|
H A D | esp32_acm.c | 105 struct tty_port *tty_port = &port->state->port; in esp32s3_acm_rxint() 118 ++port->icount.rx; in esp32s3_acm_rxint() 150 esp32s3_acm_push(port); in esp32s3_acm_put_char_sync() 216 ret = request_irq(port->irq, esp32s3_acm_int, 0, DRIVER_NAME, port); in esp32s3_acm_startup() 228 free_irq(port->irq, port); in esp32s3_acm_shutdown() 295 if (port->sysrq) in esp32s3_acm_console_write() 374 port = devm_kzalloc(&pdev->dev, sizeof(*port), GFP_KERNEL); in esp32s3_acm_probe() 375 if (!port) in esp32s3_acm_probe() 389 port->line = ret; in esp32s3_acm_probe() 406 port->has_sysrq = 1; in esp32s3_acm_probe() [all …]
|
H A D | atmel_serial.c | 862 struct tty_port *tport = &port->state->port; in atmel_complete_tx_dma() 924 struct tty_port *tport = &port->state->port; in atmel_tx_dma() 1015 struct tty_port *tport = &port->state->port; in atmel_prepare_tx_dma() 1103 struct tty_port *tport = &port->state->port; in atmel_rx_from_dma() 1445 struct tty_port *tport = &port->state->port; in atmel_tx_pdc() 1493 struct tty_port *tport = &port->state->port; in atmel_prepare_tx_pdc() 1565 tty_flip_buffer_push(&port->state->port); in atmel_rx_from_ring() 1587 struct tty_port *tport = &port->state->port; in atmel_rx_from_pdc() 2068 free_irq(port->irq, port); in atmel_shutdown() 2428 port->membase = ioremap(port->mapbase, size); in atmel_request_port() [all …]
|
H A D | altera_jtaguart.c | 119 port->icount.rx++; in altera_jtaguart_rx_chars() 126 tty_flip_buffer_push(&port->state->port); in altera_jtaguart_rx_chars() 150 uart_port_lock(port); in altera_jtaguart_interrupt() 157 uart_port_unlock(port); in altera_jtaguart_interrupt() 176 DRV_NAME, port); in altera_jtaguart_startup() 179 "interrupt vector=%d\n", port->line, port->irq); in altera_jtaguart_startup() 208 free_irq(port->irq, port); in altera_jtaguart_shutdown() 406 port->irq = irq; in altera_jtaguart_probe() 412 port->membase = ioremap(port->mapbase, ALTERA_JTAGUART_SIZE); in altera_jtaguart_probe() 413 if (!port->membase) in altera_jtaguart_probe() [all …]
|
H A D | st-asc.c | 36 struct uart_port port; member 148 return container_of(port, struct asc_port, port); in to_asc_port() 242 uart_port_tx_limited(port, ch, asc_hw_txroom(port), in asc_transmit_chars() 250 struct tty_port *tport = &port->state->port; in asc_receive_chars() 390 struct tty_port *tport = &port->state->port; in asc_start_tx() 420 asc_port_name(port), port)) { in asc_startup() 435 free_irq(port->irq, port); in asc_shutdown() 532 asc_out(port, ASC_BAUDRATE, (port->uartclk / (16 * baud))); in asc_set_termios() 690 struct uart_port *port = &ascport->port; in asc_init_port() local 849 struct uart_port *port = &asc_ports[co->index].port; in asc_console_write() local [all …]
|
H A D | meson_uart.c | 130 free_irq(port->irq, port); in meson_uart_shutdown() 144 struct tty_port *tport = &port->state->port; in meson_uart_start_tx() 155 writel(port->x_char, port->membase + AML_UART_WFIFO); in meson_uart_start_tx() 179 struct tty_port *tport = &port->state->port; in meson_receive_chars() 305 port->name, port); in meson_uart_startup() 425 devm_iounmap(port->dev, port->membase); in meson_uart_release_port() 427 devm_release_mem_region(port->dev, port->mapbase, port->mapsize); in meson_uart_release_port() 432 if (!devm_request_mem_region(port->dev, port->mapbase, port->mapsize, in meson_uart_request_port() 438 port->membase = devm_ioremap(port->dev, port->mapbase, in meson_uart_request_port() 582 if (!port) in meson_serial_console_write() [all …]
|
/linux/drivers/parport/ |
H 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 …]
|
H 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/scsi/libsas/ |
H A D | sas_port.c | 29 struct asd_sas_port *port = phy->port; in sas_resume_port() local 75 phy->port = port; in sas_form_port_add_phy() 108 struct asd_sas_port *port = phy->port; in sas_form_port() local 171 if (!port->port) { in sas_form_port() 172 port->port = sas_port_alloc(phy->phy->dev.parent, port->id); in sas_form_port() 173 BUG_ON(!port->port); in sas_form_port() 174 sas_port_add(port->port); in sas_form_port() 228 sas_port_delete(port->port); in sas_deform_port() 229 port->port = NULL; in sas_deform_port() 328 memset(port, 0, sizeof(*port)); in sas_init_port() [all …]
|
/linux/drivers/usb/gadget/function/ |
H A D | u_serial.c | 295 tty_wakeup(port->port.tty); in gs_start_tx() 317 tty = port->port.tty; in gs_start_rx() 371 tty = port->port.tty; in gs_rx_push() 546 if (!port->port_usb || !port->port.tty) in gs_start_io() 633 if (port->port.count++) in gs_open() 637 port->port.tty = tty; in gs_open() 690 --port->port.count; in gs_close() 726 port->port.count = 0; in gs_close() 727 port->port.tty = NULL; in gs_close() 1349 if (port->port.count) { in gserial_connect() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-mxc.c | 182 val = port->gc.get(&port->gc, gpio_idx); in gpio_set_irq_type() 227 return port->gc.direction_input(&port->gc, gpio_idx); in gpio_set_irq_type() 406 irq_set_chained_handler_and_data(port->irq, port->mx_irq_handler, port); in mxc_update_irq_chained_handler() 415 port); in mxc_update_irq_chained_handler() 430 if (!port) in mxc_gpio_probe() 496 err = devm_gpiochip_add_data(&pdev->dev, &port->gc, port); in mxc_gpio_probe() 541 port->gpio_saved_reg.icr1 = readl(port->base + GPIO_ICR1); in mxc_gpio_save_regs() 543 port->gpio_saved_reg.imr = readl(port->base + GPIO_IMR); in mxc_gpio_save_regs() 546 port->gpio_saved_reg.dr = readl(port->base + GPIO_DR); in mxc_gpio_save_regs() 556 writel(port->gpio_saved_reg.imr, port->base + GPIO_IMR); in mxc_gpio_restore_regs() [all …]
|
/linux/drivers/usb/host/ |
H 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() 201 return tty_port_open(&port->port, tty, file); in dbc_tty_open() 208 tty_port_close(&port->port, tty, file); in dbc_tty_close() 308 tty = port->port.tty; in dbc_rx_push() 353 tty_flip_buffer_push(&port->port); in dbc_rx_push() 389 tty_port_init(&port->port); in xhci_dbc_tty_init_port() 396 port->port.ops = &dbc_port_ops; in xhci_dbc_tty_init_port() 404 tty_port_destroy(&port->port); in xhci_dbc_tty_exit_port() [all …]
|
/linux/drivers/char/ |
H A D | virtio_console.c | 235 struct port *port; in find_port_by_vtermno() local 255 struct port *port; in find_port_by_devt_in_portdev() local 275 struct port *port; in find_port_by_devt() local 292 struct port *port; in find_port_by_id() local 309 struct port *port; in find_port_by_vq() local 731 struct port *port; in port_fops_read() local 798 struct port *port; in port_fops_write() local 962 struct port *port; in port_fops_poll() local 987 struct port *port; in port_fops_release() local 1022 struct port *port; in port_fops_open() local [all …]
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_core.c | 128 port = &up->port; in serial8250_interrupt() 130 if (port->handle_irq(port)) { in serial8250_interrupt() 255 up->port.handle_irq(&up->port); in serial8250_timeout() 308 struct uart_port *port = &up->port; in univ8250_setup_timer() local 333 struct uart_port *port = &up->port; in univ8250_setup_irq() local 343 struct uart_port *port = &up->port; in univ8250_release_irq() local 356 struct uart_port *port = &up->port; in serial8250_request_rsa_resource() local 377 struct uart_port *port = &up->port; in serial8250_release_rsa_resource() local 1076 uart->port.dev = up->port.dev; in serial8250_register_8250_port() 1083 uart->port.type = up->port.type; in serial8250_register_8250_port() [all …]
|
/linux/drivers/usb/serial/ |
H 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 …]
|