Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 61 of 61) sorted by relevance

/linux-4.4.14/tools/perf/ui/
Dbrowser.h25 void (*seek)(struct ui_browser *browser, off_t offset, int whence);
67 void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence);
70 void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence);
73 void ui_browser__list_head_seek(struct ui_browser *browser, off_t offset, int whence);
Dbrowser.c90 void ui_browser__list_head_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__list_head_seek() argument
98 switch (whence) { in ui_browser__list_head_seek()
125 void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__rb_tree_seek() argument
130 switch (whence) { in ui_browser__rb_tree_seek()
592 void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__argv_seek() argument
594 switch (whence) { in ui_browser__argv_seek()
/linux-4.4.14/fs/
Dread_write.c85 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size() argument
88 switch (whence) { in generic_file_llseek_size()
143 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek() argument
147 return generic_file_llseek_size(file, offset, whence, in generic_file_llseek()
161 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek() argument
163 switch (whence) { in fixed_size_llseek()
165 return generic_file_llseek_size(file, offset, whence, in fixed_size_llseek()
184 loff_t noop_llseek(struct file *file, loff_t offset, int whence) in noop_llseek() argument
190 loff_t no_llseek(struct file *file, loff_t offset, int whence) in no_llseek() argument
196 loff_t default_llseek(struct file *file, loff_t offset, int whence) in default_llseek() argument
[all …]
Dlibfs.c89 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek() argument
93 switch (whence) { in dcache_dir_lseek()
1161 static loff_t empty_dir_llseek(struct file *file, loff_t offset, int whence) in empty_dir_llseek() argument
1164 return generic_file_llseek_size(file, offset, whence, 2, 2); in empty_dir_llseek()
Dseq_file.c319 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek() argument
326 switch (whence) { in seq_lseek()
Dblock_dev.c339 static loff_t block_llseek(struct file *file, loff_t offset, int whence) in block_llseek() argument
345 retval = fixed_size_llseek(file, offset, whence, i_size_read(bd_inode)); in block_llseek()
/linux-4.4.14/fs/ext4/
Dfile.c437 int whence, in ext4_find_unwritten_pgoff() argument
467 if (whence == SEEK_DATA) in ext4_find_unwritten_pgoff()
470 BUG_ON(whence != SEEK_HOLE); in ext4_find_unwritten_pgoff()
486 if (lastoff == startoff && whence == SEEK_HOLE && in ext4_find_unwritten_pgoff()
500 if (lastoff < endoff && whence == SEEK_HOLE && in ext4_find_unwritten_pgoff()
525 if (whence == SEEK_DATA) in ext4_find_unwritten_pgoff()
528 if (whence == SEEK_HOLE) in ext4_find_unwritten_pgoff()
550 if (nr_pages < num && whence == SEEK_HOLE) { in ext4_find_unwritten_pgoff()
719 loff_t ext4_llseek(struct file *file, loff_t offset, int whence) in ext4_llseek() argument
729 switch (whence) { in ext4_llseek()
[all …]
Ddir.c345 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek() argument
352 return generic_file_llseek_size(file, offset, whence, in ext4_dir_llseek()
355 return ext4_llseek(file, offset, whence); in ext4_dir_llseek()
/linux-4.4.14/arch/powerpc/kernel/
Dproc_powerpc.c32 static loff_t page_map_seek(struct file *file, loff_t off, int whence) in page_map_seek() argument
34 return fixed_size_llseek(file, off, whence, PAGE_SIZE); in page_map_seek()
/linux-4.4.14/arch/mips/include/asm/
Dpmon.h37 #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence) argument
/linux-4.4.14/arch/xtensa/platforms/iss/include/platform/
Dsimcall.h111 static inline int simc_lseek(int fd, uint32_t off, int whence) in simc_lseek() argument
113 return __simc(SYS_lseek, fd, off, whence); in simc_lseek()
/linux-4.4.14/drivers/pnp/isapnp/
Dproc.c30 static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence) in isapnp_proc_bus_lseek() argument
32 return fixed_size_llseek(file, off, whence, 256); in isapnp_proc_bus_lseek()
/linux-4.4.14/fs/xfs/
Dxfs_file.c1337 int whence) in xfs_seek_hole_data() argument
1388 if (whence == SEEK_HOLE && in xfs_seek_hole_data()
1393 if (whence == SEEK_DATA && in xfs_seek_hole_data()
1405 whence == SEEK_HOLE ? HOLE_OFF : DATA_OFF, in xfs_seek_hole_data()
1421 if (whence == SEEK_HOLE) { in xfs_seek_hole_data()
1428 ASSERT(whence == SEEK_DATA); in xfs_seek_hole_data()
1442 if (whence == SEEK_HOLE) { in xfs_seek_hole_data()
1446 ASSERT(whence == SEEK_DATA); in xfs_seek_hole_data()
1459 if (whence == SEEK_HOLE) in xfs_seek_hole_data()
1475 int whence) in xfs_file_llseek() argument
[all …]
/linux-4.4.14/fs/nfs/
Dnfs4file.c163 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument
167 switch (whence) { in nfs4_file_llseek()
170 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek()
174 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
Dnfs42proc.c138 static loff_t _nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in _nfs42_proc_llseek() argument
144 .sa_what = (whence == SEEK_HOLE) ? in _nfs42_proc_llseek()
174 loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in nfs42_proc_llseek() argument
181 err = _nfs42_proc_llseek(filep, offset, whence); in nfs42_proc_llseek()
Dfile.c121 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek() argument
124 filp, offset, whence); in nfs_file_llseek()
130 if (whence != SEEK_SET && whence != SEEK_CUR) { in nfs_file_llseek()
138 return generic_file_llseek(filp, offset, whence); in nfs_file_llseek()
Ddir.c935 static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int whence) in nfs_llseek_dir() argument
941 filp, offset, whence); in nfs_llseek_dir()
944 switch (whence) { in nfs_llseek_dir()
/linux-4.4.14/drivers/s390/char/
Dhmcdrv_dev.c57 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
159 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) in hmcdrv_dev_seek() argument
161 switch (whence) { in hmcdrv_dev_seek()
Dvmur.c783 static loff_t ur_llseek(struct file *file, loff_t offset, int whence) in ur_llseek() argument
791 switch (whence) { in ur_llseek()
/linux-4.4.14/drivers/zorro/
Dproc.c24 proc_bus_zorro_lseek(struct file *file, loff_t off, int whence) in proc_bus_zorro_lseek() argument
26 return fixed_size_llseek(file, off, whence, sizeof(struct ConfigDev)); in proc_bus_zorro_lseek()
/linux-4.4.14/fs/hpfs/
Ddir.c23 static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) in hpfs_dir_lseek() argument
25 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
33 if (whence == SEEK_DATA || whence == SEEK_HOLE) in hpfs_dir_lseek()
/linux-4.4.14/fs/f2fs/
Dfile.c291 pgoff_t pgofs, int whence) in __get_first_dirty_index() argument
296 if (whence != SEEK_DATA) in __get_first_dirty_index()
309 int whence) in __found_offset() argument
311 switch (whence) { in __found_offset()
325 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) in f2fs_seek_block() argument
343 if (whence == SEEK_HOLE) in f2fs_seek_block()
350 dirty = __get_first_dirty_index(inode->i_mapping, pgofs, whence); in f2fs_seek_block()
359 if (whence == SEEK_DATA) { in f2fs_seek_block()
377 if (__found_offset(blkaddr, dirty, pgofs, whence)) { in f2fs_seek_block()
385 if (whence == SEEK_DATA) in f2fs_seek_block()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dpmc.h27 loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence);
Dpmc.c343 loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence) in wil_pmc_llseek() argument
350 switch (whence) { in wil_pmc_llseek()
/linux-4.4.14/fs/ocfs2/
Dextent_map.c835 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument
846 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset()
862 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset()
891 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset()
892 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset()
902 if (whence == SEEK_HOLE) { in ocfs2_seek_data_hole_offset()
Dfile.c2537 static loff_t ocfs2_file_llseek(struct file *file, loff_t offset, int whence) in ocfs2_file_llseek() argument
2544 switch (whence) { in ocfs2_file_llseek()
2568 ret = ocfs2_seek_data_hole_offset(file, &offset, whence); in ocfs2_file_llseek()
/linux-4.4.14/drivers/pci/hotplug/
Dcpqphp_sysfs.c168 static loff_t lseek(struct file *file, loff_t off, int whence) in lseek() argument
171 return fixed_size_llseek(file, off, whence, dbg->size); in lseek()
/linux-4.4.14/fs/pstore/
Dinode.c171 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument
176 return seq_lseek(file, off, whence); in pstore_file_llseek()
177 return default_llseek(file, off, whence); in pstore_file_llseek()
/linux-4.4.14/fs/hostfs/
Dhostfs.h79 extern int lseek_file(int fd, long long offset, int whence);
Dhostfs_user.c146 int lseek_file(int fd, long long offset, int whence) in lseek_file() argument
150 ret = lseek64(fd, offset, whence); in lseek_file()
/linux-4.4.14/drivers/dma-buf/
Ddma-buf.c98 static loff_t dma_buf_llseek(struct file *file, loff_t offset, int whence) in dma_buf_llseek() argument
111 if (whence == SEEK_END) in dma_buf_llseek()
113 else if (whence == SEEK_SET) in dma_buf_llseek()
/linux-4.4.14/scripts/
Drecordmcount.c102 ulseek(int const fd, off_t const offset, int const whence) in ulseek() argument
104 switch (whence) { in ulseek()
/linux-4.4.14/drivers/pci/
Dproc.c20 static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence) in proc_bus_pci_lseek() argument
23 return fixed_size_llseek(file, off, whence, dev->cfg_size); in proc_bus_pci_lseek()
/linux-4.4.14/fs/gfs2/
Dfile.c56 static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) in gfs2_llseek() argument
62 switch (whence) { in gfs2_llseek()
69 error = generic_file_llseek(file, offset, whence); in gfs2_llseek()
75 error = generic_file_llseek(file, offset, whence); in gfs2_llseek()
/linux-4.4.14/fs/cifs/
Dcifsfs.c788 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) in cifs_llseek() argument
794 if (whence != SEEK_SET && whence != SEEK_CUR) { in cifs_llseek()
821 return generic_file_llseek(file, offset, whence); in cifs_llseek()
/linux-4.4.14/mm/
Dshmem.c1760 pgoff_t index, pgoff_t end, int whence) in shmem_seek_hole_data() argument
1774 if (whence == SEEK_DATA) in shmem_seek_hole_data()
1780 if (whence == SEEK_HOLE) { in shmem_seek_hole_data()
1792 (page && whence == SEEK_DATA) || in shmem_seek_hole_data()
1793 (!page && whence == SEEK_HOLE)) { in shmem_seek_hole_data()
1806 static loff_t shmem_file_llseek(struct file *file, loff_t offset, int whence) in shmem_file_llseek() argument
1813 if (whence != SEEK_DATA && whence != SEEK_HOLE) in shmem_file_llseek()
1814 return generic_file_llseek_size(file, offset, whence, in shmem_file_llseek()
1826 new_offset = shmem_seek_hole_data(mapping, start, end, whence); in shmem_file_llseek()
1831 else if (whence == SEEK_DATA) in shmem_file_llseek()
/linux-4.4.14/fs/proc/
Dinode.c179 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
188 rv = llseek(file, offset, whence); in proc_reg_llseek()
/linux-4.4.14/fs/ceph/
Dfile.c1160 static loff_t ceph_llseek(struct file *file, loff_t offset, int whence) in ceph_llseek() argument
1167 if (whence == SEEK_END || whence == SEEK_DATA || whence == SEEK_HOLE) { in ceph_llseek()
1175 switch (whence) { in ceph_llseek()
Ddir.c503 static loff_t ceph_dir_llseek(struct file *file, loff_t offset, int whence) in ceph_dir_llseek() argument
512 switch (whence) { in ceph_dir_llseek()
/linux-4.4.14/fs/btrfs/
Dfile.c2828 static int find_desired_extent(struct inode *inode, loff_t *offset, int whence) in find_desired_extent() argument
2866 if (whence == SEEK_HOLE && in find_desired_extent()
2870 else if (whence == SEEK_DATA && in find_desired_extent()
2882 if (whence == SEEK_DATA && start >= inode->i_size) in find_desired_extent()
2892 static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) in btrfs_file_llseek() argument
2898 switch (whence) { in btrfs_file_llseek()
2901 offset = generic_file_llseek(file, offset, whence); in btrfs_file_llseek()
2910 ret = find_desired_extent(inode, &offset, whence); in btrfs_file_llseek()
/linux-4.4.14/include/linux/
Dfs.h2553 extern loff_t default_llseek(struct file *file, loff_t offset, int whence);
2555 extern loff_t vfs_llseek(struct file *file, loff_t offset, int whence);
2665 extern loff_t noop_llseek(struct file *file, loff_t offset, int whence);
2666 extern loff_t no_llseek(struct file *file, loff_t offset, int whence);
2668 extern loff_t generic_file_llseek(struct file *file, loff_t offset, int whence);
2670 int whence, loff_t maxsize, loff_t eof);
2672 int whence, loff_t size);
Dsyscalls.h558 unsigned int whence);
561 unsigned int whence);
/linux-4.4.14/drivers/usb/host/
Duhci-debug.c585 static loff_t uhci_debug_lseek(struct file *file, loff_t off, int whence) in uhci_debug_lseek() argument
595 switch (whence) { in uhci_debug_lseek()
/linux-4.4.14/drivers/staging/vme/devices/
Dvme_user.c265 static loff_t vme_user_llseek(struct file *file, loff_t off, int whence) in vme_user_llseek() argument
276 res = fixed_size_llseek(file, off, whence, image_size); in vme_user_llseek()
/linux-4.4.14/drivers/usb/misc/
Dlegousbtower.c234 static loff_t tower_llseek (struct file *file, loff_t off, int whence);
538 static loff_t tower_llseek (struct file *file, loff_t off, int whence) in tower_llseek() argument
/linux-4.4.14/drivers/char/
Dmbcs.h550 static loff_t mbcs_sram_llseek(struct file *filp, loff_t off, int whence);
Dmbcs.c452 static loff_t mbcs_sram_llseek(struct file * filp, loff_t off, int whence) in mbcs_sram_llseek() argument
456 switch (whence) { in mbcs_sram_llseek()
/linux-4.4.14/fs/kernfs/
Ddir.c1470 int whence) in kernfs_dir_fop_llseek() argument
1476 ret = generic_file_llseek(file, offset, whence); in kernfs_dir_fop_llseek()
/linux-4.4.14/arch/sparc/kernel/
Dmdesc.c1034 static loff_t mdesc_llseek(struct file *file, loff_t offset, int whence) in mdesc_llseek() argument
1038 switch (whence) { in mdesc_llseek()
/linux-4.4.14/fs/nfsd/
Dnfs4proc.c1055 int whence; in nfsd4_seek() local
1069 whence = SEEK_DATA; in nfsd4_seek()
1072 whence = SEEK_HOLE; in nfsd4_seek()
1083 seek->seek_pos = vfs_llseek(file, seek->seek_offset, whence); in nfsd4_seek()
/linux-4.4.14/arch/s390/kernel/
Dcompat_wrapper.c97 …d int, fd, unsigned long, high, unsigned long, low, loff_t __user *, result, unsigned int, whence);
/linux-4.4.14/fs/configfs/
Ddir.c1589 static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence) in configfs_dir_lseek() argument
1594 switch (whence) { in configfs_dir_lseek()
/linux-4.4.14/fs/fuse/
Dfile.c2241 static loff_t fuse_file_llseek(struct file *file, loff_t offset, int whence) in fuse_file_llseek() argument
2247 if (whence == SEEK_CUR || whence == SEEK_SET) in fuse_file_llseek()
2248 return generic_file_llseek(file, offset, whence); in fuse_file_llseek()
2253 retval = generic_file_llseek(file, offset, whence); in fuse_file_llseek()
/linux-4.4.14/drivers/char/xillybus/
Dxillybus_core.c1663 static loff_t xillybus_llseek(struct file *filp, loff_t offset, int whence) in xillybus_llseek() argument
1682 switch (whence) { in xillybus_llseek()
/linux-4.4.14/kernel/trace/
Dtrace.h621 loff_t tracing_lseek(struct file *file, loff_t offset, int whence);
Dtrace.c3354 loff_t tracing_lseek(struct file *file, loff_t offset, int whence) in tracing_lseek() argument
3359 ret = seq_lseek(file, offset, whence); in tracing_lseek()
/linux-4.4.14/kernel/printk/
Dprintk.c731 static loff_t devkmsg_llseek(struct file *file, loff_t offset, int whence) in devkmsg_llseek() argument
742 switch (whence) { in devkmsg_llseek()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dfile_ops.c1921 static loff_t ui_lseek(struct file *filp, loff_t offset, int whence) in ui_lseek() argument
1925 switch (whence) { in ui_lseek()
/linux-4.4.14/tools/perf/ui/browsers/
Dhists.c989 off_t offset, int whence) in ui_browser__hists_seek() argument
1003 switch (whence) { in ui_browser__hists_seek()
/linux-4.4.14/Documentation/
Ddma-buf-sharing.txt417 with offset=0 and whence=SEEK_END|SEEK_SET. SEEK_SET is supported to allow
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_debugfs.c1166 lpfc_debugfs_lseek(struct file *file, loff_t off, int whence) in lpfc_debugfs_lseek() argument
1169 return fixed_size_llseek(file, off, whence, debug->len); in lpfc_debugfs_lseek()