Home
last modified time | relevance | path

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

12

/qemu/hw/virtio/
H A Dvhost-user-vsock.c162 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vuv_class_init() local
166 vdc->realize = vuv_device_realize; in vuv_class_init()
167 vdc->unrealize = vuv_device_unrealize; in vuv_class_init()
168 vdc->get_features = vuv_get_features; in vuv_class_init()
169 vdc->get_config = vuv_get_config; in vuv_class_init()
170 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.c290 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vu_scmi_class_init() local
295 vdc->realize = vu_scmi_device_realize; in vu_scmi_class_init()
296 vdc->unrealize = vu_scmi_device_unrealize; in vu_scmi_class_init()
297 vdc->get_features = vu_scmi_get_features; in vu_scmi_class_init()
298 vdc->set_status = vu_scmi_set_status; in vu_scmi_class_init()
299 vdc->guest_notifier_mask = vu_scmi_guest_notifier_mask; in vu_scmi_class_init()
300 vdc->guest_notifier_pending = vu_scmi_guest_notifier_pending; in vu_scmi_class_init()
H A Dvhost-user-fs.c429 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vuf_class_init() local
434 vdc->realize = vuf_device_realize; in vuf_class_init()
435 vdc->unrealize = vuf_device_unrealize; in vuf_class_init()
436 vdc->get_features = vuf_get_features; in vuf_class_init()
437 vdc->get_config = vuf_get_config; in vuf_class_init()
438 vdc->set_status = vuf_set_status; in vuf_class_init()
439 vdc->guest_notifier_mask = vuf_guest_notifier_mask; in vuf_class_init()
440 vdc->guest_notifier_pending = vuf_guest_notifier_pending; in vuf_class_init()
441 vdc->get_vhost = vuf_get_vhost; in vuf_class_init()
H A Dvhost-user-base.c358 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vub_class_init() local
360 vdc->realize = vub_device_realize; in vub_class_init()
361 vdc->unrealize = vub_device_unrealize; in vub_class_init()
362 vdc->get_features = vub_get_features; in vub_class_init()
363 vdc->get_config = vub_get_config; in vub_class_init()
364 vdc->set_config = vub_set_config; in vub_class_init()
365 vdc->set_status = vub_set_status; in vub_class_init()
H A Dvirtio-pmem.c167 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_pmem_class_init() local
172 vdc->realize = virtio_pmem_realize; in virtio_pmem_class_init()
173 vdc->unrealize = virtio_pmem_unrealize; in virtio_pmem_class_init()
174 vdc->get_config = virtio_pmem_get_config; in virtio_pmem_class_init()
175 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.c267 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_rng_class_init() local
272 vdc->realize = virtio_rng_device_realize; in virtio_rng_class_init()
273 vdc->unrealize = virtio_rng_device_unrealize; in virtio_rng_class_init()
274 vdc->get_features = get_features; in virtio_rng_class_init()
275 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()
660 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_mmio_set_guest_notifier() local
675 if (vdc->guest_notifier_mask && vdev->use_guest_notifier_mask) { in virtio_mmio_set_guest_notifier()
676 vdc->guest_notifier_mask(vdev, n, !assign); in virtio_mmio_set_guest_notifier()
686 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_mmio_set_config_guest_notifier() local
700 if (vdc->guest_notifier_mask && vdev->use_guest_notifier_mask) { in virtio_mmio_set_config_guest_notifier()
701 vdc->guest_notifier_mask(vdev, VIRTIO_CONFIG_IRQ_IDX, !assign); in virtio_mmio_set_config_guest_notifier()
H A Dvirtio-balloon.c1065 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_balloon_class_init() local
1071 vdc->realize = virtio_balloon_device_realize; in virtio_balloon_class_init()
1072 vdc->unrealize = virtio_balloon_device_unrealize; in virtio_balloon_class_init()
1073 vdc->reset = virtio_balloon_device_reset; in virtio_balloon_class_init()
1074 vdc->get_config = virtio_balloon_get_config; in virtio_balloon_class_init()
1075 vdc->set_config = virtio_balloon_set_config; in virtio_balloon_class_init()
1076 vdc->get_features = virtio_balloon_get_features; in virtio_balloon_class_init()
1077 vdc->set_status = virtio_balloon_set_status; in virtio_balloon_class_init()
1078 vdc->vmsd = &vmstate_virtio_balloon_device; in virtio_balloon_class_init()
H A Dvirtio.c2982 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_save() local
3023 if (vdc->save != NULL) { in virtio_save()
3024 vdc->save(vdev, f); in virtio_save()
3027 if (vdc->vmsd) { in virtio_save()
3028 int ret = vmstate_save_state(f, vdc->vmsd, vdev, NULL); in virtio_save()
3227 VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev); in virtio_load() local
3273 if (vdc->pre_load_queues) { in virtio_load()
3274 ret = vdc->pre_load_queues(vdev); in virtio_load()
3312 if (vdc->load != NULL) { in virtio_load()
3313 ret = vdc->load(vdev, f, version_id); in virtio_load()
[all …]
H A Dvirtio-crypto.c1271 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_crypto_class_init() local
1276 vdc->realize = virtio_crypto_device_realize; in virtio_crypto_class_init()
1277 vdc->unrealize = virtio_crypto_device_unrealize; in virtio_crypto_class_init()
1278 vdc->get_config = virtio_crypto_get_config; in virtio_crypto_class_init()
1279 vdc->get_features = virtio_crypto_get_features; in virtio_crypto_class_init()
1280 vdc->reset = virtio_crypto_reset; in virtio_crypto_class_init()
1281 vdc->set_status = virtio_crypto_set_status; in virtio_crypto_class_init()
1282 vdc->guest_notifier_mask = virtio_crypto_guest_notifier_mask; in virtio_crypto_class_init()
1283 vdc->guest_notifier_pending = virtio_crypto_guest_notifier_pending; in virtio_crypto_class_init()
1284 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.c373 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_scsi_class_init() local
379 vdc->realize = vhost_scsi_realize; in vhost_scsi_class_init()
380 vdc->unrealize = vhost_scsi_unrealize; in vhost_scsi_class_init()
381 vdc->get_features = vhost_scsi_common_get_features; in vhost_scsi_class_init()
382 vdc->set_config = vhost_scsi_common_set_config; in vhost_scsi_class_init()
383 vdc->set_status = vhost_scsi_set_status; in vhost_scsi_class_init()
384 vdc->get_vhost = vhost_scsi_get_vhost; in vhost_scsi_class_init()
H A Dvhost-user-scsi.c396 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_user_scsi_class_init() local
402 vdc->realize = vhost_user_scsi_realize; in vhost_user_scsi_class_init()
403 vdc->unrealize = vhost_user_scsi_unrealize; in vhost_user_scsi_class_init()
404 vdc->get_features = vhost_scsi_common_get_features; in vhost_user_scsi_class_init()
405 vdc->set_config = vhost_scsi_common_set_config; in vhost_user_scsi_class_init()
406 vdc->set_status = vhost_user_scsi_set_status; in vhost_user_scsi_class_init()
408 vdc->reset = vhost_user_scsi_reset; in vhost_user_scsi_class_init()
409 vdc->get_vhost = vhost_user_scsi_get_vhost; in vhost_user_scsi_class_init()
/qemu/hw/9pfs/
H A Dvirtio-9p-device.c254 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_9p_class_init() local
259 vdc->realize = virtio_9p_device_realize; in virtio_9p_class_init()
260 vdc->unrealize = virtio_9p_device_unrealize; in virtio_9p_class_init()
261 vdc->get_features = virtio_9p_get_features; in virtio_9p_class_init()
262 vdc->get_config = virtio_9p_get_config; in virtio_9p_class_init()
263 vdc->reset = virtio_9p_reset; in virtio_9p_class_init()
/qemu/hw/display/
H A Dvirtio-gpu-gl.c188 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_gpu_gl_class_init() local
197 vdc->realize = virtio_gpu_gl_device_realize; in virtio_gpu_gl_class_init()
198 vdc->unrealize = virtio_gpu_gl_device_unrealize; in virtio_gpu_gl_class_init()
199 vdc->reset = virtio_gpu_gl_reset; in virtio_gpu_gl_class_init()
H A Dvhost-user-gpu.c673 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_user_gpu_class_init() local
678 vdc->realize = vhost_user_gpu_device_realize; in vhost_user_gpu_class_init()
679 vdc->reset = vhost_user_gpu_reset; in vhost_user_gpu_class_init()
680 vdc->set_status = vhost_user_gpu_set_status; in vhost_user_gpu_class_init()
681 vdc->guest_notifier_mask = vhost_user_gpu_guest_notifier_mask; in vhost_user_gpu_class_init()
682 vdc->guest_notifier_pending = vhost_user_gpu_guest_notifier_pending; in vhost_user_gpu_class_init()
683 vdc->get_config = vhost_user_gpu_get_config; in vhost_user_gpu_class_init()
684 vdc->set_config = vhost_user_gpu_set_config; in vhost_user_gpu_class_init()
685 vdc->get_vhost = vhost_user_gpu_get_vhost; in vhost_user_gpu_class_init()
H A Dvirtio-gpu-base.c268 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_gpu_base_class_init() local
270 vdc->unrealize = virtio_gpu_base_device_unrealize; in virtio_gpu_base_class_init()
271 vdc->get_features = virtio_gpu_base_get_features; in virtio_gpu_base_class_init()
272 vdc->set_features = virtio_gpu_base_set_features; in virtio_gpu_base_class_init()
/qemu/hw/block/
H A Dvhost-user-blk.c592 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vhost_user_blk_class_init() local
598 vdc->realize = vhost_user_blk_device_realize; in vhost_user_blk_class_init()
599 vdc->unrealize = vhost_user_blk_device_unrealize; in vhost_user_blk_class_init()
600 vdc->get_config = vhost_user_blk_update_config; in vhost_user_blk_class_init()
601 vdc->set_config = vhost_user_blk_set_config; in vhost_user_blk_class_init()
602 vdc->get_features = vhost_user_blk_get_features; in vhost_user_blk_class_init()
603 vdc->set_status = vhost_user_blk_set_status; in vhost_user_blk_class_init()
604 vdc->reset = vhost_user_blk_reset; in vhost_user_blk_class_init()
605 vdc->get_vhost = vhost_user_blk_get_vhost; in vhost_user_blk_class_init()
/qemu/hw/hyperv/
H A Dvmbus.c1323 static void init_channel(VMBus *vmbus, VMBusDevice *dev, VMBusDeviceClass *vdc, in init_channel() argument
1329 chan->notify_cb = vdc->chan_notify_cb; in init_channel()
1360 VMBusDeviceClass *vdc = VMBUS_DEVICE_GET_CLASS(dev); in create_channels() local
1363 dev->num_channels = vdc->num_channels ? vdc->num_channels(dev) : 1; in create_channels()
1371 init_channel(vmbus, dev, vdc, &dev->channels[i], i, &err); in create_channels()
1416 VMBusDeviceClass *vdc = VMBUS_DEVICE_GET_CLASS(chan->dev); in open_channel() local
1443 if (vdc->open_channel && vdc->open_channel(chan)) { in open_channel()
1463 VMBusDeviceClass *vdc = VMBUS_DEVICE_GET_CLASS(chan->dev); in close_channel() local
1469 if (vdc->close_channel) { in close_channel()
1470 vdc->close_channel(chan); in close_channel()
[all …]
/qemu/hw/vmapple/
H A Dvirtio-blk.c88 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in vmapple_virtio_blk_class_init() local
92 vvbk->get_config = vdc->get_config; in vmapple_virtio_blk_class_init()
93 vdc->get_config = vmapple_virtio_blk_get_config; in vmapple_virtio_blk_class_init()
/qemu/hw/char/
H A Dvirtio-serial-bus.c1166 VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass); in virtio_serial_class_init() local
1174 vdc->realize = virtio_serial_device_realize; in virtio_serial_class_init()
1175 vdc->unrealize = virtio_serial_device_unrealize; in virtio_serial_class_init()
1176 vdc->get_features = get_features; in virtio_serial_class_init()
1177 vdc->get_config = get_config; in virtio_serial_class_init()
1178 vdc->set_config = set_config; in virtio_serial_class_init()
1179 vdc->set_status = set_status; in virtio_serial_class_init()
1180 vdc->reset = vser_reset; in virtio_serial_class_init()
1181 vdc->save = virtio_serial_save_device; in virtio_serial_class_init()
1182 vdc->load = virtio_serial_load_device; in virtio_serial_class_init()

12