Lines Matching refs:res
118 int res; in splash_load_raw() local
124 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
125 if (res < 0) in splash_load_raw()
126 return res; in splash_load_raw()
144 int res; in splash_select_fs_dev() local
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()
158 res = fs_set_blk_dev("ubi", NULL, FS_TYPE_UBIFS); in splash_select_fs_dev()
160 res = -ENODEV; in splash_select_fs_dev()
167 if (res) in splash_select_fs_dev()
170 return res; in splash_select_fs_dev()
222 int res; in splash_mount_ubifs() local
226 res = run_command(cmd, 0); in splash_mount_ubifs()
227 if (res) in splash_mount_ubifs()
228 return res; in splash_mount_ubifs()
231 res = run_command(cmd, 0); in splash_mount_ubifs()
233 return res; in splash_mount_ubifs()
258 int res = 0; in splash_load_fs() local
268 res = splash_init_usb(); in splash_load_fs()
271 res = splash_init_sata(); in splash_load_fs()
274 res = splash_init_virtio(); in splash_load_fs()
277 res = splash_mount_ubifs(location); in splash_load_fs()
279 if (res) in splash_load_fs()
280 return res; in splash_load_fs()
282 res = splash_select_fs_dev(location); in splash_load_fs()
283 if (res) in splash_load_fs()
286 res = fs_size(splash_file, &bmp_size); in splash_load_fs()
287 if (res) { in splash_load_fs()
288 printf("Error (%d): cannot determine file size\n", res); in splash_load_fs()
294 res = -EFAULT; in splash_load_fs()
299 res = fs_read(splash_file, bmp_load_addr, 0, 0, &actread); in splash_load_fs()
305 return res; in splash_load_fs()
348 int res; in splash_load_fit() local
362 res = splash_storage_read_raw(location, bmp_load_addr, header_size); in splash_load_fit()
363 if (res < 0) in splash_load_fit()
364 return res; in splash_load_fit()
376 res = splash_storage_read_raw(location, (u32)fit_header, fit_size); in splash_load_fit()
377 if (res < 0) in splash_load_fit()
378 return res; in splash_load_fit()
380 res = fit_check_format(fit_header, IMAGE_SIZE_INVAL); in splash_load_fit()
381 if (res) { in splash_load_fit()
383 return res; in splash_load_fit()
418 res = fit_image_get_data_size(fit_header, node_offset, &external_splash_size); in splash_load_fit()
419 if (res < 0) { in splash_load_fit()
420 printf("Failed to get size of splash image (err=%d)\n", res); in splash_load_fit()
421 return res; in splash_load_fit()
426 res = splash_storage_read_raw(location, bmp_load_addr, external_splash_size); in splash_load_fit()
427 if (res < 0) in splash_load_fit()
428 return res; in splash_load_fit()