Lines Matching refs:bytes_read
1370 s64 bytes_read, written, offset, total;
1395 bytes_read = ntfs_attr_pread(attr, offset, 512, buffer);
1396 if (bytes_read == -1) {
1400 if (!bytes_read)
1403 bytes_read) {
1406 (long long)bytes_read, (long long)offset,
1410 if (bytes_read > total)
1411 bytes_read = total;
1412 written = fwrite(buffer, 1, bytes_read, stdout);
1413 if (written != bytes_read) {
1417 offset += bytes_read;
1418 total -= bytes_read;
1439 s64 bytes_read, written, offset, total;
1467 bytes_read = fread(buffer, 1, bufsize, stdin);
1468 if (bytes_read <= 0) {
1469 if (bytes_read < 0)
1472 if (bytes_read < bufsize) {
1477 count = bufsize - bytes_read;
1478 b = &buffer[bytes_read];
1505 (long long)bytes_read, (long long)offset,
1515 total += bytes_read;
1517 } while (bytes_read == bufsize);