Searched refs:last_avail_idx (Results 1 - 8 of 8) sorted by relevance
/linux-4.4.14/drivers/vhost/ |
H A D | vringh.c | 34 u16 *last_avail_idx) __vringh_get_head() 46 if (*last_avail_idx == avail_idx) __vringh_get_head() 52 i = *last_avail_idx & (vrh->vring.num - 1); __vringh_get_head() 57 *last_avail_idx, &vrh->vring.avail->ring[i]); __vringh_get_head() 67 (*last_avail_idx)++; __vringh_get_head() 513 vrh->last_avail_idx) != 0) { __vringh_notify_enable() 533 return avail == vrh->last_avail_idx; __vringh_notify_enable() 620 vrh->last_avail_idx = 0; vringh_init_user() 658 err = __vringh_get_head(vrh, getu16_user, &vrh->last_avail_idx); vringh_getdesc_user() 740 vrh->last_avail_idx -= num; vringh_abandon_user() 881 vrh->last_avail_idx = 0; vringh_init_kern() 916 err = __vringh_get_head(vrh, getu16_kern, &vrh->last_avail_idx); vringh_getdesc_kern() 975 vrh->last_avail_idx -= num; vringh_abandon_kern() 31 __vringh_get_head(const struct vringh *vrh, int (*getu16)(const struct vringh *vrh, u16 *val, const __virtio16 *p), u16 *last_avail_idx) __vringh_get_head() argument
|
H A D | vhost.c | 261 vq->last_avail_idx = 0; vhost_vq_reset() 789 vq->last_avail_idx = s.num; vhost_vring_ioctl() 791 vq->avail_idx = vq->last_avail_idx; vhost_vring_ioctl() 795 s.num = vq->last_avail_idx; vhost_vring_ioctl() 1342 u16 last_avail_idx; vhost_get_vq_desc() local 1348 last_avail_idx = vq->last_avail_idx; vhost_get_vq_desc() 1356 if (unlikely((u16)(vq->avail_idx - last_avail_idx) > vq->num)) { vhost_get_vq_desc() 1358 last_avail_idx, vq->avail_idx); vhost_get_vq_desc() 1363 if (vq->avail_idx == last_avail_idx) vhost_get_vq_desc() 1372 &vq->avail->ring[last_avail_idx & (vq->num - 1)]))) { vhost_get_vq_desc() 1374 last_avail_idx, vhost_get_vq_desc() 1375 &vq->avail->ring[last_avail_idx % vq->num]); vhost_get_vq_desc() 1455 vq->last_avail_idx++; vhost_get_vq_desc() 1467 vq->last_avail_idx -= n; vhost_discard_vq_desc() 1574 unlikely(vq->avail_idx == vq->last_avail_idx)) vhost_notify()
|
H A D | vhost.h | 78 u16 last_avail_idx; member in struct:vhost_virtqueue
|
/linux-4.4.14/drivers/misc/mic/host/ |
H A D | mic_debugfs.c | 229 seq_printf(s, " last_avail_idx %d last_used_idx %d", mic_vdev_info_show() 230 vrh->last_avail_idx, vrh->last_used_idx); mic_vdev_info_show()
|
H A D | mic_virtio.c | 341 vr->info->avail_idx = vrh->last_avail_idx; _mic_virtio_copy() 429 vrh->last_avail_idx = 0; mic_virtio_device_reset()
|
/linux-4.4.14/tools/virtio/ |
H A D | vringh_test.c | 119 if (vrh->last_avail_idx == avail_idx) vringh_get_head() 125 i = vrh->last_avail_idx & (vrh->vring.num - 1); vringh_get_head() 131 vrh->last_avail_idx++; vringh_get_head()
|
/linux-4.4.14/include/linux/ |
H A D | vringh.h | 44 u16 last_avail_idx; member in struct:vringh
|
/linux-4.4.14/tools/lguest/ |
H A D | lguest.c | 218 u16 last_avail_idx; member in struct:virtqueue 247 #define lg_last_avail(vq) ((vq)->last_avail_idx) 1175 vq->last_avail_idx = 0; reset_device() 2388 vq->last_avail_idx = 0; add_pci_virtqueue()
|
Completed in 325 milliseconds