• Home
  • Raw
  • Download

Lines Matching refs:location

63 static int splash_storage_read_raw(struct splash_location *location,  in splash_storage_read_raw()  argument
68 if (!location) in splash_storage_read_raw()
71 offset = location->offset; in splash_storage_read_raw()
72 switch (location->storage) { in splash_storage_read_raw()
84 static int splash_load_raw(struct splash_location *location, u32 bmp_load_addr) in splash_load_raw() argument
93 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
103 return splash_storage_read_raw(location, bmp_load_addr, bmp_size); in splash_load_raw()
111 static int splash_select_fs_dev(struct splash_location *location) in splash_select_fs_dev() argument
115 switch (location->storage) { in splash_select_fs_dev()
117 res = fs_set_blk_dev("mmc", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
120 res = fs_set_blk_dev("usb", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
123 res = fs_set_blk_dev("sata", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
126 if (location->ubivol != NULL) in splash_select_fs_dev()
179 static int splash_mount_ubifs(struct splash_location *location) in splash_mount_ubifs() argument
184 sprintf(cmd, "ubi part %s", location->mtdpart); in splash_mount_ubifs()
189 sprintf(cmd, "ubifsmount %s", location->ubivol); in splash_mount_ubifs()
200 static inline int splash_mount_ubifs(struct splash_location *location) in splash_mount_ubifs() argument
215 static int splash_load_fs(struct splash_location *location, u32 bmp_load_addr) in splash_load_fs() argument
226 if (location->storage == SPLASH_STORAGE_USB) in splash_load_fs()
229 if (location->storage == SPLASH_STORAGE_SATA) in splash_load_fs()
232 if (location->ubivol != NULL) in splash_load_fs()
233 res = splash_mount_ubifs(location); in splash_load_fs()
238 res = splash_select_fs_dev(location); in splash_load_fs()
254 splash_select_fs_dev(location); in splash_load_fs()
258 if (location->ubivol != NULL) in splash_load_fs()
302 static int splash_load_fit(struct splash_location *location, u32 bmp_load_addr) in splash_load_fit() argument
314 res = splash_storage_read_raw(location, bmp_load_addr, header_size); in splash_load_fit()
328 res = splash_storage_read_raw(location, (u32)fit_header, fit_size); in splash_load_fit()
338 node_offset = fit_image_get_node(fit_header, location->name); in splash_load_fit()
341 location->name); in splash_load_fit()
363 location->offset = (location->offset + fit_size + splash_offset); in splash_load_fit()
364 res = splash_storage_read_raw(location, bmp_load_addr , splash_size); in splash_load_fit()