Home
last modified time | relevance | path

Searched refs:block (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/fuse_sideload/
Dfuse_sideload.cpp228 static int fetch_block(fuse_data* fd, uint32_t block) { in fetch_block() argument
229 if (block == fd->curr_block) { in fetch_block()
233 if (block >= fd->file_blocks) { in fetch_block()
235 fd->curr_block = block; in fetch_block()
240 if (block * fd->block_size + fetch_size > fd->file_size) { in fetch_block()
243 fetch_size = fd->file_size - (block * fd->block_size); in fetch_block()
247 if (!fd->provider->ReadBlockAlignedData(fd->block_data, fetch_size, block)) { in fetch_block()
251 fd->curr_block = block; in fetch_block()
263 const SHA256Digest& blockhash = fd->hashes[block]; in fetch_block()
275 fd->hashes[block] = hash; in fetch_block()
[all …]
/bootable/recovery/uncrypt/
Duncrypt.cpp223 static int RetryFibmap(int fd, const std::string& name, int* block, const int head_block) { in RetryFibmap() argument
224 CHECK(block != nullptr); in RetryFibmap()
230 if (ioctl(fd, FIBMAP, block) != 0) { in RetryFibmap()
234 if (*block != 0) { in RetryFibmap()
344 int block = head_block; in ProductBlockMap() local
345 if (ioctl(fd, FIBMAP, &block) != 0) { in ProductBlockMap()
350 if (block == 0) { in ProductBlockMap()
352 int error = RetryFibmap(fd, path, &block, head_block); in ProductBlockMap()
358 add_block_to_ranges(ranges, block); in ProductBlockMap()
361 static_cast<off64_t>(sb.st_blksize) * block) != 0) { in ProductBlockMap()
[all …]
/bootable/recovery/minadbd/
Dfuse_adb_provider_test.cpp47 uint32_t block = 1234U; in TEST() local
50 sizeof(expected_data) - 1, block)); in TEST()
/bootable/recovery/tests/unit/host/
Dupdate_simulator_test.cpp372 "EMMC:/dev/block/by-name/boot:%zu:%s", boot_img_string.size(), boot_sha1.c_str());
374 "EMMC:/dev/block/by-name/recovery:%zu:%s", recovery_img_string.size(), recovery_sha1.c_str());