Lines Matching refs:whence

73  * @whence:	type of seek
86 generic_file_llseek_size(struct file *file, loff_t offset, int whence,
89 switch (whence) {
138 * @whence: type of seek
142 * @offset and @whence.
144 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence)
148 return generic_file_llseek_size(file, offset, whence,
158 * @whence: type of seek
162 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size)
164 switch (whence) {
166 return generic_file_llseek_size(file, offset, whence,
178 * @whence: type of seek
181 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence)
183 switch (whence) {
185 return generic_file_llseek_size(file, offset, whence,
197 * @whence: type of seek
201 loff_t no_seek_end_llseek_size(struct file *file, loff_t offset, int whence, loff_t size)
203 switch (whence) {
205 return generic_file_llseek_size(file, offset, whence,
217 * @whence: type of seek
224 loff_t noop_llseek(struct file *file, loff_t offset, int whence)
230 loff_t default_llseek(struct file *file, loff_t offset, int whence)
236 switch (whence) {
285 loff_t vfs_llseek(struct file *file, loff_t offset, int whence)
289 return file->f_op->llseek(file, offset, whence);
293 static off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence)
301 if (whence <= SEEK_MAX) {
302 loff_t res = vfs_llseek(f.file, offset, whence);
311 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence)
313 return ksys_lseek(fd, offset, whence);
317 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence)
319 return ksys_lseek(fd, offset, whence);
327 unsigned int, whence)
337 if (whence > SEEK_MAX)
341 whence);