Lines Matching refs:mock_vblock
46 } 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()
135 rsize = sizeof(mock_vblock); in vb2ex_read_resource()
175 struct vb2_keyblock *kb = &mock_vblock.k.kb; in verify_keyblock_tests()
184 TEST_EQ(sd->vblock_preamble_offset, sizeof(mock_vblock.k), in verify_keyblock_tests()
198 TEST_EQ(k->key_size, sizeof(mock_vblock.k.data_key_data), in verify_keyblock_tests()
201 k->key_offset, mock_vblock.k.data_key_data, in verify_keyblock_tests()
202 sizeof(mock_vblock.k.data_key_data)), in verify_keyblock_tests()
247 kb->keyblock_size = sizeof(mock_vblock) + 1; in verify_keyblock_tests()
273 struct vb2_fw_preamble *pre = &mock_vblock.p.pre; in verify_preamble_tests()
311 sd->vblock_preamble_offset = sizeof(mock_vblock); in verify_preamble_tests()
317 cc.workbuf_used = cc.workbuf_size - sizeof(mock_vblock.p) + 8; in verify_preamble_tests()
323 pre->preamble_size = sizeof(mock_vblock); in verify_preamble_tests()