Lines Matching refs:vpdev
34 return vdev->vpdev->dev.parent; in vop_dev()
61 struct vop_device *vpdev = vdev->vpdev; in _vop_notify() local
65 vpdev->hw_ops->send_intr(vpdev, db); in _vop_notify()
71 struct vop_device *vpdev = vdev->vpdev; in vop_virtio_init_post() local
83 (void __force *)vpdev->hw_ops->ioremap( in vop_virtio_init_post()
84 vpdev, in vop_virtio_init_post()
158 struct vop_device *vpdev = vdev->vpdev; in _vop_virtio_intr_handler() local
160 vpdev->hw_ops->ack_interrupt(vpdev, vdev->virtio_db); in _vop_virtio_intr_handler()
169 struct vop_device *vpdev = vdev->vpdev; in vop_virtio_config_change() local
170 struct vop_info *vi = dev_get_drvdata(&vpdev->dev); in vop_virtio_config_change()
171 struct mic_bootparam *bootparam = vpdev->hw_ops->get_dp(vpdev); in vop_virtio_config_change()
185 vpdev->hw_ops->send_intr(vpdev, db); in vop_virtio_config_change()
209 struct vop_device *vpdev = vdev->vpdev; in vop_copy_dp_entry() local
229 devp = vpdev->hw_ops->get_dp(vpdev) + i; in vop_copy_dp_entry()
275 struct vop_device *vpdev = vi->vpdev; in vop_virtio_add_device() local
286 bootparam = vpdev->hw_ops->get_dp(vpdev); in vop_virtio_add_device()
289 vdev->vpdev = vpdev; in vop_virtio_add_device()
325 vr_addr = dma_map_single(&vpdev->dev, vr->va, vr_size, in vop_virtio_add_device()
327 if (dma_mapping_error(&vpdev->dev, vr_addr)) { in vop_virtio_add_device()
351 dev_dbg(&vpdev->dev, in vop_virtio_add_device()
356 vvr->buf_da = dma_map_single(&vpdev->dev, in vop_virtio_add_device()
361 snprintf(irqname, sizeof(irqname), "vop%dvirtio%d", vpdev->index, in vop_virtio_add_device()
363 vdev->virtio_db = vpdev->hw_ops->next_db(vpdev); in vop_virtio_add_device()
364 vdev->virtio_cookie = vpdev->hw_ops->request_irq(vpdev, in vop_virtio_add_device()
369 dev_dbg(&vpdev->dev, "request irq failed\n"); in vop_virtio_add_device()
388 vpdev->hw_ops->send_intr(vpdev, db); in vop_virtio_add_device()
390 dev_dbg(&vpdev->dev, "Added virtio id %d db %d\n", dd->type, db); in vop_virtio_add_device()
397 dma_unmap_single(&vpdev->dev, le64_to_cpu(vqconfig[j].address), in vop_virtio_add_device()
406 struct vop_device *vpdev) in vop_dev_remove() argument
408 struct mic_bootparam *bootparam = vpdev->hw_ops->get_dp(vpdev); in vop_dev_remove()
416 vpdev->hw_ops->send_intr(vpdev, db); in vop_dev_remove()
433 struct vop_device *vpdev = vdev->vpdev; in vop_virtio_del_device() local
436 struct mic_bootparam *bootparam = vpdev->hw_ops->get_dp(vpdev); in vop_virtio_del_device()
440 vop_dev_remove(vi, vdev->dc, vpdev); in vop_virtio_del_device()
442 vpdev->hw_ops->free_irq(vpdev, vdev->virtio_cookie, vdev); in vop_virtio_del_device()
448 dma_unmap_single(&vpdev->dev, in vop_virtio_del_device()
455 dma_unmap_single(&vpdev->dev, le64_to_cpu(vqconfig[i].address), in vop_virtio_del_device()
487 struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev); in vop_sync_dma()
513 dev_err(&vi->vpdev->dev, "%s %d err %d\n", in vop_sync_dma()
530 struct vop_device *vpdev = vdev->vpdev; in vop_virtio_copy_to_user() local
531 void __iomem *dbuf = vpdev->hw_ops->ioremap(vpdev, daddr, len); in vop_virtio_copy_to_user()
533 struct vop_info *vi = dev_get_drvdata(&vpdev->dev); in vop_virtio_copy_to_user()
561 daddr += vpdev->aper->pa; in vop_virtio_copy_to_user()
588 vpdev->hw_ops->iounmap(vpdev, dbuf); in vop_virtio_copy_to_user()
605 struct vop_device *vpdev = vdev->vpdev; in vop_virtio_copy_from_user() local
606 void __iomem *dbuf = vpdev->hw_ops->ioremap(vpdev, daddr, len); in vop_virtio_copy_from_user()
608 struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev); in vop_virtio_copy_from_user()
634 daddr += vpdev->aper->pa; in vop_virtio_copy_from_user()
679 vpdev->hw_ops->iounmap(vpdev, dbuf); in vop_virtio_copy_from_user()
1052 struct vop_device *vpdev = vdev->vpdev; in vop_query_offset() local
1065 *pa = virt_to_phys(vpdev->hw_ops->get_dp(vpdev)); in vop_query_offset()
1131 struct vop_device *vpdev = vi->vpdev; in vop_host_init() local
1134 vi->dma_ch = vpdev->dma_ch; in vop_host_init()
1137 snprintf(vi->name, sizeof(vi->name), "vop_virtio%d", vpdev->index); in vop_host_init()
1140 mdev->parent = &vpdev->dev; in vop_host_init()
1144 dev_err(&vpdev->dev, "%s failed rc %d\n", __func__, rc); in vop_host_init()