Lines Matching defs:cbFileCurr
129 uint64_t cbFileCurr;
238 if (pTestFile->cbFileCurr < pTestFile->cbFileMax)
240 offMax = (pTestFile->cbFileMax - pTestFile->cbFileCurr) < pTestTask->DataSeg.cbSeg
242 : pTestFile->cbFileCurr;
254 if (pTestFile->cbFileCurr == pTestFile->cbFileMax)
257 offMin = RT_MIN(pTestFile->cbFileCurr, offMax);
263 if ((uint64_t)pTestTask->off + pTestTask->DataSeg.cbSeg > pTestFile->cbFileCurr)
264 pTestFile->cbFileCurr = pTestTask->off + pTestTask->DataSeg.cbSeg;
266 AssertMsg(pTestFile->cbFileCurr <= pTestFile->cbFileMax,
268 pTestFile->cbFileCurr, pTestFile->cbFileMax));
296 pTestTask->DataSeg.cbSeg = RTRandU32Ex(1, RT_MIN(pTestFile->cbFileCurr, TASK_TRANSFER_SIZE_MAX));
298 AssertMsg(pTestFile->cbFileCurr >= pTestTask->DataSeg.cbSeg, ("Impossible\n"));
299 pTestTask->off = RTRandU64Ex(0, pTestFile->cbFileCurr - pTestTask->DataSeg.cbSeg);
375 iWriteChance = 100 - (int)(((float)100.0 / pTestFile->cbFileMax) * (float)pTestFile->cbFileCurr);
425 pTestFile->cbFileCurr = 0;