Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 14 of 14) sorted by relevance

/bootable/recovery/minui/
Dgraphics_drm.cpp63 int32_t ret; in drm_enable_crtc() local
65 ret = drmModeSetCrtc(drm_fd, crtc->crtc_id, in drm_enable_crtc()
72 if (ret) in drm_enable_crtc()
73 printf("drmModeSetCrtc failed ret=%d\n", ret); in drm_enable_crtc()
86 int ret; in drm_destroy_surface() local
96 ret = drmModeRmFB(drm_fd, surface->fb_id); in drm_destroy_surface()
97 if (ret) in drm_destroy_surface()
98 printf("drmModeRmFB failed ret=%d\n", ret); in drm_destroy_surface()
105 ret = drmIoctl(drm_fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in drm_destroy_surface()
106 if (ret) in drm_destroy_surface()
[all …]
Dgraphics_adf.cpp80 int ret = 0; in adf_interface_init() local
90 ret = err; in adf_interface_init()
106 return ret; in adf_interface_init()
142 GRSurface* ret; in adf_init() local
188 ret = adf_flip(backend); in adf_init()
193 return ret; in adf_init()
Dgraphics_fbdev.cpp62 int ret; in fbdev_blank() local
64 ret = ioctl(fb_fd, FBIOBLANK, blank ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK); in fbdev_blank()
65 if (ret < 0) in fbdev_blank()
Devents.cpp128 int ret = epoll_ctl(g_epoll_fd, EPOLL_CTL_ADD, fd, &ev); in ev_add_fd() local
129 if (!ret) { in ev_add_fd()
137 return ret; in ev_add_fd()
/bootable/recovery/minadbd/
Dservices.cpp92 int ret = -1; in service_to_fd() local
100 ret = create_service_thread(sideload_host_service, (void*)(name + 14)); in service_to_fd()
102 if (ret >= 0) { in service_to_fd()
103 close_on_exec(ret); in service_to_fd()
105 return ret; in service_to_fd()
/bootable/recovery/applypatch/
Dimgpatch.c151 int ret; in ApplyImagePatch() local
152 ret = inflateInit2(&strm, -15); in ApplyImagePatch()
153 if (ret != Z_OK) { in ApplyImagePatch()
154 printf("failed to init source inflation: %d\n", ret); in ApplyImagePatch()
160 ret = inflate(&strm, Z_SYNC_FLUSH); in ApplyImagePatch()
161 if (ret != Z_STREAM_END) { in ApplyImagePatch()
162 printf("source inflation returned %d\n", ret); in ApplyImagePatch()
209 ret = deflateInit2(&strm, level, method, windowBits, memLevel, strategy); in ApplyImagePatch()
213 ret = deflate(&strm, Z_FINISH); in ApplyImagePatch()
222 } while (ret != Z_STREAM_END); in ApplyImagePatch()
Dimgdiff.c325 int ret = inflateInit2(&strm, -15); in ReadZip() local
329 ret = inflate(&strm, Z_NO_FLUSH); in ReadZip()
330 if (ret != Z_STREAM_END) { in ReadZip()
331 printf("failed to inflate \"%s\"; %d\n", curr->filename, ret); in ReadZip()
451 int ret = inflateInit2(&strm, -15); in ReadImage() local
456 ret = inflate(&strm, Z_NO_FLUSH); in ReadImage()
457 if (ret < 0) { in ReadImage()
470 } while (ret != Z_STREAM_END); in ReadImage()
553 int ret; in TryReconstruction() local
554 ret = deflateInit2(&strm, chunk->level, chunk->method, chunk->windowBits, in TryReconstruction()
[all …]
/bootable/recovery/
Dbootloader.cpp148 int ret; in wait_for_device() local
152 ret = stat(fn, &buf); in wait_for_device()
153 if (ret) { in wait_for_device()
157 } while (ret && tries < 10); in wait_for_device()
158 if (ret) { in wait_for_device()
Droots.cpp45 int ret; in load_volume_table() local
53 ret = fs_mgr_add_entry(fstab, "/tmp", "ramdisk", "ramdisk"); in load_volume_table()
54 if (ret < 0 ) { in load_volume_table()
/bootable/recovery/minzip/
DZip.c562 bool ret = processFunction(procBuf, procSize, cookie); in processDeflatedEntry() local
563 if (!ret) { in processDeflatedEntry()
605 bool ret = false; in mzProcessZipEntryContents() local
610 ret = processStoredEntry(pArchive, pEntry, processFunction, cookie); in mzProcessZipEntryContents()
613 ret = processDeflatedEntry(pArchive, pEntry, processFunction, cookie); in mzProcessZipEntryContents()
621 return ret; in mzProcessZipEntryContents()
656 bool ret; in mzReadZipEntry() local
660 ret = mzProcessZipEntryContents(pArchive, pEntry, copyProcessFunction, in mzReadZipEntry()
662 if (!ret) { in mzReadZipEntry()
701 bool ret = mzProcessZipEntryContents(pArchive, pEntry, writeProcessFunction, in mzExtractZipEntryToFile() local
[all …]
/bootable/recovery/mtdutils/
Dmounts.c147 int ret = umount(volume->mount_point); in unmount_mounted_volume() local
148 if (ret == 0) { in unmount_mounted_volume()
152 return ret; in unmount_mounted_volume()
Dmtdutils.c247 int ret = ioctl(fd, MEMGETINFO, &mtd_info); in mtd_partition_info() local
249 if (ret < 0) return -1; in mtd_partition_info()
420 int ret = ioctl(fd, MEMGETBADBLOCK, &bpos); in write_block() local
421 if (ret != 0 && !(ret == -1 && errno == EOPNOTSUPP)) { in write_block()
425 pos, ret, strerror(errno)); in write_block()
/bootable/recovery/uncrypt/
Duncrypt.cpp192 int ret = stat(path, &sb); in produce_block_map() local
193 if (ret != 0) { in produce_block_map()
248 ret = ioctl(fd, FIBMAP, &block); in produce_block_map()
249 if (ret != 0) { in produce_block_map()
289 ret = ioctl(fd, FIBMAP, &block); in produce_block_map()
290 if (ret != 0) { in produce_block_map()
/bootable/recovery/updater/
Dinstall.c238 int ret = unmount_mounted_volume(vol); in UnmountFn() local
239 if (ret != 0) { in UnmountFn()
241 mount_point, ret, strerror(errno)); in UnmountFn()