Lines Matching refs:gbb
34 int vb2_read_gbb_header(struct vb2_context *ctx, struct vb2_gbb_header *gbb) in vb2_read_gbb_header() argument
39 rv = vb2ex_read_resource(ctx, VB2_RES_GBB, 0, gbb, sizeof(*gbb)); in vb2_read_gbb_header()
44 rv = vb2_validate_gbb_signature(gbb->signature); in vb2_read_gbb_header()
49 if (gbb->major_version != VB2_GBB_MAJOR_VER) in vb2_read_gbb_header()
53 if (gbb->minor_version == 0) in vb2_read_gbb_header()
60 if (gbb->header_size < sizeof(*gbb)) in vb2_read_gbb_header()
180 struct vb2_gbb_header *gbb; in vb2_fw_parse_gbb() local
187 gbb = vb2_workbuf_alloc(&wb, sizeof(*gbb)); in vb2_fw_parse_gbb()
188 if (!gbb) in vb2_fw_parse_gbb()
191 rv = vb2_read_gbb_header(ctx, gbb); in vb2_fw_parse_gbb()
196 sd->gbb_flags = gbb->flags; in vb2_fw_parse_gbb()
197 sd->gbb_rootkey_offset = gbb->rootkey_offset; in vb2_fw_parse_gbb()
198 sd->gbb_rootkey_size = gbb->rootkey_size; in vb2_fw_parse_gbb()
199 memcpy(sd->gbb_hwid_digest, gbb->hwid_digest, VB2_GBB_HWID_DIGEST_SIZE); in vb2_fw_parse_gbb()