Home
last modified time | relevance | path

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

/external/qemu/hw/
Dsysbus.c103 SysBusDeviceInfo *info = container_of(base, SysBusDeviceInfo, qdev); in sysbus_device_init()
110 info->qdev.init = sysbus_device_init; in sysbus_register_withprop()
111 info->qdev.bus_type = BUS_TYPE_SYSTEM; in sysbus_register_withprop()
113 assert(info->qdev.size >= sizeof(SysBusDevice)); in sysbus_register_withprop()
114 qdev_register(&info->qdev); in sysbus_register_withprop()
122 info->qdev.name = qemu_strdup(name); in sysbus_register_dev()
123 info->qdev.size = size; in sysbus_register_dev()
Dqdev.c158 DeviceState *qdev; in qdev_device_add()
201 qdev = qdev_create_from_info(bus, info); in qdev_device_add()
204 qdev->id = id; in qdev_device_add()
206 if (qemu_opt_foreach(opts, set_property, qdev, 1) != 0) { in qdev_device_add()
207 qdev_free(qdev); in qdev_device_add()
210 if (qdev_init(qdev) < 0) { in qdev_device_add()
214 qdev->opts = opts; in qdev_device_add()
215 return qdev; in qdev_device_add()
Dpci.c321 qdev_free(&pci_dev->qdev); in pci_unregister_device()
903 DeviceInfo qdev; member
907 static void pci_qdev_init(DeviceState *qdev, DeviceInfo *base) in pci_qdev_init() argument
909 PCIDevice *pci_dev = (PCIDevice *)qdev; in pci_qdev_init()
910 PCIDeviceInfo *info = container_of(base, PCIDeviceInfo, qdev); in pci_qdev_init()
914 bus = FROM_QBUS(PCIBus, qdev_get_parent_bus(qdev)); in pci_qdev_init()
915 devfn = qdev_get_prop_int(qdev, "devfn", -1); in pci_qdev_init()
927 info->qdev.name = qemu_strdup(name); in pci_qdev_register()
928 info->qdev.size = size; in pci_qdev_register()
930 info->qdev.init = pci_qdev_init; in pci_qdev_register()
[all …]
Dsysbus.h15 DeviceState qdev; member
35 DeviceInfo qdev; member
Dpci.h141 DeviceState qdev; member
Darmv7m.c130 s->base = qdev_get_prop_int(&dev->qdev, "base", 0); in bitband_init()
Dsmc91c111.c788 qdev_get_macaddr(&dev->qdev, s->macaddr); in smc91c111_init1()
792 s->vc = qdev_get_vlan_client(&dev->qdev, in smc91c111_init1()
Dne2000.c824 qdev_get_macaddr(&d->dev.qdev, s->macaddr); in pci_ne2000_init()
826 s->vc = qdev_get_vlan_client(&d->dev.qdev, in pci_ne2000_init()
Darm_gic.c724 qdev_init_gpio_in(&s->busdev.qdev, gic_set_irq, GIC_NIRQ - 32); in gic_init()
/external/qemu/
Dblock.h74 int bdrv_attach(BlockDriverState *bs, DeviceState *qdev);
75 void bdrv_detach(BlockDriverState *bs, DeviceState *qdev);
DChangelog13 - qdev: improve property error reporting. (Gerd Hoffmann)
16 - usb-net: use qdev for -usbdevice (Gerd Hoffmann)
47 - qdev: also match bus name for global properties (Gerd Hoffmann)
48 - qdev: add command line option to set global defaults for properties. (Gerd Hoffmann)
50 - qdev: Replace device names containing whitespace (Markus Armbruster)
Dblock.c705 int bdrv_attach(BlockDriverState *bs, DeviceState *qdev) in bdrv_attach() argument
710 bs->peer = qdev; in bdrv_attach()
714 void bdrv_detach(BlockDriverState *bs, DeviceState *qdev) in bdrv_detach() argument
716 assert(bs->peer == qdev); in bdrv_detach()