Lines Matching refs:toc_entry
206 toc_entry_t *toc_entry; in fill_image_descs() local
208 for (toc_entry = toc_entries; in fill_image_descs()
209 toc_entry->cmdline_name != NULL; in fill_image_descs()
210 toc_entry++) { in fill_image_descs()
213 desc = new_image_desc(&toc_entry->uuid, in fill_image_descs()
214 toc_entry->name, in fill_image_descs()
215 toc_entry->cmdline_name); in fill_image_descs()
219 for (toc_entry = plat_def_toc_entries; in fill_image_descs()
220 toc_entry->cmdline_name != NULL; in fill_image_descs()
221 toc_entry++) { in fill_image_descs()
224 desc = new_image_desc(&toc_entry->uuid, in fill_image_descs()
225 toc_entry->name, in fill_image_descs()
226 toc_entry->cmdline_name); in fill_image_descs()
299 fip_toc_entry_t *toc_entry; in parse_fip() local
319 toc_entry = (fip_toc_entry_t *)(toc_header + 1); in parse_fip()
329 while ((char *)toc_entry + sizeof(*toc_entry) - 1 < bufend) { in parse_fip()
334 if (memcmp(&toc_entry->uuid, &uuid_null, sizeof(uuid_t)) == 0) { in parse_fip()
345 image->toc_e = *toc_entry; in parse_fip()
346 image->buffer = xmalloc(toc_entry->size, in parse_fip()
349 if (toc_entry->size > (uint64_t)-1 - toc_entry->offset_address) in parse_fip()
351 if (toc_entry->size + toc_entry->offset_address > st.st_size) in parse_fip()
354 memcpy(image->buffer, buf + toc_entry->offset_address, in parse_fip()
355 toc_entry->size); in parse_fip()
358 desc = lookup_image_desc_from_uuid(&toc_entry->uuid); in parse_fip()
362 uuid_to_str(name, sizeof(name), &toc_entry->uuid); in parse_fip()
365 desc = new_image_desc(&toc_entry->uuid, name, "blob"); in parse_fip()
375 toc_entry++; in parse_fip()
513 fip_toc_entry_t *toc_entry; in pack_images() local
534 toc_entry = (fip_toc_entry_t *)(toc_header + 1); in pack_images()
545 *toc_entry++ = image->toc_e; in pack_images()
554 memset(toc_entry, 0, sizeof(*toc_entry)); in pack_images()
555 toc_entry->offset_address = (entry_offset + align - 1) & ~(align - 1); in pack_images()
584 pad_size = toc_entry->offset_address - entry_offset; in pack_images()
755 toc_entry_t *toc_entry = toc_entries; in create_usage() local
765 for (; toc_entry->cmdline_name != NULL; toc_entry++) in create_usage()
766 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in create_usage()
767 toc_entry->name); in create_usage()
769 toc_entry = plat_def_toc_entries; in create_usage()
770 for (; toc_entry->cmdline_name != NULL; toc_entry++) in create_usage()
771 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in create_usage()
772 toc_entry->name); in create_usage()
874 toc_entry_t *toc_entry = toc_entries; in update_usage() local
885 for (; toc_entry->cmdline_name != NULL; toc_entry++) in update_usage()
886 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in update_usage()
887 toc_entry->name); in update_usage()
889 toc_entry = plat_def_toc_entries; in update_usage()
890 for (; toc_entry->cmdline_name != NULL; toc_entry++) in update_usage()
891 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in update_usage()
892 toc_entry->name); in update_usage()
1015 toc_entry_t *toc_entry = toc_entries; in unpack_usage() local
1025 for (; toc_entry->cmdline_name != NULL; toc_entry++) in unpack_usage()
1026 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in unpack_usage()
1027 toc_entry->name); in unpack_usage()
1029 toc_entry = plat_def_toc_entries; in unpack_usage()
1030 for (; toc_entry->cmdline_name != NULL; toc_entry++) in unpack_usage()
1031 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in unpack_usage()
1032 toc_entry->name); in unpack_usage()
1145 toc_entry_t *toc_entry = toc_entries; in remove_usage() local
1156 for (; toc_entry->cmdline_name != NULL; toc_entry++) in remove_usage()
1157 printf(" --%-16s\t%s\n", toc_entry->cmdline_name, in remove_usage()
1158 toc_entry->name); in remove_usage()
1160 toc_entry = plat_def_toc_entries; in remove_usage()
1161 for (; toc_entry->cmdline_name != NULL; toc_entry++) in remove_usage()
1162 printf(" --%-16s\t%s\n", toc_entry->cmdline_name, in remove_usage()
1163 toc_entry->name); in remove_usage()