Lines Matching refs:vhost_virtqueue
57 struct vhost_virtqueue;
60 struct vhost_virtqueue { struct
119 struct vhost_virtqueue **vqs; argument
128 void vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs);
138 int vhost_vq_access_ok(struct vhost_virtqueue *vq);
141 int vhost_get_vq_desc(struct vhost_virtqueue *,
145 void vhost_discard_vq_desc(struct vhost_virtqueue *, int n);
147 int vhost_init_used(struct vhost_virtqueue *);
148 int vhost_add_used(struct vhost_virtqueue *, unsigned int head, int len);
149 int vhost_add_used_n(struct vhost_virtqueue *, struct vring_used_elem *heads,
151 void vhost_add_used_and_signal(struct vhost_dev *, struct vhost_virtqueue *,
153 void vhost_add_used_and_signal_n(struct vhost_dev *, struct vhost_virtqueue *,
155 void vhost_signal(struct vhost_dev *, struct vhost_virtqueue *);
156 void vhost_disable_notify(struct vhost_dev *, struct vhost_virtqueue *);
157 bool vhost_enable_notify(struct vhost_dev *, struct vhost_virtqueue *);
159 int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log,
175 static inline int vhost_has_feature(struct vhost_virtqueue *vq, int bit) in vhost_has_feature()