Home
last modified time | relevance | path

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

12

/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 …]
/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()
Dtlclk.c244 loff_t *f_pos) in tlclk_read() argument
/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()
/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()
/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()
/drivers/vfio/pci/pds/
Dlm.c98 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()
286 pos = &filp->f_pos; in pds_vfio_restore_write()
/drivers/misc/bcm-vk/
Dbcm_vk.h491 loff_t *f_pos);
493 size_t count, loff_t *f_pos);
Dbcm_vk_msg.c1004 loff_t *f_pos) in bcm_vk_read() argument
1074 loff_t *f_pos) in bcm_vk_write() argument
/drivers/staging/android/
Dashmem.c324 asma->file->f_pos = iocb->ki_pos; in ashmem_read_iter()
354 file->f_pos = asma->file->f_pos; in ashmem_llseek()
/drivers/fsi/
Di2cr-scom.c26 file->f_pos = offset; in i2cr_scom_llseek()
Dfsi-scom.c379 file->f_pos = offset; in scom_llseek()
/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()
/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()
/drivers/char/xillybus/
Dxillybus_core.c691 size_t count, loff_t *f_pos) in xillybus_read() argument
1203 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()
Dxillyusb.c1432 size_t count, loff_t *f_pos) in xillyusb_read() argument
1643 size_t count, loff_t *f_pos) in xillyusb_write() argument
1786 loff_t pos = filp->f_pos; in xillyusb_llseek()
1841 filp->f_pos = pos; in xillyusb_llseek()
/drivers/accel/habanalabs/common/
Ddebugfs.c409 size_t count, loff_t *f_pos) in userptr_lookup_write() argument
483 size_t count, loff_t *f_pos) in mmu_asid_va_write() argument
545 size_t count, loff_t *f_pos) in mmu_ack_error_value_write() argument
1545 size_t count, loff_t *f_pos) in hl_debugfs_write() argument
1550 return node->info_ent->write(file, buf, count, f_pos); in hl_debugfs_write()
/drivers/soc/fsl/
Ddpaa2-console.c193 size_t count, loff_t *f_pos) in dpaa2_console_read() argument
/drivers/firmware/tegra/
Dbpmp-debugfs.c367 size_t count, loff_t *f_pos) in bpmp_debug_store() argument
634 size_t count, loff_t *f_pos) in debugfs_store() argument
/drivers/spi/
Dspidev.c157 spidev_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos) in spidev_read() argument
187 size_t count, loff_t *f_pos) in spidev_write() argument
/drivers/usb/class/
Dusbtmc.c1361 size_t count, loff_t *f_pos) in usbtmc_read() argument
1501 *f_pos = *f_pos + done; in usbtmc_read()
1511 size_t count, loff_t *f_pos) in usbtmc_write() argument
/drivers/staging/pi433/
Dpi433_if.c765 pi433_read(struct file *filp, char __user *buf, size_t size, loff_t *f_pos) in pi433_read() argument
811 size_t count, loff_t *f_pos) in pi433_write() argument
/drivers/mtd/
Dmtdchar.c1104 file->f_pos = 0; in mtdchar_ioctl()
1204 file->f_pos = 0; in mtdchar_ioctl()

12