Lines Matching refs:payload

104 	uint32_t			*payload;  member
136 struct sb_command payload; member
151 struct sb_sections_header payload; member
182 struct sb_boot_image_header payload; member
257 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_aes_reinit()
312 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_encrypt_sb_header()
329 shdr = &sctx->payload; in sb_encrypt_sb_sections_header()
362 struct sb_command *cmd = &cctx->payload; in sb_encrypt_tag()
405 ccmd = &cctx->payload; in sb_encrypt_image()
546 tmp = realloc(dctx->payload, dctx->size); in sb_grow_dcd()
550 dctx->payload = tmp; in sb_grow_dcd()
553 dctx->payload[0] = htonl((SB_HAB_DCD_TAG << 24) | in sb_grow_dcd()
611 free(dctx->payload); in sb_build_dcd()
639 dctx->prev_dcd_head = dctx->payload + in sb_build_dcd_block()
640 dctx->size / sizeof(*dctx->payload) - 1; in sb_build_dcd_block()
654 dctx->prev_dcd_head = dctx->payload + in sb_build_dcd_block()
655 dctx->size / sizeof(*dctx->payload) - 3; in sb_build_dcd_block()
658 dcd = dctx->payload + dctx->size / sizeof(*dctx->payload) - 2; in sb_build_dcd_block()
702 ((dctx->prev_dcd_head - dctx->payload) * in sb_build_dcd_block()
703 sizeof(*dctx->payload)); in sb_build_dcd_block()
747 shdr = &sctx->payload; in sb_build_section()
795 ccmd = &cctx->payload; in sb_build_command_nop()
831 ccmd = &cctx->payload; in sb_build_command_tag()
877 ccmd = &cctx->payload; in sb_build_command_load()
951 uint8_t *payload; in sb_build_command_load() local
975 payload = calloc(1, asize); in sb_build_command_load()
976 if (!payload) { in sb_build_command_load()
981 memcpy(payload, dctx->payload, dctx->size); in sb_build_command_load()
983 cctx->data = payload; in sb_build_command_load()
1050 ccmd = &cctx->payload; in sb_build_command_fill()
1150 ccmd = &cctx->payload; in sb_build_command_jump_call()
1251 ccmd = &cctx->payload; in sb_build_command_mode()
1316 struct sb_boot_image_header *hdr = &ictx->payload; in sb_prefill_image_header()
1355 struct sb_boot_image_header *hdr = &ictx->payload; in sb_postfill_image_header()
1410 struct sb_boot_image_header *ihdr = &ictx->payload; in sb_fixup_sections_and_tags()
1418 shdr = &sctx->payload; in sb_fixup_sections_and_tags()
1430 ccmd = &cctx->payload; in sb_fixup_sections_and_tags()
1580 ictx->sect_tail->payload.section_size = in sb_parse_line()
1653 struct sb_boot_image_header *hdr = &ictx->payload; in sb_verify_image_header()
1667 size = fread(&ictx->payload, 1, sizeof(ictx->payload), fp); in sb_verify_image_header()
1668 if (size != sizeof(ictx->payload)) { in sb_verify_image_header()
1800 struct sb_command *cmd = &cctx->payload; in sb_decrypt_tag()
1803 (uint8_t *)&cctx->payload, sizeof(*cmd)); in sb_decrypt_tag()
1811 struct sb_command *ccmd = &cctx->payload; in sb_verify_command()
1943 struct sb_boot_image_header *hdr = &ictx->payload; in sb_verify_sections_cmds()
1965 size = fread(&sctx->payload, 1, sizeof(sctx->payload), fp); in sb_verify_sections_cmds()
1966 if (size != sizeof(sctx->payload)) { in sb_verify_sections_cmds()
1986 shdr = &sctx->payload; in sb_verify_sections_cmds()
2091 if (filesize < (signed)sizeof(ictx->payload)) { in sb_build_tree_from_img()
2160 free(d_head->payload); in sb_free_image()
2253 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_build_image()
2282 memcpy(iptr, &sctx->payload, sizeof(struct sb_sections_header)); in sb_build_image()
2294 ccmd = &cctx->payload; in sb_build_image()
2296 memcpy(iptr, &cctx->c_payload, sizeof(cctx->payload)); in sb_build_image()
2297 iptr += sizeof(cctx->payload); in sb_build_image()