Lines Matching refs:shdr
325 struct sb_sections_header *shdr; in sb_encrypt_sb_sections_header() local
327 const int size = sizeof(*shdr); in sb_encrypt_sb_sections_header()
330 shdr = &sctx->payload; in sb_encrypt_sb_sections_header()
331 sb_sections_header_ptr = (uint8_t *)shdr; in sb_encrypt_sb_sections_header()
714 struct sb_sections_header *shdr; in sb_build_section() local
748 shdr = &sctx->payload; in sb_build_section()
749 shdr->section_number = id; in sb_build_section()
750 shdr->section_flags = bootable; in sb_build_section()
1413 struct sb_sections_header *shdr; in sb_fixup_sections_and_tags() local
1419 shdr = &sctx->payload; in sb_fixup_sections_and_tags()
1422 shdr->section_offset = offset + 1; in sb_fixup_sections_and_tags()
1423 offset += shdr->section_size; in sb_fixup_sections_and_tags()
1426 shdr->section_size--; in sb_fixup_sections_and_tags()
1433 ccmd->tag.section_number = shdr->section_number; in sb_fixup_sections_and_tags()
1434 ccmd->tag.section_length = shdr->section_size; in sb_fixup_sections_and_tags()
1435 ccmd->tag.section_flags = shdr->section_flags; in sb_fixup_sections_and_tags()
1945 struct sb_sections_header *shdr; in sb_verify_sections_cmds() local
1987 shdr = &sctx->payload; in sb_verify_sections_cmds()
1989 if (shdr->section_flags & SB_SECTION_FLAG_BOOTABLE) { in sb_verify_sections_cmds()
1994 sctx->size = (shdr->section_size * SB_BLOCK_SIZE) + in sb_verify_sections_cmds()
1997 shdr->section_number, bootable, sctx->size); in sb_verify_sections_cmds()
1999 if (shdr->section_flags & ~SB_SECTION_FLAG_BOOTABLE) in sb_verify_sections_cmds()
2001 shdr->section_flags); in sb_verify_sections_cmds()
2003 if ((shdr->section_flags & SB_SECTION_FLAG_BOOTABLE) && in sb_verify_sections_cmds()
2004 (hdr->first_boot_section_id != shdr->section_number)) { in sb_verify_sections_cmds()