Home
last modified time | relevance | path

Searched refs:vdc (Results 1 – 25 of 38) sorted by relevance

12

/qemu/hw/virtio/
H A Dvhost-user-vsock.c157 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vuv_class_init() local
161 vdc->realize = vuv_device_realize; in vuv_class_init()
162 vdc->unrealize = vuv_device_unrealize; in vuv_class_init()
163 vdc->get_features = vuv_get_features; in vuv_class_init()
164 vdc->get_config = vuv_get_config; in vuv_class_init()
165 vdc->set_status = vuv_set_status; in vuv_class_init()
H A Dvhost-vsock.c217 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_vsock_class_init() local
221 vdc->realize = vhost_vsock_device_realize; in vhost_vsock_class_init()
222 vdc->unrealize = vhost_vsock_device_unrealize; in vhost_vsock_class_init()
223 vdc->get_features = vhost_vsock_get_features; in vhost_vsock_class_init()
224 vdc->get_config = vhost_vsock_get_config; in vhost_vsock_class_init()
225 vdc->set_status = vhost_vsock_set_status; in vhost_vsock_class_init()
H A Dvirtio-bus.c49 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_bus_device_plugged() local
65 assert(vdc->get_features != NULL); in virtio_bus_device_plugged()
66 vdev->host_features = vdc->get_features(vdev, vdev->host_features, in virtio_bus_device_plugged()
224 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_bus_start_ioeventfd() local
236 r = vdc->start_ioeventfd(vdev); in virtio_bus_start_ioeventfd()
249 VirtioDeviceClass *vdc; in virtio_bus_stop_ioeventfd() local
258 vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_bus_stop_ioeventfd()
259 vdc->stop_ioeventfd(vdev); in virtio_bus_stop_ioeventfd()
H A Dvhost-user-scmi.c288 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vu_scmi_class_init() local
293 vdc->realize = vu_scmi_device_realize; in vu_scmi_class_init()
294 vdc->unrealize = vu_scmi_device_unrealize; in vu_scmi_class_init()
295 vdc->get_features = vu_scmi_get_features; in vu_scmi_class_init()
296 vdc->set_status = vu_scmi_set_status; in vu_scmi_class_init()
297 vdc->guest_notifier_mask = vu_scmi_guest_notifier_mask; in vu_scmi_class_init()
298 vdc->guest_notifier_pending = vu_scmi_guest_notifier_pending; in vu_scmi_class_init()
H A Dvhost-user-fs.c425 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vuf_class_init() local
430 vdc->realize = vuf_device_realize; in vuf_class_init()
431 vdc->unrealize = vuf_device_unrealize; in vuf_class_init()
432 vdc->get_features = vuf_get_features; in vuf_class_init()
433 vdc->get_config = vuf_get_config; in vuf_class_init()
434 vdc->set_status = vuf_set_status; in vuf_class_init()
435 vdc->guest_notifier_mask = vuf_guest_notifier_mask; in vuf_class_init()
436 vdc->guest_notifier_pending = vuf_guest_notifier_pending; in vuf_class_init()
437 vdc->get_vhost = vuf_get_vhost; in vuf_class_init()
H A Dvhost-user-base.c350 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vub_class_init() local
352 vdc->realize = vub_device_realize; in vub_class_init()
353 vdc->unrealize = vub_device_unrealize; in vub_class_init()
354 vdc->get_features = vub_get_features; in vub_class_init()
355 vdc->get_config = vub_get_config; in vub_class_init()
356 vdc->set_config = vub_set_config; in vub_class_init()
357 vdc->set_status = vub_set_status; in vub_class_init()
H A Dvirtio-pmem.c168 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_pmem_class_init() local
173 vdc->realize = virtio_pmem_realize; in virtio_pmem_class_init()
174 vdc->unrealize = virtio_pmem_unrealize; in virtio_pmem_class_init()
175 vdc->get_config = virtio_pmem_get_config; in virtio_pmem_class_init()
176 vdc->get_features = virtio_pmem_get_features; in virtio_pmem_class_init()
H A Dvdpa-dev.c360 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_vdpa_device_class_init() local
366 vdc->realize = vhost_vdpa_device_realize; in vhost_vdpa_device_class_init()
367 vdc->unrealize = vhost_vdpa_device_unrealize; in vhost_vdpa_device_class_init()
368 vdc->get_config = vhost_vdpa_device_get_config; in vhost_vdpa_device_class_init()
369 vdc->set_config = vhost_vdpa_device_set_config; in vhost_vdpa_device_class_init()
370 vdc->get_features = vhost_vdpa_device_get_features; in vhost_vdpa_device_class_init()
371 vdc->set_status = vhost_vdpa_device_set_status; in vhost_vdpa_device_class_init()
H A Dvirtio-rng.c266 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_rng_class_init() local
271 vdc->realize = virtio_rng_device_realize; in virtio_rng_class_init()
272 vdc->unrealize = virtio_rng_device_unrealize; in virtio_rng_class_init()
273 vdc->get_features = get_features; in virtio_rng_class_init()
274 vdc->set_status = virtio_rng_set_status; in virtio_rng_class_init()
H A Dvhost-vsock-common.c296 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_vsock_common_class_init() local
300 vdc->guest_notifier_mask = vhost_vsock_common_guest_notifier_mask; in vhost_vsock_common_class_init()
301 vdc->guest_notifier_pending = vhost_vsock_common_guest_notifier_pending; in vhost_vsock_common_class_init()
302 vdc->get_vhost = vhost_vsock_common_get_vhost; in vhost_vsock_common_class_init()
H A Dvirtio-mmio.c169 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_mmio_read() local
170 return (vdev->host_features & ~vdc->legacy_features) in virtio_mmio_read()
653 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_mmio_set_guest_notifier() local
668 if (vdc->guest_notifier_mask && vdev->use_guest_notifier_mask) { in virtio_mmio_set_guest_notifier()
669 vdc->guest_notifier_mask(vdev, n, !assign); in virtio_mmio_set_guest_notifier()
679 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_mmio_set_config_guest_notifier() local
693 if (vdc->guest_notifier_mask && vdev->use_guest_notifier_mask) { in virtio_mmio_set_config_guest_notifier()
694 vdc->guest_notifier_mask(vdev, VIRTIO_CONFIG_IRQ_IDX, !assign); in virtio_mmio_set_config_guest_notifier()
H A Dvirtio-balloon.c1027 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_balloon_class_init() local
1032 vdc->realize = virtio_balloon_device_realize; in virtio_balloon_class_init()
1033 vdc->unrealize = virtio_balloon_device_unrealize; in virtio_balloon_class_init()
1034 vdc->reset = virtio_balloon_device_reset; in virtio_balloon_class_init()
1035 vdc->get_config = virtio_balloon_get_config; in virtio_balloon_class_init()
1036 vdc->set_config = virtio_balloon_set_config; in virtio_balloon_class_init()
1037 vdc->get_features = virtio_balloon_get_features; in virtio_balloon_class_init()
1038 vdc->set_status = virtio_balloon_set_status; in virtio_balloon_class_init()
1039 vdc->vmsd = &vmstate_virtio_balloon_device; in virtio_balloon_class_init()
H A Dvirtio.c2844 if (vdc->save != NULL) { in virtio_save()
2845 vdc->save(vdev, f); in virtio_save()
2848 if (vdc->vmsd) { in virtio_save()
3069 if (vdc->load != NULL) { in virtio_load()
3076 if (vdc->vmsd) { in virtio_load()
3179 if (vdc->post_load) { in virtio_load()
3715 assert(!vdc->vmsd || !vdc->load); in virtio_device_realize()
3717 if (vdc->realize != NULL) { in virtio_device_realize()
3718 vdc->realize(dev, &err); in virtio_device_realize()
3728 vdc->unrealize(dev); in virtio_device_realize()
[all …]
H A Dvirtio-crypto.c1259 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_crypto_class_init() local
1264 vdc->realize = virtio_crypto_device_realize; in virtio_crypto_class_init()
1265 vdc->unrealize = virtio_crypto_device_unrealize; in virtio_crypto_class_init()
1266 vdc->get_config = virtio_crypto_get_config; in virtio_crypto_class_init()
1267 vdc->get_features = virtio_crypto_get_features; in virtio_crypto_class_init()
1268 vdc->reset = virtio_crypto_reset; in virtio_crypto_class_init()
1269 vdc->set_status = virtio_crypto_set_status; in virtio_crypto_class_init()
1270 vdc->guest_notifier_mask = virtio_crypto_guest_notifier_mask; in virtio_crypto_class_init()
1271 vdc->guest_notifier_pending = virtio_crypto_guest_notifier_pending; in virtio_crypto_class_init()
1272 vdc->get_vhost = virtio_crypto_get_vhost; in virtio_crypto_class_init()
/qemu/hw/input/
H A Dvirtio-input.c311 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_input_class_init() local
316 vdc->realize = virtio_input_device_realize; in virtio_input_class_init()
317 vdc->unrealize = virtio_input_device_unrealize; in virtio_input_class_init()
318 vdc->get_config = virtio_input_get_config; in virtio_input_class_init()
319 vdc->set_config = virtio_input_set_config; in virtio_input_class_init()
320 vdc->get_features = virtio_input_get_features; in virtio_input_class_init()
321 vdc->set_status = virtio_input_set_status; in virtio_input_class_init()
322 vdc->reset = virtio_input_reset; in virtio_input_class_init()
/qemu/hw/scsi/
H A Dvhost-scsi.c369 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_scsi_class_init() local
375 vdc->realize = vhost_scsi_realize; in vhost_scsi_class_init()
376 vdc->unrealize = vhost_scsi_unrealize; in vhost_scsi_class_init()
377 vdc->get_features = vhost_scsi_common_get_features; in vhost_scsi_class_init()
378 vdc->set_config = vhost_scsi_common_set_config; in vhost_scsi_class_init()
379 vdc->set_status = vhost_scsi_set_status; in vhost_scsi_class_init()
380 vdc->get_vhost = vhost_scsi_get_vhost; in vhost_scsi_class_init()
H A Dvhost-user-scsi.c391 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_user_scsi_class_init() local
397 vdc->realize = vhost_user_scsi_realize; in vhost_user_scsi_class_init()
398 vdc->unrealize = vhost_user_scsi_unrealize; in vhost_user_scsi_class_init()
399 vdc->get_features = vhost_scsi_common_get_features; in vhost_user_scsi_class_init()
400 vdc->set_config = vhost_scsi_common_set_config; in vhost_user_scsi_class_init()
401 vdc->set_status = vhost_user_scsi_set_status; in vhost_user_scsi_class_init()
403 vdc->reset = vhost_user_scsi_reset; in vhost_user_scsi_class_init()
404 vdc->get_vhost = vhost_user_scsi_get_vhost; in vhost_user_scsi_class_init()
H A Dvirtio-scsi.c1321 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_scsi_common_class_init() local
1324 vdc->get_config = virtio_scsi_get_config; in virtio_scsi_common_class_init()
1331 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_scsi_class_init() local
1337 vdc->realize = virtio_scsi_device_realize; in virtio_scsi_class_init()
1338 vdc->unrealize = virtio_scsi_device_unrealize; in virtio_scsi_class_init()
1339 vdc->set_config = virtio_scsi_set_config; in virtio_scsi_class_init()
1340 vdc->get_features = virtio_scsi_get_features; in virtio_scsi_class_init()
1341 vdc->reset = virtio_scsi_reset; in virtio_scsi_class_init()
1342 vdc->start_ioeventfd = virtio_scsi_dataplane_start; in virtio_scsi_class_init()
1343 vdc->stop_ioeventfd = virtio_scsi_dataplane_stop; in virtio_scsi_class_init()
/qemu/hw/9pfs/
H A Dvirtio-9p-device.c255 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_9p_class_init() local
260 vdc->realize = virtio_9p_device_realize; in virtio_9p_class_init()
261 vdc->unrealize = virtio_9p_device_unrealize; in virtio_9p_class_init()
262 vdc->get_features = virtio_9p_get_features; in virtio_9p_class_init()
263 vdc->get_config = virtio_9p_get_config; in virtio_9p_class_init()
264 vdc->reset = virtio_9p_reset; in virtio_9p_class_init()
/qemu/hw/block/
H A Dvhost-user-blk.c575 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_user_blk_class_init() local
580 vdc->realize = vhost_user_blk_device_realize; in vhost_user_blk_class_init()
581 vdc->unrealize = vhost_user_blk_device_unrealize; in vhost_user_blk_class_init()
582 vdc->get_config = vhost_user_blk_update_config; in vhost_user_blk_class_init()
583 vdc->set_config = vhost_user_blk_set_config; in vhost_user_blk_class_init()
584 vdc->get_features = vhost_user_blk_get_features; in vhost_user_blk_class_init()
585 vdc->set_status = vhost_user_blk_set_status; in vhost_user_blk_class_init()
586 vdc->reset = vhost_user_blk_reset; in vhost_user_blk_class_init()
587 vdc->get_vhost = vhost_user_blk_get_vhost; in vhost_user_blk_class_init()
/qemu/hw/hyperv/
H A Dvmbus.c1328 chan->notify_cb = vdc->chan_notify_cb; in init_channel()
1362 dev->num_channels = vdc->num_channels ? vdc->num_channels(dev) : 1; in create_channels()
1442 if (vdc->open_channel && vdc->open_channel(chan)) { in open_channel()
1468 if (vdc->close_channel) { in close_channel()
1469 vdc->close_channel(chan); in close_channel()
2308 if (vdc->vmdev_realize) { in vmbus_dev_realize()
2309 vdc->vmdev_realize(vdev, &err); in vmbus_dev_realize()
2336 if (vdc->vmdev_reset) { in vmbus_dev_reset()
2337 vdc->vmdev_reset(vdev); in vmbus_dev_reset()
2346 if (vdc->vmdev_unrealize) { in vmbus_dev_unrealize()
[all …]
/qemu/hw/display/
H A Dvhost-user-gpu.c656 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_user_gpu_class_init() local
661 vdc->realize = vhost_user_gpu_device_realize; in vhost_user_gpu_class_init()
662 vdc->reset = vhost_user_gpu_reset; in vhost_user_gpu_class_init()
663 vdc->set_status = vhost_user_gpu_set_status; in vhost_user_gpu_class_init()
664 vdc->guest_notifier_mask = vhost_user_gpu_guest_notifier_mask; in vhost_user_gpu_class_init()
665 vdc->guest_notifier_pending = vhost_user_gpu_guest_notifier_pending; in vhost_user_gpu_class_init()
666 vdc->get_config = vhost_user_gpu_get_config; in vhost_user_gpu_class_init()
667 vdc->set_config = vhost_user_gpu_set_config; in vhost_user_gpu_class_init()
668 vdc->get_vhost = vhost_user_gpu_get_vhost; in vhost_user_gpu_class_init()
H A Dvirtio-gpu-gl.c142 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_gpu_gl_class_init() local
151 vdc->realize = virtio_gpu_gl_device_realize; in virtio_gpu_gl_class_init()
152 vdc->reset = virtio_gpu_gl_reset; in virtio_gpu_gl_class_init()
H A Dvirtio-gpu-base.c266 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_gpu_base_class_init() local
268 vdc->unrealize = virtio_gpu_base_device_unrealize; in virtio_gpu_base_class_init()
269 vdc->get_features = virtio_gpu_base_get_features; in virtio_gpu_base_class_init()
270 vdc->set_features = virtio_gpu_base_set_features; in virtio_gpu_base_class_init()
/qemu/hw/char/
H A Dvirtio-serial-bus.c1167 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_serial_class_init() local
1175 vdc->realize = virtio_serial_device_realize; in virtio_serial_class_init()
1176 vdc->unrealize = virtio_serial_device_unrealize; in virtio_serial_class_init()
1177 vdc->get_features = get_features; in virtio_serial_class_init()
1178 vdc->get_config = get_config; in virtio_serial_class_init()
1179 vdc->set_config = set_config; in virtio_serial_class_init()
1180 vdc->set_status = set_status; in virtio_serial_class_init()
1181 vdc->reset = vser_reset; in virtio_serial_class_init()
1182 vdc->save = virtio_serial_save_device; in virtio_serial_class_init()
1183 vdc->load = virtio_serial_load_device; in virtio_serial_class_init()

12