Home
last modified time | relevance | path

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

/bootable/recovery/
Dfuse_sideload.cpp85 uint32_t block_size; // block size that the adb host is using to send the file to us member
250 memset(fd->block_data, 0, fd->block_size); in fetch_block()
255 size_t fetch_size = fd->block_size; 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()
261 memset(fd->block_data + fetch_size, 0, fd->block_size - fetch_size); in fetch_block()
279 SHA256(fd->block_data, fd->block_size, hash); in fetch_block()
326 uint32_t block = offset / fd->block_size; in handle_read()
341 uint32_t block_offset = offset - (block * fd->block_size); in handle_read()
343 if (size + block_offset <= fd->block_size) { in handle_read()
[all …]
Dfuse_sdcard_provider.cpp34 uint32_t block_size; member
40 off64_t offset = ((off64_t) block) * fd->block_size; in read_block_file()
73 fd.block_size = 65536; in start_sdcard_fuse()
84 return run_fuse_sideload(&vtab, &fd, fd.file_size, fd.block_size) == 0; in start_sdcard_fuse()
Droots.cpp246 static constexpr int block_size = 4096; in format_volume() local
247 int raid_stride = v->logical_blk_size / block_size; in format_volume()
248 int raid_stripe_width = v->erase_blk_size / block_size; in format_volume()
252 raid_stride = 8192 / block_size; in format_volume()
268 std::string block_size_str = std::to_string(block_size); in format_volume()
281 std::string size_str = std::to_string(length / block_size); in format_volume()
Dfuse_sideload.h36 uint64_t file_size, uint32_t block_size);
/bootable/recovery/minadbd/
Dfuse_adb_provider.cpp48 int run_adb_fuse(int sfd, uint64_t file_size, uint32_t block_size) { in run_adb_fuse() argument
52 ad.block_size = block_size; in run_adb_fuse()
58 return run_fuse_sideload(&vtab, &ad, file_size, block_size); in run_adb_fuse()
Dminadbd_services.cpp34 int block_size; in sideload_host_service() local
35 if (sscanf(args.c_str(), "%d:%d", &file_size, &block_size) != 2) { in sideload_host_service()
40 printf("sideload-host file size %d block size %d\n", file_size, block_size); in sideload_host_service()
42 int result = run_adb_fuse(sfd, file_size, block_size); in sideload_host_service()
Dfuse_adb_provider.h26 uint32_t block_size; member
30 int run_adb_fuse(int sfd, uint64_t file_size, uint32_t block_size);