Home
last modified time | relevance | path

Searched refs:last_avail_idx (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/drivers/vhost/
Dvringh.c41 u16 *last_avail_idx) in __vringh_get_head() argument
53 if (*last_avail_idx == avail_idx) in __vringh_get_head()
59 i = *last_avail_idx & (vrh->vring.num - 1); in __vringh_get_head()
64 *last_avail_idx, &vrh->vring.avail->ring[i]); in __vringh_get_head()
74 (*last_avail_idx)++; in __vringh_get_head()
561 vrh->last_avail_idx) != 0) { in __vringh_notify_enable()
581 return avail == vrh->last_avail_idx; in __vringh_notify_enable()
672 vrh->last_avail_idx = 0; in vringh_init_user()
713 err = __vringh_get_head(vrh, getu16_user, &vrh->last_avail_idx); in vringh_getdesc_user()
795 vrh->last_avail_idx -= num; in vringh_abandon_user()
[all …]
Dvhost.c366 vq->last_avail_idx = 0; in vhost_vq_reset()
1363 if (unlikely((u16)(vq->avail_idx - vq->last_avail_idx) > vq->num)) { in vhost_get_avail_idx()
1365 vq->last_avail_idx, vq->avail_idx); in vhost_get_avail_idx()
1370 if (vq->avail_idx == vq->last_avail_idx) in vhost_get_avail_idx()
1993 vq->last_avail_idx = s.num & 0xffff; in vhost_vring_ioctl()
2000 vq->last_avail_idx = s.num; in vhost_vring_ioctl()
2003 vq->avail_idx = vq->last_avail_idx; in vhost_vring_ioctl()
2008 s.num = (u32)vq->last_avail_idx | ((u32)vq->last_used_idx << 16); in vhost_vring_ioctl()
2010 s.num = vq->last_avail_idx; in vhost_vring_ioctl()
2583 u16 last_avail_idx = vq->last_avail_idx; in vhost_get_vq_desc() local
[all …]
Dvdpa.c702 vq->last_avail_idx = vq_state.packed.last_avail_idx | in vhost_vdpa_vring_ioctl()
707 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl()
741 vq_state.packed.last_avail_idx = vq->last_avail_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
742 vq_state.packed.last_avail_counter = !!(vq->last_avail_idx & 0x8000); in vhost_vdpa_vring_ioctl()
746 vq_state.split.avail_index = vq->last_avail_idx; in vhost_vdpa_vring_ioctl()
Dvhost.h105 u16 last_avail_idx; member
/linux-6.12.1/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c96 uint16_t last_avail_idx = vq->vring.last_avail_idx; in vdpasim_queue_ready() local
112 vq->vring.last_avail_idx = last_avail_idx; in vdpasim_queue_ready()
123 vq->vring.last_used_idx = last_avail_idx; in vdpasim_queue_ready()
381 vrh->last_avail_idx = state->split.avail_index; in vdpasim_set_vq_state()
394 state->split.avail_index = vrh->last_avail_idx; in vdpasim_get_vq_state()
/linux-6.12.1/drivers/vdpa/ifcvf/
Difcvf_base.c331 u16 last_avail_idx; in ifcvf_get_vq_state() local
333 last_avail_idx = vp_ioread16(&lm_cfg->vq_state_region + qid * 2); in ifcvf_get_vq_state()
335 return last_avail_idx; in ifcvf_get_vq_state()
Difcvf_base.h45 u16 last_avail_idx; member
/linux-6.12.1/include/uapi/linux/
Dvduse.h154 __u16 last_avail_idx; member
/linux-6.12.1/tools/virtio/
Dvringh_test.c120 if (vrh->last_avail_idx == avail_idx) in vringh_get_head()
126 i = vrh->last_avail_idx & (vrh->vring.num - 1); in vringh_get_head()
132 vrh->last_avail_idx++; in vringh_get_head()
/linux-6.12.1/drivers/vdpa/vdpa_user/
Dvduse_dev.c268 packed->last_avail_idx = in vduse_dev_get_vq_state_packed()
269 msg.resp.vq_state.packed.last_avail_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
584 vq->state.packed.last_avail_idx = state->packed.last_avail_idx; in vduse_vdpa_set_vq_state()
1278 vq_info.packed.last_avail_idx = in vduse_dev_ioctl()
1279 vq->state.packed.last_avail_idx; in vduse_dev_ioctl()
/linux-6.12.1/include/linux/
Dvringh.h39 u16 last_avail_idx; member
Dvdpa.h56 u16 last_avail_idx:15; member
/linux-6.12.1/drivers/vdpa/pds/
Dvdpa_dev.c188 avail = state->packed.last_avail_idx | in pds_vdpa_set_vq_state()
244 state->packed.last_avail_idx = avail & 0x7fff; in pds_vdpa_get_vq_state()
/linux-6.12.1/drivers/virtio/
Dvirtio_vdpa.c241 s->last_avail_idx = 0; in virtio_vdpa_setup_vq()
/linux-6.12.1/drivers/vdpa/virtio_pci/
Dvp_vdpa.c284 packed->last_avail_idx == 0 && in vp_vdpa_set_vq_state_packed()
/linux-6.12.1/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c2582 mvdev->cvq.vring.last_avail_idx = state->split.avail_index; in mlx5_vdpa_set_vq_state()
2611 state->split.avail_index = mvdev->cvq.vring.last_avail_idx; in mlx5_vdpa_get_vq_state()
3164 u16 idx = cvq->vring.last_avail_idx; in setup_cvq_vring()
3173 cvq->vring.last_avail_idx = cvq->vring.last_used_idx = idx; in setup_cvq_vring()
/linux-6.12.1/drivers/vdpa/solidrun/
Dsnet_main.c155 p->last_avail_idx == 0 && p->last_used_idx == 0) in snet_vq_state_is_initial()