Lines Matching refs:gbb
42 GoogleBinaryBlockHeader *gbb; in ResetMocks() local
59 gbb = (GoogleBinaryBlockHeader *)gbb_data; in ResetMocks()
60 gbb->major_version = GBB_MAJOR_VER; in ResetMocks()
61 gbb->minor_version = GBB_MINOR_VER; in ResetMocks()
62 gbb->flags = 0; in ResetMocks()
65 gbb->hwid_offset = gbb_used; in ResetMocks()
66 strcpy(gbb_data + gbb->hwid_offset, "Test HWID"); in ResetMocks()
67 gbb->hwid_size = strlen(gbb_data + gbb->hwid_offset) + 1; in ResetMocks()
68 gbb_used = (gbb_used + gbb->hwid_size + 7) & ~7; in ResetMocks()
70 gbb->bmpfv_offset = gbb_used; in ResetMocks()
71 bhdr = (BmpBlockHeader *)(gbb_data + gbb->bmpfv_offset); in ResetMocks()
72 gbb->bmpfv_size = sizeof(BmpBlockHeader); in ResetMocks()
73 gbb_used = (gbb_used + gbb->bmpfv_size + 7) & ~7; in ResetMocks()
83 layout->images[0].image_info_offset = gbb_used - gbb->bmpfv_offset; in ResetMocks()
96 layout->images[1].image_info_offset = gbb_used - gbb->bmpfv_offset; in ResetMocks()
120 GoogleBinaryBlockHeader *gbb) { in SetTPMBootModeState() argument
176 TEST_PTR_NEQ(cparams->gbb, NULL, " GBB allocated"); in LoadFirmware()
189 TEST_PTR_EQ(cparams.gbb, NULL, " GBB free"); in VbRegionReadTest()
194 TEST_PTR_EQ(cparams.gbb, NULL, " GBB free"); in VbRegionReadTest()