Searched refs:avail_idx (Results 1 - 9 of 9) sorted by relevance
/linux-4.4.14/drivers/misc/mic/host/ |
H A D | mic_debugfs.c | 223 seq_printf(s, "vring i %d avail_idx %d", mic_vdev_info_show() 224 i, mvr->vring.info->avail_idx & (num - 1)); mic_vdev_info_show() 225 seq_printf(s, " vring i %d avail_idx %d\n", mic_vdev_info_show() 226 i, mvr->vring.info->avail_idx); mic_vdev_info_show()
|
H A D | mic_virtio.c | 341 vr->info->avail_idx = vrh->last_avail_idx; _mic_virtio_copy() 427 mvdev->mvr[i].vring.info->avail_idx = 0; mic_virtio_device_reset()
|
/linux-4.4.14/drivers/vhost/ |
H A D | vhost.c | 262 vq->avail_idx = 0; vhost_vq_reset() 791 vq->avail_idx = vq->last_avail_idx; vhost_vring_ioctl() 1138 if (__put_user(cpu_to_vhost16(vq, vq->avail_idx), vhost_avail_event(vq))) vhost_update_avail_event() 1343 __virtio16 avail_idx; vhost_get_vq_desc() local 1349 if (unlikely(__get_user(avail_idx, &vq->avail->idx))) { vhost_get_vq_desc() 1354 vq->avail_idx = vhost16_to_cpu(vq, 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() 1574 unlikely(vq->avail_idx == vq->last_avail_idx)) vhost_notify() 1632 __virtio16 avail_idx; vhost_enable_notify() local 1646 r = vhost_update_avail_event(vq, vq->avail_idx); vhost_enable_notify() 1656 r = __get_user(avail_idx, &vq->avail->idx); vhost_enable_notify() 1663 return vhost16_to_cpu(vq, avail_idx) != vq->avail_idx; vhost_enable_notify()
|
H A D | vhost.h | 81 u16 avail_idx; member in struct:vhost_virtqueue
|
H A D | vringh.c | 36 u16 avail_idx, i, head; __vringh_get_head() local 39 err = getu16(vrh, &avail_idx, &vrh->vring.avail->idx); __vringh_get_head() 46 if (*last_avail_idx == avail_idx) __vringh_get_head()
|
/linux-4.4.14/Documentation/mic/mpssd/ |
H A D | mpssd.c | 385 return ACCESS_ONCE(vr->info->avail_idx); read_avail_idx() 524 __u16 avail_idx = read_avail_idx(vr); spin_for_descriptors() local 526 while (avail_idx == le16toh(ACCESS_ONCE(vr->vr.avail->idx))) { spin_for_descriptors() 530 le16toh(vr->vr.avail->idx), vr->info->avail_idx); spin_for_descriptors() 667 while (rx_vr.info->avail_idx != virtio_net() 866 while (rx_vr.info->avail_idx != virtio_console() 1175 __u16 avail_idx; virtio_block() local 1226 while (vring.info->avail_idx != virtio_block() 1229 avail_idx = virtio_block() 1230 vring.info->avail_idx & virtio_block() 1233 vring.vr.avail->ring[avail_idx]); virtio_block() 1236 mpsslog("%s() %d: avail_idx=%d ", virtio_block() 1238 vring.info->avail_idx); virtio_block()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | mic_common.h | 149 * @avail_idx: host avail idx 153 __u16 avail_idx; member in struct:_mic_vring_info
|
H A D | virtio_ring.h | 124 * __virtio16 avail_idx;
|
/linux-4.4.14/tools/virtio/ |
H A D | vringh_test.c | 112 u16 avail_idx, i; vringh_get_head() local 115 err = get_user(avail_idx, &vrh->vring.avail->idx); vringh_get_head() 119 if (vrh->last_avail_idx == avail_idx) vringh_get_head()
|
Completed in 234 milliseconds