Home
last modified time | relevance | path

Searched refs:hdr_sectors (Results 1 – 1 of 1) sorted by relevance

/external/u-boot/drivers/fastboot/
Dfb_mmc.c147 lbaint_t hdr_sectors; /* boot image header sectors count */ in fb_mmc_get_boot_header() local
152 hdr_sectors = DIV_ROUND_UP(sizeof(struct andr_img_hdr), sector_size); in fb_mmc_get_boot_header()
153 if (hdr_sectors == 0) { in fb_mmc_get_boot_header()
160 res = blk_dread(dev_desc, info->start, hdr_sectors, (void *)hdr); in fb_mmc_get_boot_header()
161 if (res != hdr_sectors) { in fb_mmc_get_boot_header()
176 return hdr_sectors; in fb_mmc_get_boot_header()
195 lbaint_t hdr_sectors; /* boot image header sectors */ in fb_mmc_update_zimage() local
220 hdr_sectors = fb_mmc_get_boot_header(dev_desc, &info, hdr, response); in fb_mmc_update_zimage()
221 if (hdr_sectors == 0) { in fb_mmc_update_zimage()
244 ramdisk_buffer = (u8 *)hdr + (hdr_sectors * info.blksz); in fb_mmc_update_zimage()
[all …]