Lines Matching refs:res

91 	int res;  in splash_load_raw()  local
97 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
98 if (res < 0) in splash_load_raw()
99 return res; in splash_load_raw()
117 int res; in splash_select_fs_dev() local
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()
131 res = fs_set_blk_dev("ubi", NULL, FS_TYPE_UBIFS); in splash_select_fs_dev()
133 res = -ENODEV; in splash_select_fs_dev()
140 if (res) in splash_select_fs_dev()
143 return res; in splash_select_fs_dev()
185 int res; in splash_mount_ubifs() local
189 res = run_command(cmd, 0); in splash_mount_ubifs()
190 if (res) in splash_mount_ubifs()
191 return res; in splash_mount_ubifs()
194 res = run_command(cmd, 0); in splash_mount_ubifs()
196 return res; in splash_mount_ubifs()
221 int res = 0; in splash_load_fs() local
231 res = splash_init_usb(); in splash_load_fs()
234 res = splash_init_sata(); in splash_load_fs()
237 res = splash_mount_ubifs(location); in splash_load_fs()
239 if (res) in splash_load_fs()
240 return res; in splash_load_fs()
242 res = splash_select_fs_dev(location); in splash_load_fs()
243 if (res) in splash_load_fs()
246 res = fs_size(splash_file, &bmp_size); in splash_load_fs()
247 if (res) { in splash_load_fs()
248 printf("Error (%d): cannot determine file size\n", res); in splash_load_fs()
254 res = -EFAULT; in splash_load_fs()
259 res = fs_read(splash_file, bmp_load_addr, 0, 0, &actread); in splash_load_fs()
265 return res; in splash_load_fs()
308 int res; in splash_load_fit() local
322 res = splash_storage_read_raw(location, bmp_load_addr, header_size); in splash_load_fit()
323 if (res < 0) in splash_load_fit()
324 return res; in splash_load_fit()
336 res = splash_storage_read_raw(location, (u32)fit_header, fit_size); in splash_load_fit()
337 if (res < 0) in splash_load_fit()
338 return res; in splash_load_fit()
340 res = fit_check_format(fit_header, IMAGE_SIZE_INVAL); in splash_load_fit()
341 if (res) { in splash_load_fit()
343 return res; in splash_load_fit()
378 res = fit_image_get_data_size(fit_header, node_offset, &external_splash_size); in splash_load_fit()
379 if (res < 0) { in splash_load_fit()
380 printf("Failed to get size of splash image (err=%d)\n", res); in splash_load_fit()
381 return res; in splash_load_fit()
386 res = splash_storage_read_raw(location, bmp_load_addr, external_splash_size); in splash_load_fit()
387 if (res < 0) in splash_load_fit()
388 return res; in splash_load_fit()