• Home
  • Raw
  • Download

Lines Matching refs:res

87 	int res;  in splash_load_raw()  local
93 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
94 if (res < 0) in splash_load_raw()
95 return res; in splash_load_raw()
113 int res; in splash_select_fs_dev() local
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()
127 res = fs_set_blk_dev("ubi", NULL, FS_TYPE_UBIFS); in splash_select_fs_dev()
129 res = -ENODEV; in splash_select_fs_dev()
136 if (res) in splash_select_fs_dev()
139 return res; in splash_select_fs_dev()
181 int res; in splash_mount_ubifs() local
185 res = run_command(cmd, 0); in splash_mount_ubifs()
186 if (res) in splash_mount_ubifs()
187 return res; in splash_mount_ubifs()
190 res = run_command(cmd, 0); in splash_mount_ubifs()
192 return res; in splash_mount_ubifs()
217 int res = 0; in splash_load_fs() local
227 res = splash_init_usb(); in splash_load_fs()
230 res = splash_init_sata(); in splash_load_fs()
233 res = splash_mount_ubifs(location); in splash_load_fs()
235 if (res) in splash_load_fs()
236 return res; in splash_load_fs()
238 res = splash_select_fs_dev(location); in splash_load_fs()
239 if (res) in splash_load_fs()
242 res = fs_size(splash_file, &bmp_size); in splash_load_fs()
243 if (res) { in splash_load_fs()
244 printf("Error (%d): cannot determine file size\n", res); in splash_load_fs()
250 res = -EFAULT; in splash_load_fs()
255 res = fs_read(splash_file, bmp_load_addr, 0, 0, &actread); in splash_load_fs()
261 return res; in splash_load_fs()
304 int res; in splash_load_fit() local
314 res = splash_storage_read_raw(location, bmp_load_addr, header_size); in splash_load_fit()
315 if (res < 0) in splash_load_fit()
316 return res; in splash_load_fit()
328 res = splash_storage_read_raw(location, (u32)fit_header, fit_size); in splash_load_fit()
329 if (res < 0) in splash_load_fit()
330 return res; in splash_load_fit()
332 res = fit_check_format(fit_header); in splash_load_fit()
333 if (!res) { in splash_load_fit()
345 res = fit_image_get_data_offset(fit_header, node_offset, in splash_load_fit()
347 if (res < 0) { in splash_load_fit()
348 printf("Failed to load splash image (err=%d)\n", res); in splash_load_fit()
349 return res; in splash_load_fit()
352 res = fit_image_get_data_size(fit_header, node_offset, &splash_size); in splash_load_fit()
353 if (res < 0) { in splash_load_fit()
354 printf("Failed to load splash image (err=%d)\n", res); in splash_load_fit()
355 return res; in splash_load_fit()
364 res = splash_storage_read_raw(location, bmp_load_addr , splash_size); in splash_load_fit()
365 if (res < 0) in splash_load_fit()
366 return res; in splash_load_fit()