Lines Matching full:table

38 			 char *signature, struct acpi_table_header **table);
42 char *signature, struct acpi_table_header **table);
44 static void osl_unmap_table(struct acpi_table_header *table);
59 struct acpi_table_header **table,
67 struct acpi_table_header **table,
93 /* Table addresses */
144 * PARAMETERS: address - Physical address of the ACPI table
145 * table - Where a pointer to the table is returned
147 * RETURN: Status; Table buffer is returned if AE_OK.
148 * AE_NOT_FOUND: A valid table was not found at the address
150 * DESCRIPTION: Get an ACPI table via a physical memory address.
156 struct acpi_table_header **table) in acpi_os_get_table_by_address() argument
170 /* Map the table and validate it */ in acpi_os_get_table_by_address()
177 /* Copy table to local buffer and return it */ in acpi_os_get_table_by_address()
195 *table = local_table; in acpi_os_get_table_by_address()
203 * PARAMETERS: signature - ACPI Signature for desired table. Must be
205 * instance - Multiple table support for SSDT/UEFI (0...n)
207 * table - Where a pointer to the table is returned
208 * address - Where the table physical address is returned
210 * RETURN: Status; Table buffer and physical address returned if AE_OK.
212 * AE_NOT_FOUND: A table with the signature was not found
221 struct acpi_table_header **table, in acpi_os_get_table_by_name() argument
233 /* Not a main ACPI table, attempt to extract it from the RSDT/XSDT */ in acpi_os_get_table_by_name()
237 /* Attempt to get the table from the memory */ in acpi_os_get_table_by_name()
240 osl_get_bios_table(signature, instance, table, address); in acpi_os_get_table_by_name()
242 /* Attempt to get the table from the static directory */ in acpi_os_get_table_by_name()
245 instance, table, address); in acpi_os_get_table_by_name()
251 /* Attempt to get a dynamic table */ in acpi_os_get_table_by_name()
255 signature, instance, table, in acpi_os_get_table_by_name()
267 * PARAMETERS: signature - Table signature
268 * instance - Table instance
273 * DESCRIPTION: Insert a table structure into OSL table list.
316 "%4.4s: Warning unmatched table instance %d, expected %d\n", in osl_add_table_to_list()
332 * PARAMETERS: index - Which table to get
333 * table - Where a pointer to the table is returned
334 * instance - Where a pointer to the table instance no. is
336 * address - Where the table physical address is returned
338 * RETURN: Status; Table buffer and physical address returned if AE_OK.
341 * DESCRIPTION: Get an ACPI table via an index value (0 through n). Returns
349 struct acpi_table_header **table, in acpi_os_get_table_by_index() argument
369 /* Point to the table list entry specified by the Index argument */ in acpi_os_get_table_by_index()
376 /* Now we can just get the table via the signature */ in acpi_os_get_table_by_index()
379 table, address); in acpi_os_get_table_by_index()
392 * in the EFI table
536 * DESCRIPTION: Initialize ACPI table data. Get and store main ACPI tables to
613 /* Add mandatory tables to global table list first */ in osl_table_initialize()
677 * RETURN: Status; Table list is initialized if AE_OK.
679 * DESCRIPTION: Add ACPI tables to the table list from memory.
681 * NOTE: This works on Linux as table customization does not modify the
715 /* Search RSDT/XSDT for the requested table */ in osl_list_bios_tables()
748 * PARAMETERS: signature - ACPI Signature for common table. Must be
750 * instance - Multiple table support for SSDT/UEFI (0...n)
752 * table - Where a pointer to the table is returned
753 * address - Where the table physical address is returned
755 * RETURN: Status; Table buffer and physical address returned if AE_OK.
757 * AE_NOT_FOUND: A table with the signature was not found
759 * DESCRIPTION: Get a BIOS provided ACPI table
768 struct acpi_table_header **table, in osl_get_bios_table() argument
797 * careful about the FADT length and validate table addresses. in osl_get_bios_table()
863 /* Now we can get the requested special table */ in osl_get_bios_table()
875 /* Match table instance */ in osl_get_bios_table()
883 } else { /* Case for a normal ACPI table */ in osl_get_bios_table()
906 /* Search RSDT/XSDT for the requested table */ in osl_get_bios_table()
932 /* Does this table match the requested signature? */ in osl_get_bios_table()
941 /* Match table instance (for SSDT/UEFI tables) */ in osl_get_bios_table()
965 /* Copy table to local buffer and return it */ in osl_get_bios_table()
975 *table = local_table; in osl_get_bios_table()
988 * RETURN: Status; Table list is initialized if AE_OK.
990 * DESCRIPTION: Add ACPI tables to the table list from a directory.
1013 /* Extract table name and instance number */ in osl_list_customized_tables()
1024 /* Add new info node to global table list */ in osl_list_customized_tables()
1040 * PARAMETERS: address - Address of the table in memory
1041 * signature - Optional ACPI Signature for desired table.
1043 * table - Where a pointer to the mapped table is
1046 * RETURN: Status; Mapped table is returned if AE_OK.
1047 * AE_NOT_FOUND: A valid table was not found at the address
1049 * DESCRIPTION: Map entire ACPI table into caller's address space.
1055 char *signature, struct acpi_table_header **table) in osl_map_table() argument
1065 * Map the header so we can get the table length. in osl_map_table()
1073 fprintf(stderr, "Could not map table header at 0x%8.8X%8.8X\n", in osl_map_table()
1097 /* Map the entire table */ in osl_map_table()
1108 "Could not map table at 0x%8.8X%8.8X length %8.8X\n", in osl_map_table()
1115 *table = mapped_table; in osl_map_table()
1123 * PARAMETERS: table - A pointer to the mapped table
1127 * DESCRIPTION: Unmap entire ACPI table.
1131 static void osl_unmap_table(struct acpi_table_header *table) in osl_unmap_table() argument
1133 if (table) { in osl_unmap_table()
1134 acpi_os_unmap_memory(table, ap_get_table_length(table)); in osl_unmap_table()
1142 * PARAMETERS: filename - File that contains the desired table
1144 * extracted table signature.
1146 * table instance number.
1148 * RETURN: Status; Table name is extracted if AE_OK.
1150 * DESCRIPTION: Extract table signature and instance number from a table file
1185 * PARAMETERS: filename - File that contains the desired table
1186 * file_offset - Offset of the table in file
1187 * signature - Optional ACPI Signature for desired table.
1189 * table - Where a pointer to the table is returned
1191 * RETURN: Status; Table buffer is returned if AE_OK.
1193 * DESCRIPTION: Read a ACPI table from a file.
1200 char *signature, struct acpi_table_header **table) in osl_read_table_from_file() argument
1213 fprintf(stderr, "Could not open table file: %s\n", filename); in osl_read_table_from_file()
1219 /* Read the Table header to get the table length */ in osl_read_table_from_file()
1223 fprintf(stderr, "Could not read table header: %s\n", filename); in osl_read_table_from_file()
1228 /* If signature is specified, it must match the table */ in osl_read_table_from_file()
1254 /* Read the entire table into a local buffer */ in osl_read_table_from_file()
1259 "%4.4s: Could not allocate buffer for table of length %X\n", in osl_read_table_from_file()
1269 fprintf(stderr, "%4.4s: Could not read table content\n", in osl_read_table_from_file()
1281 *table = local_table; in osl_read_table_from_file()
1289 * PARAMETERS: pathname - Directory to find Linux customized table
1290 * signature - ACPI Signature for desired table. Must be
1292 * instance - Multiple table support for SSDT/UEFI (0...n)
1294 * table - Where a pointer to the table is returned
1295 * address - Where the table physical address is returned
1297 * RETURN: Status; Table buffer is returned if AE_OK.
1299 * AE_NOT_FOUND: A table with the signature was not found
1301 * DESCRIPTION: Get an OS customized table.
1309 struct acpi_table_header **table, in osl_get_customized_table() argument
1326 /* Attempt to find the table in the directory */ in osl_get_customized_table()
1336 /* Extract table name and instance number */ in osl_get_customized_table()
1348 /* Create the table pathname */ in osl_get_customized_table()
1369 status = osl_read_table_from_file(table_filename, 0, NULL, table); in osl_get_customized_table()