Lines Matching defs:total
210 s64 br, total;
224 for (total = 0; count; count -= br, total += br) {
225 br = dops->pread(dev, (char*)b + total, count, pos + total);
230 if (!br || total)
231 return total;
236 return total;
261 s64 written, total, ret = -1;
280 for (total = 0; count; count -= written, total += written) {
281 written = dops->pwrite(dev, (const char*)b + total, count,
282 pos + total);
289 if (!written || total)
292 total = written;
295 if (NDevSync(dev) && total && dops->sync(dev)) {
296 total--; /* on sync error, return partially written */
298 ret = total;