Lines Matching refs:vio
29 struct vio_driver_state vio; member
264 struct vio_driver_state *vio = &port->vio; in vcc_kick_rx() local
269 disable_irq_nosync(vio->vdev->rx_irq); in vcc_kick_rx()
316 struct vio_driver_state *vio = &port->vio; in vcc_ldc_read() local
323 rv = ldc_rx_reset(vio->lp); in vcc_ldc_read()
335 vccdbgl(vio->lp); in vcc_ldc_read()
337 rv = ldc_read(vio->lp, &pkt, sizeof(pkt)); in vcc_ldc_read()
368 struct vio_driver_state *vio; in vcc_rx_timer() local
375 vio = &port->vio; in vcc_rx_timer()
377 enable_irq(vio->vdev->rx_irq); in vcc_rx_timer()
384 vio_conn_reset(vio); in vcc_rx_timer()
412 vccdbgl(port->vio.lp); in vcc_tx_timer()
414 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_tx_timer()
442 struct vio_driver_state *vio; in vcc_event() local
448 vio = &port->vio; in vcc_event()
455 vio_link_state_change(vio, event); in vcc_event()
461 vio_conn_reset(vio); in vcc_event()
510 rv = ldc_write(port->vio.lp, &pkt, sizeof(pkt.tag)); in vcc_send_ctl()
591 rv = vio_driver_init(&port->vio, vdev, VDEV_CONSOLE_CON, vcc_versions, in vcc_probe()
596 port->vio.debug = vcc_dbg_vio; in vcc_probe()
599 rv = vio_ldc_alloc(&port->vio, &vcc_ldc_cfg, port); in vcc_probe()
650 vio_port_up(&port->vio); in vcc_probe()
662 vio_ldc_free(&port->vio); in vcc_probe()
706 del_timer_sync(&port->vio.timer); in vcc_remove()
707 vio_ldc_free(&port->vio); in vcc_remove()
716 kfree(port->vio.name); in vcc_remove()
730 MODULE_DEVICE_TABLE(vio, vcc_match);
757 if (unlikely(!port->vio.lp)) { in vcc_open()
762 vccdbgl(port->vio.lp); in vcc_open()
878 vccdbgl(port->vio.lp); in vcc_write()
884 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_write()
1043 kfree(port->vio.name); in vcc_cleanup()