Lines Matching refs:wrap_counter
1556 u16 new, old, off_wrap, flags, wrap_counter, event_idx; in virtqueue_kick_prepare_packed() local
1591 wrap_counter = off_wrap >> VRING_PACKED_EVENT_F_WRAP_CTR; in virtqueue_kick_prepare_packed()
1593 if (wrap_counter != vq->packed.avail_wrap_counter) in virtqueue_kick_prepare_packed()
1797 bool wrap_counter; in virtqueue_poll_packed() local
1800 wrap_counter = off_wrap >> VRING_PACKED_EVENT_F_WRAP_CTR; in virtqueue_poll_packed()
1803 return is_used_desc_packed(vq, used_idx, wrap_counter); in virtqueue_poll_packed()
1809 u16 used_idx, wrap_counter, last_used_idx; in virtqueue_enable_cb_delayed_packed() local
1823 wrap_counter = packed_used_wrap_counter(last_used_idx); in virtqueue_enable_cb_delayed_packed()
1828 wrap_counter ^= 1; in virtqueue_enable_cb_delayed_packed()
1832 (wrap_counter << VRING_PACKED_EVENT_F_WRAP_CTR)); in virtqueue_enable_cb_delayed_packed()
1856 wrap_counter = packed_used_wrap_counter(last_used_idx); in virtqueue_enable_cb_delayed_packed()
1858 if (is_used_desc_packed(vq, used_idx, wrap_counter)) { in virtqueue_enable_cb_delayed_packed()