Home
last modified time | relevance | path

Searched refs:hotplug_ctrl (Results 1 – 12 of 12) sorted by relevance

/openbmc/qemu/hw/core/
H A Dqdev-hotplug.c103 HotplugHandler *hotplug_ctrl = qdev_get_machine_hotplug_handler(dev); in qdev_get_hotplug_handler() local
105 if (hotplug_ctrl == NULL && dev->parent_bus) { in qdev_get_hotplug_handler()
106 hotplug_ctrl = qdev_get_bus_hotplug_handler(dev); in qdev_get_hotplug_handler()
108 return hotplug_ctrl; in qdev_get_hotplug_handler()
H A Dqdev.c458 HotplugHandler *hotplug_ctrl; in device_set_realized() local
485 hotplug_ctrl = qdev_get_hotplug_handler(dev); in device_set_realized()
486 if (hotplug_ctrl) { in device_set_realized()
487 hotplug_handler_pre_plug(hotplug_ctrl, dev, &local_err); in device_set_realized()
550 if (hotplug_ctrl) { in device_set_realized()
551 hotplug_handler_plug(hotplug_ctrl, dev, &local_err); in device_set_realized()
/openbmc/qemu/system/
H A Dqdev-monitor.c892 HotplugHandler *hotplug_ctrl; in qdev_unplug() local
907 hotplug_ctrl = qdev_get_hotplug_handler(dev); in qdev_unplug()
910 g_assert(hotplug_ctrl); in qdev_unplug()
914 hdc = HOTPLUG_HANDLER_GET_CLASS(hotplug_ctrl); in qdev_unplug()
916 hotplug_handler_unplug_request(hotplug_ctrl, dev, &local_err); in qdev_unplug()
918 hotplug_handler_unplug(hotplug_ctrl, dev, &local_err); in qdev_unplug()
/openbmc/qemu/hw/acpi/
H A Dmemory_hotplug.c122 HotplugHandler *hotplug_ctrl = NULL; in acpi_memory_hotplug_write() local
176 hotplug_ctrl = qdev_get_hotplug_handler(dev); in acpi_memory_hotplug_write()
178 hotplug_handler_unplug(hotplug_ctrl, dev, &local_err); in acpi_memory_hotplug_write()
H A Dcpu.c135 HotplugHandler *hotplug_ctrl = NULL; in cpu_hotplug_wr() local
144 hotplug_ctrl = qdev_get_hotplug_handler(dev); in cpu_hotplug_wr()
145 hotplug_handler_unplug(hotplug_ctrl, dev, NULL); in cpu_hotplug_wr()
H A Dpcihp.c182 HotplugHandler *hotplug_ctrl; in acpi_pcihp_eject_slot() local
219 hotplug_ctrl = qdev_get_hotplug_handler(qdev); in acpi_pcihp_eject_slot()
220 hotplug_handler_unplug(hotplug_ctrl, qdev, &error_abort); in acpi_pcihp_eject_slot()
/openbmc/qemu/hw/pci/
H A Dshpc.c274 HotplugHandler *hotplug_ctrl; in shpc_free_devices_in_slot() local
282 hotplug_ctrl = qdev_get_hotplug_handler(DEVICE(affected_dev)); in shpc_free_devices_in_slot()
283 hotplug_handler_unplug(hotplug_ctrl, DEVICE(affected_dev), in shpc_free_devices_in_slot()
H A Dpcie.c579 HotplugHandler *hotplug_ctrl = qdev_get_hotplug_handler(DEVICE(dev)); in pcie_unplug_device() local
585 hotplug_handler_unplug(hotplug_ctrl, DEVICE(dev), &error_abort); in pcie_unplug_device()
/openbmc/qemu/hw/s390x/
H A Ds390-pci-bus.c159 HotplugHandler *hotplug_ctrl; in s390_pci_perform_unplug() local
169 hotplug_ctrl = qdev_get_hotplug_handler(pdev); in s390_pci_perform_unplug()
170 hotplug_handler_unplug(hotplug_ctrl, pdev, &error_abort); in s390_pci_perform_unplug()
175 hotplug_ctrl = qdev_get_hotplug_handler(DEVICE(pbdev)); in s390_pci_perform_unplug()
176 hotplug_handler_unplug(hotplug_ctrl, DEVICE(pbdev), &error_abort); in s390_pci_perform_unplug()
/openbmc/qemu/hw/net/
H A Dvirtio-net.c3651 HotplugHandler *hotplug_ctrl; in failover_unplug_primary() local
3655 hotplug_ctrl = qdev_get_hotplug_handler(dev); in failover_unplug_primary()
3656 if (hotplug_ctrl) { in failover_unplug_primary()
3659 hotplug_handler_unplug_request(hotplug_ctrl, dev, &err); in failover_unplug_primary()
3674 HotplugHandler *hotplug_ctrl; in failover_replug_primary() local
3688 hotplug_ctrl = qdev_get_hotplug_handler(dev); in failover_replug_primary()
3689 if (hotplug_ctrl) { in failover_replug_primary()
3690 hotplug_handler_pre_plug(hotplug_ctrl, dev, &err); in failover_replug_primary()
3694 hotplug_handler_plug(hotplug_ctrl, dev, &err); in failover_replug_primary()
/openbmc/qemu/hw/ppc/
H A Dspapr.c3786 HotplugHandler *hotplug_ctrl = qdev_get_hotplug_handler(dev); in spapr_lmb_release() local
3787 SpaprMachineState *spapr = SPAPR_MACHINE(hotplug_ctrl); in spapr_lmb_release()
3807 hotplug_handler_unplug(hotplug_ctrl, dev, &error_abort); in spapr_lmb_release()
3878 HotplugHandler *hotplug_ctrl = qdev_get_hotplug_handler(dev); in spapr_core_release() local
3881 hotplug_handler_unplug(hotplug_ctrl, dev, &error_abort); in spapr_core_release()
4162 HotplugHandler *hotplug_ctrl = qdev_get_hotplug_handler(dev); in spapr_phb_release() local
4164 hotplug_handler_unplug(hotplug_ctrl, dev, &error_abort); in spapr_phb_release()
H A Dspapr_pci.c1457 HotplugHandler *hotplug_ctrl = qdev_get_hotplug_handler(dev); in spapr_phb_remove_pci_device_cb() local
1459 hotplug_handler_unplug(hotplug_ctrl, dev, &error_abort); in spapr_phb_remove_pci_device_cb()