Lines Matching refs:machine
65 QVirtMachine *machine = (QVirtMachine *) obj; in virt_destructor() local
66 alloc_destroy(&machine->alloc); in virt_destructor()
71 QVirtMachine *machine = object; in virt_get_driver() local
73 return &machine->alloc; in virt_get_driver()
82 QVirtMachine *machine = obj; in virt_get_device() local
84 return &machine->bridge.obj; in virt_get_device()
86 return &machine->virtio_mmio.obj; in virt_get_device()
106 QVirtMachine *machine = g_new0(QVirtMachine, 1); in qos_create_machine_riscv_virt() local
108 alloc_init(&machine->alloc, 0, in qos_create_machine_riscv_virt()
112 qvirtio_mmio_init_device(&machine->virtio_mmio, qts, VIRTIO_MMIO_BASE_ADDR, in qos_create_machine_riscv_virt()
115 qos_create_generic_pcihost(&machine->bridge, qts, &machine->alloc); in qos_create_machine_riscv_virt()
116 riscv_config_qpci_bus(&machine->bridge.pci); in qos_create_machine_riscv_virt()
118 machine->obj.get_device = virt_get_device; in qos_create_machine_riscv_virt()
119 machine->obj.get_driver = virt_get_driver; in qos_create_machine_riscv_virt()
120 machine->obj.destructor = virt_destructor; in qos_create_machine_riscv_virt()
121 return machine; in qos_create_machine_riscv_virt()