Home
last modified time | relevance | path

Searched refs:table_data (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/qemu/hw/arm/
H A Dvirt-acpi-build.c218 static void build_iort_id_mapping(GArray *table_data, uint32_t input_base, in build_iort_id_mapping() argument
221 build_append_int_noprefix(table_data, input_base, 4); /* Input base */ in build_iort_id_mapping()
223 build_append_int_noprefix(table_data, id_count - 1, 4); in build_iort_id_mapping()
224 build_append_int_noprefix(table_data, input_base, 4); /* Output base */ in build_iort_id_mapping()
225 build_append_int_noprefix(table_data, out_ref, 4); /* Output Reference */ in build_iort_id_mapping()
227 build_append_int_noprefix(table_data, 0 /* Single mapping (disabled) */, 4); in build_iort_id_mapping()
275 build_iort(GArray *table_data, BIOSLinker *linker, VirtMachineState *vms) in build_iort() argument
287 acpi_table_begin(&table, table_data); in build_iort()
326 build_append_int_noprefix(table_data, nb_nodes, 4); in build_iort()
329 build_append_int_noprefix(table_data, IORT_NODE_OFFSET, 4); in build_iort()
[all …]
/openbmc/qemu/hw/acpi/
H A Dhmat.c37 static void build_hmat_mpda(GArray *table_data, uint16_t flags, in build_hmat_mpda() argument
43 build_append_int_noprefix(table_data, 0, 2); in build_hmat_mpda()
45 build_append_int_noprefix(table_data, 0, 2); in build_hmat_mpda()
47 build_append_int_noprefix(table_data, 40, 4); in build_hmat_mpda()
49 build_append_int_noprefix(table_data, flags, 2); in build_hmat_mpda()
51 build_append_int_noprefix(table_data, 0, 2); in build_hmat_mpda()
53 build_append_int_noprefix(table_data, initiator, 4); in build_hmat_mpda()
55 build_append_int_noprefix(table_data, mem_node, 4); in build_hmat_mpda()
57 build_append_int_noprefix(table_data, 0, 4); in build_hmat_mpda()
63 build_append_int_noprefix(table_data, 0, 8); in build_hmat_mpda()
[all …]
H A Dviot.c18 static void build_pci_host_range(GArray *table_data, int min_bus, int max_bus, in build_pci_host_range() argument
22 build_append_int_noprefix(table_data, 1 /* PCI range */, 1); in build_pci_host_range()
24 build_append_int_noprefix(table_data, 0, 1); in build_pci_host_range()
26 build_append_int_noprefix(table_data, 24, 2); in build_pci_host_range()
28 build_append_int_noprefix(table_data, PCI_BUILD_BDF(min_bus, 0), 4); in build_pci_host_range()
30 build_append_int_noprefix(table_data, 0, 2); in build_pci_host_range()
32 build_append_int_noprefix(table_data, 0, 2); in build_pci_host_range()
34 build_append_int_noprefix(table_data, PCI_BUILD_BDF(min_bus, 0), 2); in build_pci_host_range()
36 build_append_int_noprefix(table_data, PCI_BUILD_BDF(max_bus, 0xff), 2); in build_pci_host_range()
38 build_append_int_noprefix(table_data, output_node, 2); in build_pci_host_range()
[all …]
H A Dcxl.c102 static void cedt_build_chbs(GArray *table_data, PXBCXLDev *cxl) in cedt_build_chbs() argument
109 build_append_int_noprefix(table_data, 0, 1); in cedt_build_chbs()
112 build_append_int_noprefix(table_data, 0, 1); in cedt_build_chbs()
115 build_append_int_noprefix(table_data, 32, 2); in cedt_build_chbs()
118 build_append_int_noprefix(table_data, pxb->bus_nr, 4); in cedt_build_chbs()
121 build_append_int_noprefix(table_data, 1, 4); in cedt_build_chbs()
124 build_append_int_noprefix(table_data, 0, 4); in cedt_build_chbs()
127 build_append_int_noprefix(table_data, mr->container->addr + mr->addr, 8); in cedt_build_chbs()
130 build_append_int_noprefix(table_data, memory_region_size(mr), 8); in cedt_build_chbs()
138 static void cedt_build_cfmws(GArray *table_data, CXLState *cxls) in cedt_build_cfmws() argument
[all …]
H A Dghes.c290 static void build_ghes_v2(GArray *table_data, int source_id, BIOSLinker *linker) in build_ghes_v2() argument
297 build_append_int_noprefix(table_data, ACPI_GHES_SOURCE_GENERIC_ERROR_V2, 2); in build_ghes_v2()
299 build_append_int_noprefix(table_data, source_id, 2); in build_ghes_v2()
301 build_append_int_noprefix(table_data, 0xffff, 2); in build_ghes_v2()
303 build_append_int_noprefix(table_data, 0, 1); in build_ghes_v2()
305 build_append_int_noprefix(table_data, 1, 1); in build_ghes_v2()
308 build_append_int_noprefix(table_data, 1, 4); in build_ghes_v2()
310 build_append_int_noprefix(table_data, 1, 4); in build_ghes_v2()
312 build_append_int_noprefix(table_data, ACPI_GHES_MAX_RAW_DATA_LENGTH, 4); in build_ghes_v2()
314 address_offset = table_data->len; in build_ghes_v2()
[all …]
H A Dpci.c41 void build_mcfg(GArray *table_data, BIOSLinker *linker, AcpiMcfgInfo *info, in build_mcfg() argument
47 acpi_table_begin(&table, table_data); in build_mcfg()
50 build_append_int_noprefix(table_data, 0, 8); in build_mcfg()
56 build_append_int_noprefix(table_data, info->base, 8); in build_mcfg()
58 build_append_int_noprefix(table_data, 0, 2); in build_mcfg()
60 build_append_int_noprefix(table_data, 0, 1); in build_mcfg()
62 build_append_int_noprefix(table_data, PCIE_MMCFG_BUS(info->size - 1), 1); in build_mcfg()
64 build_append_int_noprefix(table_data, 0, 4); in build_mcfg()
152 GArray *table_data = opaque; in build_acpi_generic_initiator() local
180 build_srat_pci_generic_initiator(table_data, gi->node, 0, bus, devfn); in build_acpi_generic_initiator()
[all …]
H A Daml-build.c1756 void *acpi_data_push(GArray *table_data, unsigned size) in acpi_data_push() argument
1758 unsigned off = table_data->len; in acpi_data_push()
1759 g_array_set_size(table_data, off + size); in acpi_data_push()
1760 return table_data->data + off; in acpi_data_push()
1769 void acpi_add_table(GArray *table_offsets, GArray *table_data) in acpi_add_table() argument
1771 uint32_t offset = table_data->len; in acpi_add_table()
1778 tables->table_data = g_array_new(false, true /* clear */, 1); in acpi_build_tables_init()
1789 g_array_free(tables->table_data, true); in acpi_build_tables_cleanup()
1867 build_rsdt(GArray *table_data, BIOSLinker *linker, GArray *table_offsets, in build_rsdt() argument
1874 acpi_table_begin(&table, table_data); in build_rsdt()
[all …]
H A Derst.c188 GArray *table_data; member
207 build_append_int_noprefix(e->table_data, serialization_action, 1); in build_serialization_instruction()
209 build_append_int_noprefix(e->table_data, e->instruction, 1); in build_serialization_instruction()
211 build_append_int_noprefix(e->table_data, e->flags, 1); in build_serialization_instruction()
213 build_append_int_noprefix(e->table_data, 0, 1); in build_serialization_instruction()
220 build_append_gas_from_struct(e->table_data, &gas); in build_serialization_instruction()
222 build_append_int_noprefix(e->table_data, value, 8); in build_serialization_instruction()
225 build_append_int_noprefix(e->table_data, mask, 8); in build_serialization_instruction()
229 void build_erst(GArray *table_data, BIOSLinker *linker, Object *erst_dev, in build_erst() argument
245 .table_data = table_instruction_data, .bar = bar0, .flags = 0, in build_erst()
[all …]
H A Dvmgenid.c25 void vmgenid_build_acpi(VmGenIdState *vms, GArray *table_data, GArray *guid, in vmgenid_build_acpi() argument
47 acpi_table_begin(&table, table_data); in vmgenid_build_acpi()
51 vgia_offset = table_data->len + in vmgenid_build_acpi()
93 g_array_append_vals(table_data, ssdt->buf->data, ssdt->buf->len); in vmgenid_build_acpi()
H A Dnvdimm.c401 GArray *table_data, BIOSLinker *linker, in nvdimm_build_nfit() argument
408 acpi_add_table(table_offsets, table_data); in nvdimm_build_nfit()
410 acpi_table_begin(&table, table_data); in nvdimm_build_nfit()
412 build_append_int_noprefix(table_data, 0, 4); in nvdimm_build_nfit()
414 g_array_append_vals(table_data, fit_buf->fit->data, fit_buf->fit->len); in nvdimm_build_nfit()
1368 static void nvdimm_build_ssdt(GArray *table_offsets, GArray *table_data, in nvdimm_build_ssdt() argument
1378 acpi_add_table(table_offsets, table_data); in nvdimm_build_ssdt()
1380 acpi_table_begin(&table, table_data); in nvdimm_build_ssdt()
1411 g_array_append_vals(table_data, ssdt->buf->data, ssdt->buf->len); in nvdimm_build_ssdt()
1412 mem_addr_offset = build_append_named_dword(table_data, in nvdimm_build_ssdt()
[all …]
H A Dhmat.h41 void build_hmat(GArray *table_data, BIOSLinker *linker, NumaState *numa_state,
H A Dviot.h9 void build_viot(MachineState *ms, GArray *table_data, BIOSLinker *linker,
/openbmc/qemu/hw/riscv/
H A Dvirt-acpi-build.c207 spcr_setup(GArray *table_data, BIOSLinker *linker, RISCVVirtState *s) in spcr_setup() argument
234 build_spcr(table_data, linker, &serial, 2, s->oem_id, s->oem_table_id); in spcr_setup()
247 static void build_rhct(GArray *table_data, in build_rhct() argument
264 acpi_table_begin(&table, table_data); in build_rhct()
266 build_append_int_noprefix(table_data, 0x0, 4); /* Reserved */ in build_rhct()
269 build_append_int_noprefix(table_data, in build_rhct()
283 build_append_int_noprefix(table_data, num_rhct_nodes, 4); in build_rhct()
286 build_append_int_noprefix(table_data, RHCT_NODE_ARRAY_OFFSET, 4); in build_rhct()
289 isa_offset = table_data->len - table.table_offset; in build_rhct()
290 build_append_int_noprefix(table_data, 0, 2); /* Type 0 */ in build_rhct()
[all …]
/openbmc/qemu/hw/i386/
H A Dacpi-common.c95 void acpi_build_madt(GArray *table_data, BIOSLinker *linker, in acpi_build_madt() argument
107 acpi_table_begin(&table, table_data); in acpi_build_madt()
109 build_append_int_noprefix(table_data, APIC_DEFAULT_ADDRESS, 4); in acpi_build_madt()
111 build_append_int_noprefix(table_data, in acpi_build_madt()
115 pc_madt_cpu_entry(i, apic_ids, table_data, false); in acpi_build_madt()
121 build_ioapic(table_data, ACPI_BUILD_IOAPIC_ID, IO_APIC_DEFAULT_ADDRESS, 0); in acpi_build_madt()
123 build_ioapic(table_data, ACPI_BUILD_IOAPIC_ID + 1, in acpi_build_madt()
128 build_xrupt_override(table_data, 0, 2, in acpi_build_madt()
137 build_xrupt_override(table_data, i, i, in acpi_build_madt()
143 build_append_int_noprefix(table_data, 0xA, 1); /* Type */ in acpi_build_madt()
[all …]
H A Dacpi-build.c326 build_facs(GArray *table_data) in build_facs() argument
331 g_array_append_vals(table_data, sig, 4); /* Signature */ in build_facs()
332 build_append_int_noprefix(table_data, 64, 4); /* Length */ in build_facs()
333 build_append_int_noprefix(table_data, 0, 4); /* Hardware Signature */ in build_facs()
334 build_append_int_noprefix(table_data, 0, 4); /* Firmware Waking Vector */ in build_facs()
335 build_append_int_noprefix(table_data, 0, 4); /* Global Lock */ in build_facs()
336 build_append_int_noprefix(table_data, 0, 4); /* Flags */ in build_facs()
337 g_array_append_vals(table_data, reserved, 40); /* Reserved */ in build_facs()
1340 build_dsdt(GArray *table_data, BIOSLinker *linker, in build_dsdt() argument
1369 acpi_table_begin(&table, table_data); in build_dsdt()
[all …]
H A Dacpi-microvm.c103 build_dsdt_microvm(GArray *table_data, BIOSLinker *linker, in build_dsdt_microvm() argument
117 acpi_table_begin(&table, table_data); in build_dsdt_microvm()
142 g_array_append_vals(table_data, dsdt->buf->data, dsdt->buf->len); in build_dsdt_microvm()
154 GArray *tables_blob = tables->table_data; in acpi_build_microvm()
260 acpi_add_rom_blob(acpi_build_no_update, NULL, tables.table_data, in acpi_setup_microvm()
/openbmc/qemu/hw/loongarch/
H A Dacpi-build.c93 build_facs(GArray *table_data) in build_facs() argument
98 g_array_append_vals(table_data, sig, 4); /* Signature */ in build_facs()
99 build_append_int_noprefix(table_data, 64, 4); /* Length */ in build_facs()
100 build_append_int_noprefix(table_data, 0, 4); /* Hardware Signature */ in build_facs()
101 build_append_int_noprefix(table_data, 0, 4); /* Firmware Waking Vector */ in build_facs()
102 build_append_int_noprefix(table_data, 0, 4); /* Global Lock */ in build_facs()
103 build_append_int_noprefix(table_data, 0, 4); /* Flags */ in build_facs()
104 g_array_append_vals(table_data, reserved, 40); /* Reserved */ in build_facs()
109 build_madt(GArray *table_data, BIOSLinker *linker, in build_madt() argument
119 acpi_table_begin(&table, table_data); in build_madt()
[all …]
/openbmc/qemu/include/hw/acpi/
H A Daml-build.h216 GArray *table_data; member
447 void *acpi_data_push(GArray *table_data, unsigned size);
449 void acpi_add_table(GArray *table_offsets, GArray *table_data);
455 build_rsdt(GArray *table_data, BIOSLinker *linker, GArray *table_offsets,
458 build_xsdt(GArray *table_data, BIOSLinker *linker, GArray *table_offsets,
486 void build_srat_memory(GArray *table_data, uint64_t base,
489 void build_srat_pci_generic_initiator(GArray *table_data, uint32_t node,
493 void build_srat_acpi_generic_port(GArray *table_data, uint32_t node,
496 void build_slit(GArray *table_data, BIOSLinker *linker, MachineState *ms,
499 void build_pptt(GArray *table_data, BIOSLinker *linker, MachineState *ms,
[all …]
H A Dpci.h37 void build_mcfg(GArray *table_data, BIOSLinker *linker, AcpiMcfgInfo *info,
44 void build_srat_generic_affinity_structures(GArray *table_data);
H A Derst.h17 void build_erst(GArray *table_data, BIOSLinker *linker, Object *erst_dev,
/openbmc/linux/tools/power/acpi/os_specific/service_layers/
H A Doslinuxtbl.c689 u8 *table_data; in osl_list_bios_tables() local
698 table_data = in osl_list_bios_tables()
707 table_data = in osl_list_bios_tables()
717 for (i = 0; i < number_of_tables; ++i, table_data += item_size) { in osl_list_bios_tables()
720 (acpi_physical_address)(*ACPI_CAST64(table_data)); in osl_list_bios_tables()
723 (acpi_physical_address)(*ACPI_CAST32(table_data)); in osl_list_bios_tables()
773 u8 *table_data; in osl_get_bios_table() local
887 table_data = in osl_get_bios_table()
897 table_data = in osl_get_bios_table()
908 for (i = 0; i < number_of_tables; ++i, table_data += item_size) { in osl_get_bios_table()
[all …]
/openbmc/libpldm/src/dsp/
H A Dbios.c216 uint8_t transfer_flag, uint8_t *table_data, in encode_get_bios_table_resp() argument
240 if (table_data != NULL && in encode_get_bios_table_resp()
243 memcpy(response->table_data, table_data, in encode_get_bios_table_resp()
592 const uint8_t *table_data, size_t table_length, in encode_set_bios_table_req() argument
595 if (msg == NULL || table_data == NULL) { in encode_set_bios_table_req()
627 memcpy(request->table_data, table_data, table_length); in encode_set_bios_table_req()
707 table->ptr = request->table_data; in decode_set_bios_table_req()
/openbmc/qemu/include/hw/mem/
H A Dnvdimm.h154 void nvdimm_build_srat(GArray *table_data);
155 void nvdimm_build_acpi(GArray *table_offsets, GArray *table_data,
/openbmc/libpldm/include/libpldm/
H A Dbios.h101 uint8_t table_data[1]; member
191 uint8_t table_data[1]; member
304 const uint8_t *table_data, size_t table_length,
368 uint8_t transfer_flag, uint8_t *table_data,
/openbmc/linux/tools/perf/util/
H A Dunwind-libunwind-local.c306 u64 *table_data, u64 *segbase, in read_unwind_spec_eh_frame() argument
339 table_data, fde_count); in read_unwind_spec_eh_frame()
343 *table_data += *segbase; in read_unwind_spec_eh_frame()
436 u64 table_data, segbase, fde_count; in find_proc_info() local
452 if (!read_unwind_spec_eh_frame(dso, ui, &table_data, &segbase, &fde_count)) { in find_proc_info()
458 di.u.rti.table_data = table_data; in find_proc_info()

12