Home
last modified time | relevance | path

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

/linux-6.1.9/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()
551 vrh->last_avail_idx) != 0) { in __vringh_notify_enable()
571 return avail == vrh->last_avail_idx; in __vringh_notify_enable()
662 vrh->last_avail_idx = 0; in vringh_init_user()
703 err = __vringh_get_head(vrh, getu16_user, &vrh->last_avail_idx); in vringh_getdesc_user()
785 vrh->last_avail_idx -= num; in vringh_abandon_user()
[all …]
Dvhost.c312 vq->last_avail_idx = 0; in vhost_vq_reset()
1639 vq->last_avail_idx = s.num; in vhost_vring_ioctl()
1641 vq->avail_idx = vq->last_avail_idx; in vhost_vring_ioctl()
1645 s.num = vq->last_avail_idx; in vhost_vring_ioctl()
2218 u16 last_avail_idx; in vhost_get_vq_desc() local
2224 last_avail_idx = vq->last_avail_idx; in vhost_get_vq_desc()
2226 if (vq->avail_idx == vq->last_avail_idx) { in vhost_get_vq_desc()
2234 if (unlikely((u16)(vq->avail_idx - last_avail_idx) > vq->num)) { in vhost_get_vq_desc()
2236 last_avail_idx, vq->avail_idx); in vhost_get_vq_desc()
2243 if (vq->avail_idx == last_avail_idx) in vhost_get_vq_desc()
[all …]
Dvhost.h89 u16 last_avail_idx; member
Dvdpa.c552 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl()
570 vq_state.split.avail_index = vq->last_avail_idx; in vhost_vdpa_vring_ioctl()
/linux-6.1.9/drivers/vdpa/ifcvf/
Difcvf_base.c322 u16 last_avail_idx; in ifcvf_get_vq_state() local
328 last_avail_idx = vp_ioread16(avail_idx_addr); in ifcvf_get_vq_state()
330 return last_avail_idx; in ifcvf_get_vq_state()
342 hw->vring[qid].last_avail_idx = num; in ifcvf_set_vq_state()
366 ifcvf_set_vq_state(hw, i, hw->vring[i].last_avail_idx); in ifcvf_hw_enable()
Difcvf_base.h56 u16 last_avail_idx; member
Difcvf_main.c396 vf->vring[i].last_avail_idx = 0; in ifcvf_reset_vring()
/linux-6.1.9/include/uapi/linux/
Dvduse.h154 __u16 last_avail_idx; member
/linux-6.1.9/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.1.9/drivers/vdpa/vdpa_user/
Dvduse_dev.c255 packed->last_avail_idx = in vduse_dev_get_vq_state_packed()
256 msg.resp.vq_state.packed.last_avail_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
558 vq->state.packed.last_avail_idx = state->packed.last_avail_idx; in vduse_vdpa_set_vq_state()
1160 vq_info.packed.last_avail_idx = in vduse_dev_ioctl()
1161 vq->state.packed.last_avail_idx; in vduse_dev_ioctl()
/linux-6.1.9/include/linux/
Dvdpa.h49 u16 last_avail_idx:15; member
Dvringh.h36 u16 last_avail_idx; member
/linux-6.1.9/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c404 vrh->last_avail_idx = state->split.avail_index; in vdpasim_set_vq_state()
417 state->split.avail_index = vrh->last_avail_idx; in vdpasim_get_vq_state()
/linux-6.1.9/drivers/virtio/
Dvirtio_vdpa.c210 s->last_avail_idx = 0; in virtio_vdpa_setup_vq()
/linux-6.1.9/drivers/vdpa/virtio_pci/
Dvp_vdpa.c271 packed->last_avail_idx == 0 && in vp_vdpa_set_vq_state_packed()
/linux-6.1.9/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c2079 mvdev->cvq.vring.last_avail_idx = state->split.avail_index; in mlx5_vdpa_set_vq_state()
2106 state->split.avail_index = mvdev->cvq.vring.last_avail_idx; in mlx5_vdpa_get_vq_state()