Lines Matching refs:res
88 int res; in splash_load_raw() local
94 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
95 if (res < 0) in splash_load_raw()
96 return res; in splash_load_raw()
114 int res; in splash_select_fs_dev() local
118 res = fs_set_blk_dev("mmc", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
121 res = fs_set_blk_dev("usb", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
124 res = fs_set_blk_dev("sata", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
128 res = fs_set_blk_dev("ubi", NULL, FS_TYPE_UBIFS); in splash_select_fs_dev()
130 res = -ENODEV; in splash_select_fs_dev()
137 if (res) in splash_select_fs_dev()
140 return res; in splash_select_fs_dev()
182 int res; in splash_mount_ubifs() local
186 res = run_command(cmd, 0); in splash_mount_ubifs()
187 if (res) in splash_mount_ubifs()
188 return res; in splash_mount_ubifs()
191 res = run_command(cmd, 0); in splash_mount_ubifs()
193 return res; in splash_mount_ubifs()
218 int res = 0; in splash_load_fs() local
228 res = splash_init_usb(); in splash_load_fs()
231 res = splash_init_sata(); in splash_load_fs()
234 res = splash_mount_ubifs(location); in splash_load_fs()
236 if (res) in splash_load_fs()
237 return res; in splash_load_fs()
239 res = splash_select_fs_dev(location); in splash_load_fs()
240 if (res) in splash_load_fs()
243 res = fs_size(splash_file, &bmp_size); in splash_load_fs()
244 if (res) { in splash_load_fs()
245 printf("Error (%d): cannot determine file size\n", res); in splash_load_fs()
251 res = -EFAULT; in splash_load_fs()
256 res = fs_read(splash_file, bmp_load_addr, 0, 0, &actread); in splash_load_fs()
262 return res; in splash_load_fs()
305 int res; in splash_load_fit() local
315 res = splash_storage_read_raw(location, bmp_load_addr, header_size); in splash_load_fit()
316 if (res < 0) in splash_load_fit()
317 return res; in splash_load_fit()
329 res = splash_storage_read_raw(location, (u32)fit_header, fit_size); in splash_load_fit()
330 if (res < 0) in splash_load_fit()
331 return res; in splash_load_fit()
333 res = fit_check_format(fit_header); in splash_load_fit()
334 if (!res) { in splash_load_fit()
346 res = fit_image_get_data_offset(fit_header, node_offset, in splash_load_fit()
348 if (res < 0) { in splash_load_fit()
349 printf("Failed to load splash image (err=%d)\n", res); in splash_load_fit()
350 return res; in splash_load_fit()
353 res = fit_image_get_data_size(fit_header, node_offset, &splash_size); in splash_load_fit()
354 if (res < 0) { in splash_load_fit()
355 printf("Failed to load splash image (err=%d)\n", res); in splash_load_fit()
356 return res; in splash_load_fit()
365 res = splash_storage_read_raw(location, bmp_load_addr , splash_size); in splash_load_fit()
366 if (res < 0) in splash_load_fit()
367 return res; in splash_load_fit()