Lines Matching refs:mgtdev
47 struct vdpa_mgmt_dev mgtdev; member
495 container_of(v_mdev, struct vp_vdpa_mgmtdev, mgtdev); in vp_vdpa_dev_add()
561 vp_vdpa->vdpa.mdev = &vp_vdpa_mgtdev->mgtdev; in vp_vdpa_dev_add()
579 container_of(v_mdev, struct vp_vdpa_mgmtdev, mgtdev); in vp_vdpa_dev_del()
595 struct vdpa_mgmt_dev *mgtdev; in vp_vdpa_probe() local
605 mgtdev = &vp_vdpa_mgtdev->mgtdev; in vp_vdpa_probe()
606 mgtdev->ops = &vp_vdpa_mdev_ops; in vp_vdpa_probe()
607 mgtdev->device = dev; in vp_vdpa_probe()
641 mgtdev->id_table = mdev_id; in vp_vdpa_probe()
642 mgtdev->max_supported_vqs = vp_modern_get_num_queues(mdev); in vp_vdpa_probe()
643 mgtdev->supported_features = vp_modern_get_features(mdev); in vp_vdpa_probe()
644 mgtdev->config_attr_mask = (1 << VDPA_ATTR_DEV_FEATURES); in vp_vdpa_probe()
648 err = vdpa_mgmtdev_register(mgtdev); in vp_vdpa_probe()
673 vdpa_mgmtdev_unregister(&vp_vdpa_mgtdev->mgtdev); in vp_vdpa_remove()
675 kfree(vp_vdpa_mgtdev->mgtdev.id_table); in vp_vdpa_remove()