Searched refs:used_idx (Results 1 – 10 of 10) sorted by relevance
/linux-6.6.21/tools/virtio/ringtest/ |
D | virtio_ring_0_9.c | 58 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 …]
|
D | ring.c | 71 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.6.21/drivers/vdpa/pds/ |
D | vdpa_dev.h | 25 u16 used_idx; member
|
D | cmds.c | 141 .vdpa_vq_init.used_index = cpu_to_le16(vq_info->used_idx ^ invert_idx), in pds_vdpa_cmd_init_vq() 182 vq_info->used_idx = le16_to_cpu(comp.vdpa_vq_reset.used_index) ^ invert_idx; in pds_vdpa_cmd_reset_vq()
|
D | vdpa_dev.c | 216 pdsv->vqs[qid].used_idx = used; in pds_vdpa_set_vq_state() 237 used = pdsv->vqs[qid].used_idx; in pds_vdpa_get_vq_state() 471 pdsv->vqs[i].used_idx = 0; in pds_vdpa_set_status()
|
D | debugfs.c | 249 seq_printf(seq, "used_idx: %d\n", vq->used_idx); in vq_show()
|
/linux-6.6.21/drivers/virtio/ |
D | virtio_ring.c | 1798 u16 used_idx; in virtqueue_poll_packed() local 1801 used_idx = off_wrap & ~(1 << 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 1825 used_idx = packed_last_used(last_used_idx) + bufs; in virtqueue_enable_cb_delayed_packed() 1826 if (used_idx >= vq->packed.vring.num) { in virtqueue_enable_cb_delayed_packed() 1827 used_idx -= vq->packed.vring.num; in virtqueue_enable_cb_delayed_packed() 1831 vq->packed.vring.driver->off_wrap = cpu_to_le16(used_idx | in virtqueue_enable_cb_delayed_packed() 1857 used_idx = packed_last_used(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()
|
/linux-6.6.21/drivers/vhost/ |
D | vringh.c | 459 u16 used_idx, off; in __vringh_complete() local 462 used_idx = vrh->last_used_idx + vrh->completed; in __vringh_complete() 464 off = used_idx % vrh->vring.num; in __vringh_complete() 485 err = putu16(vrh, &vrh->vring.used->idx, used_idx + num_used); in __vringh_complete()
|
/linux-6.6.21/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 120 u16 used_idx; member 890 MLX5_SET(virtio_net_q_object, obj_context, hw_used_index, mvq->used_idx); in create_virtqueue() 1382 mvq->used_idx = attr.used_index; in suspend_vq() 2245 mvq->used_idx = state->split.avail_index; in mlx5_vdpa_set_vq_state() 2276 state->split.avail_index = mvq->used_idx; in mlx5_vdpa_get_vq_state() 2665 mvq->used_idx = ri->used_index; in restore_channels_info()
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_switch.c | 4910 DECLARE_BITMAP(used_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx() 4914 bitmap_zero(used_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx() 4935 bitmap_or(used_idx, used_idx, in ice_find_free_recp_res_idx() 4939 bitmap_xor(free_idx, used_idx, possible_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()
|