Lines Matching full:table
36 * Check CRC32 of a table.
38 static int check_table(const void *table) in check_table() argument
43 struct efi_table_hdr *hdr = (struct efi_table_hdr *)table; in check_table()
47 * Setting the CRC32 of the 'const' table to zero is easier than in check_table()
51 ret = boottime->calculate_crc32(table, hdr->headersize, &res); in check_table()
52 /* Reset table CRC32 so it stays constant */ in check_table()
69 * @systable: system table
84 * A table is installed, updated, removed. The table entry and the
94 void *table; in execute() local
108 /* Try to delete non-existent table */ in execute()
111 efi_st_error("Failed to detect missing table\n"); in execute()
129 efi_st_error("Incorrect table count %u, expected %u\n", in execute()
135 /* Install table */ in execute()
139 efi_st_error("Failed to install table\n"); in execute()
149 efi_st_error("Incorrect table count %u, expected %u\n", in execute()
154 table = NULL; in execute()
158 table = sys_table->tables[i].table; in execute()
160 if (!table) { in execute()
161 efi_st_error("Installed table not found\n"); in execute()
164 if (table != &tables[0]) { in execute()
165 efi_st_error("Incorrect table address\n"); in execute()
169 efi_st_error("Checking system table\n"); in execute()
173 /* Update table */ in execute()
177 efi_st_error("Failed to update table\n"); in execute()
187 efi_st_error("Incorrect table count %u, expected %u\n", in execute()
192 table = NULL; in execute()
197 table = sys_table->tables[i].table; in execute()
201 if (!table) { in execute()
202 efi_st_error("Installed table not found\n"); in execute()
206 efi_st_error("Duplicate table GUID\n"); in execute()
209 if (table != &tables[1]) { in execute()
210 efi_st_error("Incorrect table address\n"); in execute()
214 efi_st_error("Checking system table\n"); in execute()
218 /* Delete table */ in execute()
221 efi_st_error("Failed to delete table\n"); in execute()
231 efi_st_error("Incorrect table count %u, expected %u\n", in execute()
236 table = NULL; in execute()
240 table = sys_table->tables[i].table; in execute()
243 if (table) { in execute()
244 efi_st_error("Wrong table deleted\n"); in execute()
254 efi_st_error("Checking system table\n"); in execute()