Searched refs:block_size (Results 1 – 7 of 7) sorted by relevance
/bootable/recovery/ |
D | fuse_sideload.c | 81 uint32_t block_size; // block size that the adb host is using to send the file to us member 247 memset(fd->block_data, 0, fd->block_size); in fetch_block() 252 size_t fetch_size = fd->block_size; 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() 258 memset(fd->block_data + fetch_size, 0, fd->block_size - fetch_size); in fetch_block() 276 SHA256_hash(fd->block_data, fd->block_size, hash); in fetch_block() 323 uint32_t block = offset / fd->block_size; in handle_read() 338 uint32_t block_offset = offset - (block * fd->block_size); in handle_read() 340 if (size + block_offset <= fd->block_size) { in handle_read() [all …]
|
D | fuse_sdcard_provider.c | 33 uint32_t block_size; member 39 off64_t offset = ((off64_t) block) * fd->block_size; in read_block_file() 89 fd.block_size = 65536; in run_sdcard_fuse() 94 t->result = run_fuse_sideload(&vtab, &fd, fd.file_size, fd.block_size); in run_sdcard_fuse()
|
D | fuse_sideload.h | 40 uint64_t file_size, uint32_t block_size);
|
/bootable/recovery/minadbd/ |
D | fuse_adb_provider.cpp | 50 int run_adb_fuse(int sfd, uint64_t file_size, uint32_t block_size) { in run_adb_fuse() argument 54 ad.block_size = block_size; in run_adb_fuse() 60 return run_fuse_sideload(&vtab, &ad, file_size, block_size); in run_adb_fuse()
|
D | services.cpp | 49 int block_size; in sideload_host_service() local 50 if (sscanf(args, "%d:%d", &file_size, &block_size) != 2) { in sideload_host_service() 55 printf("sideload-host file size %d block size %d\n", file_size, block_size); in sideload_host_service() 57 int result = run_adb_fuse(sfd, file_size, block_size); in sideload_host_service()
|
D | fuse_adb_provider.h | 26 uint32_t block_size; member 30 int run_adb_fuse(int sfd, uint64_t file_size, uint32_t block_size);
|
/bootable/recovery/mtdutils/ |
D | flash_image.c | 124 size_t block_size; in main() local 125 if (mtd_partition_info(partition, NULL, &block_size, NULL)) in main() 131 int left = block_size - headerlen; in main() 132 while (left < 0) left += block_size; in main()
|