Lines Matching refs:sd

67 	struct vb2_shared_data *sd = vb2_get_sd(ctx);  in vb2_load_fw_keyblock()  local
81 key_size = sd->gbb_rootkey_size; in vb2_load_fw_keyblock()
86 rv = vb2ex_read_resource(ctx, VB2_RES_GBB, sd->gbb_rootkey_offset, in vb2_load_fw_keyblock()
113 sd->vblock_preamble_offset = kb->c.total_size; in vb2_load_fw_keyblock()
120 if (!rv && packed_key->key_version < (sd->fw_version_secdata >> 16)) in vb2_load_fw_keyblock()
127 sd->fw_version = packed_key->key_version << 16; in vb2_load_fw_keyblock()
143 sd->workbuf_data_key_offset = vb2_offset_of(ctx->workbuf, key_data); in vb2_load_fw_keyblock()
144 sd->workbuf_data_key_size = packed_key->c.total_size; in vb2_load_fw_keyblock()
147 ctx->workbuf_used = sd->workbuf_data_key_offset + in vb2_load_fw_keyblock()
148 sd->workbuf_data_key_size; in vb2_load_fw_keyblock()
155 struct vb2_shared_data *sd = vb2_get_sd(ctx); in vb2_load_fw_preamble() local
158 uint8_t *key_data = ctx->workbuf + sd->workbuf_data_key_offset; in vb2_load_fw_preamble()
159 uint32_t key_size = sd->workbuf_data_key_size; in vb2_load_fw_preamble()
170 if (!sd->workbuf_data_key_size) in vb2_load_fw_preamble()
179 sd->vblock_preamble_offset, &wb, in vb2_load_fw_preamble()
198 sd->workbuf_data_key_offset = sd->workbuf_data_key_size = 0; in vb2_load_fw_preamble()
207 sd->fw_version |= pre->fw_version; in vb2_load_fw_preamble()
208 if (!rv && sd->fw_version < sd->fw_version_secdata) in vb2_load_fw_preamble()
220 if (sd->fw_version > sd->fw_version_secdata && in vb2_load_fw_preamble()
221 sd->last_fw_slot == sd->fw_slot && in vb2_load_fw_preamble()
222 sd->last_fw_result == VB2_FW_RESULT_SUCCESS) { in vb2_load_fw_preamble()
224 sd->fw_version_secdata = sd->fw_version; in vb2_load_fw_preamble()
225 rv = vb2_secdata_set(ctx, VB2_SECDATA_VERSIONS, sd->fw_version); in vb2_load_fw_preamble()
231 sd->workbuf_preamble_offset = vb2_offset_of(ctx->workbuf, pre); in vb2_load_fw_preamble()
232 sd->workbuf_preamble_size = pre->c.total_size; in vb2_load_fw_preamble()
235 ctx->workbuf_used = sd->workbuf_preamble_offset + in vb2_load_fw_preamble()
236 sd->workbuf_preamble_size; in vb2_load_fw_preamble()