/openbmc/qemu/hw/scsi/ |
H A D | virtio-scsi-dataplane.c | 28 BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); in virtio_scsi_dataplane_setup() local 29 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in virtio_scsi_dataplane_setup() 53 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s))); in virtio_scsi_set_host_notifier() local 57 rc = virtio_bus_set_host_notifier(VIRTIO_BUS(qbus), n, true); in virtio_scsi_set_host_notifier() 102 BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); in virtio_scsi_dataplane_start() local 103 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in virtio_scsi_dataplane_start() 168 virtio_bus_set_host_notifier(VIRTIO_BUS(qbus), i, false); in virtio_scsi_dataplane_start() 178 virtio_bus_cleanup_host_notifier(VIRTIO_BUS(qbus), i); in virtio_scsi_dataplane_start() 191 BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); in virtio_scsi_dataplane_stop() local 192 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in virtio_scsi_dataplane_stop() [all …]
|
H A D | vhost-scsi-common.c | 33 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vhost_scsi_common_start() local 34 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_scsi_common_start() 49 ret = k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, true); in vhost_scsi_common_start() 98 k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, false); in vhost_scsi_common_start() 107 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vhost_scsi_common_stop() local 108 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_scsi_common_stop() 114 ret = k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, false); in vhost_scsi_common_stop()
|
H A D | scsi-bus.c | 36 QTAILQ_FOREACH_RCU(kid, &bus->qbus.children, sibling) { in do_scsi_device_find() 193 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, dev->qdev.parent_bus); in scsi_bus_parse_cdb() 294 SCSIBus *bus = SCSI_BUS(qbus); in scsi_bus_check_address() 323 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, dev->qdev.parent_bus); in scsi_qdev_realize() 427 if (!qdev_realize_and_unref(dev, &bus->qbus, errp)) { in scsi_bus_legacy_add_drive() 780 BusState *qbus = BUS(bus); in scsi_req_alloc() local 796 object_ref(OBJECT(qbus->parent)); in scsi_req_alloc() 810 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, d->qdev.parent_bus); in scsi_req_new() 1456 BusState *qbus = req->dev->qdev.parent_bus; in scsi_req_unref() local 1457 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, qbus); in scsi_req_unref() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-bus.c | 46 BusState *qbus = BUS(qdev_get_parent_bus(qdev)); in virtio_bus_device_plugged() local 47 VirtioBusState *bus = VIRTIO_BUS(qbus); in virtio_bus_device_plugged() 54 DPRINTF("%s: plug device.\n", qbus->name); in virtio_bus_device_plugged() 57 klass->pre_plugged(qbus->parent, &local_err); in virtio_bus_device_plugged() 74 klass->device_plugged(qbus->parent, &local_err); in virtio_bus_device_plugged() 117 BusState *qbus = BUS(qdev_get_parent_bus(qdev)); in virtio_bus_device_unplugged() local 120 DPRINTF("%s: remove device.\n", qbus->name); in virtio_bus_device_unplugged() 124 klass->device_unplugged(qbus->parent); in virtio_bus_device_unplugged() 340 BusState *qbus = BUS(qdev_get_parent_bus(qdev)); in virtio_bus_device_iommu_enabled() local 341 VirtioBusState *bus = VIRTIO_BUS(qbus); in virtio_bus_device_iommu_enabled() [all …]
|
H A D | vhost-vsock-common.c | 51 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vhost_vsock_common_start() local 52 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_vsock_common_start() 67 ret = k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, true); in vhost_vsock_common_start() 92 k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, false); in vhost_vsock_common_start() 101 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vhost_vsock_common_stop() local 102 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_vsock_common_stop() 111 ret = k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, false); in vhost_vsock_common_stop()
|
H A D | vhost-user-scmi.c | 37 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vu_scmi_start() local 38 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vu_scmi_start() 53 ret = k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, true); in vu_scmi_start() 79 k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, false); in vu_scmi_start() 89 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vu_scmi_stop() local 90 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vu_scmi_stop() 106 ret = k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, false); in vu_scmi_stop()
|
H A D | vhost-user-base.c | 22 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vub_start() local 23 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vub_start() 38 ret = k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, true); in vub_start() 64 k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, false); in vub_start() 72 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vub_stop() local 73 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vub_stop() 82 ret = k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, false); in vub_stop()
|
H A D | vdpa-dev.c | 240 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vhost_vdpa_device_start() local 241 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_vdpa_device_start() 255 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, true); in vhost_vdpa_device_start() 282 k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_vdpa_device_start() 291 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vhost_vdpa_device_stop() local 292 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_vdpa_device_stop() 306 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_vdpa_device_stop()
|
H A D | vhost-user-fs.c | 57 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vuf_start() local 58 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vuf_start() 73 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, true); in vuf_start() 98 k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, false); in vuf_start() 106 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vuf_stop() local 107 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vuf_stop() 116 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, false); in vuf_stop()
|
H A D | virtio.c | 2195 k->notify(qbus->parent, vector); in virtio_notify_vector() 2781 k->has_extra_state(qbus->parent); in virtio_extra_state_needed() 2897 k->save_extra_state(qbus->parent, f); in put_extra_state() 3011 k->save_config(qbus->parent, f); in virtio_save() 3043 k->save_queue(qbus->parent, i, f); in virtio_save() 3217 ret = k->load_config(qbus->parent, f); in virtio_load() 3531 return k->queue_enabled(qbus->parent, n); in virtio_queue_enabled() 4078 VirtioBusState *vbus = VIRTIO_BUS(qbus); in virtio_device_start_ioeventfd() 4120 VirtioBusState *vbus = VIRTIO_BUS(qbus); in virtio_device_grab_ioeventfd() 4128 VirtioBusState *vbus = VIRTIO_BUS(qbus); in virtio_device_release_ioeventfd() [all …]
|
/openbmc/qemu/backends/ |
H A D | vhost-user.c | 51 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(b->vdev))); in vhost_user_backend_start() local 52 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_user_backend_start() 69 ret = k->set_guest_notifiers(qbus->parent, b->dev.nvqs, true); in vhost_user_backend_start() 95 k->set_guest_notifiers(qbus->parent, b->dev.nvqs, false); in vhost_user_backend_start() 103 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(b->vdev))); in vhost_user_backend_stop() local 104 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_user_backend_stop() 114 ret = k->set_guest_notifiers(qbus->parent, in vhost_user_backend_stop()
|
H A D | cryptodev-vhost.c | 174 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(dev))); in cryptodev_vhost_start() local 175 VirtioBusState *vbus = VIRTIO_BUS(qbus); in cryptodev_vhost_start() 203 r = k->set_guest_notifiers(qbus->parent, total_queues, true); in cryptodev_vhost_start() 237 e = k->set_guest_notifiers(qbus->parent, total_queues, false); in cryptodev_vhost_start() 247 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(dev))); in cryptodev_vhost_stop() local 248 VirtioBusState *vbus = VIRTIO_BUS(qbus); in cryptodev_vhost_stop() 264 r = k->set_guest_notifiers(qbus->parent, total_queues, false); in cryptodev_vhost_stop()
|
/openbmc/qemu/hw/sd/ |
H A D | core.c | 32 return sdbus->qbus.name; in sdbus_name() 38 BusChild *kid = QTAILQ_FIRST(&sdbus->qbus.children); in get_card() 219 BusState *qbus = BUS(sdbus); in sdbus_set_inserted() local 222 sbc->set_inserted(qbus->parent, inserted); in sdbus_set_inserted() 229 BusState *qbus = BUS(sdbus); in sdbus_set_readonly() local 232 sbc->set_readonly(qbus->parent, readonly); in sdbus_set_readonly() 258 qdev_set_parent_bus(DEVICE(card), &to->qbus, &error_abort); in sdbus_reparent_card()
|
/openbmc/qemu/hw/ide/ |
H A D | ide-bus.c | 82 qdev_realize_and_unref(dev, &bus->qbus, &error_fatal); in ide_bus_create_drive() 89 IDEState *s = &DO_UPCAST(IDEBus, qbus, bus)->ifs[unit]; in ide_get_geometry() 103 return DO_UPCAST(IDEBus, qbus, bus)->ifs[unit].chs_trans; in ide_get_bios_chs_trans()
|
/openbmc/qemu/hw/block/ |
H A D | vhost-user-blk.c | 124 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vhost_user_blk_start() local 125 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_user_blk_start() 139 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, true); in vhost_user_blk_start() 189 k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_user_blk_start() 198 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in vhost_user_blk_stop() local 199 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in vhost_user_blk_stop() 213 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_user_blk_stop()
|
H A D | virtio-blk.c | 1549 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); in virtio_blk_vq_aio_context_init() local 1550 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in virtio_blk_vq_aio_context_init() 1638 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s))); in virtio_blk_start_ioeventfd() local 1639 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in virtio_blk_start_ioeventfd() 1652 r = k->set_guest_notifiers(qbus->parent, nvqs, true); in virtio_blk_start_ioeventfd() 1726 k->set_guest_notifiers(qbus->parent, nvqs, false); in virtio_blk_start_ioeventfd() 1755 BusState *qbus = qdev_get_parent_bus(DEVICE(s)); in virtio_blk_stop_ioeventfd() local 1756 VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); in virtio_blk_stop_ioeventfd() 1788 virtio_bus_set_host_notifier(VIRTIO_BUS(qbus), i, false); in virtio_blk_stop_ioeventfd() 1798 virtio_bus_cleanup_host_notifier(VIRTIO_BUS(qbus), i); in virtio_blk_stop_ioeventfd() [all …]
|
/openbmc/qemu/hw/s390x/ |
H A D | event-facility.c | 27 BusState qbus; member 66 QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { in event_pending() 85 QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { in get_host_send_mask() 101 QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { in get_host_receive_mask() 140 QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { in handle_write_event_buf() 219 QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { in handle_sccb_read_events()
|
/openbmc/qemu/hw/input/ |
H A D | adb.c | 243 static void adb_bus_realize(BusState *qbus, Error **errp) in adb_bus_realize() argument 245 ADBBusState *adb_bus = ADB_BUS(qbus); in adb_bus_realize() 253 static void adb_bus_unrealize(BusState *qbus) in adb_bus_unrealize() argument 255 ADBBusState *adb_bus = ADB_BUS(qbus); in adb_bus_unrealize()
|
/openbmc/qemu/hw/net/ |
H A D | vhost_net.c | 360 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(dev))); in vhost_net_start() local 361 VirtioBusState *vbus = VIRTIO_BUS(qbus); in vhost_net_start() 399 r = k->set_guest_notifiers(qbus->parent, total_notifiers, true); in vhost_net_start() 435 e = k->set_guest_notifiers(qbus->parent, total_notifiers, false); in vhost_net_start() 447 BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(dev))); in vhost_net_stop() local 448 VirtioBusState *vbus = VIRTIO_BUS(qbus); in vhost_net_stop() 465 r = k->set_guest_notifiers(qbus->parent, total_notifiers, false); in vhost_net_stop()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-bus.h | 134 BusState *qbus = &bus->parent_obj; in virtio_bus_get_device() local 135 BusChild *kid = QTAILQ_FIRST(&qbus->children); in virtio_bus_get_device()
|
/openbmc/qemu/hw/acpi/ |
H A D | pcihp.c | 83 DeviceState *br = bus->qbus.parent; in acpi_set_bsel() 199 QTAILQ_FOREACH_SAFE(kid, &bus->qbus.children, sibling, next) { in acpi_pcihp_eject_slot() 245 QTAILQ_FOREACH_SAFE(kid, &bus->qbus.children, sibling, next) { in acpi_pcihp_update_hotplug_bus() 462 QTAILQ_FOREACH_SAFE(kid, &bus->qbus.children, sibling, next) { in pci_write()
|
/openbmc/qemu/include/hw/nubus/ |
H A D | nubus.h | 41 BusState qbus; member
|
/openbmc/qemu/include/hw/ide/ |
H A D | ide-bus.h | 9 BusState qbus; member
|
/openbmc/qemu/include/hw/pci/ |
H A D | pci_bus.h | 34 BusState qbus; member
|
/openbmc/qemu/include/hw/misc/ |
H A D | auxbus.h | 62 BusState qbus; member
|