Lines Matching refs:mock_vblock
48 } 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()
112 pre->c.total_size = sizeof(mock_vblock.p); in reset_common_data()
140 rptr = (uint8_t *)&mock_vblock; in vb2ex_read_resource()
141 rsize = sizeof(mock_vblock); in vb2ex_read_resource()
181 struct vb2_keyblock *kb = &mock_vblock.k.kb; in load_keyblock_tests()
182 struct vb2_packed_key *dk = &mock_vblock.k.data_key; in load_keyblock_tests()
191 TEST_EQ(sd->vblock_preamble_offset, sizeof(mock_vblock.k), in load_keyblock_tests()
206 TEST_EQ(k->key_size, sizeof(mock_vblock.k.data_key_data), in load_keyblock_tests()
209 k->key_offset, mock_vblock.k.data_key_data, in load_keyblock_tests()
210 sizeof(mock_vblock.k.data_key_data)), in load_keyblock_tests()
255 kb->c.total_size = sizeof(mock_vblock) + 1; in load_keyblock_tests()
281 struct vb2_fw_preamble *pre = &mock_vblock.p.pre; in load_preamble_tests()
320 sd->vblock_preamble_offset = sizeof(mock_vblock); in load_preamble_tests()
326 ctx.workbuf_used = ctx.workbuf_size - sizeof(mock_vblock.p) + 8; in load_preamble_tests()
332 pre->c.total_size = sizeof(mock_vblock); in load_preamble_tests()