Lines Matching refs:location
68 static int splash_mmc_read_raw(u32 bmp_load_addr, struct splash_location *location, in splash_mmc_read_raw() argument
81 ret = part_get_info_by_dev_and_name_or_num("mmc", location->devpart, &desc, in splash_mmc_read_raw()
92 static int splash_storage_read_raw(struct splash_location *location, in splash_storage_read_raw() argument
97 if (!location) in splash_storage_read_raw()
100 offset = location->offset; in splash_storage_read_raw()
101 switch (location->storage) { in splash_storage_read_raw()
103 return splash_mmc_read_raw(bmp_load_addr, location, read_size); in splash_storage_read_raw()
115 static int splash_load_raw(struct splash_location *location, u32 bmp_load_addr) in splash_load_raw() argument
124 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
134 return splash_storage_read_raw(location, bmp_load_addr, bmp_size); in splash_load_raw()
142 static int splash_select_fs_dev(struct splash_location *location) in splash_select_fs_dev() argument
146 switch (location->storage) { in splash_select_fs_dev()
148 res = fs_set_blk_dev("mmc", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
151 res = fs_set_blk_dev("usb", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
154 res = fs_set_blk_dev("sata", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
157 if (location->ubivol != NULL) in splash_select_fs_dev()
220 static int splash_mount_ubifs(struct splash_location *location) in splash_mount_ubifs() argument
225 sprintf(cmd, "ubi part %s", location->mtdpart); in splash_mount_ubifs()
230 sprintf(cmd, "ubifsmount %s", location->ubivol); in splash_mount_ubifs()
241 static inline int splash_mount_ubifs(struct splash_location *location) in splash_mount_ubifs() argument
256 static int splash_load_fs(struct splash_location *location, u32 bmp_load_addr) in splash_load_fs() argument
267 if (location->storage == SPLASH_STORAGE_USB) in splash_load_fs()
270 if (location->storage == SPLASH_STORAGE_SATA) in splash_load_fs()
273 if (location->storage == SPLASH_STORAGE_VIRTIO) in splash_load_fs()
276 if (location->ubivol != NULL) in splash_load_fs()
277 res = splash_mount_ubifs(location); in splash_load_fs()
282 res = splash_select_fs_dev(location); in splash_load_fs()
298 splash_select_fs_dev(location); in splash_load_fs()
302 if (location->ubivol != NULL) in splash_load_fs()
346 static int splash_load_fit(struct splash_location *location, u32 bmp_load_addr) in splash_load_fit() argument
362 res = splash_storage_read_raw(location, bmp_load_addr, header_size); in splash_load_fit()
376 res = splash_storage_read_raw(location, (u32)fit_header, fit_size); in splash_load_fit()
410 external_splash_addr += location->offset + fit_size; in splash_load_fit()
425 location->offset = external_splash_addr; in splash_load_fit()
426 res = splash_storage_read_raw(location, bmp_load_addr, external_splash_size); in splash_load_fit()