Lines Matching refs:table_data

1756 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()
1895 build_xsdt(GArray *table_data, BIOSLinker *linker, GArray *table_offsets, in build_xsdt() argument
1902 acpi_table_begin(&table, table_data); in build_xsdt()
1923 void build_srat_memory(GArray *table_data, uint64_t base, in build_srat_memory() argument
1926 build_append_int_noprefix(table_data, 1, 1); /* Type */ in build_srat_memory()
1927 build_append_int_noprefix(table_data, 40, 1); /* Length */ in build_srat_memory()
1928 build_append_int_noprefix(table_data, node, 4); /* Proximity Domain */ in build_srat_memory()
1929 build_append_int_noprefix(table_data, 0, 2); /* Reserved */ in build_srat_memory()
1930 build_append_int_noprefix(table_data, base, 4); /* Base Address Low */ in build_srat_memory()
1932 build_append_int_noprefix(table_data, base >> 32, 4); in build_srat_memory()
1933 build_append_int_noprefix(table_data, len, 4); /* Length Low */ in build_srat_memory()
1934 build_append_int_noprefix(table_data, len >> 32, 4); /* Length High */ in build_srat_memory()
1935 build_append_int_noprefix(table_data, 0, 4); /* Reserved */ in build_srat_memory()
1936 build_append_int_noprefix(table_data, flags, 4); /* Flags */ in build_srat_memory()
1937 build_append_int_noprefix(table_data, 0, 8); /* Reserved */ in build_srat_memory()
1944 static void build_append_srat_pci_device_handle(GArray *table_data, in build_append_srat_pci_device_handle() argument
1949 build_append_int_noprefix(table_data, segment, 2); in build_append_srat_pci_device_handle()
1951 build_append_int_noprefix(table_data, bus, 1); in build_append_srat_pci_device_handle()
1952 build_append_int_noprefix(table_data, devfn, 1); in build_append_srat_pci_device_handle()
1954 build_append_int_noprefix(table_data, 0, 12); in build_append_srat_pci_device_handle()
1957 static void build_append_srat_acpi_device_handle(GArray *table_data, in build_append_srat_acpi_device_handle() argument
1964 build_append_int_noprefix(table_data, hid[i], 1); in build_append_srat_acpi_device_handle()
1966 build_append_int_noprefix(table_data, uid, 4); in build_append_srat_acpi_device_handle()
1967 build_append_int_noprefix(table_data, 0, 4); in build_append_srat_acpi_device_handle()
1975 void build_srat_pci_generic_initiator(GArray *table_data, uint32_t node, in build_srat_pci_generic_initiator() argument
1980 build_append_int_noprefix(table_data, 5, 1); in build_srat_pci_generic_initiator()
1982 build_append_int_noprefix(table_data, 32, 1); in build_srat_pci_generic_initiator()
1984 build_append_int_noprefix(table_data, 0, 1); in build_srat_pci_generic_initiator()
1986 build_append_int_noprefix(table_data, 1, 1); in build_srat_pci_generic_initiator()
1988 build_append_int_noprefix(table_data, node, 4); in build_srat_pci_generic_initiator()
1990 build_append_srat_pci_device_handle(table_data, segment, bus, devfn); in build_srat_pci_generic_initiator()
1992 build_append_int_noprefix(table_data, 1, 4); in build_srat_pci_generic_initiator()
1994 build_append_int_noprefix(table_data, 0, 4); in build_srat_pci_generic_initiator()
2002 void build_srat_acpi_generic_port(GArray *table_data, uint32_t node, in build_srat_acpi_generic_port() argument
2006 build_append_int_noprefix(table_data, 6, 1); in build_srat_acpi_generic_port()
2008 build_append_int_noprefix(table_data, 32, 1); in build_srat_acpi_generic_port()
2010 build_append_int_noprefix(table_data, 0, 1); in build_srat_acpi_generic_port()
2012 build_append_int_noprefix(table_data, 0, 1); in build_srat_acpi_generic_port()
2014 build_append_int_noprefix(table_data, node, 4); in build_srat_acpi_generic_port()
2016 build_append_srat_acpi_device_handle(table_data, hid, uid); in build_srat_acpi_generic_port()
2018 build_append_int_noprefix(table_data, 1, 4); in build_srat_acpi_generic_port()
2020 build_append_int_noprefix(table_data, 0, 4); in build_srat_acpi_generic_port()
2027 void build_slit(GArray *table_data, BIOSLinker *linker, MachineState *ms, in build_slit() argument
2035 acpi_table_begin(&table, table_data); in build_slit()
2037 build_append_int_noprefix(table_data, nb_numa_nodes, 8); in build_slit()
2041 build_append_int_noprefix(table_data, in build_slit()
2079 void build_spcr(GArray *table_data, BIOSLinker *linker, in build_spcr() argument
2086 acpi_table_begin(&table, table_data); in build_spcr()
2088 build_append_int_noprefix(table_data, f->interface_type, 1); in build_spcr()
2090 build_append_int_noprefix(table_data, 0, 3); in build_spcr()
2092 build_append_gas(table_data, f->base_addr.id, f->base_addr.width, in build_spcr()
2096 build_append_int_noprefix(table_data, f->interrupt_type, 1); in build_spcr()
2098 build_append_int_noprefix(table_data, f->pc_interrupt, 1); in build_spcr()
2100 build_append_int_noprefix(table_data, f->interrupt, 4); in build_spcr()
2102 build_append_int_noprefix(table_data, f->baud_rate, 1); in build_spcr()
2104 build_append_int_noprefix(table_data, f->parity, 1); in build_spcr()
2106 build_append_int_noprefix(table_data, f->stop_bits, 1); in build_spcr()
2108 build_append_int_noprefix(table_data, f->flow_control, 1); in build_spcr()
2110 build_append_int_noprefix(table_data, f->language, 1); in build_spcr()
2112 build_append_int_noprefix(table_data, f->terminal_type, 1); in build_spcr()
2114 build_append_int_noprefix(table_data, f->pci_device_id, 2); in build_spcr()
2116 build_append_int_noprefix(table_data, f->pci_vendor_id, 2); in build_spcr()
2118 build_append_int_noprefix(table_data, f->pci_bus, 1); in build_spcr()
2120 build_append_int_noprefix(table_data, f->pci_device, 1); in build_spcr()
2122 build_append_int_noprefix(table_data, f->pci_function, 1); in build_spcr()
2124 build_append_int_noprefix(table_data, f->pci_flags, 4); in build_spcr()
2126 build_append_int_noprefix(table_data, f->pci_segment, 1); in build_spcr()
2128 build_append_int_noprefix(table_data, 0, 4); in build_spcr()
2136 void build_pptt(GArray *table_data, BIOSLinker *linker, MachineState *ms, in build_pptt() argument
2143 uint32_t pptt_start = table_data->len; in build_pptt()
2148 acpi_table_begin(&table, table_data); in build_pptt()
2162 socket_offset = table_data->len - pptt_start; in build_pptt()
2163 build_processor_hierarchy_node(table_data, in build_pptt()
2173 cluster_offset = table_data->len - pptt_start; in build_pptt()
2174 build_processor_hierarchy_node(table_data, in build_pptt()
2183 build_processor_hierarchy_node(table_data, in build_pptt()
2191 core_offset = table_data->len - pptt_start; in build_pptt()
2192 build_processor_hierarchy_node(table_data, in build_pptt()
2197 build_processor_hierarchy_node(table_data, in build_pptt()
2351 void build_tpm2(GArray *table_data, BIOSLinker *linker, GArray *tcpalog, in build_tpm2() argument
2362 acpi_table_begin(&table, table_data); in build_tpm2()
2365 build_append_int_noprefix(table_data, TPM2_ACPI_CLASS_CLIENT, 2); in build_tpm2()
2367 build_append_int_noprefix(table_data, 0, 2); in build_tpm2()
2378 build_append_int_noprefix(table_data, control_area_start_address, 8); in build_tpm2()
2380 build_append_int_noprefix(table_data, start_method, 4); in build_tpm2()
2383 g_array_append_vals(table_data, &start_method_params, in build_tpm2()
2387 build_append_int_noprefix(table_data, TPM_LOG_AREA_MINIMUM_SIZE, 4); in build_tpm2()
2393 log_addr_offset = table_data->len; in build_tpm2()
2396 build_append_int_noprefix(table_data, 0, 8); in build_tpm2()