Home
last modified time | relevance | path

Searched refs:vb2_offset_of (Results 1 – 11 of 11) sorted by relevance

/external/vboot_reference/tests/
Dvb2_common_tests.c36 TEST_EQ(vb2_offset_of(p0, ptr), 0, "ptr"); in test_align()
45 TEST_EQ(vb2_offset_of(p0, ptr), 4, "ptr"); in test_align()
75 TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf init aligned"); in test_workbuf()
79 TEST_EQ(vb2_offset_of(p0, wb.buf), VB2_WORKBUF_ALIGN, in test_workbuf()
89 TEST_EQ(vb2_offset_of(p0, ptr), 0, "Workbuf alloc"); in test_workbuf()
90 TEST_EQ(vb2_offset_of(p0, wb.buf), 32, " buf"); in test_workbuf()
100 TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf free buf"); in test_workbuf()
107 TEST_EQ(vb2_offset_of(p0, ptr), 0, "Workbuf realloc"); in test_workbuf()
108 TEST_EQ(vb2_offset_of(p0, wb.buf), 32, " buf"); in test_workbuf()
Dvb20_common_tests.c58 TEST_EQ((int)vb2_offset_of(p, p), 0, "vb2_offset_of() equal"); in test_helper_functions()
59 TEST_EQ((int)vb2_offset_of(p, p+10), 10, in test_helper_functions()
65 TEST_EQ((int)vb2_offset_of(&k, vb2_packed_key_data(&k)), in test_helper_functions()
71 TEST_EQ((int)vb2_offset_of(&k, vb2_packed_key_data(&k)), 123, in test_helper_functions()
77 TEST_EQ((int)vb2_offset_of(&s, vb2_signature_data(&s)), in test_helper_functions()
83 TEST_EQ((int)vb2_offset_of(&s, vb2_signature_data(&s)), 123, in test_helper_functions()
Dvb20_misc_tests.c87 sd->gbb_rootkey_offset = vb2_offset_of(&mock_gbb, &mock_gbb.rootkey); in reset_common_data()
93 vb2_offset_of(&mock_gbb.rootkey, in reset_common_data()
101 vb2_offset_of(&mock_vblock.k, &mock_vblock.k.data_key_data) - in reset_common_data()
102 vb2_offset_of(&mock_vblock.k, &kb->data_key); in reset_common_data()
Dvb21_misc_tests.c90 sd->gbb_rootkey_offset = vb2_offset_of(&mock_gbb, &mock_gbb.rootkey); in reset_common_data()
96 vb2_offset_of(&mock_gbb.rootkey, in reset_common_data()
101 kb->key_offset = vb2_offset_of(&mock_vblock.k.kb, in reset_common_data()
/external/vboot_reference/firmware/lib21/
Dapi.c85 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); in vb2api_init_hash2()
90 sd->hash_tag = vb2_offset_of(ctx->workbuf, sig); in vb2api_init_hash2()
Dmisc.c143 sd->workbuf_data_key_offset = vb2_offset_of(ctx->workbuf, key_data); in vb2_load_fw_keyblock()
231 sd->workbuf_preamble_offset = vb2_offset_of(ctx->workbuf, pre); in vb2_load_fw_preamble()
/external/vboot_reference/firmware/lib20/
Dmisc.c116 sd->workbuf_data_key_offset = vb2_offset_of(ctx->workbuf, key_data); in vb2_load_fw_keyblock()
219 sd->workbuf_preamble_offset = vb2_offset_of(ctx->workbuf, pre); in vb2_load_fw_preamble()
Dapi.c74 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); in vb2api_init_hash()
Dcommon.c25 const ptrdiff_t member_offs = vb2_offset_of(parent, member); in vb2_verify_member_inside()
/external/vboot_reference/firmware/2lib/include/
D2common.h161 ptrdiff_t vb2_offset_of(const void *base, const void *ptr);
/external/vboot_reference/firmware/2lib/
D2common.c113 ptrdiff_t vb2_offset_of(const void *base, const void *ptr) in vb2_offset_of() function