Lines Matching refs:sd
41 struct vb2_shared_data *sd = vb2_get_sd(ctx); in vb2api_init_hash() local
54 if (!sd->workbuf_preamble_size) in vb2api_init_hash()
57 (ctx->workbuf + sd->workbuf_preamble_offset); in vb2api_init_hash()
64 if (sd->workbuf_hash_size) { in vb2api_init_hash()
66 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_init_hash()
74 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); in vb2api_init_hash()
75 sd->workbuf_hash_size = dig_size; in vb2api_init_hash()
76 ctx->workbuf_used = sd->workbuf_hash_offset + dig_size; in vb2api_init_hash()
88 if (!sd->workbuf_data_key_size) in vb2api_init_hash()
92 ctx->workbuf + sd->workbuf_data_key_offset, in vb2api_init_hash()
93 sd->workbuf_data_key_size); in vb2api_init_hash()
97 sd->hash_tag = tag; in vb2api_init_hash()
98 sd->hash_remaining_size = pre->body_signature.data_size; in vb2api_init_hash()
126 struct vb2_shared_data *sd = vb2_get_sd(ctx); in vb2api_check_hash() local
128 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_check_hash()
141 if (!sd->workbuf_preamble_size) in vb2api_check_hash()
144 (ctx->workbuf + sd->workbuf_preamble_offset); in vb2api_check_hash()
147 if (!sd->workbuf_hash_size) in vb2api_check_hash()
151 if (sd->hash_remaining_size) in vb2api_check_hash()
168 if (sd->hash_tag != VB2_HASH_TAG_FW_BODY) in vb2api_check_hash()
177 if (!sd->workbuf_data_key_size) in vb2api_check_hash()
181 ctx->workbuf + sd->workbuf_data_key_offset, in vb2api_check_hash()
182 sd->workbuf_data_key_size); in vb2api_check_hash()