Searched refs:blocks (Results 1 – 6 of 6) sorted by relevance
/bootable/recovery/updater/ |
D | blockimg.c | 376 size_t blocks, int printerror) { in VerifyBlocks() argument 385 SHA_hash(buffer, blocks * BLOCKSIZE, digest); in VerifyBlocks() 556 static int LoadStash(const char* base, const char* id, int verify, int* blocks, uint8_t** buffer, in LoadStash() argument 569 if (!blocks) { in LoadStash() 570 blocks = &blockcount; in LoadStash() 608 *blocks = st.st_size / BLOCKSIZE; in LoadStash() 610 if (verify && VerifyBlocks(id, *buffer, *blocks, 1) != 0) { in LoadStash() 630 static int WriteStash(const char* base, const char* id, int blocks, uint8_t* buffer, in WriteStash() argument 644 if (checkspace && CacheSizeCheck(blocks * BLOCKSIZE) != 0) { in WriteStash() 663 fprintf(stderr, " skipping %d existing blocks in %s\n", blocks, cn); in WriteStash() [all …]
|
/bootable/recovery/minzip/ |
D | SysUtil.c | 93 unsigned int blocks; in sysMapBlockFile() local 113 blocks = ((size-1) / blksize) + 1; in sysMapBlockFile() 121 reserve = mmap64(NULL, blocks * blksize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in sysMapBlockFile() 128 pMap->ranges[range_count-1].length = blocks * blksize; in sysMapBlockFile()
|
/bootable/recovery/mtdutils/ |
D | mtdutils.h | 55 off_t mtd_erase_blocks(MtdWriteContext *, int blocks); /* 0 ok, -1 for all */
|
D | mtdutils.c | 507 off_t mtd_erase_blocks(MtdWriteContext *ctx, int blocks) in mtd_erase_blocks() argument 524 if (blocks < 0) blocks = total; in mtd_erase_blocks() 525 if (blocks > total) { in mtd_erase_blocks() 531 while (blocks-- > 0) { in mtd_erase_blocks()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 200 int blocks = ((sb.st_size-1) / sb.st_blksize) + 1; in produce_block_map() local 201 ALOGI(" file size: %lld bytes, %d blocks\n", (long long)sb.st_size, blocks); in produce_block_map()
|
/bootable/recovery/ |
D | fuse_sideload.c | 169 attr->blocks = (size == 0) ? 0 : (((size-1) / attr->blksize) + 1); in fill_attr()
|