Home
last modified time | relevance | path

Searched refs:plug_handler (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/hw/core/
H A Dhotplug.c16 void hotplug_handler_pre_plug(HotplugHandler *plug_handler, in hotplug_handler_pre_plug() argument
20 HotplugHandlerClass *hdc = HOTPLUG_HANDLER_GET_CLASS(plug_handler); in hotplug_handler_pre_plug()
23 hdc->pre_plug(plug_handler, plugged_dev, errp); in hotplug_handler_pre_plug()
27 void hotplug_handler_plug(HotplugHandler *plug_handler, in hotplug_handler_plug() argument
31 HotplugHandlerClass *hdc = HOTPLUG_HANDLER_GET_CLASS(plug_handler); in hotplug_handler_plug()
34 hdc->plug(plug_handler, plugged_dev, errp); in hotplug_handler_plug()
38 void hotplug_handler_unplug_request(HotplugHandler *plug_handler, in hotplug_handler_unplug_request() argument
42 HotplugHandlerClass *hdc = HOTPLUG_HANDLER_GET_CLASS(plug_handler); in hotplug_handler_unplug_request()
45 hdc->unplug_request(plug_handler, plugged_dev, errp); in hotplug_handler_unplug_request()
49 void hotplug_handler_unplug(HotplugHandler *plug_handler, in hotplug_handler_unplug() argument
[all …]
H A Dhotplug-stubs.c22 void hotplug_handler_pre_plug(HotplugHandler *plug_handler, in hotplug_handler_pre_plug() argument
29 void hotplug_handler_plug(HotplugHandler *plug_handler, in hotplug_handler_plug() argument
/openbmc/qemu/include/hw/
H A Dhotplug.h33 typedef void (*hotplug_fn)(HotplugHandler *plug_handler,
62 bool (*is_hotpluggable_bus)(HotplugHandler *plug_handler, BusState *bus);
70 void hotplug_handler_plug(HotplugHandler *plug_handler,
79 void hotplug_handler_pre_plug(HotplugHandler *plug_handler,
88 void hotplug_handler_unplug_request(HotplugHandler *plug_handler,
96 void hotplug_handler_unplug(HotplugHandler *plug_handler,
H A Dqdev-core.h1008 HotplugHandler *plug_handler = bus->hotplug_handler; in qbus_is_hotpluggable() local
1009 bool ret = !!plug_handler; in qbus_is_hotpluggable()
1011 if (plug_handler) { in qbus_is_hotpluggable()
1014 hdc = HOTPLUG_HANDLER_GET_CLASS(plug_handler); in qbus_is_hotpluggable()
1016 ret = hdc->is_hotpluggable_bus(plug_handler, bus); in qbus_is_hotpluggable()
/openbmc/qemu/hw/ppc/
H A Dspapr_pci.c1476 HotplugHandler *plug_handler = qdev_get_hotplug_handler(drc->dev); in spapr_pci_dt_populate() local
1477 SpaprPhbState *sphb = SPAPR_PCI_HOST_BRIDGE(plug_handler); in spapr_pci_dt_populate()
1543 static void spapr_pci_pre_plug(HotplugHandler *plug_handler, in spapr_pci_pre_plug() argument
1546 SpaprPhbState *phb = SPAPR_PCI_HOST_BRIDGE(DEVICE(plug_handler)); in spapr_pci_pre_plug()
1587 static void spapr_pci_plug(HotplugHandler *plug_handler, in spapr_pci_plug() argument
1590 SpaprPhbState *phb = SPAPR_PCI_HOST_BRIDGE(DEVICE(plug_handler)); in spapr_pci_plug()
1645 static void spapr_pci_unplug(HotplugHandler *plug_handler, in spapr_pci_unplug() argument
1648 SpaprPhbState *phb = SPAPR_PCI_HOST_BRIDGE(DEVICE(plug_handler)); in spapr_pci_unplug()
1670 static void spapr_pci_unplug_request(HotplugHandler *plug_handler, in spapr_pci_unplug_request() argument
1673 SpaprPhbState *phb = SPAPR_PCI_HOST_BRIDGE(DEVICE(plug_handler)); in spapr_pci_unplug_request()
/openbmc/qemu/hw/pci/
H A Dpcie_port.c202 static bool pcie_slot_is_hotpluggbale_bus(HotplugHandler *plug_handler, in pcie_slot_is_hotpluggbale_bus() argument