Lines Matching refs:sd

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