Lines Matching defs:index
147 static void vhost_test_flush_vq(struct vhost_test *n, int index)
149 vhost_poll_flush(&n->vqs[index].poll);
177 int r, index;
187 for (index = 0; index < n->dev.nvqs; ++index) {
189 if (!vhost_vq_access_ok(&n->vqs[index])) {
195 for (index = 0; index < n->dev.nvqs; ++index) {
196 vq = n->vqs + index;
204 r = vhost_vq_init_access(&n->vqs[index]);
212 vhost_test_flush_vq(n, index);
266 static long vhost_test_set_backend(struct vhost_test *n, unsigned index, int fd)
279 if (index >= VHOST_TEST_VQ_MAX) {
283 vq = &n->vqs[index];
305 vhost_test_flush_vq(n, index);
336 return vhost_test_set_backend(n, backend.index, backend.fd);