Lines Matching refs:table_desc

21 acpi_tb_check_duplication(struct acpi_table_desc *table_desc, u32 *table_index);
24 acpi_tb_compare_tables(struct acpi_table_desc *table_desc, u32 table_index);
41 acpi_tb_compare_tables(struct acpi_table_desc *table_desc, u32 table_index) in acpi_tb_compare_tables() argument
60 is_identical = (u8)((table_desc->length != table_length || in acpi_tb_compare_tables()
61 memcmp(table_desc->pointer, table, table_length)) ? in acpi_tb_compare_tables()
86 acpi_tb_init_table_descriptor(struct acpi_table_desc *table_desc, in acpi_tb_init_table_descriptor() argument
95 memset(table_desc, 0, sizeof(struct acpi_table_desc)); in acpi_tb_init_table_descriptor()
96 table_desc->address = address; in acpi_tb_init_table_descriptor()
97 table_desc->length = table->length; in acpi_tb_init_table_descriptor()
98 table_desc->flags = flags; in acpi_tb_init_table_descriptor()
99 ACPI_MOVE_32_TO_32(table_desc->signature.ascii, table->signature); in acpi_tb_init_table_descriptor()
101 switch (table_desc->flags & ACPI_TABLE_ORIGIN_MASK) { in acpi_tb_init_table_descriptor()
105 table_desc->pointer = table; in acpi_tb_init_table_descriptor()
132 acpi_tb_acquire_table(struct acpi_table_desc *table_desc, in acpi_tb_acquire_table() argument
138 switch (table_desc->flags & ACPI_TABLE_ORIGIN_MASK) { in acpi_tb_acquire_table()
142 acpi_os_map_memory(table_desc->address, table_desc->length); in acpi_tb_acquire_table()
148 table = table_desc->pointer; in acpi_tb_acquire_table()
165 *table_length = table_desc->length; in acpi_tb_acquire_table()
166 *table_flags = table_desc->flags; in acpi_tb_acquire_table()
223 acpi_tb_acquire_temp_table(struct acpi_table_desc *table_desc, in acpi_tb_acquire_temp_table() argument
264 acpi_tb_init_table_descriptor(table_desc, address, flags, table); in acpi_tb_acquire_temp_table()
284 void acpi_tb_release_temp_table(struct acpi_table_desc *table_desc) in acpi_tb_release_temp_table() argument
292 acpi_tb_invalidate_table(table_desc); in acpi_tb_release_temp_table()
308 acpi_status acpi_tb_validate_table(struct acpi_table_desc *table_desc) in acpi_tb_validate_table() argument
316 if (!table_desc->pointer) { in acpi_tb_validate_table()
317 status = acpi_tb_acquire_table(table_desc, &table_desc->pointer, in acpi_tb_validate_table()
318 &table_desc->length, in acpi_tb_validate_table()
319 &table_desc->flags); in acpi_tb_validate_table()
320 if (!table_desc->pointer) { in acpi_tb_validate_table()
341 void acpi_tb_invalidate_table(struct acpi_table_desc *table_desc) in acpi_tb_invalidate_table() argument
348 if (!table_desc->pointer) { in acpi_tb_invalidate_table()
352 acpi_tb_release_table(table_desc->pointer, table_desc->length, in acpi_tb_invalidate_table()
353 table_desc->flags); in acpi_tb_invalidate_table()
355 switch (table_desc->flags & ACPI_TABLE_ORIGIN_MASK) { in acpi_tb_invalidate_table()
358 table_desc->pointer = NULL; in acpi_tb_invalidate_table()
384 acpi_status acpi_tb_validate_temp_table(struct acpi_table_desc *table_desc) in acpi_tb_validate_temp_table() argument
387 if (!table_desc->pointer && !acpi_gbl_enable_table_validation) { in acpi_tb_validate_temp_table()
397 table_desc->length = sizeof(struct acpi_table_header); in acpi_tb_validate_temp_table()
400 return (acpi_tb_validate_table(table_desc)); in acpi_tb_validate_temp_table()
420 acpi_tb_check_duplication(struct acpi_table_desc *table_desc, u32 *table_index) in acpi_tb_check_duplication() argument
442 if (!acpi_tb_compare_tables(table_desc, i)) { in acpi_tb_check_duplication()
495 acpi_tb_verify_temp_table(struct acpi_table_desc *table_desc, in acpi_tb_verify_temp_table() argument
504 status = acpi_tb_validate_temp_table(table_desc); in acpi_tb_verify_temp_table()
512 !ACPI_COMPARE_NAMESEG(&table_desc->signature, signature)) { in acpi_tb_verify_temp_table()
515 table_desc->signature.integer, signature)); in acpi_tb_verify_temp_table()
525 acpi_ut_verify_checksum(table_desc->pointer, in acpi_tb_verify_temp_table()
526 table_desc->length); in acpi_tb_verify_temp_table()
531 acpi_ut_valid_nameseg(table_desc-> in acpi_tb_verify_temp_table()
534 table_desc->signature.ascii : "????", in acpi_tb_verify_temp_table()
535 ACPI_FORMAT_UINT64(table_desc-> in acpi_tb_verify_temp_table()
545 acpi_tb_check_duplication(table_desc, table_index); in acpi_tb_verify_temp_table()
552 (table_desc->signature. in acpi_tb_verify_temp_table()
553 ascii) ? table_desc-> in acpi_tb_verify_temp_table()
557 (table_desc->address))); in acpi_tb_verify_temp_table()
564 table_desc->flags |= ACPI_TABLE_IS_VERIFIED; in acpi_tb_verify_temp_table()
570 acpi_tb_invalidate_table(table_desc); in acpi_tb_verify_temp_table()
661 struct acpi_table_desc **table_desc) in acpi_tb_get_next_table_descriptor() argument
682 if (table_desc) { in acpi_tb_get_next_table_descriptor()
683 *table_desc = &acpi_gbl_root_table_list.tables[i]; in acpi_tb_get_next_table_descriptor()