Home
last modified time | relevance | path

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

12345

/openbmc/linux/fs/
H A Dread_write.c86 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size() argument
89 switch (whence) { in generic_file_llseek_size()
144 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek() argument
148 return generic_file_llseek_size(file, offset, whence, in generic_file_llseek()
162 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek() argument
164 switch (whence) { in fixed_size_llseek()
166 return generic_file_llseek_size(file, offset, whence, in fixed_size_llseek()
181 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence) in no_seek_end_llseek() argument
183 switch (whence) { in no_seek_end_llseek()
185 return generic_file_llseek_size(file, offset, whence, in no_seek_end_llseek()
[all …]
/openbmc/linux/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()
/openbmc/qemu/migration/
H A Dchannel-block.c116 int whence, in qio_channel_block_seek() argument
121 switch (whence) { in qio_channel_block_seek()
126 bioc->offset += whence; in qio_channel_block_seek()
/openbmc/u-boot/arch/sandbox/cpu/
H A Dos.c46 off_t os_lseek(int fd, off_t offset, int whence) in os_lseek() argument
48 if (whence == OS_SEEK_SET) in os_lseek()
49 whence = SEEK_SET; in os_lseek()
50 else if (whence == OS_SEEK_CUR) in os_lseek()
51 whence = SEEK_CUR; in os_lseek()
52 else if (whence == OS_SEEK_END) in os_lseek()
53 whence = SEEK_END; in os_lseek()
56 return lseek(fd, offset, whence); in os_lseek()
/openbmc/qemu/qga/
H A Dcommands.c533 int ga_parse_whence(GuestFileWhence *whence, Error **errp) in ga_parse_whence() argument
540 if (whence->type == QTYPE_QSTRING) { in ga_parse_whence()
541 int value = whence->u.name; in ga_parse_whence()
542 whence->type = QTYPE_QNUM; in ga_parse_whence()
543 whence->u.value = value; in ga_parse_whence()
545 switch (whence->u.value) { in ga_parse_whence()
553 error_setg(errp, "invalid whence code %"PRId64, whence->u.value); in ga_parse_whence()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/trace-cmd/files/
H A D0001-Replace-LFS64-interfaces-off64_t-and-lseek64.patch46 -int tracecmd_prepare_options(struct tracecmd_output *handle, off64_t offset, int whence);
47 +int tracecmd_prepare_options(struct tracecmd_output *handle, off_t offset, int whence);
75 -off64_t tracecmd_compress_lseek(struct tracecmd_compression *handle, off64_t offset, int whence);
76 +off_t tracecmd_compress_lseek(struct tracecmd_compression *handle, off_t offset, int whence);
95 -off64_t msg_lseek(struct tracecmd_msg_handle *msg_handle, off64_t offset, int whence);
96 +off_t msg_lseek(struct tracecmd_msg_handle *msg_handle, off_t offset, int whence);
108 -off64_t tracecmd_compress_lseek(struct tracecmd_compression *handle, off64_t offset, int whence)
109 +off_t tracecmd_compress_lseek(struct tracecmd_compression *handle, off_t offset, int whence)
117 switch (whence) {
634 -__hidden off64_t msg_lseek(struct tracecmd_msg_handle *msg_handle, off64_t offset, int whence)
[all …]
/openbmc/linux/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()
/openbmc/linux/arch/powerpc/kernel/
H A 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()
/openbmc/linux/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()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/mysql/mariadb/
H A Dlfs64.patch22 #define lseek64(fd, offset, whence) lseek((fd), (offset), (whence))
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/qemu/block/export/
H A Dfuse.c800 int whence, struct fuse_file_info *fi) in fuse_lseek() argument
804 if (whence != SEEK_HOLE && whence != SEEK_DATA) { in fuse_lseek()
838 if (offset > blk_len || whence == SEEK_DATA) { in fuse_lseek()
847 if (whence == SEEK_DATA) { in fuse_lseek()
852 if (whence == SEEK_HOLE) { in fuse_lseek()
/openbmc/qemu/io/
H A Dchannel-file.c237 int whence, in qio_channel_file_seek() argument
243 ret = lseek(fioc->fd, offset, whence); in qio_channel_file_seek()
247 (long long int)offset, whence); in qio_channel_file_seek()
/openbmc/linux/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()
/openbmc/linux/fs/nfs/
H A Dnfs4file.c203 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument
207 switch (whence) { in nfs4_file_llseek()
210 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek()
215 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
H A Dfile.c114 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek() argument
117 filp, offset, whence); in nfs_file_llseek()
123 if (whence != SEEK_SET && whence != SEEK_CUR) { in nfs_file_llseek()
131 return generic_file_llseek(filp, offset, whence); in nfs_file_llseek()
/openbmc/linux/drivers/char/
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()
H A 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()
/openbmc/linux/fs/ocfs2/
H A Dextent_map.c862 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument
873 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset()
889 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset()
918 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset()
919 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset()
929 if (whence == SEEK_HOLE) { in ocfs2_seek_data_hole_offset()
/openbmc/linux/fs/orangefs/
H A 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()
/openbmc/linux/drivers/net/wireless/ath/wil6210/
H A Dpmc.h14 loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence);
/openbmc/linux/drivers/pci/hotplug/
H A 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()

12345