Lines Matching refs:blkcnt
118 ulong blkcnt; in spl_load_android() local
127 blkcnt = BLK_CNT(sizeof(struct andr_img_hdr), info->bl_len); in spl_load_android()
128 if (info->read(info, part.start, blkcnt, buf) != blkcnt) in spl_load_android()
134 blkcnt = BLK_CNT(android_size(buf), info->bl_len); in spl_load_android()
135 if (info->read(info, part.start, blkcnt, buf) != blkcnt) in spl_load_android()
139 data->boot_size = blkcnt * info->bl_len; in spl_load_android()
142 flush_dcache_range((ulong)buf, (ulong)buf + blkcnt); in spl_load_android()
144 debug("== Android: load 0x%08lx size OK\n", blkcnt * info->bl_len); in spl_load_android()
276 ulong blkcnt; in spl_load_fit() local
286 blkcnt = BLK_CNT(sizeof(struct fdt_header), info->bl_len); in spl_load_fit()
287 if (info->read(info, part.start, blkcnt, buf) != blkcnt) in spl_load_fit()
294 blkcnt = BLK_CNT(size, info->bl_len); in spl_load_fit()
295 if (info->read(info, part.start, blkcnt, buf) != blkcnt) in spl_load_fit()
298 flush_dcache_range((ulong)buf, (ulong)buf + blkcnt); in spl_load_fit()