Lines Matching refs:sd
44 struct vb2_shared_data *sd = vb2_get_sd(ctx); in vb2api_init_hash2() local
55 if (!sd->workbuf_preamble_size) in vb2api_init_hash2()
58 (ctx->workbuf + sd->workbuf_preamble_offset); in vb2api_init_hash2()
75 if (sd->workbuf_hash_size) { in vb2api_init_hash2()
77 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_init_hash2()
85 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); in vb2api_init_hash2()
86 sd->workbuf_hash_size = dig_size; in vb2api_init_hash2()
87 ctx->workbuf_used = sd->workbuf_hash_offset + dig_size; in vb2api_init_hash2()
90 sd->hash_tag = vb2_offset_of(ctx->workbuf, sig); in vb2api_init_hash2()
91 sd->hash_remaining_size = sig->data_size; in vb2api_init_hash2()
118 struct vb2_shared_data *sd = vb2_get_sd(ctx); in vb2api_check_hash() local
120 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_check_hash()
133 if (!sd->hash_tag) in vb2api_check_hash()
135 sig = (const struct vb2_signature *)(ctx->workbuf + sd->hash_tag); in vb2api_check_hash()
138 if (!sd->workbuf_hash_size) in vb2api_check_hash()
142 if (sd->hash_remaining_size) in vb2api_check_hash()