Lines Matching refs:location

68 static int splash_mmc_read_raw(u32 bmp_load_addr, struct splash_location *location,
81 ret = part_get_info_by_dev_and_name_or_num("mmc", location->devpart, &desc,
92 static int splash_storage_read_raw(struct splash_location *location,
97 if (!location)
100 offset = location->offset;
101 switch (location->storage) {
103 return splash_mmc_read_raw(bmp_load_addr, location, read_size);
109 printf("Unknown splash location\n");
115 static int splash_load_raw(struct splash_location *location, u32 bmp_load_addr)
124 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size);
134 return splash_storage_read_raw(location, bmp_load_addr, bmp_size);
142 static int splash_select_fs_dev(struct splash_location *location)
146 switch (location->storage) {
148 res = fs_set_blk_dev("mmc", location->devpart, FS_TYPE_ANY);
151 res = fs_set_blk_dev("usb", location->devpart, FS_TYPE_ANY);
154 res = fs_set_blk_dev("sata", location->devpart, FS_TYPE_ANY);
157 if (location->ubivol != NULL)
163 printf("Error: unsupported location storage.\n");
220 static int splash_mount_ubifs(struct splash_location *location)
225 sprintf(cmd, "ubi part %s", location->mtdpart);
230 sprintf(cmd, "ubifsmount %s", location->ubivol);
241 static inline int splash_mount_ubifs(struct splash_location *location)
256 static int splash_load_fs(struct splash_location *location, u32 bmp_load_addr)
267 if (location->storage == SPLASH_STORAGE_USB)
270 if (location->storage == SPLASH_STORAGE_SATA)
273 if (location->storage == SPLASH_STORAGE_VIRTIO)
276 if (location->ubivol != NULL)
277 res = splash_mount_ubifs(location);
282 res = splash_select_fs_dev(location);
298 splash_select_fs_dev(location);
302 if (location->ubivol != NULL)
309 * select_splash_location - return the splash location based on board support
321 * return the location selected by splashsource.
346 static int splash_load_fit(struct splash_location *location, u32 bmp_load_addr)
362 res = splash_storage_read_raw(location, bmp_load_addr, header_size);
376 res = splash_storage_read_raw(location, (uintptr_t)fit_header, fit_size);
410 external_splash_addr += location->offset + fit_size;
425 location->offset = external_splash_addr;
426 res = splash_storage_read_raw(location, bmp_load_addr, external_splash_size);
436 * splash_source_load - load splash image from a supported location.
438 * Select a splash image location based on the value of splashsource environment