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()
287 fip_toc_entry_t *toc_entry; in parse_fip() local
307 toc_entry = (fip_toc_entry_t *)(toc_header + 1); in parse_fip()
317 while ((char *)toc_entry + sizeof(*toc_entry) - 1 < bufend) { in parse_fip()
322 if (memcmp(&toc_entry->uuid, &uuid_null, sizeof(uuid_t)) == 0) { in parse_fip()
333 image->toc_e = *toc_entry; in parse_fip()
334 image->buffer = xmalloc(toc_entry->size, in parse_fip()
337 if (toc_entry->size > (uint64_t)-1 - toc_entry->offset_address) in parse_fip()
339 if (toc_entry->size + toc_entry->offset_address > st.st_size) in parse_fip()
342 memcpy(image->buffer, buf + toc_entry->offset_address, in parse_fip()
343 toc_entry->size); in parse_fip()
346 desc = lookup_image_desc_from_uuid(&toc_entry->uuid); in parse_fip()
350 uuid_to_str(name, sizeof(name), &toc_entry->uuid); in parse_fip()
353 desc = new_image_desc(&toc_entry->uuid, name, "blob"); in parse_fip()
363 toc_entry++; in parse_fip()
501 fip_toc_entry_t *toc_entry; in pack_images() local
522 toc_entry = (fip_toc_entry_t *)(toc_header + 1); in pack_images()
533 *toc_entry++ = image->toc_e; in pack_images()
542 memset(toc_entry, 0, sizeof(*toc_entry)); in pack_images()
543 toc_entry->offset_address = (entry_offset + align - 1) & ~(align - 1); in pack_images()
572 pad_size = toc_entry->offset_address - entry_offset; in pack_images()
743 toc_entry_t *toc_entry = toc_entries; in create_usage() local
753 for (; toc_entry->cmdline_name != NULL; toc_entry++) in create_usage()
754 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in create_usage()
755 toc_entry->name); in create_usage()
856 toc_entry_t *toc_entry = toc_entries; in update_usage() local
867 for (; toc_entry->cmdline_name != NULL; toc_entry++) in update_usage()
868 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in update_usage()
869 toc_entry->name); in update_usage()
991 toc_entry_t *toc_entry = toc_entries; in unpack_usage() local
1001 for (; toc_entry->cmdline_name != NULL; toc_entry++) in unpack_usage()
1002 printf(" --%-16s FILENAME\t%s\n", toc_entry->cmdline_name, in unpack_usage()
1003 toc_entry->name); in unpack_usage()
1115 toc_entry_t *toc_entry = toc_entries; in remove_usage() local
1126 for (; toc_entry->cmdline_name != NULL; toc_entry++) in remove_usage()
1127 printf(" --%-16s\t%s\n", toc_entry->cmdline_name, in remove_usage()
1128 toc_entry->name); in remove_usage()