Lines Matching refs:pos
124 loff_t pos; in ecryptfs_write() local
132 pos = ecryptfs_file_size; in ecryptfs_write()
134 pos = offset; in ecryptfs_write()
135 while (pos < (offset + size)) { in ecryptfs_write()
136 pgoff_t ecryptfs_page_idx = (pos >> PAGE_CACHE_SHIFT); in ecryptfs_write()
137 size_t start_offset_in_page = (pos & ~PAGE_CACHE_MASK); in ecryptfs_write()
139 size_t total_remaining_bytes = ((offset + size) - pos); in ecryptfs_write()
143 if (pos < offset) { in ecryptfs_write()
145 size_t total_remaining_zeros = (offset - pos); in ecryptfs_write()
168 if (pos < offset || !start_offset_in_page) { in ecryptfs_write()
177 if (pos >= offset) { in ecryptfs_write()
194 pos += num_bytes; in ecryptfs_write()
308 loff_t pos;
319 pos = offset;
320 while (pos < (offset + size)) {
321 pgoff_t ecryptfs_page_idx = (pos >> PAGE_CACHE_SHIFT);
322 size_t start_offset_in_page = (pos & ~PAGE_CACHE_MASK);
324 size_t total_remaining_bytes = ((offset + size) - pos);
347 pos += num_bytes;