Searched refs:blocks (Results 1 - 6 of 6) sorted by last modified time

/bootable/recovery/
H A Dfuse_sideload.c81 uint32_t file_blocks; // file size in block_size blocks
90 // span two blocks
143 attr->blocks = (size == 0) ? 0 : (((size-1) / attr->blksize) + 1);
308 // read can never span more than two blocks. In this case we
368 fprintf(stderr, "file has too many blocks (%u)\n", fd.file_blocks);
/bootable/recovery/minzip/
H A DSysUtil.c91 unsigned int blocks; local
111 blocks = ((size-1) / blksize) + 1;
119 reserve = mmap64(NULL, blocks * blksize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0);
126 pMap->ranges[range_count-1].length = blocks * blksize;
166 // A map of blocks
/bootable/recovery/mtdutils/
H A Dmtdutils.c283 // anything other than whole blocks; unpredictable things will result.
341 // Read complete blocks directly into the user's buffer
425 continue; // Don't try to erase known factory-bad blocks.
480 // Coalesce partial writes into complete blocks
495 // Write complete blocks directly from the user's buffer
505 off_t mtd_erase_blocks(MtdWriteContext *ctx, int blocks) argument
519 if (blocks < 0) blocks = total;
520 if (blocks > total) {
525 // Erase the specified number of blocks
[all...]
H A Dmtdutils.h44 * skips bad blocks as best we can.
56 off_t mtd_erase_blocks(MtdWriteContext *, int blocks); /* 0 ok, -1 for all */
/bootable/recovery/uncrypt/
H A Duncrypt.c18 // of the blocks that file occupies, which enables the file contents
23 // read the file and rewrite it to the same blocks of the underlying
37 // reprents the blocks [30, 31, 32].
214 int blocks = ((sb.st_size-1) / sb.st_blksize) + 1; local
215 ALOGI(" file size: %lld bytes, %d blocks\n", (long long)sb.st_size, blocks);
/bootable/recovery/updater/
H A Dblockimg.c292 int blocks = locs->pos[i*2+1] - locs->pos[i*2]; local
293 start -= blocks;
295 blocks * BLOCKSIZE);
436 // - fill the indicated blocks with zeros
439 // - fill the blocks with data read from the new_data file
442 // - mark the given blocks as empty
447 // - read the source blocks, apply a patch (or not in the
448 // case of move), write result to target blocks. bsdiff or
470 // writing anything to the target blocks.
532 // second line in transfer list is the total number of blocks w
[all...]

Completed in 232 milliseconds