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