Lines Matching refs:sd
29 static struct vb2_shared_data *sd; variable
80 sd = vb2_get_sd(&ctx); in reset_common_data()
94 sd->workbuf_preamble_offset = ctx.workbuf_used; in reset_common_data()
96 (ctx.workbuf + sd->workbuf_preamble_offset); in reset_common_data()
114 sd->workbuf_preamble_size = sig_offset; in reset_common_data()
115 ctx.workbuf_used = sd->workbuf_preamble_offset in reset_common_data()
116 + sd->workbuf_preamble_size; in reset_common_data()
207 (ctx.workbuf + sd->workbuf_preamble_offset); in init_hash_tests()
213 TEST_EQ(sd->workbuf_hash_offset, in init_hash_tests()
217 TEST_EQ(sd->workbuf_hash_size, sizeof(struct vb2_digest_context), in init_hash_tests()
220 sd->workbuf_hash_offset + sd->workbuf_hash_size, in init_hash_tests()
222 TEST_EQ(sd->hash_tag, in init_hash_tests()
223 sd->workbuf_preamble_offset + pre->hash_offset, in init_hash_tests()
225 TEST_EQ(sd->hash_remaining_size, mock_body_size, "hash remaining"); in init_hash_tests()
231 TEST_EQ(sd->hash_tag, in init_hash_tests()
232 sd->workbuf_preamble_offset + pre->hash_offset + in init_hash_tests()
241 sd->workbuf_preamble_size = 0; in init_hash_tests()
271 TEST_EQ(sd->hash_remaining_size, mock_body_size - 32, in extend_hash_tests()
275 TEST_EQ(sd->hash_remaining_size, 0, "hash extend remaining 2"); in extend_hash_tests()
278 sd->workbuf_hash_size = 0; in extend_hash_tests()
298 (ctx.workbuf + sd->workbuf_hash_offset); in extend_hash_tests()
313 (ctx.workbuf + sd->workbuf_preamble_offset); in check_hash_tests()
316 (ctx.workbuf + sd->workbuf_hash_offset); in check_hash_tests()
321 sd->hash_tag = 0; in check_hash_tests()
326 sd->workbuf_hash_size = 0; in check_hash_tests()
331 sd->hash_remaining_size = 1; in check_hash_tests()