Home
last modified time | relevance | path

Searched refs:mock_vblock (Results 1 – 2 of 2) sorted by relevance

/external/vboot_reference/tests/
Dvb21_misc_tests.c48 } mock_vblock; variable
63 struct vb2_keyblock *kb = &mock_vblock.k.kb; in reset_common_data()
64 struct vb2_packed_key *dk = &mock_vblock.k.data_key; in reset_common_data()
65 struct vb2_fw_preamble *pre = &mock_vblock.p.pre; in reset_common_data()
100 kb->c.total_size = sizeof(mock_vblock.k); in reset_common_data()
101 kb->key_offset = vb2_offset_of(&mock_vblock.k.kb, in reset_common_data()
102 &mock_vblock.k.data_key); in reset_common_data()
104 dk->c.fixed_size = sizeof(mock_vblock.k.data_key); in reset_common_data()
108 dk->key_size = sizeof(mock_vblock.k.data_key_data); in reset_common_data()
110 strcpy(mock_vblock.k.data_key_data, "data key data!!"); in reset_common_data()
[all …]
Dvb20_misc_tests.c46 } mock_vblock; variable
61 struct vb2_keyblock *kb = &mock_vblock.k.kb; in reset_common_data()
62 struct vb2_fw_preamble *pre = &mock_vblock.p.pre; in reset_common_data()
97 kb->keyblock_size = sizeof(mock_vblock.k); 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()
103 kb->data_key.key_size = sizeof(mock_vblock.k.data_key_data); in reset_common_data()
104 strcpy(mock_vblock.k.data_key_data, "data key data!!"); in reset_common_data()
106 pre->preamble_size = sizeof(mock_vblock.p); in reset_common_data()
134 rptr = (uint8_t *)&mock_vblock; in vb2ex_read_resource()
[all …]