Lines Matching refs:table

15 ap_dump_table_buffer(struct acpi_table_header *table,
30 u8 ap_is_valid_header(struct acpi_table_header *table) in ap_is_valid_header() argument
33 if (!ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_header()
37 if (!acpi_ut_valid_nameseg(table->signature)) { in ap_is_valid_header()
40 *(u32 *)table->signature); in ap_is_valid_header()
46 if (table->length < sizeof(struct acpi_table_header)) { in ap_is_valid_header()
48 table->length); in ap_is_valid_header()
68 u8 ap_is_valid_checksum(struct acpi_table_header *table) in ap_is_valid_checksum() argument
73 if (ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_checksum()
78 rsdp = ACPI_CAST_PTR(struct acpi_table_rsdp, table); in ap_is_valid_checksum()
83 status = acpi_ut_verify_checksum(table, table->length); in ap_is_valid_checksum()
88 table->signature); in ap_is_valid_checksum()
106 u32 ap_get_table_length(struct acpi_table_header *table) in ap_get_table_length() argument
112 if (!ap_is_valid_header(table)) { in ap_get_table_length()
116 if (ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_get_table_length()
117 rsdp = ACPI_CAST_PTR(struct acpi_table_rsdp, table); in ap_get_table_length()
123 return (table->length); in ap_get_table_length()
142 ap_dump_table_buffer(struct acpi_table_header *table, in ap_dump_table_buffer() argument
147 table_length = ap_get_table_length(table); in ap_dump_table_buffer()
152 acpi_tb_print_table_header(address, table); in ap_dump_table_buffer()
159 return (ap_write_to_binary_file(table, instance)); in ap_dump_table_buffer()
168 table->signature, ACPI_FORMAT_UINT64(address)); in ap_dump_table_buffer()
171 ACPI_CAST_PTR(u8, table), table_length, in ap_dump_table_buffer()
192 struct acpi_table_header *table; in ap_dump_all_tables() local
203 acpi_os_get_table_by_index(i, &table, &instance, &address); in ap_dump_all_tables()
223 table_status = ap_dump_table_buffer(table, instance, address); in ap_dump_all_tables()
224 ACPI_FREE(table); in ap_dump_all_tables()
251 struct acpi_table_header *table; in ap_dump_table_by_address() local
266 status = acpi_os_get_table_by_address(address, &table); in ap_dump_table_by_address()
274 table_status = ap_dump_table_buffer(table, 0, address); in ap_dump_table_by_address()
275 ACPI_FREE(table); in ap_dump_table_by_address()
296 struct acpi_table_header *table; in ap_dump_table_by_name() local
325 &table, &address); in ap_dump_table_by_name()
340 table_status = ap_dump_table_buffer(table, instance, address); in ap_dump_table_by_name()
341 ACPI_FREE(table); in ap_dump_table_by_name()
367 struct acpi_table_header *table; in ap_dump_table_from_file() local
373 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file()
374 if (!table) { in ap_dump_table_from_file()
378 if (!acpi_ut_valid_nameseg(table->signature)) { in ap_dump_table_from_file()
386 if (table->length > file_size) { in ap_dump_table_from_file()
389 table->length, file_size, pathname); in ap_dump_table_from_file()
396 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
399 table_status = ap_dump_table_buffer(table, 0, 0); in ap_dump_table_from_file()
402 ACPI_FREE(table); in ap_dump_table_from_file()