Home
last modified time | relevance | path

Searched refs:f_pos (Results 1 – 25 of 43) sorted by relevance

12

/linux-4.19.296/drivers/char/
Dpowernv-op-panel.c43 loff_t *f_pos) in oppanel_read() argument
45 return simple_read_from_buffer(userbuf, len, f_pos, oppanel_data, in oppanel_read()
88 size_t len, loff_t *f_pos) in oppanel_write() argument
90 loff_t f_pos_prev = *f_pos; in oppanel_write()
94 if (!*f_pos) in oppanel_write()
96 else if (*f_pos >= oppanel_size) in oppanel_write()
99 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write()
106 *f_pos = f_pos_prev; in oppanel_write()
Dadi.c189 return file->f_pos; in adi_llseek()
191 offset += file->f_pos; in adi_llseek()
197 if (offset != file->f_pos) { in adi_llseek()
198 file->f_pos = offset; in adi_llseek()
Dmem.c771 return file->f_pos = 0; in null_lseek()
789 offset += file->f_pos; in memory_lseek()
797 file->f_pos = offset; in memory_lseek()
798 ret = file->f_pos; in memory_lseek()
Dsnsc.c159 scdrv_read(struct file *file, char __user *buf, size_t count, loff_t *f_pos) in scdrv_read() argument
252 size_t count, loff_t *f_pos) in scdrv_write() argument
/linux-4.19.296/fs/isofs/
Dnamei.c42 unsigned long block, f_pos, offset, block_saved, offset_saved; in isofs_find_entry() local
49 f_pos = 0; in isofs_find_entry()
53 while (f_pos < dir->i_size) { in isofs_find_entry()
70 f_pos = (f_pos + ISOFS_BLOCK_SIZE) & ~(ISOFS_BLOCK_SIZE - 1); in isofs_find_entry()
71 block = f_pos >> bufbits; in isofs_find_entry()
79 f_pos += de_len; in isofs_find_entry()
/linux-4.19.296/fs/squashfs/
Ddir.c53 int i_count, u64 f_pos) in get_dir_index_using_offset() argument
61 i_count, f_pos); in get_dir_index_using_offset()
68 if (f_pos <= 3) in get_dir_index_using_offset()
69 return f_pos; in get_dir_index_using_offset()
70 f_pos -= 3; in get_dir_index_using_offset()
79 if (index > f_pos) in get_dir_index_using_offset()
/linux-4.19.296/fs/udf/
Dnamei.c169 loff_t f_pos; in udf_find_entry() local
187 f_pos = udf_ext0_offset(dir); in udf_find_entry()
190 fibh->soffset = fibh->eoffset = f_pos & (sb->s_blocksize - 1); in udf_find_entry()
192 if (inode_bmap(dir, f_pos >> sb->s_blocksize_bits, &epos, in udf_find_entry()
220 while (f_pos < size) { in udf_find_entry()
221 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_find_entry()
354 loff_t f_pos; in udf_add_entry() local
389 f_pos = udf_ext0_offset(dir); in udf_add_entry()
391 fibh->soffset = fibh->eoffset = f_pos & (dir->i_sb->s_blocksize - 1); in udf_add_entry()
394 if (inode_bmap(dir, f_pos >> dir->i_sb->s_blocksize_bits, &epos, in udf_add_entry()
[all …]
/linux-4.19.296/fs/hpfs/
Ddir.c16 hpfs_del_pos(inode, &filp->f_pos); in hpfs_dir_release()
26 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
48 if (unlikely(hpfs_add_pos(i, &filp->f_pos) < 0)) { in hpfs_dir_lseek()
54 filp->f_pos = new_off; in hpfs_dir_lseek()
149 ret = hpfs_add_pos(inode, &file->f_pos); in hpfs_readdir()
/linux-4.19.296/fs/
Dread_write.c61 if (offset != file->f_pos) { in vfs_setpos()
62 file->f_pos = offset; in vfs_setpos()
101 return file->f_pos; in generic_file_llseek_size()
108 offset = vfs_setpos(file, file->f_pos + offset, maxsize); in generic_file_llseek_size()
226 return file->f_pos; in noop_llseek()
248 retval = file->f_pos; in default_llseek()
251 offset += file->f_pos; in default_llseek()
279 if (offset != file->f_pos) { in default_llseek()
280 file->f_pos = offset; in default_llseek()
563 return file->f_mode & FMODE_STREAM ? 0 : file->f_pos; in file_pos_read()
[all …]
Dlibfs.c137 offset += file->f_pos; in dcache_dir_lseek()
144 if (offset != file->f_pos) { in dcache_dir_lseek()
149 file->f_pos = offset; in dcache_dir_lseek()
152 if (file->f_pos > 2) { in dcache_dir_lseek()
154 file->f_pos - 2, &to); in dcache_dir_lseek()
Dseq_file.c322 offset += file->f_pos; in seq_lseek()
332 file->f_pos = 0; in seq_lseek()
339 retval = file->f_pos = offset; in seq_lseek()
342 file->f_pos = offset; in seq_lseek()
Dreaddir.c49 ctx->pos = file->f_pos; in iterate_dir()
54 file->f_pos = ctx->pos; in iterate_dir()
Dioctl.c473 sr.l_start += filp->f_pos; in ioctl_preallocate()
495 return put_user(i_size_read(inode) - filp->f_pos, p); in file_ioctl()
Dcoredump.c794 loff_t pos = file->f_pos; in dump_emit()
804 file->f_pos = pos; in dump_emit()
Dsplice.c1140 offset = out->f_pos; in do_splice()
1158 out->f_pos = offset; in do_splice()
1174 offset = in->f_pos; in do_splice()
1192 in->f_pos = offset; in do_splice()
/linux-4.19.296/drivers/s390/char/
Dhmcdrv_dev.c164 pos += fp->f_pos; /* new position stored in 'pos' */ in hmcdrv_dev_seek()
189 if (fp->f_pos != pos) in hmcdrv_dev_seek()
192 fp->f_pos = pos; in hmcdrv_dev_seek()
/linux-4.19.296/fs/overlayfs/
Dfile.c162 return file->f_pos; in ovl_llseek()
180 real.file->f_pos = file->f_pos; in ovl_llseek()
186 file->f_pos = real.file->f_pos; in ovl_llseek()
Dreaddir.c792 if (!file->f_pos) in ovl_dir_llseek()
797 file->f_pos = od->realfile->f_pos; in ovl_dir_llseek()
803 offset += file->f_pos; in ovl_dir_llseek()
813 if (offset != file->f_pos) { in ovl_dir_llseek()
814 file->f_pos = offset; in ovl_dir_llseek()
/linux-4.19.296/include/drm/ttm/
Dttm_bo_api.h761 size_t count, loff_t *f_pos, bool write);
/linux-4.19.296/fs/configfs/
Ddir.c1754 offset += file->f_pos; in configfs_dir_lseek()
1761 if (offset != file->f_pos) { in configfs_dir_lseek()
1762 file->f_pos = offset; in configfs_dir_lseek()
1763 if (file->f_pos >= 2) { in configfs_dir_lseek()
1767 loff_t n = file->f_pos - 2; in configfs_dir_lseek()
/linux-4.19.296/drivers/char/xillybus/
Dxillybus_core.c670 size_t count, loff_t *f_pos) in xillybus_read() argument
1185 size_t count, loff_t *f_pos) in xillybus_write() argument
1668 loff_t pos = filp->f_pos; in xillybus_llseek()
1723 filp->f_pos = pos; in xillybus_llseek()
/linux-4.19.296/fs/ceph/
Ddir.c626 offset += file->f_pos; in ceph_dir_llseek()
639 } else if (is_hash_order(offset) && offset > file->f_pos) { in ceph_dir_llseek()
646 if (offset != file->f_pos) { in ceph_dir_llseek()
647 file->f_pos = offset; in ceph_dir_llseek()
/linux-4.19.296/fs/proc/
Dfd.c57 (long long)file->f_pos, f_flags, in seq_show()
Dbase.c886 file->f_pos = offset; in mem_lseek()
889 file->f_pos += offset; in mem_lseek()
895 return file->f_pos; in mem_lseek()
3527 static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos, in first_tid() argument
3531 unsigned long nr = f_pos; in first_tid()
3533 if (nr != f_pos) /* 32bit overflow? */ in first_tid()
/linux-4.19.296/fs/ocfs2/
Dfile.c1934 loff_t f_pos, unsigned int cmd, in __ocfs2_change_file_space() argument
1975 sr->l_start += f_pos; in __ocfs2_change_file_space()
2101 ret = __ocfs2_change_file_space(file, inode, file->f_pos, cmd, sr, 0); in ocfs2_change_file_space()
2629 offset = file->f_pos; in ocfs2_file_llseek()
2632 offset += file->f_pos; in ocfs2_file_llseek()

12