virtio: drop virtio_queue_get_ring_{size,addr}()
These are not used anymore. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
1cdce7c54d
commit
435346d748
@ -1935,11 +1935,6 @@ hwaddr virtio_queue_get_used_addr(VirtIODevice *vdev, int n)
|
||||
return vdev->vq[n].vring.used;
|
||||
}
|
||||
|
||||
hwaddr virtio_queue_get_ring_addr(VirtIODevice *vdev, int n)
|
||||
{
|
||||
return vdev->vq[n].vring.desc;
|
||||
}
|
||||
|
||||
hwaddr virtio_queue_get_desc_size(VirtIODevice *vdev, int n)
|
||||
{
|
||||
return sizeof(VRingDesc) * vdev->vq[n].vring.num;
|
||||
@ -1957,12 +1952,6 @@ hwaddr virtio_queue_get_used_size(VirtIODevice *vdev, int n)
|
||||
sizeof(VRingUsedElem) * vdev->vq[n].vring.num;
|
||||
}
|
||||
|
||||
hwaddr virtio_queue_get_ring_size(VirtIODevice *vdev, int n)
|
||||
{
|
||||
return vdev->vq[n].vring.used - vdev->vq[n].vring.desc +
|
||||
virtio_queue_get_used_size(vdev, n);
|
||||
}
|
||||
|
||||
uint16_t virtio_queue_get_last_avail_idx(VirtIODevice *vdev, int n)
|
||||
{
|
||||
return vdev->vq[n].last_avail_idx;
|
||||
|
@ -259,11 +259,9 @@ typedef struct VirtIORNGConf VirtIORNGConf;
|
||||
hwaddr virtio_queue_get_desc_addr(VirtIODevice *vdev, int n);
|
||||
hwaddr virtio_queue_get_avail_addr(VirtIODevice *vdev, int n);
|
||||
hwaddr virtio_queue_get_used_addr(VirtIODevice *vdev, int n);
|
||||
hwaddr virtio_queue_get_ring_addr(VirtIODevice *vdev, int n);
|
||||
hwaddr virtio_queue_get_desc_size(VirtIODevice *vdev, int n);
|
||||
hwaddr virtio_queue_get_avail_size(VirtIODevice *vdev, int n);
|
||||
hwaddr virtio_queue_get_used_size(VirtIODevice *vdev, int n);
|
||||
hwaddr virtio_queue_get_ring_size(VirtIODevice *vdev, int n);
|
||||
uint16_t virtio_queue_get_last_avail_idx(VirtIODevice *vdev, int n);
|
||||
void virtio_queue_set_last_avail_idx(VirtIODevice *vdev, int n, uint16_t idx);
|
||||
void virtio_queue_invalidate_signalled_used(VirtIODevice *vdev, int n);
|
||||
|
Loading…
Reference in New Issue
Block a user