Lines Matching refs:res

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