search for: 3eb91d1

Displaying 2 results from an estimated 2 matches for "3eb91d1".

Did you mean: 3e891d6
2010 Sep 29
1
[RFC PATCH] virtio: (Partially) enable suspend/resume support
...R_SHIFT, + vp_dev->ioaddr + VIRTIO_PCI_QUEUE_PFN); + + } + spin_unlock_irqrestore(&vp_dev->lock, flags); + + vp_set_status(&vp_dev->vdev, VIRTIO_CONFIG_S_DRIVER_OK); + return 0; } #endif diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 1475ed6..3eb91d1 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -237,6 +237,14 @@ add_head: } EXPORT_SYMBOL_GPL(virtqueue_add_buf_gfp); +u16 virtqueue_get_avail_idx(struct virtqueue *_vq) +{ + struct vring_virtqueue *vq = to_vvq(_vq); + + return vq->vring.avail->idx; +} +E...
2010 Sep 29
1
[RFC PATCH] virtio: (Partially) enable suspend/resume support
...R_SHIFT, + vp_dev->ioaddr + VIRTIO_PCI_QUEUE_PFN); + + } + spin_unlock_irqrestore(&vp_dev->lock, flags); + + vp_set_status(&vp_dev->vdev, VIRTIO_CONFIG_S_DRIVER_OK); + return 0; } #endif diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 1475ed6..3eb91d1 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -237,6 +237,14 @@ add_head: } EXPORT_SYMBOL_GPL(virtqueue_add_buf_gfp); +u16 virtqueue_get_avail_idx(struct virtqueue *_vq) +{ + struct vring_virtqueue *vq = to_vvq(_vq); + + return vq->vring.avail->idx; +} +E...