Home
last modified time | relevance | path

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

12345

/linux-6.15/fs/
H A Dread_write.c104 switch (whence) { in must_set_pos()
170 if (whence == SEEK_CUR) { in generic_file_llseek_size()
227 if (whence == SEEK_CUR) in generic_llseek_cookie()
264 switch (whence) { in fixed_size_llseek()
283 switch (whence) { in no_seek_end_llseek()
303 switch (whence) { in no_seek_end_llseek_size()
336 switch (whence) { in default_llseek()
399 if (whence <= SEEK_MAX) { in ksys_lseek()
424 unsigned int, whence) in SYSCALL_DEFINE5() argument
433 if (whence > SEEK_MAX) in SYSCALL_DEFINE5()
[all …]
/linux-6.15/tools/perf/ui/
H A Dbrowser.h30 void (*seek)(struct ui_browser *browser, off_t offset, int whence);
76 void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence);
79 void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence);
82 void ui_browser__list_head_seek(struct ui_browser *browser, off_t offset, int whence);
H A Dbrowser.c103 void ui_browser__list_head_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__list_head_seek() argument
111 switch (whence) { in ui_browser__list_head_seek()
138 void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__rb_tree_seek() argument
143 switch (whence) { in ui_browser__rb_tree_seek()
610 void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__argv_seek() argument
612 switch (whence) { in ui_browser__argv_seek()
/linux-6.15/arch/xtensa/platforms/iss/include/platform/
H A Dsimcall.h76 static inline int simc_lseek(int fd, uint32_t off, int whence) in simc_lseek() argument
78 return __simc(SYS_lseek, fd, off, whence); in simc_lseek()
/linux-6.15/drivers/pnp/isapnp/
H A Dproc.c17 static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence) in isapnp_proc_bus_lseek() argument
19 return fixed_size_llseek(file, off, whence, 256); in isapnp_proc_bus_lseek()
/linux-6.15/arch/powerpc/kernel/
H A Dproc_powerpc.c21 static loff_t page_map_seek(struct file *file, loff_t off, int whence) in page_map_seek() argument
23 return fixed_size_llseek(file, off, whence, PAGE_SIZE); in page_map_seek()
/linux-6.15/fs/hpfs/
H A Ddir.c24 static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) in hpfs_dir_lseek() argument
26 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
34 if (whence == SEEK_DATA || whence == SEEK_HOLE) in hpfs_dir_lseek()
/linux-6.15/tools/include/nolibc/
H A Dsys.h590 off_t sys_lseek(int fd, off_t offset, int whence) in sys_lseek() argument
593 return my_syscall3(__NR_lseek, fd, offset, whence); in sys_lseek()
595 return __nolibc_enosys(__func__, fd, offset, whence); in sys_lseek()
601 __kernel_loff_t *result, int whence) in sys_llseek() argument
604 return my_syscall5(__NR_llseek, fd, offset_high, offset_low, result, whence); in sys_llseek()
606 return __nolibc_enosys(__func__, fd, offset_high, offset_low, result, whence); in sys_llseek()
611 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
617 result = sys_lseek(fd, offset, whence); in lseek()
620 ret = sys_llseek(fd, 0, offset, &loff, whence); in lseek()
/linux-6.15/drivers/s390/char/
H A Dhmcdrv_dev.c58 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
160 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) in hmcdrv_dev_seek() argument
162 switch (whence) { in hmcdrv_dev_seek()
/linux-6.15/fs/udf/
H A Ddir.c145 static loff_t udf_dir_llseek(struct file *file, loff_t offset, int whence) in udf_dir_llseek() argument
147 return generic_llseek_cookie(file, offset, whence, in udf_dir_llseek()
/linux-6.15/drivers/zorro/
H A Dproc.c25 proc_bus_zorro_lseek(struct file *file, loff_t off, int whence) in proc_bus_zorro_lseek() argument
27 return fixed_size_llseek(file, off, whence, sizeof(struct ConfigDev)); in proc_bus_zorro_lseek()
/linux-6.15/drivers/fsi/
H A Di2cr-scom.c20 static loff_t i2cr_scom_llseek(struct file *file, loff_t offset, int whence) in i2cr_scom_llseek() argument
22 switch (whence) { in i2cr_scom_llseek()
/linux-6.15/fs/erofs/
H A Ddata.c427 static loff_t erofs_file_llseek(struct file *file, loff_t offset, int whence) in erofs_file_llseek() argument
436 return generic_file_llseek(file, offset, whence); in erofs_file_llseek()
439 if (whence == SEEK_HOLE) in erofs_file_llseek()
441 else if (whence == SEEK_DATA) in erofs_file_llseek()
444 return generic_file_llseek(file, offset, whence); in erofs_file_llseek()
/linux-6.15/drivers/char/
H A Dadi.c171 static loff_t adi_llseek(struct file *file, loff_t offset, int whence) in adi_llseek() argument
175 switch (whence) { in adi_llseek()
H A Dpowernv-op-panel.c38 static loff_t oppanel_llseek(struct file *filp, loff_t offset, int whence) in oppanel_llseek() argument
40 return fixed_size_llseek(filp, offset, whence, oppanel_size); in oppanel_llseek()
/linux-6.15/fs/nfs/
H A Dnfs4file.c204 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument
208 switch (whence) { in nfs4_file_llseek()
211 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek()
216 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
H A Dfile.c115 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek() argument
118 filp, offset, whence); in nfs_file_llseek()
124 if (whence != SEEK_SET && whence != SEEK_CUR) { in nfs_file_llseek()
132 return generic_file_llseek(filp, offset, whence); in nfs_file_llseek()
/linux-6.15/fs/affs/
H A Ddir.c27 static loff_t affs_dir_llseek(struct file *file, loff_t offset, int whence) in affs_dir_llseek() argument
31 return generic_llseek_cookie(file, offset, whence, &data->cookie); in affs_dir_llseek()
/linux-6.15/fs/orangefs/
H A Ddir.c280 int whence) in orangefs_dir_llseek() argument
287 if (!whence && offset < od->end) { in orangefs_dir_llseek()
298 return default_llseek(file, offset, whence); in orangefs_dir_llseek()
/linux-6.15/fs/ocfs2/
H A Dextent_map.c872 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument
883 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset()
899 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset()
928 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset()
929 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset()
939 if (whence == SEEK_HOLE) { in ocfs2_seek_data_hole_offset()
/linux-6.15/drivers/net/wireless/ath/wil6210/
H A Dpmc.h14 loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence);
/linux-6.15/drivers/pci/hotplug/
H A Dcpqphp_sysfs.c153 static loff_t lseek(struct file *file, loff_t off, int whence) in lseek() argument
156 return fixed_size_llseek(file, off, whence, dbg->size); in lseek()
/linux-6.15/fs/pstore/
H A Dinode.c162 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument
167 return seq_lseek(file, off, whence); in pstore_file_llseek()
168 return default_llseek(file, off, whence); in pstore_file_llseek()
/linux-6.15/fs/overlayfs/
H A Dfile.c243 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek() argument
255 if (whence == SEEK_CUR) in ovl_llseek()
258 if (whence == SEEK_SET) in ovl_llseek()
277 ret = vfs_llseek(realfile, offset, whence); in ovl_llseek()
/linux-6.15/drivers/infiniband/hw/hfi1/
H A Ddebugfs.h44 loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence);

12345