Home
last modified time | relevance | path

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

12345

/kernel/liteos_a/compat/posix/src/
Dstdio.c38 off_t _lseek(int fd, off_t offset, int whence) in _lseek() argument
70 ret = file_seek(filep, offset, whence); in _lseek()
77 off64_t _lseek64(int fd, int offsetHigh, int offsetLow, off64_t *result, int whence) in _lseek64() argument
110 ret = file_seek64(filep, offset, whence); in _lseek64()
/kernel/linux/linux-5.10/fs/iomap/
Dseek.c19 int whence) in page_seek_hole_data() argument
23 bool seek_data = whence == SEEK_DATA; in page_seek_hole_data()
34 if (whence == SEEK_HOLE) in page_seek_hole_data()
75 int whence) in page_cache_seek_hole_data() argument
98 if (page_seek_hole_data(inode, page, &lastoff, whence)) in page_cache_seek_hole_data()
106 if (whence != SEEK_HOLE) in page_cache_seek_hole_data()
/kernel/linux/linux-5.10/tools/perf/ui/
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);
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()
608 void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence) in ui_browser__argv_seek() argument
610 switch (whence) { in ui_browser__argv_seek()
/kernel/linux/linux-5.10/fs/
Dread_write.c81 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size() argument
84 switch (whence) { in generic_file_llseek_size()
139 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek() argument
143 return generic_file_llseek_size(file, offset, whence, in generic_file_llseek()
157 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek() argument
159 switch (whence) { in fixed_size_llseek()
161 return generic_file_llseek_size(file, offset, whence, in fixed_size_llseek()
176 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence) in no_seek_end_llseek() argument
178 switch (whence) { in no_seek_end_llseek()
180 return generic_file_llseek_size(file, offset, whence, in no_seek_end_llseek()
[all …]
/kernel/liteos_a/fs/proc/include/
Dproc_file.h134 extern loff_t LseekProcFile(struct ProcDirEntry *pde, loff_t offset, int whence);
159 int LseekDirProcFile(struct ProcDirEntry *pde, off_t *pos, int whence);
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dproc_powerpc.c19 static loff_t page_map_seek(struct file *file, loff_t off, int whence) in page_map_seek() argument
21 return fixed_size_llseek(file, off, whence, PAGE_SIZE); in page_map_seek()
/kernel/linux/linux-5.10/arch/xtensa/platforms/iss/include/platform/
Dsimcall.h119 static inline int simc_lseek(int fd, uint32_t off, int whence) in simc_lseek() argument
121 return __simc(SYS_lseek, fd, off, whence); in simc_lseek()
/kernel/linux/linux-5.10/drivers/pnp/isapnp/
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()
/kernel/linux/linux-5.10/fs/sharefs/
Dfile.c129 static loff_t sharefs_file_llseek(struct file *file, loff_t offset, int whence) in sharefs_file_llseek() argument
134 err = generic_file_llseek(file, offset, whence); in sharefs_file_llseek()
139 err = generic_file_llseek(lower_file, offset, whence); in sharefs_file_llseek()
/kernel/linux/linux-5.10/drivers/s390/char/
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()
/kernel/linux/linux-5.10/drivers/zorro/
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()
/kernel/linux/linux-5.10/fs/hpfs/
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()
/kernel/linux/linux-5.10/fs/nfs/
Dnfs4file.c206 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument
210 switch (whence) { in nfs4_file_llseek()
213 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek()
218 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
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()
/kernel/liteos_a/fs/fat/os_adapt/
Dfatfs.h122 off_t fatfs_lseek64(struct file *filep, off64_t offset, int whence);
123 off64_t fatfs_lseek(struct file *filep, off_t offset, int whence);
/kernel/linux/linux-5.10/drivers/char/
Dadi.c177 static loff_t adi_llseek(struct file *file, loff_t offset, int whence) in adi_llseek() argument
181 switch (whence) { in adi_llseek()
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()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dpmc.h14 loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence);
/kernel/uniproton/src/fs/
Dfs.c59 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
61 return OsVfsLseek(fd, offset, whence); in lseek()
/kernel/linux/linux-5.10/fs/orangefs/
Ddir.c283 int whence) in orangefs_dir_llseek() argument
290 if (!whence && offset < od->end) { in orangefs_dir_llseek()
301 return default_llseek(file, offset, whence); in orangefs_dir_llseek()
/kernel/linux/linux-5.10/fs/ocfs2/
Dextent_map.c864 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument
875 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset()
891 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset()
920 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset()
921 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset()
931 if (whence == SEEK_HOLE) { in ocfs2_seek_data_hole_offset()
/kernel/linux/linux-5.10/fs/proc/
Dinode.c276 static loff_t pde_lseek(struct proc_dir_entry *pde, struct file *file, loff_t offset, int whence) in pde_lseek() argument
283 return lseek(file, offset, whence); in pde_lseek()
286 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
292 return pde_lseek(pde, file, offset, whence); in proc_reg_llseek()
294 rv = pde_lseek(pde, file, offset, whence); in proc_reg_llseek()
/kernel/linux/linux-5.10/drivers/pci/hotplug/
Dcpqphp_sysfs.c154 static loff_t lseek(struct file *file, loff_t off, int whence) in lseek() argument
157 return fixed_size_llseek(file, off, whence, dbg->size); in lseek()
/kernel/linux/linux-5.10/fs/pstore/
Dinode.c160 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument
165 return seq_lseek(file, off, whence); in pstore_file_llseek()
166 return default_llseek(file, off, whence); in pstore_file_llseek()

12345