Lines Matching refs:shdr
324 struct sb_sections_header *shdr; in sb_encrypt_sb_sections_header() local
326 const int size = sizeof(*shdr); in sb_encrypt_sb_sections_header()
329 shdr = &sctx->payload; in sb_encrypt_sb_sections_header()
330 sb_sections_header_ptr = (uint8_t *)shdr; in sb_encrypt_sb_sections_header()
713 struct sb_sections_header *shdr; in sb_build_section() local
747 shdr = &sctx->payload; in sb_build_section()
748 shdr->section_number = id; in sb_build_section()
749 shdr->section_flags = bootable; in sb_build_section()
1412 struct sb_sections_header *shdr; in sb_fixup_sections_and_tags() local
1418 shdr = &sctx->payload; in sb_fixup_sections_and_tags()
1421 shdr->section_offset = offset + 1; in sb_fixup_sections_and_tags()
1422 offset += shdr->section_size; in sb_fixup_sections_and_tags()
1425 shdr->section_size--; in sb_fixup_sections_and_tags()
1432 ccmd->tag.section_number = shdr->section_number; in sb_fixup_sections_and_tags()
1433 ccmd->tag.section_length = shdr->section_size; in sb_fixup_sections_and_tags()
1434 ccmd->tag.section_flags = shdr->section_flags; in sb_fixup_sections_and_tags()
1944 struct sb_sections_header *shdr; in sb_verify_sections_cmds() local
1986 shdr = &sctx->payload; in sb_verify_sections_cmds()
1988 if (shdr->section_flags & SB_SECTION_FLAG_BOOTABLE) { in sb_verify_sections_cmds()
1993 sctx->size = (shdr->section_size * SB_BLOCK_SIZE) + in sb_verify_sections_cmds()
1996 shdr->section_number, bootable, sctx->size); in sb_verify_sections_cmds()
1998 if (shdr->section_flags & ~SB_SECTION_FLAG_BOOTABLE) in sb_verify_sections_cmds()
2000 shdr->section_flags); in sb_verify_sections_cmds()
2002 if ((shdr->section_flags & SB_SECTION_FLAG_BOOTABLE) && in sb_verify_sections_cmds()
2003 (hdr->first_boot_section_id != shdr->section_number)) { in sb_verify_sections_cmds()