Lines Matching defs:block_count

39     -c block_count - number of blocks to read (default=the whole device)
52 uint32_t block_count = 0;
62 ProgressBar(uint32_t block_count, size_t num_threads)
63 : total_work_(static_cast<uint32_t>(static_cast<int>(block_count * log(block_count)) *
222 uint64_t length = (info_.block_size * info_.block_count) - (block_idx * block_size);
248 uint64_t length = (info_.block_size * info_.block_count) - (block_idx * block_size);
329 .block_count = static_cast<uint32_t>(length / info_.block_size_bytes),
360 .block_count = static_cast<uint32_t>(length / info_.block_size_bytes),
402 if ((status = checker->Fill(start_block, block_count)) != ZX_OK) {
410 if ((status = checker->Check(start_block, block_count)) != ZX_OK) {
436 uint32_t blocks_left = static_cast<uint32_t>(block_count * log(block_count));
440 uint32_t work_offset = rand32(&work_gen) % block_count;
441 if (work_offset + to_read > block_count) {
442 to_read = block_count - work_offset;
511 block_count = atoi(argv[1]);
593 if (block_count == 0) {
594 block_count = static_cast<uint32_t>((info.partition_block_count +
597 } else if (dev_blocks_per_block * (block_count + start_block) >=
600 printf("block_count+offset too large\n");
610 printf("opened %s - block_size=%u, block_count=%lu\n",
611 device, info.block_size, info.block_count);
623 if (dev_blocks_per_block * start_block >= info.block_count) {
628 if (block_count == 0) {
629 block_count = static_cast<uint32_t>((info.block_count + dev_blocks_per_block - 1) /
631 } else if (dev_blocks_per_block * (block_count + start_block) >=
632 dev_blocks_per_block + info.block_count) {
634 printf("block_count+offset too large\n");
657 ctx.progress = ProgressBar(block_count, num_threads);
702 if (checker->Check(start_block, block_count) != ZX_OK) {