Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 5031) sorted by relevance

12345678910>>...202

/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c824 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity); in tcpm_apply_rc()
1002 cc = port->polarity ? port->cc2 : port->cc1; in tcpm_get_current_limit()
1265 port->prev_state = port->state; in tcpm_set_state()
3034 event->port = port; in tcpm_pd_receive()
3377 port->cc_req, port->cc1, port->cc2, port->vbus_source, in tcpm_pd_build_request()
3473 port->cc_req, port->cc1, port->cc2, port->vbus_source, in tcpm_pd_build_pps_request()
3538 ret = port->tcpc->set_vbus(port->tcpc, port->vbus_source, in tcpm_set_charge()
4131 port->ams = port->next_ams; in run_state_machine()
4426 port->ams = port->next_ams; in run_state_machine()
5998 port->tcpc->init(port->tcpc); in tcpm_init()
[all …]
/openbmc/linux/drivers/mmc/core/
H A Dsdio_uart.c120 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()
324 sdio_out(port, UART_IER, port->ier); in sdio_uart_change_speed()
338 sdio_out(port, UART_IER, port->ier); in sdio_uart_start_tx()
354 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_rx()
408 tty_flip_buffer_push(&port->port); in sdio_uart_receive_chars()
426 tty = tty_port_tty_get(&port->port); in sdio_uart_transmit_chars()
760 tty_port_hangup(&port->port); in sdio_uart_hangup()
[all …]
/openbmc/linux/drivers/tty/
H A Dtty_port.c92 memset(port, 0, sizeof(*port)); in tty_port_init()
293 if (port->ops && port->ops->destruct) in tty_port_destructor()
294 port->ops->destruct(port); in tty_port_destructor()
308 if (port) in tty_port_put()
377 port->ops->shutdown(port); in tty_port_shutdown()
433 port->client_ops->write_wakeup(port); in tty_port_tty_wakeup()
449 return port->ops->carrier_raised(port); in tty_port_carrier_raised()
464 port->ops->dtr_rts(port, true); in tty_port_raise_dtr_rts()
479 port->ops->dtr_rts(port, false); in tty_port_lower_dtr_rts()
739 tty->port = port; in tty_port_install()
[all …]
H A Dvcc.c167 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 …]
/openbmc/linux/drivers/net/bonding/
H A Dbond_3ad.c116 struct port *port);
649 struct port *port; in __agg_ports_are_ready() local
677 struct port *port; in __set_agg_ports_ready() local
690 struct port *port; in __agg_active_ports() local
1691 struct port *port; in ad_agg_selection_logic() local
2046 struct port *port; in bond_3ad_bind_slave() local
2324 struct port *port; in bond_3ad_state_machine_handler() local
2412 struct port *port; in bond_3ad_rx_indication() local
2524 struct port *port; in bond_3ad_adapter_speed_duplex_changed() local
2552 struct port *port; in bond_3ad_handle_link_change() local
[all …]
/openbmc/linux/drivers/tty/serial/
H A Dmpc52xx_uart.c1122 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()
1773 if (port) in mpc52xx_uart_of_remove()
1785 if (port) in mpc52xx_uart_of_suspend()
[all …]
H A Dbcm63xx_uart.c229 struct tty_port *tty_port = &port->state->port; in bcm_uart_do_rx()
261 port->icount.rx++; in bcm_uart_do_rx()
313 pending = uart_port_tx_limited(port, ch, port->fifosize - val, in bcm_uart_do_tx()
334 port = dev_id; in bcm_uart_interrupt()
439 dev_name(port->dev), port); in bcm_uart_startup()
460 free_irq(port->irq, port); in bcm_uart_shutdown()
517 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); in bcm_uart_set_termios()
711 if (port->sysrq) { in bcm_console_write()
831 if (port->membase) in bcm_uart_probe()
833 memset(port, 0, sizeof(*port)); in bcm_uart_probe()
[all …]
H A Dmcf.c70 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_get_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()
479 port = &mcf_ports[i].port; in early_mcf_setup()
502 struct uart_port *port = &(mcf_ports + co->index)->port; in mcf_console_putc() local
539 port = &mcf_ports[co->index].port; in mcf_console_setup()
605 port = &mcf_ports[i].port; in mcf_probe()
636 port = &mcf_ports[i].port; in mcf_remove()
[all …]
H A Dtimbuart.c25 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()
107 dev_dbg(port->dev, in timbuart_tx_chars()
110 port->icount.tx, in timbuart_tx_chars()
119 container_of(port, struct timbuart_port, port); in timbuart_handle_tx_port()
125 if (port->x_char) in timbuart_handle_tx_port()
226 wake_up_interruptible(&port->state->port.delta_msr_wait); in timbuart_mctrl_check()
240 container_of(port, struct timbuart_port, port); in timbuart_startup()
257 container_of(port, struct timbuart_port, port); in timbuart_shutdown()
[all …]
H A Dapbuart.c81 port->icount.rx++; in apbuart_rx_chars()
89 port->icount.brk++; 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()
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 Daltera_uart.c86 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
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()
575 port->membase = ioremap(port->mapbase, ALTERA_UART_SIZE); in altera_uart_probe()
[all …]
H A Daltera_jtaguart.c119 port->icount.rx++; in altera_jtaguart_rx_chars()
126 tty_flip_buffer_push(&port->state->port); in altera_jtaguart_rx_chars()
150 spin_lock(&port->lock); 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()
308 struct uart_port *port; in altera_jtaguart_console_setup() local
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 Dst-asc.c36 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()
420 asc_port_name(port), port)) { in asc_startup()
435 free_irq(port->irq, port); in asc_shutdown()
543 asc_out(port, ASC_BAUDRATE, (port->uartclk / (16 * baud))); in asc_set_termios()
682 struct uart_port *port = &ascport->port; in asc_init_port() local
843 struct uart_port *port = &asc_ports[co->index].port; in asc_console_write() local
849 if (port->sysrq) in asc_console_write()
[all …]
H A Dmeson_uart.c130 free_irq(port->irq, port); in meson_uart_shutdown()
155 writel(port->x_char, port->membase + AML_UART_WFIFO); in meson_uart_start_tx()
181 struct tty_port *tport = &port->state->port; in meson_receive_chars()
307 port->name, port); in meson_uart_startup()
427 devm_iounmap(port->dev, port->membase); in meson_uart_release_port()
429 devm_release_mem_region(port->dev, port->mapbase, port->mapsize); in meson_uart_release_port()
434 if (!devm_request_mem_region(port->dev, port->mapbase, port->mapsize, in meson_uart_request_port()
440 port->membase = devm_ioremap(port->dev, port->mapbase, in meson_uart_request_port()
590 if (!port) in meson_serial_console_write()
608 if (!port || !port->membase) in meson_serial_console_setup()
[all …]
/openbmc/linux/drivers/parport/
H A Dieee1284.c43 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 …]
H A Dieee1284_ops.c198 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 …]
/openbmc/linux/drivers/scsi/libsas/
H A Dsas_port.c29 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 …]
/openbmc/qemu/hw/net/rocker/
H A Drocker_fp.c46 return port->name; in fp_port_get_name()
116 *port = pport - 1; in fp_port_from_pport()
146 return world_ingress(port->world, port->pport, iov, iovcnt); in fp_port_receive_iov()
168 rocker_event_link_changed(port->r, port->pport, !nc->link_down); in fp_port_set_link_status()
231 port->r = r; in fp_port_alloc()
237 port->name = g_strdup_printf("%sp%d", sw_name, port->pport); in fp_port_alloc()
239 memcpy(port->conf.macaddr.a, start_mac, sizeof(port->conf.macaddr.a)); in fp_port_alloc()
244 port->nic = qemu_new_nic(&fp_port_info, &port->conf, sw_name, NULL, in fp_port_alloc()
251 return port; in fp_port_alloc()
258 g_free(port); in fp_port_free()
[all …]
/openbmc/linux/drivers/usb/gadget/function/
H A Du_serial.c295 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 …]
/openbmc/linux/drivers/gpio/
H A Dgpio-mxc.c182 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 …]
/openbmc/linux/drivers/usb/host/
H A Dxhci-dbgtty.c70 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 …]
/openbmc/linux/drivers/char/
H A Dvirtio_console.c238 struct port *port; in find_port_by_vtermno() local
258 struct port *port; in find_port_by_devt_in_portdev() local
278 struct port *port; in find_port_by_devt() local
295 struct port *port; in find_port_by_id() local
312 struct port *port; in find_port_by_vq() local
734 struct port *port; in port_fops_read() local
801 struct port *port; in port_fops_write() local
965 struct port *port; in port_fops_poll() local
990 struct port *port; in port_fops_release() local
1025 struct port *port; in port_fops_open() local
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_core.c125 port = &up->port; in serial8250_interrupt()
127 if (port->handle_irq(port)) { in serial8250_interrupt()
252 up->port.handle_irq(&up->port); in serial8250_timeout()
304 struct uart_port *port = &up->port; in univ8250_setup_timer() local
329 struct uart_port *port = &up->port; in univ8250_setup_irq() local
339 struct uart_port *port = &up->port; in univ8250_release_irq() local
352 struct uart_port *port = &up->port; in serial8250_request_rsa_resource() local
373 struct uart_port *port = &up->port; in serial8250_release_rsa_resource() local
1075 uart->port.dev = up->port.dev; in serial8250_register_8250_port()
1082 uart->port.type = up->port.type; in serial8250_register_8250_port()
[all …]
/openbmc/linux/drivers/usb/serial/
H A Dgeneric.c176 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 …]
/openbmc/linux/drivers/net/wan/
H A Dhd64572.c240 u32 desc_off = desc_offset(port, port->rxin, 0); in sca_rx_done()
247 desc = desc_address(port, port->rxin, 0); in sca_rx_done()
263 sca_rx(card, port, desc, port->rxin); in sca_rx_done()
389 port->rxs = (port->rxs & ~CLK_BRG_MASK) | br; in sca_set_port()
390 port->txs = (port->txs & ~CLK_BRG_MASK) | br; in sca_set_port()
538 sca_in(DSR_TX(port->chan), card), port->txin, port->txlast, in sca_dump_rings()
573 desc = desc_address(port, port->txin + 1, 1); in sca_xmit()
581 desc = desc_address(port, port->txin, 1); in sca_xmit()
582 buff = buffer_offset(port, port->txin, 1); in sca_xmit()
590 sca_outl(desc_offset(port, port->txin, 1), in sca_xmit()
[all …]

12345678910>>...202