Home
last modified time | relevance | path

Searched refs:used_idx (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/tools/virtio/ringtest/
Dvirtio_ring_0_9.c58 unsigned short used_idx; member
87 host.used_idx = 0; in alloc_ring()
252 vring_avail_event(&ring) = host.used_idx; in enable_kick()
260 unsigned head = host.used_idx; in avail_empty()
272 unsigned used_idx = host.used_idx; in use_buf() local
277 head = ring.avail->ring[used_idx & (ring_size - 1)]; in use_buf()
278 if ((used_idx ^ head ^ 0x8000) & ~(ring_size - 1)) in use_buf()
283 used_idx &= ring_size - 1; in use_buf()
286 if (used_idx == ring.avail->idx) in use_buf()
292 used_idx &= ring_size - 1; in use_buf()
[all …]
Dring.c71 unsigned used_idx; member
95 host.used_idx = 0; in alloc_ring()
213 event->kick_index = host.used_idx; in enable_kick()
221 unsigned head = (ring_size - 1) & host.used_idx; in avail_empty()
228 unsigned head = (ring_size - 1) & host.used_idx; in use_buf()
250 host.used_idx++; in use_buf()
263 host.used_idx, in call_used()
266 host.called_used_idx = host.used_idx; in call_used()
/linux-6.1.9/drivers/virtio/
Dvirtio_ring.c1732 u16 used_idx; in virtqueue_poll_packed() local
1735 used_idx = off_wrap & ~(1 << VRING_PACKED_EVENT_F_WRAP_CTR); in virtqueue_poll_packed()
1737 return is_used_desc_packed(vq, used_idx, wrap_counter); in virtqueue_poll_packed()
1743 u16 used_idx, wrap_counter, last_used_idx; in virtqueue_enable_cb_delayed_packed() local
1759 used_idx = packed_last_used(last_used_idx) + bufs; in virtqueue_enable_cb_delayed_packed()
1760 if (used_idx >= vq->packed.vring.num) { in virtqueue_enable_cb_delayed_packed()
1761 used_idx -= vq->packed.vring.num; in virtqueue_enable_cb_delayed_packed()
1765 vq->packed.vring.driver->off_wrap = cpu_to_le16(used_idx | in virtqueue_enable_cb_delayed_packed()
1791 used_idx = packed_last_used(last_used_idx); in virtqueue_enable_cb_delayed_packed()
1792 if (is_used_desc_packed(vq, used_idx, wrap_counter)) { in virtqueue_enable_cb_delayed_packed()
/linux-6.1.9/drivers/vhost/
Dvringh.c449 u16 used_idx, off; in __vringh_complete() local
452 used_idx = vrh->last_used_idx + vrh->completed; in __vringh_complete()
454 off = used_idx % vrh->vring.num; in __vringh_complete()
475 err = putu16(vrh, &vrh->vring.used->idx, used_idx + num_used); in __vringh_complete()
/linux-6.1.9/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c130 u16 used_idx; member
866 MLX5_SET(virtio_net_q_object, obj_context, hw_used_index, mvq->used_idx); in create_virtqueue()
1296 mvq->used_idx = attr.used_index; in suspend_vq()
2089 mvq->used_idx = state->split.avail_index; in mlx5_vdpa_set_vq_state()
2120 state->split.avail_index = mvq->used_idx; in mlx5_vdpa_get_vq_state()
2388 mvq->used_idx = ri->used_index; in restore_channels_info()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_switch.c4881 DECLARE_BITMAP(used_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()
4885 bitmap_zero(used_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()
4906 bitmap_or(used_idx, used_idx, in ice_find_free_recp_res_idx()
4910 bitmap_xor(free_idx, used_idx, possible_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()