Home
last modified time | relevance | path

Searched refs:parent_bus (Results 1 – 25 of 29) sorted by relevance

12

/openbmc/linux/drivers/net/mdio/
H A Dmdio-mux.c149 struct mii_bus *parent_bus; in mdio_mux_init() local
163 parent_bus = of_mdio_find_bus(parent_bus_node); in mdio_mux_init()
164 if (!parent_bus) { in mdio_mux_init()
170 parent_bus = mux_bus; in mdio_mux_init()
171 get_device(&parent_bus->dev); in mdio_mux_init()
184 pb->mii_bus = parent_bus; in mdio_mux_init()
219 if (parent_bus->read_c45) in mdio_mux_init()
221 if (parent_bus->write_c45) in mdio_mux_init()
250 put_device(&parent_bus->dev); in mdio_mux_init()
/openbmc/qemu/hw/core/
H A Dqdev-fw.c67 if (dev && dev->parent_bus) { in qdev_get_fw_dev_path_helper()
69 l = qdev_get_fw_dev_path_helper(dev->parent_bus->parent, p, size); in qdev_get_fw_dev_path_helper()
70 d = qdev_get_fw_dev_path_from_handler(dev->parent_bus, dev); in qdev_get_fw_dev_path_helper()
72 d = bus_get_fw_dev_path(dev->parent_bus, dev); in qdev_get_fw_dev_path_helper()
H A Dqdev.c110 BusState *old_parent_bus = dev->parent_bus; in qdev_set_parent_bus()
131 bus_remove_child(dev->parent_bus, dev); in qdev_set_parent_bus()
133 dev->parent_bus = bus; in qdev_set_parent_bus()
281 assert(!dev->realized && !dev->parent_bus); in qdev_realize()
334 return dev->parent_bus; in qdev_get_parent_bus()
417 if (!dev || !dev->parent_bus) { in qdev_get_dev_path()
421 bc = BUS_GET_CLASS(dev->parent_bus); in qdev_get_dev_path()
735 if (dev->parent_bus) { in device_unparent()
736 bus_remove_child(dev->parent_bus, dev); in device_unparent()
737 object_unref(OBJECT(dev->parent_bus)); in device_unparent()
[all …]
H A Dqdev-hotplug.c52 if (dev->parent_bus) { in qdev_get_bus_hotplug_handler()
53 return dev->parent_bus->hotplug_handler; in qdev_get_bus_hotplug_handler()
62 if (hotplug_ctrl == NULL && dev->parent_bus) { in qdev_get_hotplug_handler()
H A Dvm-change-state-handler.c27 BusState *bus = dev->parent_bus; in qdev_get_dev_tree_depth()
/openbmc/qemu/hw/usb/
H A Ddev-smartcard-reader.c1189 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_send_apdu_to_guest()
1212 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_card_removed()
1223 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_ccid_attach()
1233 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_ccid_detach()
1246 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_card_error()
1265 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_card_inserted()
1277 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_unrealize()
1293 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_realize()
H A Dbus.c563 DeviceState *hcd = qdev->parent_bus->parent; in usb_get_dev_path()
H A Ddesc.c556 DeviceState *hcd = dev->qdev.parent_bus->parent; in usb_desc_create_serial()
/openbmc/qemu/hw/ide/
H A Dide-dev.c42 IDEBus *bus = DO_UPCAST(IDEBus, qbus, qdev->parent_bus); in ide_qdev_realize()
78 IDEBus *bus = DO_UPCAST(IDEBus, qbus, dev->qdev.parent_bus); in ide_dev_initfn()
H A Dide-bus.c69 ((IDEBus *)dev->parent_bus)->bus_id); in idebus_get_fw_dev_path()
/openbmc/qemu/hw/scsi/
H A Dscsi-bus.c193 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, dev->qdev.parent_bus); in scsi_bus_parse_cdb()
323 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, dev->qdev.parent_bus); in scsi_qdev_realize()
810 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, d->qdev.parent_bus); in scsi_req_new()
1437 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, dev->qdev.parent_bus); in scsi_device_report_change()
1456 BusState *qbus = req->dev->qdev.parent_bus; in scsi_req_unref()
1528 req->dev->qdev.parent_bus->name, in scsi_req_print()
1755 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, sdev->qdev.parent_bus); in scsi_device_drained_begin()
1777 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, sdev->qdev.parent_bus); in scsi_device_drained_end()
1796 DeviceState *hba = dev->parent_bus->parent; in scsibus_get_dev_path()
1853 SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, s->qdev.parent_bus); in get_scsi_requests()
/openbmc/qemu/hw/pci-host/
H A Dpnv_phb.c41 static bool pnv_parent_fixup(Object *parent, BusState *parent_bus, in pnv_parent_fixup() argument
58 if (!qdev_set_parent_bus(DEVICE(child), parent_bus, errp)) { in pnv_parent_fixup()
/openbmc/qemu/system/
H A Dqdev-monitor.c811 bus_print_dev(dev->parent_bus, mon, dev, indent); in qdev_print()
913 if (dev->parent_bus && !qbus_is_hotpluggable(dev->parent_bus)) { in qdev_unplug()
915 dev->parent_bus->name); in qdev_unplug()
H A Dbootdevice.c220 d = qdev_get_own_fw_dev_path_from_handler(dev->parent_bus, dev); in get_boot_device_path()
/openbmc/qemu/hw/audio/
H A Dintel-hda.c62 HDACodecBus *bus = HDA_BUS(qdev->parent_bus); in hda_codec_dev_realize()
104 HDACodecBus *bus = HDA_BUS(dev->qdev.parent_bus); in hda_codec_response()
111 HDACodecBus *bus = HDA_BUS(dev->qdev.parent_bus); in hda_codec_xfer()
345 HDACodecBus *bus = HDA_BUS(dev->qdev.parent_bus); in intel_hda_response()
400 HDACodecBus *bus = HDA_BUS(dev->qdev.parent_bus); in intel_hda_xfer()
/openbmc/qemu/hw/ufs/
H A Dufs.h29 BusState parent_bus; member
/openbmc/qemu/hw/ppc/
H A Dspapr_vio.c385 SpaprVioBus *bus = SPAPR_VIO_BUS(dev->qdev.parent_bus); in reg_conflict()
495 SpaprVioBus *bus = SPAPR_VIO_BUS(dev->qdev.parent_bus); in spapr_vio_busdev_realize()
/openbmc/qemu/include/hw/scsi/
H A Dscsi.h198 return DO_UPCAST(SCSIBus, qbus, d->qdev.parent_bus); in scsi_bus_from_device()
/openbmc/qemu/include/hw/
H A Dqdev-core.h255 BusState *parent_bus; member
H A Dusb.h520 return DO_UPCAST(USBBus, qbus, d->qdev.parent_bus); in usb_bus_from_device()
/openbmc/qemu/hw/block/
H A Dswim.c178 SWIMBus *bus = SWIM_BUS(qdev->parent_bus); in swim_drive_realize()
/openbmc/qemu/hw/pci/
H A Dpci.c173 PCIBus *parent_bus = pci_get_bus(bus->parent_dev); in pcie_bus_realize() local
175 if (pci_bus_allows_extended_config_space(parent_bus)) { in pcie_bus_realize()
2682 PCIBus *parent_bus = pci_get_bus(iommu_bus->parent_dev); in pci_device_get_iommu_bus_devfn() local
2714 bus = parent_bus; in pci_device_get_iommu_bus_devfn()
2718 iommu_bus = parent_bus; in pci_device_get_iommu_bus_devfn()
/openbmc/qemu/hw/pci-bridge/
H A Dpci_expander_bridge.c146 main_host = PCI_HOST_BRIDGE(pxb_dev_base->parent_bus->parent); in pxb_host_ofw_unit_address()
/openbmc/qemu/hw/nvme/
H A Dnvme.h49 BusState parent_bus; member
H A Dns.c737 if (!qdev_set_parent_bus(dev, &subsys->bus.parent_bus, errp)) { in nvme_ns_realize()

12