Home
last modified time | relevance | path

Searched refs:VRING_PACKED_EVENT_F_WRAP_CTR (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/include/uapi/linux/
Dvirtio_ring.h78 #define VRING_PACKED_EVENT_F_WRAP_CTR 15 macro
/linux-6.1.9/drivers/virtio/
Dvirtio_ring.c401 vq->last_used_idx = 0 | (1 << VRING_PACKED_EVENT_F_WRAP_CTR); in virtqueue_init()
1165 return !!(last_used_idx & (1 << VRING_PACKED_EVENT_F_WRAP_CTR)); in packed_used_wrap_counter()
1170 return last_used_idx & ~(-(1 << VRING_PACKED_EVENT_F_WRAP_CTR)); in packed_last_used()
1533 wrap_counter = off_wrap >> VRING_PACKED_EVENT_F_WRAP_CTR; in virtqueue_kick_prepare_packed()
1534 event_idx = off_wrap & ~(1 << VRING_PACKED_EVENT_F_WRAP_CTR); in virtqueue_kick_prepare_packed()
1665 last_used = (last_used | (used_wrap_counter << VRING_PACKED_EVENT_F_WRAP_CTR)); in virtqueue_get_buf_ctx_packed()
1734 wrap_counter = off_wrap >> VRING_PACKED_EVENT_F_WRAP_CTR; in virtqueue_poll_packed()
1735 used_idx = off_wrap & ~(1 << VRING_PACKED_EVENT_F_WRAP_CTR); in virtqueue_poll_packed()
1766 (wrap_counter << VRING_PACKED_EVENT_F_WRAP_CTR)); in virtqueue_enable_cb_delayed_packed()