Home
last modified time | relevance | path

Searched refs:hdev (Results 1 – 9 of 9) sorted by relevance

/openbmc/qemu/hw/virtio/
H A Dvhost.c56 struct vhost_dev *hdev; in vhost_get_max_memslots() local
58 QLIST_FOREACH(hdev, &vhost_devices, entry) { in vhost_get_max_memslots()
59 max = MIN(max, hdev->vhost_ops->vhost_backend_memslots_limit(hdev)); in vhost_get_max_memslots()
67 struct vhost_dev *hdev; in vhost_get_free_memslots() local
69 QLIST_FOREACH(hdev, &vhost_devices, entry) { in vhost_get_free_memslots()
70 unsigned int r = hdev->vhost_ops->vhost_backend_memslots_limit(hdev); in vhost_get_free_memslots()
71 unsigned int cur_free = r - hdev->mem->nregions; in vhost_get_free_memslots()
73 if (unlikely(r < hdev->mem->nregions)) { in vhost_get_free_memslots()
75 " the device limit (%u).", hdev->mem->nregions, r); in vhost_get_free_memslots()
156 static inline void vhost_dev_elect_mem_logger(struct vhost_dev *hdev, bool add) in vhost_dev_elect_mem_logger() argument
[all …]
H A Dvirtio-qmp.c780 struct vhost_dev *hdev = vdc->get_vhost(vdev); in qmp_x_query_virtio_status() local
783 status->vhost_dev->n_mem_sections = hdev->n_mem_sections; in qmp_x_query_virtio_status()
784 status->vhost_dev->n_tmp_sections = hdev->n_tmp_sections; in qmp_x_query_virtio_status()
785 status->vhost_dev->nvqs = hdev->nvqs; in qmp_x_query_virtio_status()
786 status->vhost_dev->vq_index = hdev->vq_index; in qmp_x_query_virtio_status()
788 qmp_decode_features(vdev->device_id, hdev->features); in qmp_x_query_virtio_status()
790 qmp_decode_features(vdev->device_id, hdev->acked_features); in qmp_x_query_virtio_status()
792 qmp_decode_features(vdev->device_id, hdev->backend_features); in qmp_x_query_virtio_status()
794 qmp_decode_protocols(hdev->protocol_features); in qmp_x_query_virtio_status()
795 status->vhost_dev->max_queues = hdev->max_queues; in qmp_x_query_virtio_status()
[all …]
H A Dvirtio.c3170 struct vhost_dev *hdev = k->get_vhost(vdev); in virtio_reset() local
3172 if (hdev && hdev->vhost_ops) { in virtio_reset()
3173 vhost_reset_device(hdev); in virtio_reset()
4228 struct vhost_dev *hdev = vdc->get_vhost(vdev); in qmp_x_query_virtio_queue_status() local
4231 if (queue >= hdev->vq_index && queue < hdev->vq_index + hdev->nvqs) { in qmp_x_query_virtio_queue_status()
4235 hdev->vhost_ops->vhost_get_vq_index(hdev, queue); in qmp_x_query_virtio_queue_status()
4241 hdev->vhost_ops->vhost_get_vring_base(hdev, &state); in qmp_x_query_virtio_queue_status()
H A Dvhost-vdpa.c587 static void vhost_vdpa_init_svq(struct vhost_dev *hdev, struct vhost_vdpa *v) in vhost_vdpa_init_svq() argument
591 shadow_vqs = g_ptr_array_new_full(hdev->nvqs, vhost_svq_free); in vhost_vdpa_init_svq()
592 for (unsigned n = 0; n < hdev->nvqs; ++n) { in vhost_vdpa_init_svq()
/openbmc/qemu/include/hw/virtio/
H A Dvhost.h59 struct vhost_dev *hdev; member
169 int vhost_dev_init(struct vhost_dev *hdev, void *opaque,
177 void vhost_dev_cleanup(struct vhost_dev *hdev);
179 void vhost_dev_disable_notifiers_nvqs(struct vhost_dev *hdev,
194 int vhost_dev_enable_notifiers(struct vhost_dev *hdev, VirtIODevice *vdev);
203 void vhost_dev_disable_notifiers(struct vhost_dev *hdev, VirtIODevice *vdev);
204 bool vhost_config_pending(struct vhost_dev *hdev);
205 void vhost_config_mask(struct vhost_dev *hdev, VirtIODevice *vdev, bool mask);
213 static inline bool vhost_dev_is_started(struct vhost_dev *hdev) in vhost_dev_is_started() argument
215 return hdev->started; in vhost_dev_is_started()
[all …]
/openbmc/qemu/hw/net/
H A Dvhost_net.c85 struct vhost_dev *hdev; in vhost_net_disable_notifiers_nvhosts() local
103 hdev = &net->dev; in vhost_net_disable_notifiers_nvhosts()
104 for (j = 0; j < hdev->nvqs; j++) { in vhost_net_disable_notifiers_nvhosts()
106 hdev->vq_index + j, in vhost_net_disable_notifiers_nvhosts()
129 hdev = &net->dev; in vhost_net_disable_notifiers_nvhosts()
130 for (j = 0; j < hdev->nvqs; j++) { in vhost_net_disable_notifiers_nvhosts()
132 hdev->vq_index + j); in vhost_net_disable_notifiers_nvhosts()
145 struct vhost_dev *hdev; in vhost_net_enable_notifiers() local
178 hdev = &net->dev; in vhost_net_enable_notifiers()
180 for (j = 0; j < hdev->nvqs; j++) { in vhost_net_enable_notifiers()
[all …]
/openbmc/u-boot/common/
H A Dusb_hub.c62 static inline bool usb_hub_is_superspeed(struct usb_device *hdev) in usb_hub_is_superspeed() argument
64 return hdev->descriptor.bDeviceProtocol == 3; in usb_hub_is_superspeed()
815 struct udevice *hdev; in usb_hub_configure() local
818 hdev = dev->dev->parent; in usb_hub_configure()
819 while (!usb_hub_is_root_hub(hdev)) { in usb_hub_configure()
821 hdev = hdev->parent; in usb_hub_configure()
/openbmc/qemu/net/
H A Dvhost-vdpa.c179 struct vhost_dev *hdev; in vhost_vdpa_net_check_device_id() local
181 hdev = (struct vhost_dev *)&net->dev; in vhost_vdpa_net_check_device_id()
182 ret = hdev->vhost_ops->vhost_get_device_id(hdev, &device_id); in vhost_vdpa_net_check_device_id()
/openbmc/qemu/linux-user/
H A Dsyscall.c5207 uint64_t *hdev = hdata + 8; in do_ioctl_dm() local
5213 *gdev = tswap64(*hdev); in do_ioctl_dm()
5215 hdev++; in do_ioctl_dm()