Lines Matching full:table

4  * Module Name: tbdata - Table manager data structure functions
30 * PARAMETERS: table_desc - Table 1 descriptor to be compared
31 * table_index - Index of table 2 to be compared
35 * DESCRIPTION: This function compares a table with another table that has
36 * already been installed in the root table list.
45 struct acpi_table_header *table; in acpi_tb_compare_tables() local
51 &table, &table_length, &table_flags); in acpi_tb_compare_tables()
57 * Check for a table match on the entire table length, in acpi_tb_compare_tables()
61 memcmp(table_desc->pointer, table, table_length)) ? in acpi_tb_compare_tables()
64 /* Release the acquired table */ in acpi_tb_compare_tables()
66 acpi_tb_release_table(table, table_length, table_flags); in acpi_tb_compare_tables()
74 * PARAMETERS: table_desc - Table descriptor
75 * address - Physical address of the table
76 * flags - Allocation flags of the table
77 * table - Pointer to the table
81 * DESCRIPTION: Initialize a new table descriptor
88 u8 flags, struct acpi_table_header *table) in acpi_tb_init_table_descriptor() argument
92 * Initialize the table descriptor. Set the pointer to NULL for external in acpi_tb_init_table_descriptor()
93 * tables, since the table is not fully mapped at this time. in acpi_tb_init_table_descriptor()
97 table_desc->length = table->length; in acpi_tb_init_table_descriptor()
99 ACPI_MOVE_32_TO_32(table_desc->signature.ascii, table->signature); in acpi_tb_init_table_descriptor()
105 table_desc->pointer = table; in acpi_tb_init_table_descriptor()
119 * PARAMETERS: table_desc - Table descriptor
120 * table_ptr - Where table is returned
121 * table_length - Where table length is returned
122 * table_flags - Where table allocation flags are returned
126 * DESCRIPTION: Acquire an ACPI table. It can be used for tables not
136 struct acpi_table_header *table = NULL; in acpi_tb_acquire_table() local
141 table = in acpi_tb_acquire_table()
148 table = table_desc->pointer; in acpi_tb_acquire_table()
156 /* Table is not valid yet */ in acpi_tb_acquire_table()
158 if (!table) { in acpi_tb_acquire_table()
164 *table_ptr = table; in acpi_tb_acquire_table()
174 * PARAMETERS: table - Pointer for the table
175 * table_length - Length for the table
176 * table_flags - Allocation flags for the table
180 * DESCRIPTION: Release a table. The inverse of acpi_tb_acquire_table().
185 acpi_tb_release_table(struct acpi_table_header *table, in acpi_tb_release_table() argument
192 acpi_os_unmap_memory(table, table_length); in acpi_tb_release_table()
207 * PARAMETERS: table_desc - Table descriptor to be acquired
208 * address - Address of the table
209 * flags - Allocation flags of the table
210 * table - Pointer to the table (required for virtual
215 * DESCRIPTION: This function validates the table header to obtain the length
216 * of a table and fills the table descriptor to make its state as
217 * "INSTALLED". Such a table descriptor is only used for verified
225 u8 flags, struct acpi_table_header *table) in acpi_tb_acquire_temp_table() argument
232 /* Get the length of the full table from the header */ in acpi_tb_acquire_temp_table()
234 if (!table) { in acpi_tb_acquire_temp_table()
235 table = in acpi_tb_acquire_temp_table()
239 if (!table) { in acpi_tb_acquire_temp_table()
251 if (!table) { in acpi_tb_acquire_temp_table()
259 /* Table is not valid yet */ in acpi_tb_acquire_temp_table()
264 acpi_tb_init_table_descriptor(table_desc, address, flags, table); in acpi_tb_acquire_temp_table()
266 acpi_os_unmap_memory(table, sizeof(struct acpi_table_header)); in acpi_tb_acquire_temp_table()
276 * PARAMETERS: table_desc - Table descriptor to be released
299 * PARAMETERS: table_desc - Table descriptor
303 * DESCRIPTION: This function is called to validate the table, the returned
304 * table descriptor is in "VALIDATED" state.
314 /* Validate the table if necessary */ in acpi_tb_validate_table()
332 * PARAMETERS: table_desc - Table descriptor
336 * DESCRIPTION: Invalidate one internal ACPI table, this is the inverse of
346 /* Table must be validated */ in acpi_tb_invalidate_table()
375 * PARAMETERS: table_desc - Table descriptor
379 * DESCRIPTION: This function is called to validate the table, the returned
380 * table descriptor is in "VALIDATED" state.
389 * Only validates the header of the table. in acpi_tb_validate_temp_table()
395 * table length obtaining from the table header. in acpi_tb_validate_temp_table()
407 * PARAMETERS: table_desc - Table descriptor
408 * table_index - Where the table index is returned
412 * DESCRIPTION: Avoid installing duplicated tables. However table override and
413 * user aided dynamic table load is allowed, thus comparing the
414 * address of the table is not sufficient, and checking the entire
415 * table content is required.
426 /* Check if table is already registered */ in acpi_tb_check_duplication()
439 * Check for a table match on the entire table length, in acpi_tb_check_duplication()
447 * Note: the current mechanism does not unregister a table if it is in acpi_tb_check_duplication()
449 * but the table remains in the root table list. in acpi_tb_check_duplication()
453 * in just keeping the table in case it is needed again. in acpi_tb_check_duplication()
456 * machines with many table load/unload operations), tables will in acpi_tb_check_duplication()
458 * root table list should be reused when empty. in acpi_tb_check_duplication()
463 /* Table is still loaded, this is an error */ in acpi_tb_check_duplication()
481 * PARAMETERS: table_desc - Table descriptor
482 * signature - Table signature to verify
483 * table_index - Where the table index is returned
487 * DESCRIPTION: This function is called to validate and verify the table, the
488 * returned table descriptor is in "VALIDATED" state.
502 /* Validate the table */ in acpi_tb_verify_temp_table()
514 "Invalid signature 0x%X for ACPI table, expected [%s]", in acpi_tb_verify_temp_table()
530 " Attempted table install failed", in acpi_tb_verify_temp_table()
550 " Table is already loaded", in acpi_tb_verify_temp_table()
582 * DESCRIPTION: Expand the size of global table array
599 "Resize of Root Table Array is not allowed")); in acpi_tb_resize_root_table_list()
603 /* Increase the Table Array size */ in acpi_tb_resize_root_table_list()
616 "Could not allocate new root table array")); in acpi_tb_resize_root_table_list()
620 /* Copy and free the previous table array */ in acpi_tb_resize_root_table_list()
650 * PARAMETERS: table_index - Where table index is returned
651 * table_desc - Where table descriptor is returned
653 * RETURN: Status and table index/descriptor.
655 * DESCRIPTION: Allocate a new ACPI table entry to the global table list
666 /* Ensure that there is room for the table in the Root Table List */ in acpi_tb_get_next_table_descriptor()
716 * Delete the root table array if allocated locally. Array cannot be in acpi_tb_terminate()
737 * PARAMETERS: table_index - Table index
741 * DESCRIPTION: Delete all namespace objects created when this table was loaded.
759 /* The table index does not exist */ in acpi_tb_delete_namespace_by_owner()
765 /* Get the owner ID for this table, used to delete namespace nodes */ in acpi_tb_delete_namespace_by_owner()
791 * PARAMETERS: table_index - Table index
821 * PARAMETERS: table_index - Table index
851 * PARAMETERS: table_index - Table index
852 * owner_id - Where the table owner_id is returned
856 * DESCRIPTION: returns owner_id for the ACPI table
881 * PARAMETERS: table_index - Index into the root table
883 * RETURN: Table Loaded Flag
906 * PARAMETERS: table_index - Table index
907 * is_loaded - TRUE if table is loaded, FALSE otherwise
911 * DESCRIPTION: Sets the table loaded flag to either TRUE or FALSE.
936 * PARAMETERS: table_index - Table index
937 * parent_node - Where table index is returned
941 * DESCRIPTION: Load an ACPI table
948 struct acpi_table_header *table; in acpi_tb_load_table() local
955 * Note: Now table is "INSTALLED", it must be validated before in acpi_tb_load_table()
958 status = acpi_get_table_by_index(table_index, &table); in acpi_tb_load_table()
971 * that may have been loaded by this table. in acpi_tb_load_table()
978 /* Invoke table handler */ in acpi_tb_load_table()
980 acpi_tb_notify_table(ACPI_TABLE_EVENT_LOAD, table); in acpi_tb_load_table()
988 * PARAMETERS: address - Physical address of the table
989 * flags - Allocation flags of the table
990 * table - Pointer to the table (required for
994 * table_index - Where table index is returned
998 * DESCRIPTION: Install and load an ACPI table
1005 struct acpi_table_header *table, in acpi_tb_install_and_load_table() argument
1013 /* Install the table and load it into the namespace */ in acpi_tb_install_and_load_table()
1015 status = acpi_tb_install_standard_table(address, flags, table, TRUE, in acpi_tb_install_and_load_table()
1034 * PARAMETERS: table_index - Table index in ACPI_EXPORT_SYMBOL()
1038 * DESCRIPTION: Unload an ACPI table in ACPI_EXPORT_SYMBOL()
1045 struct acpi_table_header *table; in ACPI_EXPORT_SYMBOL() local
1049 /* Ensure the table is still loaded */ in ACPI_EXPORT_SYMBOL()
1055 /* Invoke table handler */ in ACPI_EXPORT_SYMBOL()
1057 status = acpi_get_table_by_index(table_index, &table); in ACPI_EXPORT_SYMBOL()
1059 acpi_tb_notify_table(ACPI_TABLE_EVENT_UNLOAD, table); in ACPI_EXPORT_SYMBOL()
1062 /* Delete the portion of the namespace owned by this table */ in ACPI_EXPORT_SYMBOL()
1080 * PARAMETERS: event - Table event in ACPI_EXPORT_SYMBOL()
1081 * table - Validated table pointer in ACPI_EXPORT_SYMBOL()
1085 * DESCRIPTION: Notify a table event to the users. in ACPI_EXPORT_SYMBOL()
1089 void acpi_tb_notify_table(u32 event, void *table) in ACPI_EXPORT_SYMBOL()
1091 /* Invoke table handler if present */ in ACPI_EXPORT_SYMBOL()
1094 (void)acpi_gbl_table_handler(event, table, in ACPI_EXPORT_SYMBOL()