Lines Matching defs:pos
120 loff_t pos;
125 * if we are writing beyond current size, then start pos
129 pos = ecryptfs_file_size;
131 pos = offset;
132 while (pos < (offset + size)) {
133 pgoff_t ecryptfs_page_idx = (pos >> PAGE_CACHE_SHIFT);
134 size_t start_offset_in_page = (pos & ~PAGE_CACHE_MASK);
136 size_t total_remaining_bytes = ((offset + size) - pos);
140 if (pos < offset) {
142 size_t total_remaining_zeros = (offset - pos);
160 * pos: where we're now writing, offset: where the request was
161 * If current pos is before request, we are filling zeros
165 if (pos < offset || !start_offset_in_page) {
173 /* pos >= offset, we are now writing the data request */
174 if (pos >= offset) {
197 pos += num_bytes;