Lines Matching defs:head
48 printf("Magic: 0x%x\n", hdr->head.magic);
49 printf("Image Header Size: 0x%x bytes\n", hdr->head.hdr_size);
50 printf("Total Image Size: %d bytes\n", hdr->head.image_size);
51 printf("Product ID: 0x%x\n", hdr->head.prod_id);
52 printf("Release ID: 0x%x\n", hdr->head.rel_id);
53 printf("Version ID: 0x%x\n", hdr->head.version);
55 printf("Offset Info: 0x%x\n", hdr->head.info_offset);
56 printf("Offset Sect info: 0x%x\n", hdr->head.sect_info_offset);
59 chksum=(struct nsp_img_hdr_chksum *)(hdr+hdr->head.chksum_offset);
333 /* head fields */
370 // image_hdr->head.chksum_offset = (unsigned int)chksum - (unsigned int)image_hdr;
372 // image_hdr->head.pad1 = 0xffffffff;
401 struct nsp_img_hdr_head head;
408 fread((void*)&head, sizeof(struct nsp_img_hdr_head),
412 hdr = (struct nsp_img_hdr *)malloc(head.hdr_size);
416 fread((void*)hdr, head.hdr_size, 1, nsp_image);