Lines Matching refs:mgtdev

3762 	struct vdpa_mgmt_dev mgtdev;  member
3821 struct mlx5_vdpa_mgmtdev *mgtdev = container_of(v_mdev, struct mlx5_vdpa_mgmtdev, mgtdev); in mlx5_vdpa_dev_add() local
3832 if (mgtdev->ndev) in mlx5_vdpa_dev_add()
3835 mdev = mgtdev->madev->mdev; in mlx5_vdpa_dev_add()
3836 device_features = mgtdev->mgtdev.supported_features; in mlx5_vdpa_dev_add()
3879 ndev = vdpa_alloc_device(struct mlx5_vdpa_net, mvdev.vdev, mdev->device, &mgtdev->vdpa_ops, in mlx5_vdpa_dev_add()
3990 mvdev->vdev.mdev = &mgtdev->mgtdev; in mlx5_vdpa_dev_add()
3995 mgtdev->ndev = ndev; in mlx5_vdpa_dev_add()
4020 struct mlx5_vdpa_mgmtdev *mgtdev = container_of(v_mdev, struct mlx5_vdpa_mgmtdev, mgtdev); in mlx5_vdpa_dev_del() local
4035 mgtdev->ndev = NULL; in mlx5_vdpa_dev_del()
4082 struct mlx5_vdpa_mgmtdev *mgtdev; in mlx5v_probe() local
4085 mgtdev = kzalloc(sizeof(*mgtdev), GFP_KERNEL); in mlx5v_probe()
4086 if (!mgtdev) in mlx5v_probe()
4089 mgtdev->mgtdev.ops = &mdev_ops; in mlx5v_probe()
4090 mgtdev->mgtdev.device = mdev->device; in mlx5v_probe()
4091 mgtdev->mgtdev.id_table = id_table; in mlx5v_probe()
4092 mgtdev->mgtdev.config_attr_mask = BIT_ULL(VDPA_ATTR_DEV_NET_CFG_MACADDR) | in mlx5v_probe()
4096 mgtdev->mgtdev.max_supported_vqs = in mlx5v_probe()
4098 mgtdev->mgtdev.supported_features = get_supported_features(mdev); in mlx5v_probe()
4099 mgtdev->madev = madev; in mlx5v_probe()
4100 mgtdev->vdpa_ops = mlx5_vdpa_ops; in mlx5v_probe()
4103 mgtdev->vdpa_ops.get_vq_desc_group = NULL; in mlx5v_probe()
4106 mgtdev->vdpa_ops.resume = NULL; in mlx5v_probe()
4108 err = vdpa_mgmtdev_register(&mgtdev->mgtdev); in mlx5v_probe()
4112 auxiliary_set_drvdata(adev, mgtdev); in mlx5v_probe()
4117 kfree(mgtdev); in mlx5v_probe()
4123 struct mlx5_vdpa_mgmtdev *mgtdev; in mlx5v_remove() local
4125 mgtdev = auxiliary_get_drvdata(adev); in mlx5v_remove()
4126 vdpa_mgmtdev_unregister(&mgtdev->mgtdev); in mlx5v_remove()
4127 kfree(mgtdev); in mlx5v_remove()