vpdev 85 drivers/misc/mic/bus/vop_bus.h int (*next_db)(struct vop_device *vpdev); vpdev 86 drivers/misc/mic/bus/vop_bus.h struct mic_irq *(*request_irq)(struct vop_device *vpdev, vpdev 90 drivers/misc/mic/bus/vop_bus.h void (*free_irq)(struct vop_device *vpdev, vpdev 92 drivers/misc/mic/bus/vop_bus.h void (*ack_interrupt)(struct vop_device *vpdev, int num); vpdev 93 drivers/misc/mic/bus/vop_bus.h void __iomem * (*get_remote_dp)(struct vop_device *vpdev); vpdev 94 drivers/misc/mic/bus/vop_bus.h void * (*get_dp)(struct vop_device *vpdev); vpdev 95 drivers/misc/mic/bus/vop_bus.h void (*send_intr)(struct vop_device *vpdev, int db); vpdev 96 drivers/misc/mic/bus/vop_bus.h void __iomem * (*remap)(struct vop_device *vpdev, vpdev 98 drivers/misc/mic/bus/vop_bus.h void (*unmap)(struct vop_device *vpdev, void __iomem *va); vpdev 240 drivers/misc/mic/card/mic_device.c static inline struct mic_driver *vpdev_to_mdrv(struct vop_device *vpdev) vpdev 242 drivers/misc/mic/card/mic_device.c return dev_get_drvdata(vpdev->dev.parent); vpdev 246 drivers/misc/mic/card/mic_device.c __mic_request_irq(struct vop_device *vpdev, vpdev 253 drivers/misc/mic/card/mic_device.c static void __mic_free_irq(struct vop_device *vpdev, vpdev 259 drivers/misc/mic/card/mic_device.c static void __mic_ack_interrupt(struct vop_device *vpdev, int num) vpdev 261 drivers/misc/mic/card/mic_device.c struct mic_driver *mdrv = vpdev_to_mdrv(vpdev); vpdev 266 drivers/misc/mic/card/mic_device.c static int __mic_next_db(struct vop_device *vpdev) vpdev 271 drivers/misc/mic/card/mic_device.c static void __iomem *__mic_get_remote_dp(struct vop_device *vpdev) vpdev 273 drivers/misc/mic/card/mic_device.c struct mic_driver *mdrv = vpdev_to_mdrv(vpdev); vpdev 278 drivers/misc/mic/card/mic_device.c static void __mic_send_intr(struct vop_device *vpdev, int db) vpdev 280 drivers/misc/mic/card/mic_device.c struct mic_driver *mdrv = vpdev_to_mdrv(vpdev); vpdev 285 drivers/misc/mic/card/mic_device.c static void __iomem *__mic_ioremap(struct vop_device *vpdev, vpdev 288 drivers/misc/mic/card/mic_device.c struct mic_driver *mdrv = vpdev_to_mdrv(vpdev); vpdev 293 drivers/misc/mic/card/mic_device.c static void __mic_iounmap(struct vop_device *vpdev, void __iomem *va) vpdev 295 drivers/misc/mic/card/mic_device.c struct mic_driver *mdrv = vpdev_to_mdrv(vpdev); vpdev 369 drivers/misc/mic/card/mic_device.c mdrv->vpdev = vop_register_device(mdrv->dev, VOP_DEV_TRNSP, vpdev 372 drivers/misc/mic/card/mic_device.c if (IS_ERR(mdrv->vpdev)) { vpdev 373 drivers/misc/mic/card/mic_device.c rc = PTR_ERR(mdrv->vpdev); vpdev 391 drivers/misc/mic/card/mic_device.c vop_unregister_device(mdrv->vpdev); vpdev 412 drivers/misc/mic/card/mic_device.c vop_unregister_device(mdrv->vpdev); vpdev 83 drivers/misc/mic/card/mic_device.h struct vop_device *vpdev; vpdev 52 drivers/misc/mic/host/mic_boot.c __mic_request_irq(struct vop_device *vpdev, vpdev 56 drivers/misc/mic/host/mic_boot.c struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); vpdev 62 drivers/misc/mic/host/mic_boot.c static void __mic_free_irq(struct vop_device *vpdev, vpdev 65 drivers/misc/mic/host/mic_boot.c struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); vpdev 70 drivers/misc/mic/host/mic_boot.c static void __mic_ack_interrupt(struct vop_device *vpdev, int num) vpdev 72 drivers/misc/mic/host/mic_boot.c struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); vpdev 77 drivers/misc/mic/host/mic_boot.c static int __mic_next_db(struct vop_device *vpdev) vpdev 79 drivers/misc/mic/host/mic_boot.c struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); vpdev 84 drivers/misc/mic/host/mic_boot.c static void *__mic_get_dp(struct vop_device *vpdev) vpdev 86 drivers/misc/mic/host/mic_boot.c struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); vpdev 91 drivers/misc/mic/host/mic_boot.c static void __iomem *__mic_get_remote_dp(struct vop_device *vpdev) vpdev 96 drivers/misc/mic/host/mic_boot.c static void __mic_send_intr(struct vop_device *vpdev, int db) vpdev 98 drivers/misc/mic/host/mic_boot.c struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); vpdev 103 drivers/misc/mic/host/mic_boot.c static void __iomem *__mic_ioremap(struct vop_device *vpdev, vpdev 106 drivers/misc/mic/host/mic_boot.c struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); vpdev 111 drivers/misc/mic/host/mic_boot.c static void __mic_iounmap(struct vop_device *vpdev, void __iomem *va) vpdev 484 drivers/misc/mic/host/mic_boot.c mdev->vpdev = vop_register_device(&mdev->pdev->dev, vpdev 488 drivers/misc/mic/host/mic_boot.c if (IS_ERR(mdev->vpdev)) { vpdev 489 drivers/misc/mic/host/mic_boot.c rc = PTR_ERR(mdev->vpdev); vpdev 504 drivers/misc/mic/host/mic_boot.c vop_unregister_device(mdev->vpdev); vpdev 531 drivers/misc/mic/host/mic_boot.c vop_unregister_device(mdev->vpdev); vpdev 85 drivers/misc/mic/host/mic_device.h struct vop_device *vpdev; vpdev 22 drivers/misc/mic/vop/vop_debugfs.c struct vop_device *vpdev = vi->vpdev; vpdev 23 drivers/misc/mic/vop/vop_debugfs.c struct mic_bootparam *bootparam = vpdev->hw_ops->get_dp(vpdev); vpdev 175 drivers/misc/mic/vop/vop_debugfs.c snprintf(name, sizeof(name), "%s%d", KBUILD_MODNAME, vi->vpdev->dnode); vpdev 48 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev; vpdev 191 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vpdev 196 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->send_intr(vpdev, vdev->c2h_vdev_db); vpdev 204 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vpdev 209 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->send_intr(vpdev, vdev->c2h_vdev_db); vpdev 241 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vpdev 243 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->send_intr(vpdev, vdev->c2h_vdev_db); vpdev 250 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vpdev 252 drivers/misc/mic/vop/vop_main.c dma_unmap_single(&vpdev->dev, vdev->used[n], vpdev 257 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->unmap(vpdev, vdev->vr[n]); vpdev 304 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vpdev 325 drivers/misc/mic/vop/vop_main.c va = vpdev->hw_ops->remap(vpdev, le64_to_cpu(config.address), vr_size); vpdev 360 drivers/misc/mic/vop/vop_main.c vdev->used[index] = dma_map_single(&vpdev->dev, used, vpdev 363 drivers/misc/mic/vop/vop_main.c if (dma_mapping_error(&vpdev->dev, vdev->used[index])) { vpdev 379 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->unmap(vpdev, vdev->vr[index]); vpdev 390 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vpdev 419 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->send_intr(vpdev, vdev->c2h_vdev_db); vpdev 456 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vpdev 459 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->ack_interrupt(vpdev, vdev->h2c_vdev_db); vpdev 481 drivers/misc/mic/vop/vop_main.c unsigned int offset, struct vop_device *vpdev, vpdev 492 drivers/misc/mic/vop/vop_main.c vdev->vpdev = vpdev; vpdev 493 drivers/misc/mic/vop/vop_main.c vdev->vdev.dev.parent = &vpdev->dev; vpdev 503 drivers/misc/mic/vop/vop_main.c vdev->h2c_vdev_db = vpdev->hw_ops->next_db(vpdev); vpdev 504 drivers/misc/mic/vop/vop_main.c vdev->virtio_cookie = vpdev->hw_ops->request_irq(vpdev, vpdev 529 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->free_irq(vpdev, vdev->virtio_cookie, vdev); vpdev 556 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev) vpdev 565 drivers/misc/mic/vop/vop_main.c dev_dbg(&vpdev->dev, "%s %d\n", __func__, __LINE__); vpdev 575 drivers/misc/mic/vop/vop_main.c unsigned int offset, struct vop_device *vpdev) vpdev 586 drivers/misc/mic/vop/vop_main.c dev_dbg(&vpdev->dev, vpdev 593 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->free_irq(vpdev, vdev->virtio_cookie, vdev); vpdev 599 drivers/misc/mic/vop/vop_main.c dev_dbg(&vpdev->dev, "%s %d guest_ack %d\n", vpdev 609 drivers/misc/mic/vop/vop_main.c static void _vop_scan_devices(void __iomem *dp, struct vop_device *vpdev, vpdev 639 drivers/misc/mic/vop/vop_main.c dev = device_find_child(&vpdev->dev, (void __force *)d, vpdev 646 drivers/misc/mic/vop/vop_main.c _vop_handle_config_change(d, i, vpdev); vpdev 647 drivers/misc/mic/vop/vop_main.c ret = _vop_remove_device(d, i, vpdev); vpdev 656 drivers/misc/mic/vop/vop_main.c dev_dbg(&vpdev->dev, "%s %d Adding new virtio device %p\n", vpdev 659 drivers/misc/mic/vop/vop_main.c _vop_add_device(d, i, vpdev, dnode); vpdev 664 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev, bool remove) vpdev 666 drivers/misc/mic/vop/vop_main.c void __iomem *dp = vpdev->hw_ops->get_remote_dp(vpdev); vpdev 671 drivers/misc/mic/vop/vop_main.c _vop_scan_devices(dp, vpdev, remove, vpdev->dnode); vpdev 683 drivers/misc/mic/vop/vop_main.c vop_scan_devices(vi, vi->vpdev, !REMOVE_DEVICES); vpdev 693 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vi->vpdev; vpdev 695 drivers/misc/mic/vop/vop_main.c bp = vpdev->hw_ops->get_remote_dp(vpdev); vpdev 696 drivers/misc/mic/vop/vop_main.c dev_dbg(&vpdev->dev, "%s %d hotplug work\n", vpdev 698 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->ack_interrupt(vpdev, ioread8(&bp->h2c_config_db)); vpdev 703 drivers/misc/mic/vop/vop_main.c static int vop_driver_probe(struct vop_device *vpdev) vpdev 713 drivers/misc/mic/vop/vop_main.c dev_set_drvdata(&vpdev->dev, vi); vpdev 714 drivers/misc/mic/vop/vop_main.c vi->vpdev = vpdev; vpdev 718 drivers/misc/mic/vop/vop_main.c if (vpdev->dnode) { vpdev 725 drivers/misc/mic/vop/vop_main.c vop_scan_devices(vi, vpdev, !REMOVE_DEVICES); vpdev 727 drivers/misc/mic/vop/vop_main.c vi->h2c_config_db = vpdev->hw_ops->next_db(vpdev); vpdev 728 drivers/misc/mic/vop/vop_main.c vi->cookie = vpdev->hw_ops->request_irq(vpdev, vpdev 736 drivers/misc/mic/vop/vop_main.c bootparam = vpdev->hw_ops->get_remote_dp(vpdev); vpdev 747 drivers/misc/mic/vop/vop_main.c static void vop_driver_remove(struct vop_device *vpdev) vpdev 749 drivers/misc/mic/vop/vop_main.c struct vop_info *vi = dev_get_drvdata(&vpdev->dev); vpdev 751 drivers/misc/mic/vop/vop_main.c if (vpdev->dnode) { vpdev 755 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->get_remote_dp(vpdev); vpdev 758 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->free_irq(vpdev, vi->cookie, vi); vpdev 760 drivers/misc/mic/vop/vop_main.c vop_scan_devices(vi, vpdev, REMOVE_DEVICES); vpdev 54 drivers/misc/mic/vop/vop_main.h struct vop_device *vpdev; vpdev 126 drivers/misc/mic/vop/vop_main.h struct vop_device *vpdev; vpdev 22 drivers/misc/mic/vop/vop_vringh.c return vdev->vpdev->dev.parent; vpdev 49 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 53 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->send_intr(vpdev, db); vpdev 59 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 71 drivers/misc/mic/vop/vop_vringh.c (void __force *)vpdev->hw_ops->remap( vpdev 72 drivers/misc/mic/vop/vop_vringh.c vpdev, vpdev 146 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 148 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->ack_interrupt(vpdev, vdev->virtio_db); vpdev 157 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 158 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = dev_get_drvdata(&vpdev->dev); vpdev 159 drivers/misc/mic/vop/vop_vringh.c struct mic_bootparam *bootparam = vpdev->hw_ops->get_dp(vpdev); vpdev 173 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->send_intr(vpdev, db); vpdev 197 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 217 drivers/misc/mic/vop/vop_vringh.c devp = vpdev->hw_ops->get_dp(vpdev) + i; vpdev 263 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vi->vpdev; vpdev 274 drivers/misc/mic/vop/vop_vringh.c bootparam = vpdev->hw_ops->get_dp(vpdev); vpdev 277 drivers/misc/mic/vop/vop_vringh.c vdev->vpdev = vpdev; vpdev 313 drivers/misc/mic/vop/vop_vringh.c vr_addr = dma_map_single(&vpdev->dev, vr->va, vr_size, vpdev 315 drivers/misc/mic/vop/vop_vringh.c if (dma_mapping_error(&vpdev->dev, vr_addr)) { vpdev 339 drivers/misc/mic/vop/vop_vringh.c dev_dbg(&vpdev->dev, vpdev 344 drivers/misc/mic/vop/vop_vringh.c vvr->buf_da = dma_map_single(&vpdev->dev, vpdev 349 drivers/misc/mic/vop/vop_vringh.c snprintf(irqname, sizeof(irqname), "vop%dvirtio%d", vpdev->index, vpdev 351 drivers/misc/mic/vop/vop_vringh.c vdev->virtio_db = vpdev->hw_ops->next_db(vpdev); vpdev 352 drivers/misc/mic/vop/vop_vringh.c vdev->virtio_cookie = vpdev->hw_ops->request_irq(vpdev, vpdev 357 drivers/misc/mic/vop/vop_vringh.c dev_dbg(&vpdev->dev, "request irq failed\n"); vpdev 376 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->send_intr(vpdev, db); vpdev 378 drivers/misc/mic/vop/vop_vringh.c dev_dbg(&vpdev->dev, "Added virtio id %d db %d\n", dd->type, db); vpdev 385 drivers/misc/mic/vop/vop_vringh.c dma_unmap_single(&vpdev->dev, le64_to_cpu(vqconfig[j].address), vpdev 394 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev) vpdev 396 drivers/misc/mic/vop/vop_vringh.c struct mic_bootparam *bootparam = vpdev->hw_ops->get_dp(vpdev); vpdev 404 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->send_intr(vpdev, db); vpdev 421 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 424 drivers/misc/mic/vop/vop_vringh.c struct mic_bootparam *bootparam = vpdev->hw_ops->get_dp(vpdev); vpdev 428 drivers/misc/mic/vop/vop_vringh.c vop_dev_remove(vi, vdev->dc, vpdev); vpdev 430 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->free_irq(vpdev, vdev->virtio_cookie, vdev); vpdev 436 drivers/misc/mic/vop/vop_vringh.c dma_unmap_single(&vpdev->dev, vpdev 443 drivers/misc/mic/vop/vop_vringh.c dma_unmap_single(&vpdev->dev, le64_to_cpu(vqconfig[i].address), vpdev 475 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev); vpdev 501 drivers/misc/mic/vop/vop_vringh.c dev_err(&vi->vpdev->dev, "%s %d err %d\n", vpdev 518 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 519 drivers/misc/mic/vop/vop_vringh.c void __iomem *dbuf = vpdev->hw_ops->remap(vpdev, daddr, len); vpdev 521 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = dev_get_drvdata(&vpdev->dev); vpdev 552 drivers/misc/mic/vop/vop_vringh.c daddr += vpdev->aper->pa; vpdev 579 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->unmap(vpdev, dbuf); vpdev 596 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 597 drivers/misc/mic/vop/vop_vringh.c void __iomem *dbuf = vpdev->hw_ops->remap(vpdev, daddr, len); vpdev 599 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev); vpdev 629 drivers/misc/mic/vop/vop_vringh.c daddr += vpdev->aper->pa; vpdev 667 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->unmap(vpdev, dbuf); vpdev 1041 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vpdev 1054 drivers/misc/mic/vop/vop_vringh.c *pa = virt_to_phys(vpdev->hw_ops->get_dp(vpdev)); vpdev 1120 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vi->vpdev; vpdev 1123 drivers/misc/mic/vop/vop_vringh.c vi->dma_ch = vpdev->dma_ch; vpdev 1126 drivers/misc/mic/vop/vop_vringh.c snprintf(vi->name, sizeof(vi->name), "vop_virtio%d", vpdev->index); vpdev 1129 drivers/misc/mic/vop/vop_vringh.c mdev->parent = &vpdev->dev; vpdev 1133 drivers/misc/mic/vop/vop_vringh.c dev_err(&vpdev->dev, "%s failed rc %d\n", __func__, rc);