Lines Matching refs:vdev

17 #define to_mvdev(__vdev) container_of((__vdev), struct mlx5_vdpa_dev, vdev)
1331 static void mlx5_vdpa_kick_vq(struct vdpa_device *vdev, u16 idx)
1333 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1343 static int mlx5_vdpa_set_vq_address(struct vdpa_device *vdev, u16 idx, u64 desc_area,
1346 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1356 static void mlx5_vdpa_set_vq_num(struct vdpa_device *vdev, u16 idx, u32 num)
1358 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1366 static void mlx5_vdpa_set_vq_cb(struct vdpa_device *vdev, u16 idx, struct vdpa_callback *cb)
1368 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1375 static void mlx5_vdpa_set_vq_ready(struct vdpa_device *vdev, u16 idx, bool ready)
1377 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1387 static bool mlx5_vdpa_get_vq_ready(struct vdpa_device *vdev, u16 idx)
1389 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1396 static int mlx5_vdpa_set_vq_state(struct vdpa_device *vdev, u16 idx,
1399 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1413 static int mlx5_vdpa_get_vq_state(struct vdpa_device *vdev, u16 idx, struct vdpa_vq_state *state)
1415 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1443 static u32 mlx5_vdpa_get_vq_align(struct vdpa_device *vdev)
1470 static u64 mlx5_vdpa_get_features(struct vdpa_device *vdev)
1472 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1553 static int mlx5_vdpa_set_features(struct vdpa_device *vdev, u64 features)
1555 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1571 static void mlx5_vdpa_set_config_cb(struct vdpa_device *vdev, struct vdpa_callback *cb)
1574 mlx5_vdpa_warn(to_mvdev(vdev), "set config callback not supported\n");
1578 static u16 mlx5_vdpa_get_vq_num_max(struct vdpa_device *vdev)
1583 static u32 mlx5_vdpa_get_device_id(struct vdpa_device *vdev)
1588 static u32 mlx5_vdpa_get_vendor_id(struct vdpa_device *vdev)
1593 static u8 mlx5_vdpa_get_status(struct vdpa_device *vdev)
1595 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1774 static void mlx5_vdpa_set_status(struct vdpa_device *vdev, u8 status)
1776 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1813 static void mlx5_vdpa_get_config(struct vdpa_device *vdev, unsigned int offset, void *buf,
1816 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1823 static void mlx5_vdpa_set_config(struct vdpa_device *vdev, unsigned int offset, const void *buf,
1829 static u32 mlx5_vdpa_get_generation(struct vdpa_device *vdev)
1831 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1836 static int mlx5_vdpa_set_map(struct vdpa_device *vdev, struct vhost_iotlb *iotlb)
1838 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1855 static void mlx5_vdpa_free(struct vdpa_device *vdev)
1857 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev);
1872 static struct vdpa_notification_area mlx5_get_vq_notification(struct vdpa_device *vdev, u16 idx)
1996 ndev = vdpa_alloc_device(struct mlx5_vdpa_net, mvdev.vdev, mdev->device, &mlx5_vdpa_ops,
2022 mvdev->vdev.dma_dev = mdev->device;
2031 err = vdpa_register_device(&mvdev->vdev);
2046 put_device(&mvdev->vdev.dev);
2052 vdpa_unregister_device(&mvdev->vdev);