Lines Matching refs:DeviceState
60 assert(info->size >= sizeof(DeviceState));
71 DeviceState *qdev_create(BusState *bus, const char *name)
74 DeviceState *dev;
151 DeviceState *qdev_device_add(QemuOpts *opts)
158 DeviceState *qdev;
222 void qdev_init(DeviceState *dev)
228 void qdev_free(DeviceState *dev)
234 static DeviceProperty *create_prop(DeviceState *dev, const char *name,
249 void qdev_set_prop_int(DeviceState *dev, const char *name, uint64_t value)
257 void qdev_set_prop_dev(DeviceState *dev, const char *name, DeviceState *value)
265 void qdev_set_prop_ptr(DeviceState *dev, const char *name, void *value)
273 void qdev_set_netdev(DeviceState *dev, NICInfo *nd)
281 CharDriverState *qdev_init_chardev(DeviceState *dev)
293 BusState *qdev_get_parent_bus(DeviceState *dev)
298 static DeviceProperty *find_prop(DeviceState *dev, const char *name,
312 uint64_t qdev_get_prop_int(DeviceState *dev, const char *name, uint64_t def)
324 void *qdev_get_prop_ptr(DeviceState *dev, const char *name)
333 DeviceState *qdev_get_prop_dev(DeviceState *dev, const char *name)
344 void qdev_init_gpio_in(DeviceState *dev, qemu_irq_handler handler, int n)
351 void qdev_init_gpio_out(DeviceState *dev, qemu_irq *pins, int n)
358 qemu_irq qdev_get_gpio_in(DeviceState *dev, int n)
364 void qdev_connect_gpio_out(DeviceState * dev, int n, qemu_irq pin)
370 VLANClientState *qdev_get_vlan_client(DeviceState *dev,
384 void qdev_get_macaddr(DeviceState *dev, uint8_t *macaddr)
394 BlockDriverState *qdev_init_bdrv(DeviceState *dev, BlockInterfaceType type)
406 BusState *qdev_get_child_bus(DeviceState *dev, const char *name)
422 void scsi_bus_new(DeviceState *host, SCSIAttachFn attach)
438 DeviceState *parent, const char *name)
464 static void qdev_print(Monitor *mon, DeviceState *dev, int indent)
487 ((DeviceState *)prop->value.ptr)->type->info->name);
508 struct DeviceState *dev;