Lines Matching refs:to_read
711 s64 br, to_read, ofs, total, total2;
825 to_read = min(count, cb_size - ofs);
826 memset(b, 0, to_read);
828 total += to_read;
829 count -= to_read;
830 b = (u8*)b + to_read;
846 to_read = min(count, cb_size - ofs);
854 br = ntfs_attr_pread(na, ofs, to_read, b);
879 to_read -= br;
881 } while (to_read > 0);
905 to_read = cb_size;
914 (cb_pos - cb), to_read, cb_pos);
937 to_read -= br;
938 } while (to_read > 0);
948 to_read = min(count, cb_size - ofs);
949 decompsz = ((ofs + to_read - 1) | (NTFS_SB_SIZE - 1)) + 1;
959 memcpy(b, dest + ofs, to_read);
960 total += to_read;
961 count -= to_read;
962 b = (u8*)b + to_read;
982 s64 offs, u32 to_read, char *inbuf)
1003 if ((to_read - got) < count)
1004 count = to_read - got;
1013 } while ((xgot == (int)count) && (got < to_read));
1679 s64 to_read;
1781 to_read = offs - roffs;
1782 to_flush = to_read + to_write;
1784 to_read = na->data_size
1786 if (to_read > na->compression_block_size)
1787 to_read = na->compression_block_size;
1788 to_flush = to_read;
1811 to_read = offs - roffs;
1812 if (to_read)
1814 to_read, inbuf);
1817 if (got == to_read) {
1818 memcpy(&inbuf[to_read],b,to_write);
1820 to_read + to_write, inbuf);
1880 s64 to_read;
1919 to_read = offs + ((wrl->vcn - start_vcn)
1935 if (to_read) {
1936 got = read_clusters(vol, brl, roffs, to_read,
1938 if (got == to_read) {
1940 to_read, inbuf);