Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 6 of 6) sorted by relevance

/bootable/recovery/minzip/
DSysUtil.c58 size_t blocks; in sysMapBlockFile() local
78 blocks = ((size-1) / blksize) + 1; in sysMapBlockFile()
80 if (size == 0 || blksize == 0 || blocks > SIZE_MAX / blksize || range_count == 0) { in sysMapBlockFile()
95 reserve = mmap64(NULL, blocks * blksize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in sysMapBlockFile()
105 munmap(reserve, blocks * blksize); in sysMapBlockFile()
111 size_t remaining_size = blocks * blksize; in sysMapBlockFile()
145 munmap(reserve, blocks * blksize); in sysMapBlockFile()
/bootable/recovery/updater/
Dblockimg.cpp444 const size_t blocks, bool printerror) { in VerifyBlocks() argument
448 SHA1(data, blocks * BLOCKSIZE, digest); in VerifyBlocks()
560 bool verify, size_t* blocks, std::vector<uint8_t>& buffer, bool printnoent) { in LoadStash() argument
587 if (!blocks) { in LoadStash()
588 blocks = &blockcount; in LoadStash()
625 *blocks = sb.st_size / BLOCKSIZE; in LoadStash()
627 if (verify && VerifyBlocks(id, buffer, *blocks, true) != 0) { in LoadStash()
636 static int WriteStash(const std::string& base, const std::string& id, int blocks, in WriteStash() argument
642 if (checkspace && CacheSizeCheck(blocks * BLOCKSIZE) != 0) { in WriteStash()
658 fprintf(stderr, " skipping %d existing blocks in %s\n", blocks, cn.c_str()); in WriteStash()
[all …]
/bootable/recovery/mtdutils/
Dmtdutils.h55 off_t mtd_erase_blocks(MtdWriteContext *, int blocks); /* 0 ok, -1 for all */
Dmtdutils.c507 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/
Duncrypt.cpp260 int blocks = ((sb.st_size-1) / sb.st_blksize) + 1; in produce_block_map() local
261 ALOGI(" file size: %" PRId64 " bytes, %d blocks", sb.st_size, blocks); in produce_block_map()
/bootable/recovery/
Dfuse_sideload.cpp170 attr->blocks = (size == 0) ? 0 : (((size-1) / attr->blksize) + 1); in fill_attr()