Home
last modified time | relevance | path

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

/bootable/recovery/
Dfuse_sideload.c241 static int fetch_block(struct fuse_data* fd, uint32_t block) { in fetch_block() argument
242 if (block == fd->curr_block) { in fetch_block()
246 if (block >= fd->file_blocks) { in fetch_block()
248 fd->curr_block = block; in fetch_block()
253 if (block * fd->block_size + fetch_size > fd->file_size) { in fetch_block()
257 fetch_size = fd->file_size - (block * fd->block_size); in fetch_block()
261 int result = fd->vtab->read_block(fd->cookie, block, fd->block_data, fetch_size); in fetch_block()
264 fd->curr_block = block; in fetch_block()
277 uint8_t* blockhash = fd->hashes + block * SHA256_DIGEST_SIZE; in fetch_block()
323 uint32_t block = offset / fd->block_size; in handle_read() local
[all …]
Dfuse_sideload.h33 int (*read_block)(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
Dfuse_sdcard_provider.c36 static int read_block_file(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { in read_block_file() argument
39 off64_t offset = ((off64_t) block) * fd->block_size; in read_block_file()
/bootable/recovery/uncrypt/
Duncrypt.cpp247 int block = head_block; in produce_block_map() local
248 ret = ioctl(fd, FIBMAP, &block); in produce_block_map()
253 add_block_to_ranges(&ranges, &range_alloc, &range_used, block); in produce_block_map()
256 (off64_t)sb.st_blksize * block) != 0) { in produce_block_map()
288 int block = head_block; in produce_block_map() local
289 ret = ioctl(fd, FIBMAP, &block); in produce_block_map()
294 add_block_to_ranges(&ranges, &range_alloc, &range_used, block); in produce_block_map()
297 (off64_t)sb.st_blksize * block) != 0) { in produce_block_map()
/bootable/recovery/minadbd/
Dfuse_adb_provider.cpp29 int read_block_adb(void* data, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { in read_block_adb() argument
32 if (!WriteFdFmt(ad->sfd, "%08u", block)) { in read_block_adb()
Dfuse_adb_provider_test.cpp47 uint32_t block = 1234U; in TEST() local
49 ASSERT_EQ(0, read_block_adb(reinterpret_cast<void*>(&data), block, in TEST()
Dfuse_adb_provider.h29 int read_block_adb(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);