whence 37 arch/mips/include/asm/pmon.h #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence) whence 19 arch/powerpc/kernel/proc_powerpc.c static loff_t page_map_seek(struct file *file, loff_t off, int whence) whence 21 arch/powerpc/kernel/proc_powerpc.c return fixed_size_llseek(file, off, whence, PAGE_SIZE); whence 1287 arch/sparc/kernel/mdesc.c static loff_t mdesc_llseek(struct file *file, loff_t offset, int whence) whence 1291 arch/sparc/kernel/mdesc.c return no_seek_end_llseek_size(file, offset, whence, hp->handle_size); whence 121 arch/xtensa/platforms/iss/include/platform/simcall.h static inline int simc_lseek(int fd, uint32_t off, int whence) whence 123 arch/xtensa/platforms/iss/include/platform/simcall.h return __simc(SYS_lseek, fd, off, whence); whence 177 drivers/char/adi.c static loff_t adi_llseek(struct file *file, loff_t offset, int whence) whence 181 drivers/char/adi.c switch (whence) { whence 38 drivers/char/powernv-op-panel.c static loff_t oppanel_llseek(struct file *filp, loff_t offset, int whence) whence 40 drivers/char/powernv-op-panel.c return fixed_size_llseek(filp, offset, whence, oppanel_size); whence 1662 drivers/char/xillybus/xillybus_core.c static loff_t xillybus_llseek(struct file *filp, loff_t offset, int whence) whence 1681 drivers/char/xillybus/xillybus_core.c switch (whence) { whence 137 drivers/dma-buf/dma-buf.c static loff_t dma_buf_llseek(struct file *file, loff_t offset, int whence) whence 150 drivers/dma-buf/dma-buf.c if (whence == SEEK_END) whence 152 drivers/dma-buf/dma-buf.c else if (whence == SEEK_SET) whence 761 drivers/fsi/fsi-core.c static loff_t cfam_llseek(struct file *file, loff_t offset, int whence) whence 763 drivers/fsi/fsi-core.c switch (whence) { whence 412 drivers/fsi/fsi-scom.c static loff_t scom_llseek(struct file *file, loff_t offset, int whence) whence 414 drivers/fsi/fsi-scom.c switch (whence) { whence 141 drivers/gpu/drm/drm_dp_aux_dev.c static loff_t auxdev_llseek(struct file *file, loff_t offset, int whence) whence 143 drivers/gpu/drm/drm_dp_aux_dev.c return fixed_size_llseek(file, offset, whence, AUX_MAX_OFFSET); whence 82 drivers/infiniband/hw/hfi1/debugfs.c loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence) whence 90 drivers/infiniband/hw/hfi1/debugfs.c r = seq_lseek(file, offset, whence); whence 85 drivers/infiniband/hw/hfi1/debugfs.h loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence); whence 385 drivers/net/wireless/ath/wil6210/pmc.c loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence) whence 403 drivers/net/wireless/ath/wil6210/pmc.c switch (whence) { whence 27 drivers/net/wireless/ath/wil6210/pmc.h loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence); whence 154 drivers/pci/hotplug/cpqphp_sysfs.c static loff_t lseek(struct file *file, loff_t off, int whence) whence 157 drivers/pci/hotplug/cpqphp_sysfs.c return fixed_size_llseek(file, off, whence, dbg->size); whence 22 drivers/pci/proc.c static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence) whence 25 drivers/pci/proc.c return fixed_size_llseek(file, off, whence, dev->cfg_size); whence 17 drivers/pnp/isapnp/proc.c static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence) whence 19 drivers/pnp/isapnp/proc.c return fixed_size_llseek(file, off, whence, 256); whence 58 drivers/s390/char/hmcdrv_dev.c static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence); whence 160 drivers/s390/char/hmcdrv_dev.c static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) whence 162 drivers/s390/char/hmcdrv_dev.c switch (whence) { whence 785 drivers/s390/char/vmur.c static loff_t ur_llseek(struct file *file, loff_t offset, int whence) whence 791 drivers/s390/char/vmur.c return no_seek_end_llseek(file, offset, whence); whence 2322 drivers/scsi/lpfc/lpfc_debugfs.c lpfc_debugfs_lseek(struct file *file, loff_t off, int whence) whence 2325 drivers/scsi/lpfc/lpfc_debugfs.c return fixed_size_llseek(file, off, whence, debug->len); whence 261 drivers/staging/vme/devices/vme_user.c static loff_t vme_user_llseek(struct file *file, loff_t off, int whence) whence 272 drivers/staging/vme/devices/vme_user.c res = fixed_size_llseek(file, off, whence, image_size); whence 586 drivers/usb/host/uhci-debug.c static loff_t uhci_debug_lseek(struct file *file, loff_t off, int whence) whence 589 drivers/usb/host/uhci-debug.c return no_seek_end_llseek_size(file, off, whence, up->size); whence 228 drivers/usb/misc/legousbtower.c static loff_t tower_llseek (struct file *file, loff_t off, int whence); whence 526 drivers/usb/misc/legousbtower.c static loff_t tower_llseek (struct file *file, loff_t off, int whence) whence 25 drivers/zorro/proc.c proc_bus_zorro_lseek(struct file *file, loff_t off, int whence) whence 27 drivers/zorro/proc.c return fixed_size_llseek(file, off, whence, sizeof(struct ConfigDev)); whence 650 fs/block_dev.c static loff_t block_llseek(struct file *file, loff_t offset, int whence) whence 656 fs/block_dev.c retval = fixed_size_llseek(file, offset, whence, i_size_read(bd_inode)); whence 3365 fs/btrfs/file.c static int find_desired_extent(struct inode *inode, loff_t *offset, int whence) whence 3404 fs/btrfs/file.c if (whence == SEEK_HOLE && whence 3408 fs/btrfs/file.c else if (whence == SEEK_DATA && whence 3420 fs/btrfs/file.c if (whence == SEEK_DATA && start >= inode->i_size) whence 3430 fs/btrfs/file.c static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) whence 3436 fs/btrfs/file.c switch (whence) { whence 3439 fs/btrfs/file.c offset = generic_file_llseek(file, offset, whence); whence 3448 fs/btrfs/file.c ret = find_desired_extent(inode, &offset, whence); whence 620 fs/ceph/dir.c static loff_t ceph_dir_llseek(struct file *file, loff_t offset, int whence) whence 628 fs/ceph/dir.c switch (whence) { whence 1606 fs/ceph/file.c static loff_t ceph_llseek(struct file *file, loff_t offset, int whence) whence 1615 fs/ceph/file.c if (whence == SEEK_END || whence == SEEK_DATA || whence == SEEK_HOLE) { whence 1622 fs/ceph/file.c switch (whence) { whence 939 fs/cifs/cifsfs.c static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) whence 948 fs/cifs/cifsfs.c if (whence != SEEK_SET && whence != SEEK_CUR) { whence 979 fs/cifs/cifsfs.c offset, whence); whence 981 fs/cifs/cifsfs.c return generic_file_llseek(file, offset, whence); whence 3144 fs/cifs/smb2ops.c static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) whence 3154 fs/cifs/smb2ops.c if (whence != SEEK_HOLE && whence != SEEK_DATA) whence 3155 fs/cifs/smb2ops.c return generic_file_llseek(file, offset, whence); whence 3179 fs/cifs/smb2ops.c if (whence == SEEK_HOLE) whence 3198 fs/cifs/smb2ops.c if (whence == SEEK_HOLE && out_data_len == 0) whence 3201 fs/cifs/smb2ops.c if (whence == SEEK_DATA && out_data_len == 0) { whence 3210 fs/cifs/smb2ops.c if (whence == SEEK_DATA) { whence 1684 fs/configfs/dir.c static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence) whence 1688 fs/configfs/dir.c switch (whence) { whence 225 fs/debugfs/file.c PROTO(struct file *filp, loff_t offset, int whence), whence 226 fs/debugfs/file.c ARGS(filp, offset, whence)); whence 318 fs/ecryptfs/file.c static loff_t ecryptfs_dir_llseek(struct file *file, loff_t offset, int whence) whence 320 fs/ecryptfs/file.c return vfs_llseek(ecryptfs_file_to_lower(file), offset, whence); whence 369 fs/ext4/dir.c static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) whence 376 fs/ext4/dir.c ret = generic_file_llseek_size(file, offset, whence, whence 379 fs/ext4/dir.c ret = ext4_llseek(file, offset, whence); whence 483 fs/ext4/file.c loff_t ext4_llseek(struct file *file, loff_t offset, int whence) whence 493 fs/ext4/file.c switch (whence) { whence 495 fs/ext4/file.c return generic_file_llseek_size(file, offset, whence, whence 344 fs/f2fs/file.c pgoff_t pgofs, int whence) whence 349 fs/f2fs/file.c if (whence != SEEK_DATA) whence 363 fs/f2fs/file.c pgoff_t dirty, pgoff_t pgofs, int whence) whence 365 fs/f2fs/file.c switch (whence) { whence 379 fs/f2fs/file.c static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) whence 397 fs/f2fs/file.c if (whence == SEEK_HOLE) whence 404 fs/f2fs/file.c dirty = __get_first_dirty_index(inode->i_mapping, pgofs, whence); whence 413 fs/f2fs/file.c if (whence == SEEK_DATA) { whence 440 fs/f2fs/file.c pgofs, whence)) { whence 448 fs/f2fs/file.c if (whence == SEEK_DATA) whence 451 fs/f2fs/file.c if (whence == SEEK_HOLE && data_ofs > isize) whence 460 fs/f2fs/file.c static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence) whence 465 fs/f2fs/file.c switch (whence) { whence 469 fs/f2fs/file.c return generic_file_llseek_size(file, offset, whence, whence 475 fs/f2fs/file.c return f2fs_seek_block(file, offset, whence); whence 2500 fs/fuse/file.c static loff_t fuse_lseek(struct file *file, loff_t offset, int whence) whence 2509 fs/fuse/file.c .whence = whence whence 2539 fs/fuse/file.c return generic_file_llseek(file, offset, whence); whence 2544 fs/fuse/file.c static loff_t fuse_file_llseek(struct file *file, loff_t offset, int whence) whence 2549 fs/fuse/file.c switch (whence) { whence 2553 fs/fuse/file.c retval = generic_file_llseek(file, offset, whence); whence 2559 fs/fuse/file.c retval = generic_file_llseek(file, offset, whence); whence 2565 fs/fuse/file.c retval = fuse_lseek(file, offset, whence); whence 56 fs/gfs2/file.c static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) whence 62 fs/gfs2/file.c switch (whence) { whence 67 fs/gfs2/file.c error = generic_file_llseek(file, offset, whence); whence 86 fs/gfs2/file.c error = generic_file_llseek(file, offset, whence); whence 80 fs/hostfs/hostfs.h extern int lseek_file(int fd, long long offset, int whence); whence 146 fs/hostfs/hostfs_user.c int lseek_file(int fd, long long offset, int whence) whence 150 fs/hostfs/hostfs_user.c ret = lseek64(fd, offset, whence); whence 24 fs/hpfs/dir.c static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) whence 26 fs/hpfs/dir.c loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); whence 34 fs/hpfs/dir.c if (whence == SEEK_DATA || whence == SEEK_HOLE) whence 19 fs/iomap/seek.c int whence) whence 23 fs/iomap/seek.c bool seek_data = whence == SEEK_DATA; whence 34 fs/iomap/seek.c if (whence == SEEK_HOLE) whence 75 fs/iomap/seek.c int whence) whence 98 fs/iomap/seek.c if (page_seek_hole_data(inode, page, &lastoff, whence)) whence 106 fs/iomap/seek.c if (whence != SEEK_HOLE) whence 133 fs/libfs.c loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) whence 136 fs/libfs.c switch (whence) { whence 1255 fs/libfs.c static loff_t empty_dir_llseek(struct file *file, loff_t offset, int whence) whence 1258 fs/libfs.c return generic_file_llseek_size(file, offset, whence, 2, 2); whence 921 fs/nfs/dir.c static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int whence) whence 927 fs/nfs/dir.c filp, offset, whence); whence 929 fs/nfs/dir.c switch (whence) { whence 115 fs/nfs/file.c loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) whence 118 fs/nfs/file.c filp, offset, whence); whence 124 fs/nfs/file.c if (whence != SEEK_SET && whence != SEEK_CUR) { whence 132 fs/nfs/file.c return generic_file_llseek(filp, offset, whence); whence 463 fs/nfs/nfs42proc.c struct nfs_lock_context *lock, loff_t offset, int whence) whence 469 fs/nfs/nfs42proc.c .sa_what = (whence == SEEK_HOLE) ? whence 504 fs/nfs/nfs42proc.c loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) whence 519 fs/nfs/nfs42proc.c err = _nfs42_proc_llseek(filep, lock, offset, whence); whence 159 fs/nfs/nfs4file.c static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) whence 163 fs/nfs/nfs4file.c switch (whence) { whence 166 fs/nfs/nfs4file.c ret = nfs42_proc_llseek(filep, offset, whence); whence 171 fs/nfs/nfs4file.c return nfs_file_llseek(filep, offset, whence); whence 1404 fs/nfsd/nfs4proc.c int whence; whence 1418 fs/nfsd/nfs4proc.c whence = SEEK_DATA; whence 1421 fs/nfsd/nfs4proc.c whence = SEEK_HOLE; whence 1432 fs/nfsd/nfs4proc.c seek->seek_pos = vfs_llseek(nf->nf_file, seek->seek_offset, whence); whence 866 fs/ocfs2/extent_map.c int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) whence 877 fs/ocfs2/extent_map.c BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); whence 893 fs/ocfs2/extent_map.c if (whence == SEEK_HOLE) whence 922 fs/ocfs2/extent_map.c if ((!is_data && whence == SEEK_HOLE) || whence 923 fs/ocfs2/extent_map.c (is_data && whence == SEEK_DATA)) { whence 933 fs/ocfs2/extent_map.c if (whence == SEEK_HOLE) { whence 2514 fs/ocfs2/file.c static loff_t ocfs2_file_llseek(struct file *file, loff_t offset, int whence) whence 2521 fs/ocfs2/file.c switch (whence) { whence 2545 fs/ocfs2/file.c ret = ocfs2_seek_data_hole_offset(file, &offset, whence); whence 283 fs/orangefs/dir.c int whence) whence 290 fs/orangefs/dir.c if (!whence && offset < od->end) { whence 301 fs/orangefs/dir.c return default_llseek(file, offset, whence); whence 144 fs/overlayfs/file.c static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) whence 156 fs/overlayfs/file.c if (whence == SEEK_CUR) whence 159 fs/overlayfs/file.c if (whence == SEEK_SET) whence 178 fs/overlayfs/file.c ret = vfs_llseek(real.file, offset, whence); whence 198 fs/proc/inode.c static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) whence 208 fs/proc/inode.c rv = llseek(file, offset, whence); whence 157 fs/pstore/inode.c static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) whence 162 fs/pstore/inode.c return seq_lseek(file, off, whence); whence 163 fs/pstore/inode.c return default_llseek(file, off, whence); whence 86 fs/read_write.c generic_file_llseek_size(struct file *file, loff_t offset, int whence, whence 89 fs/read_write.c switch (whence) { whence 144 fs/read_write.c loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) whence 148 fs/read_write.c return generic_file_llseek_size(file, offset, whence, whence 162 fs/read_write.c loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) whence 164 fs/read_write.c switch (whence) { whence 166 fs/read_write.c return generic_file_llseek_size(file, offset, whence, whence 181 fs/read_write.c loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence) whence 183 fs/read_write.c switch (whence) { whence 185 fs/read_write.c return generic_file_llseek_size(file, offset, whence, whence 201 fs/read_write.c loff_t no_seek_end_llseek_size(struct file *file, loff_t offset, int whence, loff_t size) whence 203 fs/read_write.c switch (whence) { whence 205 fs/read_write.c return generic_file_llseek_size(file, offset, whence, whence 224 fs/read_write.c loff_t noop_llseek(struct file *file, loff_t offset, int whence) whence 230 fs/read_write.c loff_t no_llseek(struct file *file, loff_t offset, int whence) whence 236 fs/read_write.c loff_t default_llseek(struct file *file, loff_t offset, int whence) whence 242 fs/read_write.c switch (whence) { whence 291 fs/read_write.c loff_t vfs_llseek(struct file *file, loff_t offset, int whence) whence 300 fs/read_write.c return fn(file, offset, whence); whence 304 fs/read_write.c off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence) whence 312 fs/read_write.c if (whence <= SEEK_MAX) { whence 313 fs/read_write.c loff_t res = vfs_llseek(f.file, offset, whence); whence 322 fs/read_write.c SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) whence 324 fs/read_write.c return ksys_lseek(fd, offset, whence); whence 328 fs/read_write.c COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) whence 330 fs/read_write.c return ksys_lseek(fd, offset, whence); whence 337 fs/read_write.c unsigned int, whence) whence 347 fs/read_write.c if (whence > SEEK_MAX) whence 351 fs/read_write.c whence); whence 310 fs/seq_file.c loff_t seq_lseek(struct file *file, loff_t offset, int whence) whence 317 fs/seq_file.c switch (whence) { whence 1105 fs/xfs/xfs_file.c int whence) whence 1112 fs/xfs/xfs_file.c switch (whence) { whence 1114 fs/xfs/xfs_file.c return generic_file_llseek(file, offset, whence); whence 3018 include/linux/fs.h extern loff_t default_llseek(struct file *file, loff_t offset, int whence); whence 3020 include/linux/fs.h extern loff_t vfs_llseek(struct file *file, loff_t offset, int whence); whence 3137 include/linux/fs.h extern loff_t noop_llseek(struct file *file, loff_t offset, int whence); whence 3138 include/linux/fs.h extern loff_t no_llseek(struct file *file, loff_t offset, int whence); whence 3140 include/linux/fs.h extern loff_t generic_file_llseek(struct file *file, loff_t offset, int whence); whence 3142 include/linux/fs.h int whence, loff_t maxsize, loff_t eof); whence 3144 include/linux/fs.h int whence, loff_t size); whence 460 include/linux/syscalls.h unsigned int whence); whence 462 include/linux/syscalls.h unsigned int whence); whence 1246 include/linux/syscalls.h off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence); whence 877 include/uapi/linux/fuse.h uint32_t whence; whence 946 kernel/printk/printk.c static loff_t devkmsg_llseek(struct file *file, loff_t offset, int whence) whence 957 kernel/printk/printk.c switch (whence) { whence 4415 kernel/trace/trace.c loff_t tracing_lseek(struct file *file, loff_t offset, int whence) whence 4420 kernel/trace/trace.c ret = seq_lseek(file, offset, whence); whence 752 kernel/trace/trace.h loff_t tracing_lseek(struct file *file, loff_t offset, int whence); whence 2643 mm/shmem.c pgoff_t index, pgoff_t end, int whence) whence 2657 mm/shmem.c if (whence == SEEK_DATA) whence 2663 mm/shmem.c if (whence == SEEK_HOLE) { whence 2675 mm/shmem.c (page && whence == SEEK_DATA) || whence 2676 mm/shmem.c (!page && whence == SEEK_HOLE)) { whence 2689 mm/shmem.c static loff_t shmem_file_llseek(struct file *file, loff_t offset, int whence) whence 2696 mm/shmem.c if (whence != SEEK_DATA && whence != SEEK_HOLE) whence 2697 mm/shmem.c return generic_file_llseek_size(file, offset, whence, whence 2707 mm/shmem.c new_offset = shmem_seek_hole_data(mapping, start, end, whence); whence 2712 mm/shmem.c else if (whence == SEEK_DATA) whence 79 scripts/recordmcount.c static off_t ulseek(off_t const offset, int const whence) whence 81 scripts/recordmcount.c switch (whence) { whence 1576 tools/include/nolibc/nolibc.h off_t sys_lseek(int fd, off_t offset, int whence) whence 1578 tools/include/nolibc/nolibc.h return my_syscall3(__NR_lseek, fd, offset, whence); whence 1988 tools/include/nolibc/nolibc.h off_t lseek(int fd, off_t offset, int whence) whence 1990 tools/include/nolibc/nolibc.h off_t ret = sys_lseek(fd, offset, whence); whence 810 tools/perf/builtin-trace.c .arg = { [2] = STRARRAY(whence, whences), }, }, whence 103 tools/perf/ui/browser.c void ui_browser__list_head_seek(struct ui_browser *browser, off_t offset, int whence) whence 111 tools/perf/ui/browser.c switch (whence) { whence 138 tools/perf/ui/browser.c void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence) whence 143 tools/perf/ui/browser.c switch (whence) { whence 608 tools/perf/ui/browser.c void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence) whence 610 tools/perf/ui/browser.c switch (whence) { whence 30 tools/perf/ui/browser.h void (*seek)(struct ui_browser *browser, off_t offset, int whence); whence 76 tools/perf/ui/browser.h void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence); whence 79 tools/perf/ui/browser.h void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence); whence 82 tools/perf/ui/browser.h void ui_browser__list_head_seek(struct ui_browser *browser, off_t offset, int whence); whence 1851 tools/perf/ui/browsers/hists.c off_t offset, int whence) whence 1865 tools/perf/ui/browsers/hists.c switch (whence) { whence 297 tools/testing/selftests/sparc64/drivers/adi-test.c static off_t seek_adi(int fd, off_t offset, int whence) whence 303 tools/testing/selftests/sparc64/drivers/adi-test.c ret = lseek(fd, offset, whence);