Lines Matching refs:whence
68 * @whence: type of seek
81 generic_file_llseek_size(struct file *file, loff_t offset, int whence,
84 switch (whence) {
133 * @whence: type of seek
137 * @offset and @whence.
139 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence)
143 return generic_file_llseek_size(file, offset, whence,
153 * @whence: type of seek
157 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size)
159 switch (whence) {
161 return generic_file_llseek_size(file, offset, whence,
173 * @whence: type of seek
176 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence)
178 switch (whence) {
180 return generic_file_llseek_size(file, offset, whence,
192 * @whence: type of seek
196 loff_t no_seek_end_llseek_size(struct file *file, loff_t offset, int whence, loff_t size)
198 switch (whence) {
200 return generic_file_llseek_size(file, offset, whence,
212 * @whence: type of seek
219 loff_t noop_llseek(struct file *file, loff_t offset, int whence)
225 loff_t no_llseek(struct file *file, loff_t offset, int whence)
231 loff_t default_llseek(struct file *file, loff_t offset, int whence)
237 switch (whence) {
286 loff_t vfs_llseek(struct file *file, loff_t offset, int whence)
295 return fn(file, offset, whence);
299 static off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence)
307 if (whence <= SEEK_MAX) {
308 loff_t res = vfs_llseek(f.file, offset, whence);
317 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence)
319 return ksys_lseek(fd, offset, whence);
323 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence)
325 return ksys_lseek(fd, offset, whence);
333 unsigned int, whence)
343 if (whence > SEEK_MAX)
347 whence);