Lines Matching refs:container
14 static int container = -1; variable
153 fprintf(stdout, "New Container: \t%d\n", ++container); in parse_cfg_fld()
526 static void set_image_array_entry(flash_header_v3_t *container, in set_image_array_entry() argument
536 boot_img_t *img = &container->img[container->num_images]; in set_image_array_entry()
622 container->num_images++; in set_image_array_entry()
623 img = &container->img[container->num_images]; in set_image_array_entry()
640 container->num_images++; in set_image_array_entry()
643 void set_container(flash_header_v3_t *container, uint16_t sw_version, in set_container() argument
646 container->sig_blk_hdr.tag = 0x90; in set_container()
647 container->sig_blk_hdr.length = sizeof(sig_blk_hdr_t); in set_container()
648 container->sw_version = sw_version; in set_container()
649 container->padding = alignment; in set_container()
650 container->fuse_version = fuse_version; in set_container()
651 container->flags = flags; in set_container()
652 fprintf(stdout, "container flags: 0x%x\n", container->flags); in set_container()
717 flash_header_v3_t *container = &imx_header->fhdr[i]; in flatten_container_header() local
719 container->sig_blk_offset = HEADER_IMG_ARRAY_OFFSET + in flatten_container_header()
720 container->num_images * IMG_ARRAY_ENTRY_SIZE; in flatten_container_header()
722 container->length = HEADER_IMG_ARRAY_OFFSET + in flatten_container_header()
723 (IMG_ARRAY_ENTRY_SIZE * container->num_images) + in flatten_container_header()
730 file_offset + size + container->length - in flatten_container_header()
733 size += ALIGN(container->length, container->padding); in flatten_container_header()
746 flash_header_v3_t *container = &imx_header->fhdr[i]; in flatten_container_header() local
750 append(ptr, container, HEADER_IMG_ARRAY_OFFSET); in flatten_container_header()
753 for (j = 0; j < container->num_images; j++) { in flatten_container_header()
754 container->img[j].offset -= in flatten_container_header()
758 for (j = 0; j < container->num_images; j++) in flatten_container_header()
759 append(ptr, &container->img[j], sizeof(boot_img_t)); in flatten_container_header()
761 append(ptr, &container->sig_blk_hdr, sizeof(sig_blk_hdr_t)); in flatten_container_header()
764 ptr += ALIGN(container->length, container->padding) - in flatten_container_header()
765 container->length; in flatten_container_header()
786 int container = -1; in build_container() local
819 if (container < 0) { in build_container()
825 set_image_array_entry(&imx_header.fhdr[container], in build_container()
836 if (container < 0) { in build_container()
842 set_image_array_entry(&imx_header.fhdr[container], in build_container()
855 container++; in build_container()
856 set_container(&imx_header.fhdr[container], sw_version, in build_container()
921 if (container >= 0) { in build_container()
923 tmp = flatten_container_header(&imx_header, container + 1, in build_container()