/linux-6.12.1/drivers/char/ |
D | powernv-op-panel.c | 44 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()
|
D | adi.c | 183 return file->f_pos; in adi_llseek() 185 offset += file->f_pos; in adi_llseek() 191 if (offset != file->f_pos) { in adi_llseek() 192 file->f_pos = offset; in adi_llseek()
|
D | mem.c | 568 return file->f_pos = 0; in null_lseek() 586 offset += file->f_pos; in memory_lseek() 594 file->f_pos = offset; in memory_lseek() 595 ret = file->f_pos; in memory_lseek()
|
/linux-6.12.1/drivers/soc/qcom/ |
D | rmtfs_mem.c | 83 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.12.1/fs/isofs/ |
D | namei.c | 42 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.12.1/fs/squashfs/ |
D | dir.c | 40 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.12.1/drivers/net/wireless/ath/wil6210/ |
D | pmc.c | 315 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.12.1/drivers/sbus/char/ |
D | flash.c | 83 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.12.1/fs/ |
D | read_write.c | 63 if (offset != file->f_pos) { in vfs_setpos_cookie() 64 file->f_pos = offset; in vfs_setpos_cookie() 116 *offset = file->f_pos; in must_set_pos() 177 return vfs_setpos(file, file->f_pos + offset, maxsize); in generic_file_llseek_size() 223 return vfs_setpos_cookie(file, file->f_pos + offset, maxsize, cookie); in generic_llseek_cookie() 321 return file->f_pos; in noop_llseek() 337 retval = file->f_pos; in default_llseek() 340 offset += file->f_pos; in default_llseek() 368 if (offset != file->f_pos) in default_llseek() 369 file->f_pos = offset; in default_llseek() [all …]
|
D | seq_file.c | 316 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()
|
D | coredump.c | 799 loff_t pos = file->f_pos; in __dump_emit() 810 file->f_pos = pos; in __dump_emit() 881 pos = file->f_pos; in dump_emit_page() 887 file->f_pos = pos; in dump_emit_page()
|
D | ioctl.c | 282 sr.l_start += filp->f_pos; in ioctl_preallocate() 311 sr.l_start += file->f_pos; in compat_ioctl_preallocate() 863 return put_user(i_size_read(inode) - filp->f_pos, in do_vfs_ioctl()
|
/linux-6.12.1/fs/hpfs/ |
D | dir.c | 16 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.12.1/fs/bcachefs/ |
D | fs-io-buffered.c | 799 u64 end = pos + len, f_pos, f_len; in __bch2_buffered_write() local 840 f_pos = pos; in __bch2_buffered_write() 846 f_len = min(end, folio_end_pos(f)) - f_pos; in __bch2_buffered_write() 866 end = f_pos + f_reserved; in __bch2_buffered_write() 872 f_pos = folio_end_pos(f); in __bch2_buffered_write() 880 f_pos = pos; in __bch2_buffered_write() 884 f_len = min(end, folio_end_pos(f)) - f_pos; in __bch2_buffered_write() 908 f_pos = folio_end_pos(f); in __bch2_buffered_write() 922 f_pos = pos; in __bch2_buffered_write() 926 f_len = min(end, folio_end_pos(f)) - f_pos; in __bch2_buffered_write() [all …]
|
/linux-6.12.1/drivers/vfio/pci/pds/ |
D | lm.c | 98 lm_file->filep->f_pos = 0; in pds_vfio_put_lm_file() 168 lm_file->filep->f_pos = 0; in pds_vfio_release_file() 185 pos = &filp->f_pos; in pds_vfio_save_read() 285 pos = &filp->f_pos; in pds_vfio_restore_write()
|
/linux-6.12.1/fs/overlayfs/ |
D | file.c | 196 return file->f_pos; in ovl_llseek() 214 fd_file(real)->f_pos = file->f_pos; in ovl_llseek() 220 file->f_pos = fd_file(real)->f_pos; in ovl_llseek()
|
D | readdir.c | 821 if (!file->f_pos) in ovl_dir_llseek() 826 file->f_pos = od->realfile->f_pos; in ovl_dir_llseek() 832 offset += file->f_pos; in ovl_dir_llseek() 842 if (offset != file->f_pos) { in ovl_dir_llseek() 843 file->f_pos = offset; in ovl_dir_llseek()
|
/linux-6.12.1/kernel/power/ |
D | qos.c | 367 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.12.1/drivers/s390/char/ |
D | hmcdrv_dev.c | 164 pos += fp->f_pos; /* new position stored in 'pos' */ in hmcdrv_dev_seek() 189 fp->f_pos = pos; in hmcdrv_dev_seek()
|
/linux-6.12.1/drivers/vfio/pci/qat/ |
D | main.c | 86 migf->filp->f_pos = 0; in qat_vf_disable_fd() 123 loff_t *pos = &filp->f_pos; in qat_vf_precopy_ioctl() 177 offs = &filp->f_pos; in qat_vf_save_read() 304 offs = &filp->f_pos; in qat_vf_resume_write()
|
/linux-6.12.1/drivers/misc/bcm-vk/ |
D | bcm_vk.h | 491 loff_t *f_pos); 493 size_t count, loff_t *f_pos);
|
/linux-6.12.1/drivers/fsi/ |
D | i2cr-scom.c | 26 file->f_pos = offset; in i2cr_scom_llseek()
|
/linux-6.12.1/fs/configfs/ |
D | dir.c | 1680 offset += file->f_pos; in configfs_dir_lseek() 1689 if (offset != file->f_pos) { in configfs_dir_lseek() 1690 file->f_pos = offset; in configfs_dir_lseek() 1691 if (file->f_pos >= 2) { in configfs_dir_lseek() 1695 loff_t n = file->f_pos - 2; in configfs_dir_lseek()
|
/linux-6.12.1/mm/ |
D | page_owner.c | 749 file->f_pos = offset; in lseek_page_owner() 752 file->f_pos += offset; in lseek_page_owner() 757 return file->f_pos; in lseek_page_owner()
|
/linux-6.12.1/drivers/vfio/pci/hisilicon/ |
D | hisi_acc_vfio_pci.c | 614 migf->filp->f_pos = 0; in hisi_acc_vf_disable_fd() 690 pos = &filp->f_pos; in hisi_acc_vf_resume_write() 757 loff_t *pos = &filp->f_pos; in hisi_acc_vf_precopy_ioctl() 811 pos = &filp->f_pos; in hisi_acc_vf_save_read()
|