Lines Matching refs:src_blocks
993 static int LoadSourceBlocks(CommandParameters& params, const RangeSet& tgt, size_t* src_blocks, in LoadSourceBlocks() argument
995 CHECK(src_blocks != nullptr); in LoadSourceBlocks()
1000 if (!android::base::ParseUint(token, src_blocks)) { in LoadSourceBlocks()
1005 allocate(*src_blocks * BLOCKSIZE, ¶ms.buffer); in LoadSourceBlocks()
1082 static int LoadSrcTgtVersion3(CommandParameters& params, RangeSet* tgt, size_t* src_blocks, in LoadSrcTgtVersion3() argument
1084 CHECK(src_blocks != nullptr); in LoadSrcTgtVersion3()
1127 if (LoadSourceBlocks(params, *tgt, src_blocks, &overlap) == -1) { in LoadSrcTgtVersion3()
1131 if (VerifyBlocks(srchash, params.buffer, *src_blocks, true) == 0) { in LoadSrcTgtVersion3()
1136 LOG(INFO) << "stashing " << *src_blocks << " overlapping blocks to " << srchash; in LoadSrcTgtVersion3()
1139 if (WriteStash(params.stashbase, srchash, *src_blocks, params.buffer, true, in LoadSrcTgtVersion3()
1145 params.stashed += *src_blocks; in LoadSrcTgtVersion3()