Lines Matching +full:unit +full:- +full:addresses
1 // SPDX-License-Identifier: GPL-2.0+
7 * This unit test checks the CalculateCrc32 bootservice and checks the
25 if (!hdr->signature) { in check_table()
29 if (!hdr->revision) { in check_table()
33 if (hdr->headersize <= sizeof(struct efi_table_hdr)) { in check_table()
37 if (hdr->reserved) { in check_table()
42 crc32 = hdr->crc32; in check_table()
47 hdr->crc32 = 0; in check_table()
48 ret = bs_crc32(table, hdr->headersize, &res); in check_table()
50 hdr->crc32 = crc32; in check_table()
63 * Setup unit test.
79 bs_crc32 = systable->boottime->calculate_crc32; in setup()
82 ret = bs_crc32("U-Boot", 6, &res); in setup()
97 if (check_table(st->boottime) != EFI_ST_SUCCESS) { in setup()
101 if (check_table(st->runtime) != EFI_ST_SUCCESS) { in setup()
110 * Execute unit test
122 if (check_table(st->runtime) != EFI_ST_SUCCESS) { in execute()
129 * table afterwards because this would invalidate the addresses of the in execute()
130 * unit tests. in execute()