Lines Matching full:vio
15 #include <asm/vio.h>
23 struct vio_driver_state vio; member
256 struct vio_driver_state *vio = &port->vio; in vcc_kick_rx() local
261 disable_irq_nosync(vio->vdev->rx_irq); in vcc_kick_rx()
308 struct vio_driver_state *vio = &port->vio; in vcc_ldc_read() local
315 rv = ldc_rx_reset(vio->lp); in vcc_ldc_read()
327 vccdbgl(vio->lp); in vcc_ldc_read()
329 rv = ldc_read(vio->lp, &pkt, sizeof(pkt)); in vcc_ldc_read()
360 struct vio_driver_state *vio; in vcc_rx_timer() local
367 vio = &port->vio; in vcc_rx_timer()
369 enable_irq(vio->vdev->rx_irq); in vcc_rx_timer()
376 vio_conn_reset(vio); in vcc_rx_timer()
404 vccdbgl(port->vio.lp); in vcc_tx_timer()
406 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_tx_timer()
434 struct vio_driver_state *vio; in vcc_event() local
440 vio = &port->vio; in vcc_event()
447 vio_link_state_change(vio, event); in vcc_event()
453 vio_conn_reset(vio); in vcc_event()
502 rv = ldc_write(port->vio.lp, &pkt, sizeof(pkt.tag)); in vcc_send_ctl()
550 * @vdev: Pointer to VIO device of the new VCC port
551 * @id: VIO device ID
555 * domain. Sets up VIO/LDC link between the guest & control
587 rv = vio_driver_init(&port->vio, vdev, VDEV_CONSOLE_CON, vcc_versions, in vcc_probe()
592 port->vio.debug = vcc_dbg_vio; in vcc_probe()
595 rv = vio_ldc_alloc(&port->vio, &vcc_ldc_cfg, port); in vcc_probe()
652 vio_port_up(&port->vio); in vcc_probe()
664 vio_ldc_free(&port->vio); in vcc_probe()
675 * @vdev: Pointer to VIO device of the VCC port
678 * VIO/LDC link between guest and primary domains.
703 del_timer_sync(&port->vio.timer); in vcc_remove()
704 vio_ldc_free(&port->vio); in vcc_remove()
713 kfree(port->vio.name); in vcc_remove()
725 MODULE_DEVICE_TABLE(vio, vcc_match);
747 if (unlikely(!port->vio.lp)) { in vcc_open()
752 vccdbgl(port->vio.lp); in vcc_open()
853 vccdbgl(port->vio.lp); in vcc_write()
859 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_write()
993 kfree(port->vio.name); in vcc_cleanup()
1073 pr_err("VCC: VIO driver registration failed\n"); in vcc_init()
1076 vccdbg("VCC: VIO driver registered successfully\n"); in vcc_init()
1085 vccdbg("VCC: VIO driver unregistered\n"); in vcc_exit()