Searched refs:whence (Results 26 - 50 of 85) sorted by relevance

1234

/linux-master/tools/include/nolibc/
H A Dsys.h589 * off_t lseek(int fd, off_t offset, int whence);
593 off_t sys_lseek(int fd, off_t offset, int whence) argument
596 return my_syscall3(__NR_lseek, fd, offset, whence);
598 return __nolibc_enosys(__func__, fd, offset, whence);
603 off_t lseek(int fd, off_t offset, int whence) argument
605 return __sysret(sys_lseek(fd, offset, whence));
/linux-master/fs/nfs/
H A Dfile.c114 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) argument
117 filp, offset, whence);
120 * whence == SEEK_END || SEEK_DATA || SEEK_HOLE => we must revalidate
123 if (whence != SEEK_SET && whence != SEEK_CUR) {
131 return generic_file_llseek(filp, offset, whence);
H A Dnfs42proc.c663 struct nfs_lock_context *lock, loff_t offset, int whence)
669 .sa_what = (whence == SEEK_HOLE) ?
705 if (whence == SEEK_DATA && res.sr_eof)
711 loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) argument
726 err = _nfs42_proc_llseek(filep, lock, offset, whence);
662 _nfs42_proc_llseek(struct file *filep, struct nfs_lock_context *lock, loff_t offset, int whence) argument
/linux-master/fs/ext4/
H A Ddir.c384 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) argument
391 ret = generic_file_llseek_size(file, offset, whence,
394 ret = ext4_llseek(file, offset, whence);
H A Dfile.c898 loff_t ext4_llseek(struct file *file, loff_t offset, int whence) argument
908 switch (whence) {
910 return generic_file_llseek_size(file, offset, whence,
/linux-master/fs/proc/
H A Dinode.c275 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) argument
281 return pde->proc_ops->proc_lseek(file, offset, whence);
283 rv = pde->proc_ops->proc_lseek(file, offset, whence);
/linux-master/fs/sysfs/
H A Dfile.c171 int whence)
177 return battr->llseek(of->file, kobj, battr, offset, whence);
179 return generic_file_llseek(of->file, offset, whence);
170 sysfs_kf_bin_llseek(struct kernfs_open_file *of, loff_t offset, int whence) argument
/linux-master/drivers/net/wireless/ath/wil6210/
H A Dpmc.c370 loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence) argument
388 switch (whence) {
/linux-master/drivers/pci/
H A Dproc.c22 static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence) argument
25 return fixed_size_llseek(file, off, whence, dev->cfg_size);
/linux-master/fs/btrfs/
H A Dfile.c3405 * @whence: Seek mode (SEEK_DATA or SEEK_HOLE).
3418 static bool find_desired_extent_in_hole(struct btrfs_inode *inode, int whence, argument
3428 if (delalloc && whence == SEEK_DATA) {
3433 if (delalloc && whence == SEEK_HOLE) {
3457 if (!delalloc && whence == SEEK_HOLE) {
3469 static loff_t find_desired_extent(struct file *file, loff_t offset, int whence) argument
3495 if (whence == SEEK_HOLE &&
3593 found = find_desired_extent_in_hole(inode, whence,
3634 found = find_desired_extent_in_hole(inode, whence,
3654 if (whence
3697 btrfs_file_llseek(struct file *file, loff_t offset, int whence) argument
[all...]
/linux-master/fs/
H A Dlibfs.c145 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) argument
148 switch (whence) {
414 * @whence: enumerator describing the starting position for this update
421 static loff_t offset_dir_llseek(struct file *file, loff_t offset, int whence) argument
423 switch (whence) {
1687 static loff_t empty_dir_llseek(struct file *file, loff_t offset, int whence) argument
1690 return generic_file_llseek_size(file, offset, whence, 2, 2);
/linux-master/drivers/usb/host/
H A Duhci-debug.c586 static loff_t uhci_debug_lseek(struct file *file, loff_t off, int whence) argument
589 return no_seek_end_llseek_size(file, off, whence, up->size);
/linux-master/tools/testing/selftests/sparc64/drivers/
H A Dadi-test.c293 static off_t seek_adi(int fd, off_t offset, int whence) argument
299 ret = lseek(fd, offset, whence);
/linux-master/drivers/usb/misc/
H A Dlegousbtower.c227 static loff_t tower_llseek(struct file *file, loff_t off, int whence);
483 static loff_t tower_llseek(struct file *file, loff_t off, int whence) argument
/linux-master/drivers/fsi/
H A Dfsi-scom.c373 static loff_t scom_llseek(struct file *file, loff_t offset, int whence) argument
375 switch (whence) {
/linux-master/drivers/staging/vme_user/
H A Dvme_user.c263 static loff_t vme_user_llseek(struct file *file, loff_t off, int whence) argument
274 res = fixed_size_llseek(file, off, whence, image_size);
/linux-master/scripts/
H A Drecordmcount.c89 static off_t ulseek(off_t const offset, int const whence) argument
91 switch (whence) {
/linux-master/fs/cachefiles/
H A Dondemand.c67 int whence)
75 return vfs_llseek(file, pos, whence);
66 cachefiles_ondemand_fd_llseek(struct file *filp, loff_t pos, int whence) argument
/linux-master/fs/zonefs/
H A Dfile.c333 static loff_t zonefs_file_llseek(struct file *file, loff_t offset, int whence) argument
342 return generic_file_llseek_size(file, offset, whence, isize, isize);
/linux-master/fs/gfs2/
H A Dfile.c50 * @whence: Where to seek from (SEEK_SET, SEEK_CUR, or SEEK_END)
58 static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) argument
64 switch (whence) {
69 error = generic_file_llseek(file, offset, whence);
88 error = generic_file_llseek(file, offset, whence);
/linux-master/drivers/dma-buf/
H A Ddma-buf.c152 static loff_t dma_buf_llseek(struct file *file, loff_t offset, int whence) argument
165 if (whence == SEEK_END)
167 else if (whence == SEEK_SET)
/linux-master/fs/xfs/
H A Dxfs_file.c1300 int whence)
1307 switch (whence) {
1309 return generic_file_llseek(file, offset, whence);
1297 xfs_file_llseek( struct file *file, loff_t offset, int whence) argument
/linux-master/fs/kernfs/
H A Dfile.c866 static loff_t kernfs_fop_llseek(struct file *file, loff_t offset, int whence) argument
884 ret = ops->llseek(of, offset, whence);
886 ret = generic_file_llseek(file, offset, whence);
/linux-master/fs/smb/client/
H A Dcifsfs.c1044 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) argument
1050 * whence == SEEK_END || SEEK_DATA || SEEK_HOLE => we must revalidate
1053 if (whence != SEEK_SET && whence != SEEK_CUR) {
1084 offset, whence);
1086 return generic_file_llseek(file, offset, whence);
/linux-master/fs/f2fs/
H A Dfile.c399 struct dnode_of_data *dn, pgoff_t index, int whence)
412 switch (whence) {
432 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) argument
450 if (whence == SEEK_HOLE) {
453 } else if (whence == SEEK_DATA) {
468 if (whence == SEEK_DATA) {
494 pgofs, whence)) {
502 if (whence == SEEK_DATA)
505 if (whence == SEEK_HOLE && data_ofs > isize)
514 static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence) argument
398 __found_offset(struct address_space *mapping, struct dnode_of_data *dn, pgoff_t index, int whence) argument
[all...]

Completed in 468 milliseconds

1234