/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 84 static bool read_misc_partition(void* p, size_t size, size_t offset, std::string* err) { in read_misc_partition() argument 98 if (lseek(fd.get(), static_cast<off_t>(offset), SEEK_SET) != static_cast<off_t>(offset)) { in read_misc_partition() 111 static bool write_misc_partition(const void* p, size_t size, size_t offset, std::string* err) { in write_misc_partition() argument 122 if (lseek(fd.get(), static_cast<off_t>(offset), SEEK_SET) != static_cast<off_t>(offset)) { in write_misc_partition()
|
/bootable/recovery/minzip/ |
D | Zip.h | 35 long offset; member 89 return pEntry->offset; in mzGetZipEntryOffset()
|
D | Zip.c | 94 LOGI(" off=%ld comp=%ld uncomp=%ld how=%d\n", pEntry->offset, 367 pEntry->offset = localHdrOffset + LOCHDR in parseZipArchive() 369 if (!safe_add(NULL, pEntry->offset, pEntry->compLen)) { in parseZipArchive() 373 if ((size_t)pEntry->offset + pEntry->compLen > pArchive->length) { in parseZipArchive() 501 return processFunction(pArchive->addr + pEntry->offset, pEntry->uncompLen, cookie); in processStoredEntry() 523 zstream.next_in = pArchive->addr + pEntry->offset; in processDeflatedEntry()
|
/bootable/recovery/ |
D | fuse_sdcard_provider.cpp | 38 off64_t offset = ((off64_t) block) * fd->block_size; in read_block_file() local 39 if (TEMP_FAILURE_RETRY(lseek64(fd->fd, offset, SEEK_SET)) == -1) { in read_block_file()
|
D | fuse_sideload.cpp | 301 uint64_t offset = req->offset; in handle_read() local 321 uint32_t block = offset / fd->block_size; in handle_read() 336 uint32_t block_offset = offset - (block * fd->block_size); in handle_read()
|
/bootable/recovery/minui/ |
D | graphics_fbdev.cpp | 119 vi.red.offset, vi.red.length, in fbdev_init() 120 vi.green.offset, vi.green.length, in fbdev_init() 121 vi.blue.offset, vi.blue.length); in fbdev_init()
|
D | graphics_adf.cpp | 35 __u32 offset; member 57 mode->vdisplay, pdata->format, &surf->offset, &surf->pitch); in adf_surface_init() 68 MAP_SHARED, surf->fd, surf->offset)); in adf_surface_init() 203 surf->offset, surf->pitch, -1); in adf_flip()
|
D | graphics_drm.cpp | 199 drm_fd, map_dumb.offset); in drm_create_surface()
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 183 static bool discard_blocks(int fd, off64_t offset, uint64_t size) { in discard_blocks() argument 189 uint64_t args[2] = {static_cast<uint64_t>(offset), size}; in discard_blocks() 198 static bool check_lseek(int fd, off64_t offset, int whence) { in check_lseek() argument 199 off64_t rc = TEMP_FAILURE_RETRY(lseek64(fd, offset, whence)); in check_lseek() 257 off64_t offset = static_cast<off64_t>(rss->tgt.pos[rss->p_block*2]) * BLOCKSIZE; in RangeSinkWrite() local 258 if (!discard_blocks(rss->fd, offset, rss->p_remain)) { in RangeSinkWrite() 262 if (!check_lseek(rss->fd, offset, SEEK_SET)) { in RangeSinkWrite() 371 off64_t offset = static_cast<off64_t>(tgt.pos[i * 2]) * BLOCKSIZE; in WriteBlocks() local 373 if (!discard_blocks(fd, offset, size)) { in WriteBlocks() 377 if (!check_lseek(fd, offset, SEEK_SET)) { in WriteBlocks() [all …]
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 143 static int write_at_offset(unsigned char* buffer, size_t size, int wfd, off64_t offset) { in write_at_offset() argument 144 if (TEMP_FAILURE_RETRY(lseek64(wfd, offset, SEEK_SET)) == -1) { in write_at_offset() 145 ALOGE("error seeking to offset %" PRId64 ": %s", offset, strerror(errno)); in write_at_offset() 149 ALOGE("error writing offset %" PRId64 ": %s", offset, strerror(errno)); in write_at_offset()
|
/bootable/recovery/applypatch/ |
D | imgdiff.cpp | 1025 size_t offset = total_header_size; in main() local 1042 Write8(offset, f); in main() 1043 offset += patch_size[i]; in main() 1052 Write8(offset, f); in main() 1060 offset += patch_size[i]; in main()
|