Lines Matching refs:sd

23 static struct vb2_shared_data *sd;  variable
63 sd = vb2_get_sd(&cc); in reset_common_data()
75 sd->workbuf_preamble_offset = cc.workbuf_used; in reset_common_data()
76 sd->workbuf_preamble_size = sizeof(*pre); in reset_common_data()
77 cc.workbuf_used = sd->workbuf_preamble_offset in reset_common_data()
78 + sd->workbuf_preamble_size; in reset_common_data()
80 (cc.workbuf + sd->workbuf_preamble_offset); in reset_common_data()
88 sd->workbuf_data_key_offset = cc.workbuf_used; in reset_common_data()
89 sd->workbuf_data_key_size = sizeof(*k) + 8; in reset_common_data()
90 cc.workbuf_used = sd->workbuf_data_key_offset + in reset_common_data()
91 sd->workbuf_data_key_size; in reset_common_data()
93 (cc.workbuf + sd->workbuf_data_key_offset); in reset_common_data()
244 TEST_EQ(sd->workbuf_hash_offset, in init_hash_tests()
248 TEST_EQ(sd->workbuf_hash_size, sizeof(struct vb2_digest_context), in init_hash_tests()
251 sd->workbuf_hash_offset + sd->workbuf_hash_size, in init_hash_tests()
253 TEST_EQ(sd->hash_tag, VB2_HASH_TAG_FW_BODY, "hash tag"); in init_hash_tests()
254 TEST_EQ(sd->hash_remaining_size, mock_body_size, "hash remaining"); in init_hash_tests()
266 sd->workbuf_preamble_size = 0; in init_hash_tests()
281 sd->workbuf_data_key_size = 0; in init_hash_tests()
286 sd->workbuf_data_key_size--; in init_hash_tests()
291 k = (struct vb2_packed_key *)(cc.workbuf + sd->workbuf_data_key_offset); in init_hash_tests()
304 TEST_EQ(sd->hash_remaining_size, mock_body_size - 32, in extend_hash_tests()
308 TEST_EQ(sd->hash_remaining_size, 0, "hash extend remaining 2"); in extend_hash_tests()
311 sd->workbuf_hash_size = 0; in extend_hash_tests()
326 (cc.workbuf + sd->workbuf_hash_offset); in extend_hash_tests()
341 sd->workbuf_preamble_size = 0; in check_hash_tests()
346 sd->workbuf_hash_size = 0; in check_hash_tests()
351 sd->hash_remaining_size = 1; in check_hash_tests()
365 sd->hash_tag = VB2_HASH_TAG_INVALID; in check_hash_tests()
370 sd->workbuf_data_key_size = 0; in check_hash_tests()
375 sd->workbuf_data_key_size--; in check_hash_tests()
381 (cc.workbuf + sd->workbuf_preamble_offset); in check_hash_tests()