Lines Matching refs:sd

23 static struct vb2_shared_data *sd;  variable
71 sd = vb2_get_sd(&cc); in reset_common_data()
84 sd->fw_version_secdata = 0x20002; in reset_common_data()
85 vb2_secdata_set(&cc, VB2_SECDATA_VERSIONS, sd->fw_version_secdata); in reset_common_data()
87 sd->gbb_rootkey_offset = vb2_offset_of(&mock_gbb, &mock_gbb.rootkey); in reset_common_data()
88 sd->gbb_rootkey_size = sizeof(mock_gbb.rootkey_data); in reset_common_data()
89 sd->last_fw_result = VB2_FW_RESULT_SUCCESS; in reset_common_data()
183 TEST_EQ(sd->fw_version, 0x20000, "keyblock version"); in verify_keyblock_tests()
184 TEST_EQ(sd->vblock_preamble_offset, sizeof(mock_vblock.k), in verify_keyblock_tests()
186 TEST_EQ(sd->workbuf_data_key_offset, in verify_keyblock_tests()
191 sd->workbuf_data_key_offset + sd->workbuf_data_key_size, in verify_keyblock_tests()
195 k = (struct vb2_packed_key *)(cc.workbuf + sd->workbuf_data_key_offset); in verify_keyblock_tests()
200 TEST_EQ(memcmp(cc.workbuf + sd->workbuf_data_key_offset + in verify_keyblock_tests()
205 sd->workbuf_data_key_offset + sd->workbuf_data_key_size, in verify_keyblock_tests()
210 cc.workbuf_used = cc.workbuf_size - sd->gbb_rootkey_size + 8; in verify_keyblock_tests()
216 sd->gbb_rootkey_size = sizeof(mock_gbb); in verify_keyblock_tests()
228 cc.workbuf_used = cc.workbuf_size - sd->gbb_rootkey_size - 8; in verify_keyblock_tests()
240 cc.workbuf_used = cc.workbuf_size - sd->gbb_rootkey_size in verify_keyblock_tests()
281 TEST_EQ(sd->fw_version, 0x20002, "combined version"); in verify_preamble_tests()
282 TEST_EQ(sd->workbuf_preamble_offset, in verify_preamble_tests()
286 TEST_EQ(sd->workbuf_preamble_size, pre->preamble_size, "preamble size"); in verify_preamble_tests()
288 sd->workbuf_preamble_offset + sd->workbuf_preamble_size, in verify_preamble_tests()
293 sd->workbuf_data_key_size = 0; in verify_preamble_tests()
311 sd->vblock_preamble_offset = sizeof(mock_vblock); in verify_preamble_tests()
356 sd->last_fw_result = VB2_FW_RESULT_UNKNOWN; in verify_preamble_tests()
365 sd->last_fw_slot = 1; in verify_preamble_tests()