Lines Matching refs:payload

105 	uint32_t			*payload;  member
137 struct sb_command payload; member
152 struct sb_sections_header payload; member
183 struct sb_boot_image_header payload; member
258 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_aes_reinit()
313 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_encrypt_sb_header()
330 shdr = &sctx->payload; in sb_encrypt_sb_sections_header()
363 struct sb_command *cmd = &cctx->payload; in sb_encrypt_tag()
406 ccmd = &cctx->payload; in sb_encrypt_image()
547 tmp = realloc(dctx->payload, dctx->size); in sb_grow_dcd()
551 dctx->payload = tmp; in sb_grow_dcd()
554 dctx->payload[0] = htonl((SB_HAB_DCD_TAG << 24) | in sb_grow_dcd()
612 free(dctx->payload); in sb_build_dcd()
640 dctx->prev_dcd_head = dctx->payload + in sb_build_dcd_block()
641 dctx->size / sizeof(*dctx->payload) - 1; in sb_build_dcd_block()
655 dctx->prev_dcd_head = dctx->payload + in sb_build_dcd_block()
656 dctx->size / sizeof(*dctx->payload) - 3; in sb_build_dcd_block()
659 dcd = dctx->payload + dctx->size / sizeof(*dctx->payload) - 2; in sb_build_dcd_block()
703 ((dctx->prev_dcd_head - dctx->payload) * in sb_build_dcd_block()
704 sizeof(*dctx->payload)); in sb_build_dcd_block()
748 shdr = &sctx->payload; in sb_build_section()
796 ccmd = &cctx->payload; in sb_build_command_nop()
832 ccmd = &cctx->payload; in sb_build_command_tag()
878 ccmd = &cctx->payload; in sb_build_command_load()
952 uint8_t *payload; in sb_build_command_load() local
976 payload = calloc(1, asize); in sb_build_command_load()
977 if (!payload) { in sb_build_command_load()
982 memcpy(payload, dctx->payload, dctx->size); in sb_build_command_load()
984 cctx->data = payload; in sb_build_command_load()
1051 ccmd = &cctx->payload; in sb_build_command_fill()
1151 ccmd = &cctx->payload; in sb_build_command_jump_call()
1252 ccmd = &cctx->payload; in sb_build_command_mode()
1317 struct sb_boot_image_header *hdr = &ictx->payload; in sb_prefill_image_header()
1356 struct sb_boot_image_header *hdr = &ictx->payload; in sb_postfill_image_header()
1411 struct sb_boot_image_header *ihdr = &ictx->payload; in sb_fixup_sections_and_tags()
1419 shdr = &sctx->payload; in sb_fixup_sections_and_tags()
1431 ccmd = &cctx->payload; in sb_fixup_sections_and_tags()
1581 ictx->sect_tail->payload.section_size = in sb_parse_line()
1651 struct sb_boot_image_header *hdr = &ictx->payload; in sb_verify_image_header()
1665 size = fread(&ictx->payload, 1, sizeof(ictx->payload), fp); in sb_verify_image_header()
1666 if (size != sizeof(ictx->payload)) { in sb_verify_image_header()
1798 struct sb_command *cmd = &cctx->payload; in sb_decrypt_tag()
1801 (uint8_t *)&cctx->payload, sizeof(*cmd)); in sb_decrypt_tag()
1809 struct sb_command *ccmd = &cctx->payload; in sb_verify_command()
1941 struct sb_boot_image_header *hdr = &ictx->payload; in sb_verify_sections_cmds()
1963 size = fread(&sctx->payload, 1, sizeof(sctx->payload), fp); in sb_verify_sections_cmds()
1964 if (size != sizeof(sctx->payload)) { in sb_verify_sections_cmds()
1984 shdr = &sctx->payload; in sb_verify_sections_cmds()
2089 if (filesize < (signed)sizeof(ictx->payload)) { in sb_build_tree_from_img()
2158 free(d_head->payload); in sb_free_image()
2251 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_build_image()
2280 memcpy(iptr, &sctx->payload, sizeof(struct sb_sections_header)); in sb_build_image()
2292 ccmd = &cctx->payload; in sb_build_image()
2294 memcpy(iptr, &cctx->c_payload, sizeof(cctx->payload)); in sb_build_image()
2295 iptr += sizeof(cctx->payload); in sb_build_image()