/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 …]
|
/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 | 189 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()
|
D | mem.c | 578 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()
|
D | tlclk.c | 244 loff_t *f_pos) in tlclk_read() argument
|
/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()
|
/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()
|
/drivers/s390/char/ |
D | hmcdrv_dev.c | 164 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/ |
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() 286 pos = &filp->f_pos; in pds_vfio_restore_write()
|
/drivers/misc/bcm-vk/ |
D | bcm_vk.h | 491 loff_t *f_pos); 493 size_t count, loff_t *f_pos);
|
D | bcm_vk_msg.c | 1004 loff_t *f_pos) in bcm_vk_read() argument 1074 loff_t *f_pos) in bcm_vk_write() argument
|
/drivers/staging/android/ |
D | ashmem.c | 324 asma->file->f_pos = iocb->ki_pos; in ashmem_read_iter() 354 file->f_pos = asma->file->f_pos; in ashmem_llseek()
|
/drivers/fsi/ |
D | i2cr-scom.c | 26 file->f_pos = offset; in i2cr_scom_llseek()
|
D | fsi-scom.c | 379 file->f_pos = offset; in scom_llseek()
|
/drivers/vfio/pci/hisilicon/ |
D | hisi_acc_vfio_pci.c | 614 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/ |
D | main.c | 114 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/ |
D | xillybus_core.c | 691 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()
|
D | xillyusb.c | 1432 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/ |
D | debugfs.c | 409 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/ |
D | dpaa2-console.c | 193 size_t count, loff_t *f_pos) in dpaa2_console_read() argument
|
/drivers/firmware/tegra/ |
D | bpmp-debugfs.c | 367 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/ |
D | spidev.c | 157 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/ |
D | usbtmc.c | 1361 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/ |
D | pi433_if.c | 765 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/ |
D | mtdchar.c | 1104 file->f_pos = 0; in mtdchar_ioctl() 1204 file->f_pos = 0; in mtdchar_ioctl()
|