Lines Matching refs:spl_image
18 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, in mmc_load_legacy() argument
25 ret = spl_parse_image_header(spl_image, header); in mmc_load_legacy()
30 image_size_sectors = (spl_image->size + mmc->read_bl_len - 1) / in mmc_load_legacy()
35 (void *)(ulong)spl_image->load_addr); in mmc_load_legacy()
37 spl_image->load_addr); in mmc_load_legacy()
53 int mmc_load_image_raw_sector(struct spl_image_info *spl_image, in mmc_load_image_raw_sector() argument
81 ret = spl_load_simple_fit(spl_image, &load, sector, header); in mmc_load_image_raw_sector()
83 ret = mmc_load_legacy(spl_image, mmc, sector, header); in mmc_load_image_raw_sector()
152 static int mmc_load_image_raw_partition(struct spl_image_info *spl_image, in mmc_load_image_raw_partition() argument
182 return mmc_load_image_raw_sector(spl_image, mmc, in mmc_load_image_raw_partition()
185 return mmc_load_image_raw_sector(spl_image, mmc, info.start); in mmc_load_image_raw_partition()
191 static int mmc_load_image_raw_os(struct spl_image_info *spl_image, in mmc_load_image_raw_os() argument
208 ret = mmc_load_image_raw_sector(spl_image, mmc, in mmc_load_image_raw_os()
213 if (spl_image->os != IH_OS_LINUX) { in mmc_load_image_raw_os()
225 static int mmc_load_image_raw_os(struct spl_image_info *spl_image, in mmc_load_image_raw_os() argument
233 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc) in spl_mmc_do_fs_boot() argument
239 err = spl_load_image_fat_os(spl_image, mmc_get_blk_desc(mmc), in spl_mmc_do_fs_boot()
245 err = spl_load_image_fat(spl_image, mmc_get_blk_desc(mmc), in spl_mmc_do_fs_boot()
254 err = spl_load_image_ext_os(spl_image, mmc_get_blk_desc(mmc), in spl_mmc_do_fs_boot()
260 err = spl_load_image_ext(spl_image, mmc_get_blk_desc(mmc), in spl_mmc_do_fs_boot()
275 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc) in spl_mmc_do_fs_boot() argument
300 int spl_mmc_load_image(struct spl_image_info *spl_image, in spl_mmc_load_image() argument
350 err = mmc_load_image_raw_os(spl_image, mmc); in spl_mmc_load_image()
359 err = mmc_load_image_raw_partition(spl_image, mmc, err); in spl_mmc_load_image()
364 err = mmc_load_image_raw_sector(spl_image, mmc, in spl_mmc_load_image()
373 err = spl_mmc_do_fs_boot(spl_image, mmc); in spl_mmc_load_image()