Home
last modified time | relevance | path

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

/linux-4.1.27/tools/perf/ui/
Dbrowser.h25 void (*seek)(struct ui_browser *browser, off_t offset, int whence);
64 void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence);
67 void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence);
70 void ui_browser__list_head_seek(struct ui_browser *browser, off_t offset, int whence);
Dbrowser.c75 void ui_browser__list_head_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__list_head_seek() argument
83 switch (whence) { in ui_browser__list_head_seek()
110 void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__rb_tree_seek() argument
115 switch (whence) { in ui_browser__rb_tree_seek()
563 void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__argv_seek() argument
565 switch (whence) { in ui_browser__argv_seek()
/linux-4.1.27/fs/ext4/
Dfile.c328 int whence, in ext4_find_unwritten_pgoff() argument
358 if (whence == SEEK_DATA) in ext4_find_unwritten_pgoff()
361 BUG_ON(whence != SEEK_HOLE); in ext4_find_unwritten_pgoff()
377 if (lastoff == startoff && whence == SEEK_HOLE && in ext4_find_unwritten_pgoff()
391 if (lastoff < endoff && whence == SEEK_HOLE && in ext4_find_unwritten_pgoff()
416 if (whence == SEEK_DATA) in ext4_find_unwritten_pgoff()
419 if (whence == SEEK_HOLE) in ext4_find_unwritten_pgoff()
441 if (nr_pages < num && whence == SEEK_HOLE) { in ext4_find_unwritten_pgoff()
610 loff_t ext4_llseek(struct file *file, loff_t offset, int whence) in ext4_llseek() argument
620 switch (whence) { in ext4_llseek()
[all …]
Ddir.c351 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek() argument
358 return generic_file_llseek_size(file, offset, whence, in ext4_dir_llseek()
361 return ext4_llseek(file, offset, whence); in ext4_dir_llseek()
/linux-4.1.27/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.c94 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek() argument
98 switch (whence) { in dcache_dir_lseek()
1152 static loff_t empty_dir_llseek(struct file *file, loff_t offset, int whence) in empty_dir_llseek() argument
1155 return generic_file_llseek_size(file, offset, whence, 2, 2); in empty_dir_llseek()
Dseq_file.c309 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek() argument
316 switch (whence) { in seq_lseek()
Dblock_dev.c325 static loff_t block_llseek(struct file *file, loff_t offset, int whence) in block_llseek() argument
331 retval = fixed_size_llseek(file, offset, whence, i_size_read(bd_inode)); in block_llseek()
/linux-4.1.27/fs/nfs/
Dnfs4file.c131 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument
135 switch (whence) { in nfs4_file_llseek()
138 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek()
142 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
Dnfs42proc.c133 loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in nfs42_proc_llseek() argument
139 .sa_what = (whence == SEEK_HOLE) ? in nfs42_proc_llseek()
Dfile.c120 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek() argument
123 filp, offset, whence); in nfs_file_llseek()
129 if (whence != SEEK_SET && whence != SEEK_CUR) { in nfs_file_llseek()
137 return generic_file_llseek(filp, offset, whence); in nfs_file_llseek()
Ddir.c943 static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int whence) in nfs_llseek_dir() argument
949 filp, offset, whence); in nfs_llseek_dir()
952 switch (whence) { in nfs_llseek_dir()
/linux-4.1.27/fs/f2fs/
Dfile.c279 pgoff_t pgofs, int whence) in __get_first_dirty_index() argument
284 if (whence != SEEK_DATA) in __get_first_dirty_index()
297 int whence) in __found_offset() argument
299 switch (whence) { in __found_offset()
313 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) in f2fs_seek_block() argument
331 if (whence == SEEK_HOLE) in f2fs_seek_block()
338 dirty = __get_first_dirty_index(inode->i_mapping, pgofs, whence); in f2fs_seek_block()
347 if (whence == SEEK_DATA) { in f2fs_seek_block()
365 if (__found_offset(blkaddr, dirty, pgofs, whence)) { in f2fs_seek_block()
373 if (whence == SEEK_DATA) in f2fs_seek_block()
[all …]
/linux-4.1.27/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.1.27/arch/mips/include/asm/
Dpmon.h37 #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence) argument
/linux-4.1.27/fs/xfs/
Dxfs_file.c1299 int whence) in xfs_seek_hole_data() argument
1350 if (whence == SEEK_HOLE && in xfs_seek_hole_data()
1355 if (whence == SEEK_DATA && in xfs_seek_hole_data()
1367 whence == SEEK_HOLE ? HOLE_OFF : DATA_OFF, in xfs_seek_hole_data()
1383 if (whence == SEEK_HOLE) { in xfs_seek_hole_data()
1390 ASSERT(whence == SEEK_DATA); in xfs_seek_hole_data()
1404 if (whence == SEEK_HOLE) { in xfs_seek_hole_data()
1408 ASSERT(whence == SEEK_DATA); in xfs_seek_hole_data()
1421 if (whence == SEEK_HOLE) in xfs_seek_hole_data()
1437 int whence) in xfs_file_llseek() argument
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/fs/ocfs2/
Dextent_map.c833 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument
844 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset()
860 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset()
889 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset()
890 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset()
900 if (whence == SEEK_HOLE) { in ocfs2_seek_data_hole_offset()
Dfile.c2552 static loff_t ocfs2_file_llseek(struct file *file, loff_t offset, int whence) in ocfs2_file_llseek() argument
2559 switch (whence) { in ocfs2_file_llseek()
2583 ret = ocfs2_seek_data_hole_offset(file, &offset, whence); in ocfs2_file_llseek()
/linux-4.1.27/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.1.27/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.1.27/fs/ext3/
Ddir.c278 static loff_t ext3_dir_llseek(struct file *file, loff_t offset, int whence) in ext3_dir_llseek() argument
285 return generic_file_llseek_size(file, offset, whence, in ext3_dir_llseek()
288 return generic_file_llseek(file, offset, whence); in ext3_dir_llseek()
/linux-4.1.27/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.1.27/scripts/
Drecordmcount.c93 ulseek(int const fd, off_t const offset, int const whence) in ulseek() argument
95 off_t const w = lseek(fd, offset, whence); in ulseek()
/linux-4.1.27/drivers/dma-buf/
Ddma-buf.c96 static loff_t dma_buf_llseek(struct file *file, loff_t offset, int whence) in dma_buf_llseek() argument
109 if (whence == SEEK_END) in dma_buf_llseek()
111 else if (whence == SEEK_SET) in dma_buf_llseek()
/linux-4.1.27/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.1.27/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.1.27/fs/cifs/
Dcifsfs.c781 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) in cifs_llseek() argument
787 if (whence != SEEK_SET && whence != SEEK_CUR) { in cifs_llseek()
814 return generic_file_llseek(file, offset, whence); in cifs_llseek()
/linux-4.1.27/mm/
Dshmem.c1744 pgoff_t index, pgoff_t end, int whence) in shmem_seek_hole_data() argument
1758 if (whence == SEEK_DATA) in shmem_seek_hole_data()
1764 if (whence == SEEK_HOLE) { in shmem_seek_hole_data()
1776 (page && whence == SEEK_DATA) || in shmem_seek_hole_data()
1777 (!page && whence == SEEK_HOLE)) { in shmem_seek_hole_data()
1790 static loff_t shmem_file_llseek(struct file *file, loff_t offset, int whence) in shmem_file_llseek() argument
1797 if (whence != SEEK_DATA && whence != SEEK_HOLE) in shmem_file_llseek()
1798 return generic_file_llseek_size(file, offset, whence, in shmem_file_llseek()
1810 new_offset = shmem_seek_hole_data(mapping, start, end, whence); in shmem_file_llseek()
1815 else if (whence == SEEK_DATA) in shmem_file_llseek()
/linux-4.1.27/fs/proc/
Dinode.c180 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
189 rv = llseek(file, offset, whence); in proc_reg_llseek()
/linux-4.1.27/fs/ceph/
Dfile.c1069 static loff_t ceph_llseek(struct file *file, loff_t offset, int whence) in ceph_llseek() argument
1076 if (whence == SEEK_END || whence == SEEK_DATA || whence == SEEK_HOLE) { in ceph_llseek()
1084 switch (whence) { in ceph_llseek()
Ddir.c490 static loff_t ceph_dir_llseek(struct file *file, loff_t offset, int whence) in ceph_dir_llseek() argument
499 switch (whence) { in ceph_dir_llseek()
/linux-4.1.27/fs/btrfs/
Dfile.c2715 static int find_desired_extent(struct inode *inode, loff_t *offset, int whence) in find_desired_extent() argument
2753 if (whence == SEEK_HOLE && in find_desired_extent()
2757 else if (whence == SEEK_DATA && in find_desired_extent()
2769 if (whence == SEEK_DATA && start >= inode->i_size) in find_desired_extent()
2779 static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) in btrfs_file_llseek() argument
2785 switch (whence) { in btrfs_file_llseek()
2788 offset = generic_file_llseek(file, offset, whence); in btrfs_file_llseek()
2797 ret = find_desired_extent(inode, &offset, whence); in btrfs_file_llseek()
/linux-4.1.27/include/linux/
Dfs.h2516 extern loff_t default_llseek(struct file *file, loff_t offset, int whence);
2518 extern loff_t vfs_llseek(struct file *file, loff_t offset, int whence);
2623 extern loff_t noop_llseek(struct file *file, loff_t offset, int whence);
2624 extern loff_t no_llseek(struct file *file, loff_t offset, int whence);
2626 extern loff_t generic_file_llseek(struct file *file, loff_t offset, int whence);
2628 int whence, loff_t maxsize, loff_t eof);
2630 int whence, loff_t size);
Dsyscalls.h558 unsigned int whence);
561 unsigned int whence);
/linux-4.1.27/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.1.27/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.1.27/drivers/staging/vme/devices/
Dvme_user.c427 static loff_t vme_user_llseek(struct file *file, loff_t off, int whence) in vme_user_llseek() argument
438 res = fixed_size_llseek(file, off, whence, image_size); in vme_user_llseek()
/linux-4.1.27/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.1.27/fs/kernfs/
Ddir.c1447 int whence) in kernfs_dir_fop_llseek() argument
1453 ret = generic_file_llseek(file, offset, whence); in kernfs_dir_fop_llseek()
/linux-4.1.27/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.1.27/fs/nfsd/
Dnfs4proc.c1064 int whence; in nfsd4_seek() local
1080 whence = SEEK_DATA; in nfsd4_seek()
1083 whence = SEEK_HOLE; in nfsd4_seek()
1094 seek->seek_pos = vfs_llseek(file, seek->seek_offset, whence); in nfsd4_seek()
/linux-4.1.27/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.1.27/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.1.27/arch/s390/kernel/
Dcompat_wrapper.c113 …d int, fd, unsigned long, high, unsigned long, low, loff_t __user *, result, unsigned int, whence);
/linux-4.1.27/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.1.27/kernel/trace/
Dtrace.h596 loff_t tracing_lseek(struct file *file, loff_t offset, int whence);
Dtrace.c3346 loff_t tracing_lseek(struct file *file, loff_t offset, int whence) in tracing_lseek() argument
3351 ret = seq_lseek(file, offset, whence); in tracing_lseek()
/linux-4.1.27/tools/perf/ui/browsers/
Dhists.c964 off_t offset, int whence) in ui_browser__hists_seek() argument
978 switch (whence) { in ui_browser__hists_seek()
/linux-4.1.27/kernel/printk/
Dprintk.c691 static loff_t devkmsg_llseek(struct file *file, loff_t offset, int whence) in devkmsg_llseek() argument
702 switch (whence) { in devkmsg_llseek()
/linux-4.1.27/Documentation/
Ddma-buf-sharing.txt417 with offset=0 and whence=SEEK_END|SEEK_SET. SEEK_SET is supported to allow
/linux-4.1.27/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()