Searched refs:vdev (Results 1 – 4 of 4) sorted by relevance
/tools/virtio/linux/ |
D | virtio_config.h | 13 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_iommu_quirk(const struct virtio_device *vdev) in virtio_has_iommu_quirk() argument 54 return !virtio_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM); in virtio_has_iommu_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 …]
|
D | virtio.h | 22 struct virtio_device *vdev; member 59 struct virtio_device *vdev,
|
/tools/virtio/ |
D | vringh_test.c | 65 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() 317 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &gvdev.vdev, true, in parallel_test() 439 struct virtio_device vdev; in main() local 455 vdev.features = 0; in main() 459 __virtio_set_bit(&vdev, VIRTIO_RING_F_INDIRECT_DESC); in main() 461 __virtio_set_bit(&vdev, VIRTIO_RING_F_EVENT_IDX); in main() 463 __virtio_set_bit(&vdev, VIRTIO_F_VERSION_1); in main() 476 return parallel_test(vdev.features, getrange, fast_vringh); in main() [all …]
|
D | virtio_test.c | 36 struct virtio_device vdev; member 65 unsigned long long features = dev->vdev.features; in vhost_vq_setup() 103 info->vring.num, 4096, &dev->vdev, in vq_info_add() 118 dev->vdev.features = features; in vdev_info_init()
|