Searched refs:last_avail_idx (Results 1 – 16 of 16) sorted by relevance
41 u16 *last_avail_idx) in __vringh_get_head() argument53 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 …]
312 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() local2224 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 …]
89 u16 last_avail_idx; member
552 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()
322 u16 last_avail_idx; in ifcvf_get_vq_state() local328 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()
56 u16 last_avail_idx; member
396 vf->vring[i].last_avail_idx = 0; in ifcvf_reset_vring()
154 __u16 last_avail_idx; member
120 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()
255 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()
49 u16 last_avail_idx:15; member
36 u16 last_avail_idx; member
404 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()
210 s->last_avail_idx = 0; in virtio_vdpa_setup_vq()
271 packed->last_avail_idx == 0 && in vp_vdpa_set_vq_state_packed()
2079 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()