Searched refs:block (Results 1 – 7 of 7) sorted by relevance
/bootable/recovery/ |
D | fuse_sideload.c | 241 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 …]
|
D | fuse_sideload.h | 33 int (*read_block)(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
|
D | fuse_sdcard_provider.c | 36 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/ |
D | uncrypt.cpp | 247 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/ |
D | fuse_adb_provider.cpp | 29 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()
|
D | fuse_adb_provider_test.cpp | 47 uint32_t block = 1234U; in TEST() local 49 ASSERT_EQ(0, read_block_adb(reinterpret_cast<void*>(&data), block, in TEST()
|
D | fuse_adb_provider.h | 29 int read_block_adb(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
|