Home
last modified time | relevance | path

Searched refs:vring (Results 1 – 3 of 3) sorted by relevance

/trusty/kernel/lib/trusty/
Dvqueue.c83 vring_init(&vq->vring, num, vptr, align); in vqueue_init()
116 vq->vring.used->flags |= VRING_USED_F_NO_NOTIFY; in vqueue_signal_avail()
143 __builtin_sub_overflow(vq->vring.avail->idx, vq->last_avail_idx, in _vqueue_get_avail_buf_locked()
145 if (unlikely(avail_cnt > (uint16_t)vq->vring.num)) { in _vqueue_get_avail_buf_locked()
148 vq->last_avail_idx, vq->vring.avail->idx); in _vqueue_get_avail_buf_locked()
151 if (vq->last_avail_idx == vq->vring.avail->idx) { in _vqueue_get_avail_buf_locked()
153 vq->vring.used->flags &= ~VRING_USED_F_NO_NOTIFY; in _vqueue_get_avail_buf_locked()
155 if (vq->last_avail_idx == vq->vring.avail->idx) { in _vqueue_get_avail_buf_locked()
159 vq->vring.used->flags |= VRING_USED_F_NO_NOTIFY; in _vqueue_get_avail_buf_locked()
164 next_idx = vq->vring.avail->ring[vq->last_avail_idx % vq->vring.num]; in _vqueue_get_avail_buf_locked()
[all …]
Dvqueue.h44 struct vring vring; member
Dtipc_virtio_dev.c1180 struct fw_rsc_vdev_vring* vring = &dscr->vrings[vring_cnt]; in tipc_dev_probe() local
1187 ((uint64_t)vring->reserved << 32) | vring->da; in tipc_dev_probe()
1190 vring_cnt, smem_id, vring->align, vring->num, vring->notifyid); in tipc_dev_probe()
1192 ret = vqueue_init(&dev->vqs[vring_cnt], vring->notifyid, in tipc_dev_probe()
1193 dev->vd.client_id, smem_id, vring->num, vring->align, in tipc_dev_probe()