Lines Matching refs:sd
25 static struct vb2_shared_data *sd; variable
74 sd = vb2_get_sd(&ctx); in reset_common_data()
87 sd->fw_version_secdata = 0x20002; in reset_common_data()
88 vb2_secdata_set(&ctx, VB2_SECDATA_VERSIONS, sd->fw_version_secdata); in reset_common_data()
90 sd->gbb_rootkey_offset = vb2_offset_of(&mock_gbb, &mock_gbb.rootkey); in reset_common_data()
91 sd->gbb_rootkey_size = sizeof(mock_gbb.rootkey_data); in reset_common_data()
92 sd->last_fw_result = VB2_FW_RESULT_SUCCESS; in reset_common_data()
190 TEST_EQ(sd->fw_version, 0x20000, "keyblock version"); in load_keyblock_tests()
191 TEST_EQ(sd->vblock_preamble_offset, sizeof(mock_vblock.k), in load_keyblock_tests()
193 TEST_EQ(sd->workbuf_data_key_offset, in load_keyblock_tests()
198 sd->workbuf_data_key_offset + sd->workbuf_data_key_size, in load_keyblock_tests()
203 sd->workbuf_data_key_offset); in load_keyblock_tests()
208 TEST_EQ(memcmp(ctx.workbuf + sd->workbuf_data_key_offset + in load_keyblock_tests()
213 sd->workbuf_data_key_offset + sd->workbuf_data_key_size, in load_keyblock_tests()
218 ctx.workbuf_used = ctx.workbuf_size - sd->gbb_rootkey_size + 8; in load_keyblock_tests()
224 sd->gbb_rootkey_size = sizeof(mock_gbb); in load_keyblock_tests()
236 ctx.workbuf_used = ctx.workbuf_size - sd->gbb_rootkey_size - 8; in load_keyblock_tests()
248 ctx.workbuf_used = ctx.workbuf_size - sd->gbb_rootkey_size in load_keyblock_tests()
287 data_key_offset_before = sd->workbuf_data_key_offset; in load_preamble_tests()
289 TEST_EQ(sd->fw_version, 0x20002, "combined version"); in load_preamble_tests()
290 TEST_EQ(sd->workbuf_preamble_offset, data_key_offset_before, in load_preamble_tests()
292 TEST_EQ(sd->workbuf_preamble_size, pre->c.total_size, "preamble size"); in load_preamble_tests()
294 sd->workbuf_preamble_offset + sd->workbuf_preamble_size, in load_preamble_tests()
296 TEST_EQ(sd->workbuf_data_key_offset, 0, "data key offset gone"); in load_preamble_tests()
297 TEST_EQ(sd->workbuf_data_key_size, 0, "data key size gone"); in load_preamble_tests()
301 sd->workbuf_data_key_size = 0; in load_preamble_tests()
320 sd->vblock_preamble_offset = sizeof(mock_vblock); in load_preamble_tests()
365 sd->last_fw_result = VB2_FW_RESULT_UNKNOWN; in load_preamble_tests()
374 sd->last_fw_slot = 1; in load_preamble_tests()