Lines Matching defs:offset
19 * @offset: Byte offset in the lower file to which to write the data
20 * @size: Number of bytes from @data to write at @offset in the lower
28 loff_t offset, size_t size)
36 rc = kernel_write(lower_file, data, size, &offset);
46 * @offset_in_page: The offset in the @page_for_lower from which to
51 * Determines the byte offset in the file for the given page and
52 * offset within the page, maps the page, and makes the call to write
62 loff_t offset;
65 offset = ((((loff_t)page_for_lower->index) << PAGE_SHIFT)
68 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size);
79 * @offset: Offset in the eCryptfs file at which to begin writing the
93 int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset,
109 if (offset > ecryptfs_file_size)
112 pos = offset;
113 while (pos < (offset + size)) {
117 loff_t total_remaining_bytes = ((offset + size) - pos);
126 if (pos < offset) {
127 /* remaining zeros to write, up to destination offset */
128 loff_t total_remaining_zeros = (offset - pos);
146 * pos: where we're now writing, offset: where the request was
151 if (pos < offset || !start_offset_in_page) {
159 /* pos >= offset, we are now writing the data request */
160 if (pos >= offset) {
209 * @offset: Byte offset in the lower file from which to read the data
210 * @size: Number of bytes to read from @offset of the lower file and
214 * Read @size bytes of data at byte offset @offset from the lower
219 int ecryptfs_read_lower(char *data, loff_t offset, size_t size,
226 return kernel_read(lower_file, data, size, &offset);
240 * Determines the byte offset in the file for the given page and
241 * offset within the page, maps the page, and makes the call to read
252 loff_t offset;
255 offset = ((((loff_t)page_index) << PAGE_SHIFT) + offset_in_page);
257 rc = ecryptfs_read_lower(virt, offset, size, ecryptfs_inode);