Home | History | Annotate | Download | only in fastbootd

Lines Matching refs:hdr

64     struct boot_img_hdr *hdr;
95 hdr = (struct boot_img_hdr *) ptr;
102 if ((size_t) sz < sizeof(*hdr)) {
107 kernel_actual = ROUND_TO_PAGE(hdr->kernel_size, hdr->page_size);
108 ramdisk_actual = ROUND_TO_PAGE(hdr->ramdisk_size, hdr->page_size);
109 second_actual = ROUND_TO_PAGE(hdr->second_size, hdr->page_size);
111 new_atags = (char *) create_atags((unsigned *) atags_ptr, atags_sz, hdr, &new_atags_sz);
122 if ((int) (hdr->page_size + kernel_actual + ramdisk_actual) < sz) {
127 kernel_ptr = (void *)((uintptr_t) ptr + hdr->page_size);
133 rv = prepare_boot_linux(hdr->kernel_addr, kernel_ptr, kernel_actual,
134 hdr->ramdisk_addr, ramdisk_ptr, ramdisk_actual,
135 hdr->second_addr, second_ptr, second_actual,
136 hdr->tags_addr, new_atags, ROUND_TO_PAGE(new_atags_sz, hdr->page_size));