Lines Matching refs:avail
556 unsigned int i, n, avail, descs_used, prev, err_idx; in virtqueue_add_split() local
687 avail = vq->split.avail_idx_shadow & (vq->split.vring.num - 1); in virtqueue_add_split()
688 vq->split.vring.avail->ring[avail] = cpu_to_virtio16(_vq->vdev, head); in virtqueue_add_split()
694 vq->split.vring.avail->idx = cpu_to_virtio16(_vq->vdev, in virtqueue_add_split()
899 vq->split.vring.avail->flags = in virtqueue_disable_cb_split()
920 vq->split.vring.avail->flags = in virtqueue_enable_cb_prepare_split()
953 vq->split.vring.avail->flags = in virtqueue_enable_cb_delayed_split()
989 vq->split.vring.avail->idx = cpu_to_virtio16(_vq->vdev, in virtqueue_detach_unused_buf_split()
1015 vring_split->vring.avail->flags = cpu_to_virtio16(vdev, in virtqueue_vring_init_split()
1026 vq->split.vring.avail->flags = 0; in virtqueue_reinit_split()
1027 vq->split.vring.avail->idx = 0; in virtqueue_reinit_split()
1030 vq->split.vring.avail->ring[num] = 0; in virtqueue_reinit_split()
1651 bool avail, used; in is_used_desc_packed() local
1655 avail = !!(flags & (1 << VRING_PACKED_DESC_F_AVAIL)); in is_used_desc_packed()
1658 return avail == used && used == used_wrap_counter; in is_used_desc_packed()
3084 ((char *)vq->split.vring.avail - (char *)vq->split.vring.desc); in virtqueue_get_avail_addr()