Lines Matching defs:total
207 s64 br, total;
221 for (total = 0; count; count -= br, total += br) {
222 br = dops->pread(dev, (char*)b + total, count, pos + total);
227 if (!br || total)
228 return total;
233 return total;
258 s64 written, total, ret = -1;
277 for (total = 0; count; count -= written, total += written) {
278 written = dops->pwrite(dev, (const char*)b + total, count,
279 pos + total);
286 if (!written || total)
289 total = written;
292 if (NDevSync(dev) && total && dops->sync(dev)) {
293 total--; /* on sync error, return partially written */
295 ret = total;