Lines Matching defs:table

38 			 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,
144 * PARAMETERS: address - Physical address of the ACPI table
145 * table - Where a pointer to the table is returned
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)
170 /* Map the table and validate it */
177 /* Copy table to local buffer and return it */
195 *table = local_table;
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
212 * AE_NOT_FOUND: A table with the signature was not found
221 struct acpi_table_header **table,
233 /* Not a main ACPI table, attempt to extract it from the RSDT/XSDT */
237 /* Attempt to get the table from the memory */
240 osl_get_bios_table(signature, instance, table, address);
242 /* Attempt to get the table from the static directory */
245 instance, table, address);
251 /* Attempt to get a dynamic table */
255 signature, instance, table,
273 * DESCRIPTION: Insert a table structure into OSL table list.
316 "%4.4s: Warning unmatched table instance %d, expected %d\n",
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
341 * DESCRIPTION: Get an ACPI table via an index value (0 through n). Returns
349 struct acpi_table_header **table,
369 /* Point to the table list entry specified by the Index argument */
376 /* Now we can just get the table via the signature */
379 table, address);
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 */
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 */
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
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,
797 * careful about the FADT length and validate table addresses.
863 /* Now we can get the requested special table */
875 /* Match table instance */
883 } else { /* Case for a normal ACPI table */
906 /* Search RSDT/XSDT for the requested table */
932 /* Does this table match the requested signature? */
941 /* Match table instance (for SSDT/UEFI tables) */
965 /* Copy table to local buffer and return it */
975 *table = local_table;
990 * DESCRIPTION: Add ACPI tables to the table list from a directory.
1013 /* Extract table name and instance number */
1024 /* Add new info node to global table list */
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)
1065 * Map the header so we can get the table length.
1073 fprintf(stderr, "Could not map table header at 0x%8.8X%8.8X\n",
1097 /* Map the entire table */
1108 "Could not map table at 0x%8.8X%8.8X length %8.8X\n",
1115 *table = mapped_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)
1133 if (table) {
1134 acpi_os_unmap_memory(table, ap_get_table_length(table));
1142 * PARAMETERS: filename - File that contains the desired table
1144 * extracted table signature.
1146 * table instance number.
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 * table - Where a pointer to the table is returned
1191 * DESCRIPTION: Read a ACPI table from a file.
1198 struct acpi_table_header **table)
1211 fprintf(stderr, "Could not open table file: %s\n", filename);
1217 /* Read the Table header to get the table length */
1221 fprintf(stderr, "Could not read table header: %s\n", filename);
1228 /* If signature is specified, it must match the table */
1255 /* Read the entire table into a local buffer */
1260 "%4.4s: Could not allocate buffer for table of length %X\n",
1270 fprintf(stderr, "%4.4s: Could not read table content\n",
1282 *table = local_table;
1290 * PARAMETERS: pathname - Directory to find Linux customized table
1291 * signature - ACPI Signature for desired table. Must be
1293 * instance - Multiple table support for SSDT/UEFI (0...n)
1295 * table - Where a pointer to the table is returned
1296 * address - Where the table physical address is returned
1300 * AE_NOT_FOUND: A table with the signature was not found
1302 * DESCRIPTION: Get an OS customized table.
1310 struct acpi_table_header **table,
1327 /* Attempt to find the table in the directory */
1337 /* Extract table name and instance number */
1349 /* Create the table pathname */
1370 status = osl_read_table_from_file(table_filename, 0, table);