Home | History | Annotate | Download | only in fastboot

Lines Matching defs:hdr

50     boot_img_hdr *hdr;
60 hdr = calloc(*bootimg_size, 1);
62 if(hdr == 0) {
63 return hdr;
66 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE);
68 hdr->kernel_size = kernel_size;
69 hdr->ramdisk_size = ramdisk_size;
70 hdr->second_size = second_size;
72 hdr->kernel_addr = base + kernel_offset;
73 hdr->ramdisk_addr = base + ramdisk_offset;
74 hdr->second_addr = base + second_offset;
75 hdr->tags_addr = base + tags_offset;
77 hdr->page_size = page_size;
80 memcpy(hdr->magic + page_size,
82 memcpy(hdr->magic + page_size + kernel_actual,
84 memcpy(hdr->magic + page_size + kernel_actual + ramdisk_actual,
86 return hdr;