• Home
  • Raw
  • Download

Lines Matching refs:offset

74 page_cache_seek_hole_data(struct inode *inode, loff_t offset, loff_t length,  in page_cache_seek_hole_data()  argument
77 pgoff_t index = offset >> PAGE_SHIFT; in page_cache_seek_hole_data()
78 pgoff_t end = DIV_ROUND_UP(offset + length, PAGE_SIZE); in page_cache_seek_hole_data()
79 loff_t lastoff = offset; in page_cache_seek_hole_data()
110 if (lastoff < offset + length) in page_cache_seek_hole_data()
121 iomap_seek_hole_actor(struct inode *inode, loff_t offset, loff_t length, in iomap_seek_hole_actor() argument
126 offset = page_cache_seek_hole_data(inode, offset, length, in iomap_seek_hole_actor()
128 if (offset < 0) in iomap_seek_hole_actor()
132 *(loff_t *)data = offset; in iomap_seek_hole_actor()
140 iomap_seek_hole(struct inode *inode, loff_t offset, const struct iomap_ops *ops) in iomap_seek_hole() argument
146 if (offset < 0 || offset >= size) in iomap_seek_hole()
149 while (offset < size) { in iomap_seek_hole()
150 ret = iomap_apply(inode, offset, size - offset, IOMAP_REPORT, in iomap_seek_hole()
151 ops, &offset, iomap_seek_hole_actor); in iomap_seek_hole()
156 offset += ret; in iomap_seek_hole()
159 return offset; in iomap_seek_hole()
164 iomap_seek_data_actor(struct inode *inode, loff_t offset, loff_t length, in iomap_seek_data_actor() argument
171 offset = page_cache_seek_hole_data(inode, offset, length, in iomap_seek_data_actor()
173 if (offset < 0) in iomap_seek_data_actor()
177 *(loff_t *)data = offset; in iomap_seek_data_actor()
183 iomap_seek_data(struct inode *inode, loff_t offset, const struct iomap_ops *ops) in iomap_seek_data() argument
189 if (offset < 0 || offset >= size) in iomap_seek_data()
192 while (offset < size) { in iomap_seek_data()
193 ret = iomap_apply(inode, offset, size - offset, IOMAP_REPORT, in iomap_seek_data()
194 ops, &offset, iomap_seek_data_actor); in iomap_seek_data()
198 return offset; in iomap_seek_data()
199 offset += ret; in iomap_seek_data()