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()
153 static int mmc_load_image_raw_partition(struct spl_image_info *spl_image, in mmc_load_image_raw_partition() argument
184 return mmc_load_image_raw_sector(spl_image, mmc, info.start + sector); in mmc_load_image_raw_partition()
186 return mmc_load_image_raw_sector(spl_image, mmc, info.start); in mmc_load_image_raw_partition()
192 static int mmc_load_image_raw_os(struct spl_image_info *spl_image, in mmc_load_image_raw_os() argument
212 ret = mmc_load_image_raw_sector(spl_image, mmc, in mmc_load_image_raw_os()
217 if (spl_image->os != IH_OS_LINUX) { in mmc_load_image_raw_os()
229 static int mmc_load_image_raw_os(struct spl_image_info *spl_image, in mmc_load_image_raw_os() argument
237 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc, in spl_mmc_do_fs_boot() argument
244 err = spl_load_image_fat_os(spl_image, mmc_get_blk_desc(mmc), in spl_mmc_do_fs_boot()
250 err = spl_load_image_fat(spl_image, mmc_get_blk_desc(mmc), in spl_mmc_do_fs_boot()
259 err = spl_load_image_ext_os(spl_image, mmc_get_blk_desc(mmc), in spl_mmc_do_fs_boot()
265 err = spl_load_image_ext(spl_image, mmc_get_blk_desc(mmc), in spl_mmc_do_fs_boot()
280 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc, in spl_mmc_do_fs_boot() argument
306 int spl_mmc_load(struct spl_image_info *spl_image, in spl_mmc_load() argument
363 err = mmc_load_image_raw_os(spl_image, mmc); in spl_mmc_load()
368 err = mmc_load_image_raw_partition(spl_image, mmc, raw_part, in spl_mmc_load()
374 err = mmc_load_image_raw_sector(spl_image, mmc, raw_sect); in spl_mmc_load()
382 err = spl_mmc_do_fs_boot(spl_image, mmc, filename); in spl_mmc_load()
396 int spl_mmc_load_image(struct spl_image_info *spl_image, in spl_mmc_load_image() argument
399 return spl_mmc_load(spl_image, bootdev, in spl_mmc_load_image()