Searched refs:block (Results 1 – 7 of 7) sorted by relevance
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 226 static int retry_fibmap(const int fd, const char* name, int* block, const int head_block) { in retry_fibmap() argument 227 CHECK(block != nullptr); in retry_fibmap() 233 if (ioctl(fd, FIBMAP, block) != 0) { in retry_fibmap() 237 if (*block != 0) { in retry_fibmap() 322 int block = head_block; in produce_block_map() local 323 if (ioctl(fd, FIBMAP, &block) != 0) { in produce_block_map() 328 if (block == 0) { in produce_block_map() 330 int error = retry_fibmap(fd, path, &block, head_block); in produce_block_map() 336 add_block_to_ranges(ranges, block); in produce_block_map() 339 static_cast<off64_t>(sb.st_blksize) * block) != 0) { in produce_block_map() [all …]
|
/bootable/recovery/ |
D | fuse_sideload.cpp | 244 static int fetch_block(struct fuse_data* fd, uint32_t block) { in fetch_block() argument 245 if (block == fd->curr_block) { in fetch_block() 249 if (block >= fd->file_blocks) { in fetch_block() 251 fd->curr_block = block; in fetch_block() 256 if (block * fd->block_size + fetch_size > fd->file_size) { in fetch_block() 260 fetch_size = fd->file_size - (block * fd->block_size); in fetch_block() 264 int result = fd->vtab->read_block(fd->cookie, block, fd->block_data, fetch_size); in fetch_block() 267 fd->curr_block = block; in fetch_block() 280 uint8_t* blockhash = fd->hashes + block * SHA256_DIGEST_LENGTH; in fetch_block() 326 uint32_t block = offset / fd->block_size; in handle_read() local [all …]
|
D | fuse_sdcard_provider.cpp | 37 static int read_block_file(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { in read_block_file() argument 40 off64_t offset = ((off64_t) block) * fd->block_size; in read_block_file()
|
D | fuse_sideload.h | 29 int (*read_block)(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
|
/bootable/recovery/minadbd/ |
D | fuse_adb_provider.cpp | 27 int read_block_adb(void* data, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { in read_block_adb() argument 30 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(static_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);
|