Lines Matching refs:whence

102 static int must_set_pos(struct file *file, loff_t *offset, int whence, loff_t eof)  in must_set_pos()  argument
104 switch (whence) { in must_set_pos()
159 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size() argument
164 ret = must_set_pos(file, &offset, whence, eof); in generic_file_llseek_size()
170 if (whence == SEEK_CUR) { in generic_file_llseek_size()
196 loff_t generic_llseek_cookie(struct file *file, loff_t offset, int whence, in generic_llseek_cookie() argument
215 ret = must_set_pos(file, &offset, whence, eof); in generic_llseek_cookie()
222 if (whence == SEEK_CUR) in generic_llseek_cookie()
239 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek() argument
243 return generic_file_llseek_size(file, offset, whence, in generic_file_llseek()
257 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek() argument
259 switch (whence) { in fixed_size_llseek()
261 return generic_file_llseek_size(file, offset, whence, in fixed_size_llseek()
276 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence) in no_seek_end_llseek() argument
278 switch (whence) { in no_seek_end_llseek()
280 return generic_file_llseek_size(file, offset, whence, in no_seek_end_llseek()
296 loff_t no_seek_end_llseek_size(struct file *file, loff_t offset, int whence, loff_t size) in no_seek_end_llseek_size() argument
298 switch (whence) { in no_seek_end_llseek_size()
300 return generic_file_llseek_size(file, offset, whence, in no_seek_end_llseek_size()
319 loff_t noop_llseek(struct file *file, loff_t offset, int whence) in noop_llseek() argument
325 loff_t default_llseek(struct file *file, loff_t offset, int whence) in default_llseek() argument
331 switch (whence) { in default_llseek()
378 loff_t vfs_llseek(struct file *file, loff_t offset, int whence) in vfs_llseek() argument
382 return file->f_op->llseek(file, offset, whence); in vfs_llseek()
386 static off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence) in ksys_lseek() argument
394 if (whence <= SEEK_MAX) { in ksys_lseek()
395 loff_t res = vfs_llseek(fd_file(f), offset, whence); in ksys_lseek()
404 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) in SYSCALL_DEFINE3() argument
406 return ksys_lseek(fd, offset, whence); in SYSCALL_DEFINE3()
410 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) in COMPAT_SYSCALL_DEFINE3() argument
412 return ksys_lseek(fd, offset, whence); in COMPAT_SYSCALL_DEFINE3()
420 unsigned int, whence) in SYSCALL_DEFINE5() argument
430 if (whence > SEEK_MAX) in SYSCALL_DEFINE5()
434 whence); in SYSCALL_DEFINE5()