Home | History | Annotate | Download | only in lib20

Lines Matching refs:sd

19 	struct vb2_shared_data *sd = vb2_get_sd(ctx);
35 key_size = sd->gbb_rootkey_size;
40 rv = vb2ex_read_resource(ctx, VB2_RES_GBB, sd->gbb_rootkey_offset,
85 if (!rv && kb->data_key.key_version < (sd->fw_version_secdata >> 16))
92 sd->fw_version = kb->data_key.key_version << 16;
116 sd->workbuf_data_key_offset = vb2_offset_of(ctx->workbuf, key_data);
117 sd->workbuf_data_key_size =
121 sd->vblock_preamble_offset = kb->keyblock_size;
124 ctx->workbuf_used = sd->workbuf_data_key_offset +
125 sd->workbuf_data_key_size;
132 struct vb2_shared_data *sd = vb2_get_sd(ctx);
135 uint8_t *key_data = ctx->workbuf + sd->workbuf_data_key_offset;
136 uint32_t key_size = sd->workbuf_data_key_size;
148 if (!sd->workbuf_data_key_size)
161 sd->vblock_preamble_offset,
174 sd->vblock_preamble_offset,
195 sd->fw_version |= pre->firmware_version;
196 if (!rv && sd->fw_version < sd->fw_version_secdata)
208 if (sd->fw_version > sd->fw_version_secdata &&
209 sd->last_fw_slot == sd->fw_slot &&
210 sd->last_fw_result == VB2_FW_RESULT_SUCCESS) {
212 sd->fw_version_secdata = sd->fw_version;
213 rv = vb2_secdata_set(ctx, VB2_SECDATA_VERSIONS, sd->fw_version);
219 sd->workbuf_preamble_offset = vb2_offset_of(ctx->workbuf, pre);
220 sd->workbuf_preamble_size = pre_size;
223 ctx->workbuf_used = sd->workbuf_preamble_offset + pre_size;