Lines Matching refs:mgtdev

3294 	struct vdpa_mgmt_dev mgtdev;  member
3352 struct mlx5_vdpa_mgmtdev *mgtdev = container_of(v_mdev, struct mlx5_vdpa_mgmtdev, mgtdev); in mlx5_vdpa_dev_add() local
3363 if (mgtdev->ndev) in mlx5_vdpa_dev_add()
3366 mdev = mgtdev->madev->mdev; in mlx5_vdpa_dev_add()
3367 device_features = mgtdev->mgtdev.supported_features; in mlx5_vdpa_dev_add()
3510 mvdev->vdev.mdev = &mgtdev->mgtdev; in mlx5_vdpa_dev_add()
3515 mgtdev->ndev = ndev; in mlx5_vdpa_dev_add()
3536 struct mlx5_vdpa_mgmtdev *mgtdev = container_of(v_mdev, struct mlx5_vdpa_mgmtdev, mgtdev); in mlx5_vdpa_dev_del() local
3546 mgtdev->ndev = NULL; in mlx5_vdpa_dev_del()
3565 struct mlx5_vdpa_mgmtdev *mgtdev; in mlx5v_probe() local
3568 mgtdev = kzalloc(sizeof(*mgtdev), GFP_KERNEL); in mlx5v_probe()
3569 if (!mgtdev) in mlx5v_probe()
3572 mgtdev->mgtdev.ops = &mdev_ops; in mlx5v_probe()
3573 mgtdev->mgtdev.device = mdev->device; in mlx5v_probe()
3574 mgtdev->mgtdev.id_table = id_table; in mlx5v_probe()
3575 mgtdev->mgtdev.config_attr_mask = BIT_ULL(VDPA_ATTR_DEV_NET_CFG_MACADDR) | in mlx5v_probe()
3579 mgtdev->mgtdev.max_supported_vqs = in mlx5v_probe()
3581 mgtdev->mgtdev.supported_features = get_supported_features(mdev); in mlx5v_probe()
3582 mgtdev->madev = madev; in mlx5v_probe()
3584 err = vdpa_mgmtdev_register(&mgtdev->mgtdev); in mlx5v_probe()
3588 auxiliary_set_drvdata(adev, mgtdev); in mlx5v_probe()
3593 kfree(mgtdev); in mlx5v_probe()
3599 struct mlx5_vdpa_mgmtdev *mgtdev; in mlx5v_remove() local
3601 mgtdev = auxiliary_get_drvdata(adev); in mlx5v_remove()
3602 vdpa_mgmtdev_unregister(&mgtdev->mgtdev); in mlx5v_remove()
3603 kfree(mgtdev); in mlx5v_remove()