Lines Matching refs:offset
61 unsigned long offset; in do_xip_mapping_read() local
69 offset = pos & ~PAGE_CACHE_MASK; in do_xip_mapping_read()
88 if (nr <= offset) { in do_xip_mapping_read()
92 nr = nr - offset; in do_xip_mapping_read()
123 left = __copy_to_user(buf+copied, xip_mem+offset, nr); in do_xip_mapping_read()
133 offset += (nr - left); in do_xip_mapping_read()
134 index += offset >> PAGE_CACHE_SHIFT; in do_xip_mapping_read()
135 offset &= ~PAGE_CACHE_MASK; in do_xip_mapping_read()
338 unsigned long offset; in __xip_file_write() local
343 offset = (pos & (PAGE_CACHE_SIZE -1)); /* Within page */ in __xip_file_write()
345 bytes = PAGE_CACHE_SIZE - offset; in __xip_file_write()
366 __copy_from_user_nocache(xip_mem + offset, buf, bytes); in __xip_file_write()
453 unsigned offset = from & (PAGE_CACHE_SIZE-1); in xip_truncate_page() local
463 length = offset & (blocksize - 1); in xip_truncate_page()
480 memset(xip_mem + offset, 0, length); in xip_truncate_page()