Home
last modified time | relevance | path

Searched refs:vdev (Results 1 – 4 of 4) sorted by relevance

/tools/virtio/linux/
Dvirtio_config.h13 static inline bool __virtio_test_bit(const struct virtio_device *vdev, in __virtio_test_bit() argument
16 return vdev->features & (1ULL << fbit); in __virtio_test_bit()
24 static inline void __virtio_set_bit(struct virtio_device *vdev, in __virtio_set_bit() argument
27 vdev->features |= (1ULL << fbit); in __virtio_set_bit()
35 static inline void __virtio_clear_bit(struct virtio_device *vdev, in __virtio_clear_bit() argument
38 vdev->features &= ~(1ULL << fbit); in __virtio_clear_bit()
48 static inline bool virtio_has_dma_quirk(const struct virtio_device *vdev) in virtio_has_dma_quirk() argument
54 return !virtio_has_feature(vdev, VIRTIO_F_ACCESS_PLATFORM); in virtio_has_dma_quirk()
57 static inline bool virtio_is_little_endian(struct virtio_device *vdev) in virtio_is_little_endian() argument
59 return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || in virtio_is_little_endian()
[all …]
Dvirtio.h23 struct virtio_device *vdev; member
60 struct virtio_device *vdev,
/tools/virtio/
Dvringh_test.c65 struct virtio_device vdev; member
75 gvdev = container_of(vq->vdev, struct guest_virtio_device, vdev); in parallel_notify_host()
309 gvdev.vdev.features = features; in parallel_test()
310 INIT_LIST_HEAD(&gvdev.vdev.vqs); in parallel_test()
311 spin_lock_init(&gvdev.vdev.vqs_list_lock); in parallel_test()
319 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &gvdev.vdev, true, in parallel_test()
441 struct virtio_device vdev; in main() local
457 vdev.features = 0; in main()
458 INIT_LIST_HEAD(&vdev.vqs); in main()
459 spin_lock_init(&vdev.vqs_list_lock); in main()
[all …]
Dvirtio_test.c39 struct virtio_device vdev; member
72 unsigned long long features = dev->vdev.features; in vhost_vq_setup()
98 static void vq_reset(struct vq_info *info, int num, struct virtio_device *vdev) in vq_reset() argument
105 info->vq = __vring_new_virtqueue(info->idx, info->vring, vdev, true, in vq_reset()
120 vq_reset(info, num, &dev->vdev); in vq_info_add()
131 dev->vdev.features = features; in vdev_info_init()
132 INIT_LIST_HEAD(&dev->vdev.vqs); in vdev_info_init()
133 spin_lock_init(&dev->vdev.vqs_list_lock); in vdev_info_init()
236 vq_reset(vq, vq->vring.num, &dev->vdev); in run_test()