Searched refs:event_idx (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/dev/virtio/ |
H A D | virtio_ring.h | 167 vring_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old) in vring_need_event() argument 170 return (uint16_t)(new_idx - event_idx - 1) < (uint16_t)(new_idx - old); in vring_need_event()
|
H A D | virtqueue.c | 823 uint16_t new_idx, prev_idx, event_idx, flags; in vq_ring_must_notify_host() local 828 event_idx = vq_htog16(vq, vring_avail_event(&vq->vq_ring)); in vq_ring_must_notify_host() 830 return (vring_need_event(event_idx, new_idx, prev_idx) != 0); in vq_ring_must_notify_host()
|
/freebsd/usr.sbin/bhyve/ |
H A D | virtio.c | 478 uint16_t event_idx, new_idx, old_idx; in vq_endchains() local 504 event_idx = VQ_USED_EVENT_IDX(vq); in vq_endchains() 509 intr = (uint16_t)(new_idx - event_idx - 1) < in vq_endchains()
|