Home
last modified time | relevance | path

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

/drivers/virtio/
Dvirtio_ring.c1748 u16 used_idx; in virtqueue_poll_packed() local
1751 used_idx = off_wrap & ~(1 << VRING_PACKED_EVENT_F_WRAP_CTR); in virtqueue_poll_packed()
1753 return is_used_desc_packed(vq, used_idx, wrap_counter); in virtqueue_poll_packed()
1759 u16 used_idx, wrap_counter, last_used_idx; in virtqueue_enable_cb_delayed_packed() local
1775 used_idx = packed_last_used(last_used_idx) + bufs; in virtqueue_enable_cb_delayed_packed()
1776 if (used_idx >= vq->packed.vring.num) { in virtqueue_enable_cb_delayed_packed()
1777 used_idx -= vq->packed.vring.num; in virtqueue_enable_cb_delayed_packed()
1781 vq->packed.vring.driver->off_wrap = cpu_to_le16(used_idx | in virtqueue_enable_cb_delayed_packed()
1807 used_idx = packed_last_used(last_used_idx); in virtqueue_enable_cb_delayed_packed()
1808 if (is_used_desc_packed(vq, used_idx, wrap_counter)) { in virtqueue_enable_cb_delayed_packed()
/drivers/vhost/
Dvringh.c459 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()
/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()
/drivers/net/ethernet/intel/ice/
Dice_switch.c4899 DECLARE_BITMAP(used_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()
4903 bitmap_zero(used_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()
4924 bitmap_or(used_idx, used_idx, in ice_find_free_recp_res_idx()
4928 bitmap_xor(free_idx, used_idx, possible_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()