Lines Matching full:header

61 void acpi_fill_header(struct acpi_table_header *header, char *signature)  in acpi_fill_header()  argument
63 memcpy(header->signature, signature, 4); in acpi_fill_header()
64 memcpy(header->oem_id, OEM_ID, 6); in acpi_fill_header()
65 memcpy(header->oem_table_id, OEM_TABLE_ID, 8); in acpi_fill_header()
66 header->oem_revision = U_BOOT_BUILD_DATE; in acpi_fill_header()
67 memcpy(header->aslc_id, ASLC_ID, 4); in acpi_fill_header()
72 struct acpi_table_header *header = &(rsdt->header); in acpi_write_rsdt() local
74 /* Fill out header fields */ in acpi_write_rsdt()
75 acpi_fill_header(header, "RSDT"); in acpi_write_rsdt()
76 header->length = sizeof(struct acpi_rsdt); in acpi_write_rsdt()
77 header->revision = 1; in acpi_write_rsdt()
82 header->checksum = table_compute_checksum((void *)rsdt, in acpi_write_rsdt()
88 struct acpi_table_header *header = &(xsdt->header); in acpi_write_xsdt() local
90 /* Fill out header fields */ in acpi_write_xsdt()
91 acpi_fill_header(header, "XSDT"); in acpi_write_xsdt()
92 header->length = sizeof(struct acpi_xsdt); in acpi_write_xsdt()
93 header->revision = 1; in acpi_write_xsdt()
98 header->checksum = table_compute_checksum((void *)xsdt, in acpi_write_xsdt()
135 rsdt->header.length = sizeof(struct acpi_table_header) + in acpi_add_table()
139 rsdt->header.checksum = 0; in acpi_add_table()
140 rsdt->header.checksum = table_compute_checksum((u8 *)rsdt, in acpi_add_table()
141 rsdt->header.length); in acpi_add_table()
152 xsdt->header.length = sizeof(struct acpi_table_header) + in acpi_add_table()
156 xsdt->header.checksum = 0; in acpi_add_table()
157 xsdt->header.checksum = table_compute_checksum((u8 *)xsdt, in acpi_add_table()
158 xsdt->header.length); in acpi_add_table()
275 struct acpi_table_header *header = &(madt->header); in acpi_create_madt() local
280 /* Fill out header fields */ in acpi_create_madt()
281 acpi_fill_header(header, "APIC"); in acpi_create_madt()
282 header->length = sizeof(struct acpi_madt); in acpi_create_madt()
283 header->revision = 4; in acpi_create_madt()
291 header->length = current - (u32)madt; in acpi_create_madt()
293 header->checksum = table_compute_checksum((void *)madt, header->length); in acpi_create_madt()
321 struct acpi_table_header *header = &(mcfg->header); in acpi_create_mcfg() local
326 /* Fill out header fields */ in acpi_create_mcfg()
327 acpi_fill_header(header, "MCFG"); in acpi_create_mcfg()
328 header->length = sizeof(struct acpi_mcfg); in acpi_create_mcfg()
329 header->revision = 1; in acpi_create_mcfg()
334 header->length = current - (u32)mcfg; in acpi_create_mcfg()
335 header->checksum = table_compute_checksum((void *)mcfg, header->length); in acpi_create_mcfg()
451 current += madt->header.length; in write_acpi_tables()
458 current += mcfg->header.length; in write_acpi_tables()
519 end = (char *)rsdt + rsdt->header.length; in acpi_find_fadt()