Lines Matching refs:machine
165 build_srat(GArray *table_data, BIOSLinker *linker, MachineState *machine) in build_srat() argument
169 int nb_numa_nodes = machine->numa_state->num_nodes; in build_srat()
170 LoongArchMachineState *lams = LOONGARCH_MACHINE(machine); in build_srat()
172 const CPUArchIdList *arch_ids = mc->possible_cpu_arch_ids(machine); in build_srat()
203 mem_len = machine->ram_size - VIRT_LOWMEM_SIZE; in build_srat()
205 mem_len = machine->numa_state->nodes[0].node_mem - VIRT_LOWMEM_SIZE; in build_srat()
214 if (machine->numa_state->nodes[i].node_mem > 0) { in build_srat()
216 machine->numa_state->nodes[i].node_mem, i, in build_srat()
218 mem_base += machine->numa_state->nodes[i].node_mem; in build_srat()
223 if (machine->device_memory) { in build_srat()
224 build_srat_memory(table_data, machine->device_memory->base, in build_srat()
225 memory_region_size(&machine->device_memory->mr), in build_srat()
279 build_la_ged_aml(Aml *dsdt, MachineState *machine) in build_la_ged_aml() argument
282 LoongArchMachineState *lams = LOONGARCH_MACHINE(machine); in build_la_ged_aml()
291 build_memory_hotplug_aml(dsdt, machine->ram_slots, "\\_SB", NULL, in build_la_ged_aml()
368 build_dsdt(GArray *table_data, BIOSLinker *linker, MachineState *machine) in build_dsdt() argument
371 LoongArchMachineState *lams = LOONGARCH_MACHINE(machine); in build_dsdt()
379 build_la_ged_aml(dsdt, machine); in build_dsdt()
399 static void acpi_build(AcpiBuildTables *tables, MachineState *machine) in acpi_build() argument
401 LoongArchMachineState *lams = LOONGARCH_MACHINE(machine); in acpi_build()
427 build_dsdt(tables_blob, tables->linker, machine); in acpi_build()
441 build_pptt(tables_blob, tables->linker, machine, in acpi_build()
445 build_srat(tables_blob, tables->linker, machine); in acpi_build()
447 if (machine->numa_state->num_nodes) { in acpi_build()
448 if (machine->numa_state->have_numa_distance) { in acpi_build()
450 build_slit(tables_blob, tables->linker, machine, lams->oem_id, in acpi_build()
453 if (machine->numa_state->hmat_enabled) { in acpi_build()
455 build_hmat(tables_blob, tables->linker, machine->numa_state, in acpi_build()