Lines Matching refs:location

67 static int splash_storage_read_raw(struct splash_location *location,  in splash_storage_read_raw()  argument
72 if (!location) in splash_storage_read_raw()
75 offset = location->offset; in splash_storage_read_raw()
76 switch (location->storage) { in splash_storage_read_raw()
88 static int splash_load_raw(struct splash_location *location, u32 bmp_load_addr) in splash_load_raw() argument
97 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
107 return splash_storage_read_raw(location, bmp_load_addr, bmp_size); in splash_load_raw()
115 static int splash_select_fs_dev(struct splash_location *location) in splash_select_fs_dev() argument
119 switch (location->storage) { in splash_select_fs_dev()
121 res = fs_set_blk_dev("mmc", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
124 res = fs_set_blk_dev("usb", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
127 res = fs_set_blk_dev("sata", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
130 if (location->ubivol != NULL) in splash_select_fs_dev()
183 static int splash_mount_ubifs(struct splash_location *location) in splash_mount_ubifs() argument
188 sprintf(cmd, "ubi part %s", location->mtdpart); in splash_mount_ubifs()
193 sprintf(cmd, "ubifsmount %s", location->ubivol); in splash_mount_ubifs()
204 static inline int splash_mount_ubifs(struct splash_location *location) in splash_mount_ubifs() argument
219 static int splash_load_fs(struct splash_location *location, u32 bmp_load_addr) in splash_load_fs() argument
230 if (location->storage == SPLASH_STORAGE_USB) in splash_load_fs()
233 if (location->storage == SPLASH_STORAGE_SATA) in splash_load_fs()
236 if (location->ubivol != NULL) in splash_load_fs()
237 res = splash_mount_ubifs(location); in splash_load_fs()
242 res = splash_select_fs_dev(location); in splash_load_fs()
258 splash_select_fs_dev(location); in splash_load_fs()
262 if (location->ubivol != NULL) in splash_load_fs()
306 static int splash_load_fit(struct splash_location *location, u32 bmp_load_addr) in splash_load_fit() argument
322 res = splash_storage_read_raw(location, bmp_load_addr, header_size); in splash_load_fit()
336 res = splash_storage_read_raw(location, (u32)fit_header, fit_size); in splash_load_fit()
370 external_splash_addr += location->offset + fit_size; in splash_load_fit()
385 location->offset = external_splash_addr; in splash_load_fit()
386 res = splash_storage_read_raw(location, bmp_load_addr, external_splash_size); in splash_load_fit()