Lines Matching full:used
244 * We need to expose the available array entries before checking the used in vhost_svq_kick()
251 *(uint16_t *)(&svq->vring.used->ring[svq->vring.num])); in vhost_svq_kick()
255 !(svq->vring.used->flags & cpu_to_le16(VRING_USED_F_NO_NOTIFY)); in vhost_svq_kick()
356 * until some elements are used. in vhost_handle_guest_kick()
386 uint16_t *used_idx = &svq->vring.used->idx; in vhost_svq_more_used()
401 * It returns false if there are pending used buffers from the vhost device,
403 * callbacks. True if SVQ used vring has no more pending buffers.
422 * No need to disable notification in the event idx case, since used event in vhost_svq_disable_notification()
444 const vring_used_t *used = svq->vring.used; in vhost_svq_get_buf() local
452 /* Only get used array entries after they have been exposed by dev */ in vhost_svq_get_buf()
455 used_elem.id = le32_to_cpu(used->ring[last_used].id); in vhost_svq_get_buf()
456 used_elem.len = le32_to_cpu(used->ring[last_used].len); in vhost_svq_get_buf()
460 qemu_log_mask(LOG_GUEST_ERROR, "Device %s says index %u is used", in vhost_svq_get_buf()
467 "Device %s says index %u is used, but it was not available", in vhost_svq_get_buf()
504 /* Forward as many used buffers as possible. */ in vhost_svq_flush()
518 "More than %u used buffers obtained in a %u size SVQ", in vhost_svq_flush()
548 * @num: The number of elements that need to be used
577 * Forward used buffers.
607 * forwarding used buffers even with the unbind. in vhost_svq_set_svq_call_fd()
625 addr->used_user_addr = (uint64_t)(uintptr_t)svq->vring.used; in vhost_svq_get_vring_addr()
703 svq->vring.used = mmap(NULL, vhost_svq_device_area_size(svq), in vhost_svq_start()
726 /* Send all pending used descriptors to guest */ in vhost_svq_stop()
749 munmap(svq->vring.used, vhost_svq_device_area_size(svq)); in vhost_svq_stop()
774 * @pvq: gpointer to SVQ so it can be used by autofree functions.