Lines Matching refs:mgtdev

3299 	struct vdpa_mgmt_dev mgtdev;  member
3357 struct mlx5_vdpa_mgmtdev *mgtdev = container_of(v_mdev, struct mlx5_vdpa_mgmtdev, mgtdev); in mlx5_vdpa_dev_add() local
3368 if (mgtdev->ndev) in mlx5_vdpa_dev_add()
3371 mdev = mgtdev->madev->mdev; in mlx5_vdpa_dev_add()
3372 device_features = mgtdev->mgtdev.supported_features; in mlx5_vdpa_dev_add()
3515 mvdev->vdev.mdev = &mgtdev->mgtdev; in mlx5_vdpa_dev_add()
3520 mgtdev->ndev = ndev; in mlx5_vdpa_dev_add()
3541 struct mlx5_vdpa_mgmtdev *mgtdev = container_of(v_mdev, struct mlx5_vdpa_mgmtdev, mgtdev); in mlx5_vdpa_dev_del() local
3551 mgtdev->ndev = NULL; in mlx5_vdpa_dev_del()
3570 struct mlx5_vdpa_mgmtdev *mgtdev; in mlx5v_probe() local
3573 mgtdev = kzalloc(sizeof(*mgtdev), GFP_KERNEL); in mlx5v_probe()
3574 if (!mgtdev) in mlx5v_probe()
3577 mgtdev->mgtdev.ops = &mdev_ops; in mlx5v_probe()
3578 mgtdev->mgtdev.device = mdev->device; in mlx5v_probe()
3579 mgtdev->mgtdev.id_table = id_table; in mlx5v_probe()
3580 mgtdev->mgtdev.config_attr_mask = BIT_ULL(VDPA_ATTR_DEV_NET_CFG_MACADDR) | in mlx5v_probe()
3584 mgtdev->mgtdev.max_supported_vqs = in mlx5v_probe()
3586 mgtdev->mgtdev.supported_features = get_supported_features(mdev); in mlx5v_probe()
3587 mgtdev->madev = madev; in mlx5v_probe()
3589 err = vdpa_mgmtdev_register(&mgtdev->mgtdev); in mlx5v_probe()
3593 auxiliary_set_drvdata(adev, mgtdev); in mlx5v_probe()
3598 kfree(mgtdev); in mlx5v_probe()
3604 struct mlx5_vdpa_mgmtdev *mgtdev; in mlx5v_remove() local
3606 mgtdev = auxiliary_get_drvdata(adev); in mlx5v_remove()
3607 vdpa_mgmtdev_unregister(&mgtdev->mgtdev); in mlx5v_remove()
3608 kfree(mgtdev); in mlx5v_remove()