Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/char/
Dpowernv-op-panel.c44 loff_t *f_pos) in oppanel_read() argument
46 return simple_read_from_buffer(userbuf, len, f_pos, oppanel_data, in oppanel_read()
90 size_t len, loff_t *f_pos) in oppanel_write() argument
92 loff_t f_pos_prev = *f_pos; in oppanel_write()
96 if (!*f_pos) in oppanel_write()
98 else if (*f_pos >= oppanel_size) in oppanel_write()
101 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write()
108 *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.c578 return file->f_pos = 0; in null_lseek()
596 offset += file->f_pos; in memory_lseek()
604 file->f_pos = offset; in memory_lseek()
605 ret = file->f_pos; in memory_lseek()
/linux-6.6.21/drivers/soc/qcom/
Drmtfs_mem.c83 char __user *buf, size_t count, loff_t *f_pos) in qcom_rmtfs_mem_read() argument
87 if (*f_pos >= rmtfs_mem->size) in qcom_rmtfs_mem_read()
90 if (*f_pos + count >= rmtfs_mem->size) in qcom_rmtfs_mem_read()
91 count = rmtfs_mem->size - *f_pos; in qcom_rmtfs_mem_read()
93 if (copy_to_user(buf, rmtfs_mem->base + *f_pos, count)) in qcom_rmtfs_mem_read()
96 *f_pos += count; in qcom_rmtfs_mem_read()
102 loff_t *f_pos) in qcom_rmtfs_mem_write() argument
106 if (*f_pos >= rmtfs_mem->size) in qcom_rmtfs_mem_write()
109 if (*f_pos + count >= rmtfs_mem->size) in qcom_rmtfs_mem_write()
110 count = rmtfs_mem->size - *f_pos; in qcom_rmtfs_mem_write()
[all …]
/linux-6.6.21/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-6.6.21/fs/squashfs/
Ddir.c40 int i_count, u64 f_pos) in get_dir_index_using_offset() argument
48 i_count, f_pos); in get_dir_index_using_offset()
55 if (f_pos <= 3) in get_dir_index_using_offset()
56 return f_pos; in get_dir_index_using_offset()
57 f_pos -= 3; in get_dir_index_using_offset()
66 if (index > f_pos) in get_dir_index_using_offset()
/linux-6.6.21/drivers/net/wireless/ath/wil6210/
Dpmc.c315 loff_t *f_pos) in wil_pmc_read() argument
337 (u32)count, *f_pos); in wil_pmc_read()
341 idx = *f_pos; in wil_pmc_read()
343 offset = *f_pos - (idx * pmc->descriptor_size); in wil_pmc_read()
345 if (*f_pos >= pmc_size) { in wil_pmc_read()
348 *f_pos, (u32)pmc_size); in wil_pmc_read()
355 *f_pos, idx, offset, count); in wil_pmc_read()
363 *f_pos += retval; in wil_pmc_read()
394 newpos = filp->f_pos + off; in wil_pmc_llseek()
413 filp->f_pos = newpos; in wil_pmc_llseek()
/linux-6.6.21/drivers/sbus/char/
Dflash.c83 file->f_pos = offset; in flash_llseek()
86 file->f_pos += offset; in flash_llseek()
87 if (file->f_pos > flash.read_size) in flash_llseek()
88 file->f_pos = flash.read_size; in flash_llseek()
91 file->f_pos = flash.read_size; in flash_llseek()
98 return file->f_pos; in flash_llseek()
/linux-6.6.21/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()
242 retval = file->f_pos; in default_llseek()
245 offset += file->f_pos; in default_llseek()
273 if (offset != file->f_pos) { in default_llseek()
274 file->f_pos = offset; in default_llseek()
599 return file->f_mode & FMODE_STREAM ? NULL : &file->f_pos; in file_ppos()
[all …]
Dcoredump.c805 loff_t pos = file->f_pos; in __dump_emit()
816 file->f_pos = pos; in __dump_emit()
884 pos = file->f_pos; in dump_emit_page()
891 file->f_pos = pos; in dump_emit_page()
Dseq_file.c316 offset += file->f_pos; in seq_lseek()
327 file->f_pos = 0; in seq_lseek()
333 retval = file->f_pos = offset; in seq_lseek()
336 file->f_pos = offset; in seq_lseek()
Dioctl.c282 sr.l_start += filp->f_pos; in ioctl_preallocate()
311 sr.l_start += file->f_pos; in compat_ioctl_preallocate()
833 return put_user(i_size_read(inode) - filp->f_pos, in do_vfs_ioctl()
Dreaddir.c105 ctx->pos = file->f_pos; in iterate_dir()
107 file->f_pos = ctx->pos; in iterate_dir()
/linux-6.6.21/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-6.6.21/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-6.6.21/fs/overlayfs/
Dfile.c206 return file->f_pos; in ovl_llseek()
224 real.file->f_pos = file->f_pos; in ovl_llseek()
230 file->f_pos = real.file->f_pos; in ovl_llseek()
Dreaddir.c807 if (!file->f_pos) in ovl_dir_llseek()
812 file->f_pos = od->realfile->f_pos; in ovl_dir_llseek()
818 offset += file->f_pos; in ovl_dir_llseek()
828 if (offset != file->f_pos) { in ovl_dir_llseek()
829 file->f_pos = offset; in ovl_dir_llseek()
/linux-6.6.21/kernel/power/
Dqos.c367 size_t count, loff_t *f_pos) in cpu_latency_qos_read() argument
380 return simple_read_from_buffer(buf, count, f_pos, &value, sizeof(s32)); in cpu_latency_qos_read()
384 size_t count, loff_t *f_pos) in cpu_latency_qos_write() argument
/linux-6.6.21/drivers/vfio/pci/pds/
Dlm.c166 lm_file->filep->f_pos = 0; in pds_vfio_release_file()
183 pos = &filp->f_pos; in pds_vfio_save_read()
278 pos = &filp->f_pos; in pds_vfio_restore_write()
/linux-6.6.21/mm/
Dpage_owner.c610 file->f_pos = offset; in lseek_page_owner()
613 file->f_pos += offset; in lseek_page_owner()
618 return file->f_pos; in lseek_page_owner()
/linux-6.6.21/drivers/misc/bcm-vk/
Dbcm_vk.h491 loff_t *f_pos);
493 size_t count, loff_t *f_pos);
/linux-6.6.21/drivers/fsi/
Di2cr-scom.c26 file->f_pos = offset; in i2cr_scom_llseek()
/linux-6.6.21/fs/configfs/
Ddir.c1670 offset += file->f_pos; in configfs_dir_lseek()
1679 if (offset != file->f_pos) { in configfs_dir_lseek()
1680 file->f_pos = offset; in configfs_dir_lseek()
1681 if (file->f_pos >= 2) { in configfs_dir_lseek()
1685 loff_t n = file->f_pos - 2; in configfs_dir_lseek()
/linux-6.6.21/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.c614 migf->filp->f_pos = 0; in hisi_acc_vf_disable_fd()
704 pos = &filp->f_pos; in hisi_acc_vf_resume_write()
772 loff_t *pos = &filp->f_pos; in hisi_acc_vf_precopy_ioctl()
824 pos = &filp->f_pos; in hisi_acc_vf_save_read()
/linux-6.6.21/drivers/vfio/pci/mlx5/
Dmain.c114 migf->filp->f_pos = 0; in mlx5vf_disable_fd()
217 pos = &filp->f_pos; in mlx5vf_save_read()
395 loff_t *pos = &filp->f_pos; in mlx5vf_precopy_ioctl()
832 pos = &filp->f_pos; in mlx5vf_resume_write()

123