/drivers/soc/qcom/ |
D | rmtfs_mem.c | 82 char __user *buf, size_t count, loff_t *f_pos) in qcom_rmtfs_mem_read() argument 86 if (*f_pos >= rmtfs_mem->size) in qcom_rmtfs_mem_read() 89 if (*f_pos + count >= rmtfs_mem->size) in qcom_rmtfs_mem_read() 90 count = rmtfs_mem->size - *f_pos; in qcom_rmtfs_mem_read() 92 if (copy_to_user(buf, rmtfs_mem->base + *f_pos, count)) in qcom_rmtfs_mem_read() 95 *f_pos += count; in qcom_rmtfs_mem_read() 101 loff_t *f_pos) in qcom_rmtfs_mem_write() argument 105 if (*f_pos >= rmtfs_mem->size) in qcom_rmtfs_mem_write() 108 if (*f_pos + count >= rmtfs_mem->size) in qcom_rmtfs_mem_write() 109 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() 89 size_t len, loff_t *f_pos) in oppanel_write() argument 91 loff_t f_pos_prev = *f_pos; in oppanel_write() 95 if (!*f_pos) in oppanel_write() 97 else if (*f_pos >= oppanel_size) in oppanel_write() 100 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write() 107 *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 | 802 return file->f_pos = 0; in null_lseek() 820 offset += file->f_pos; in memory_lseek() 828 file->f_pos = offset; in memory_lseek() 829 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/media/usb/stkwebcam/ |
D | stk-webcam.c | 652 size_t count, loff_t *f_pos) in stk_read() argument 678 if (*f_pos == 0) { in stk_read() 688 if (count + *f_pos > dev->frame_size) in stk_read() 689 count = dev->frame_size - *f_pos; in stk_read() 699 if (copy_to_user(buf, sbuf->buffer + *f_pos, count)) in stk_read() 702 *f_pos += count; in stk_read() 704 if (*f_pos >= dev->frame_size) { in stk_read() 705 *f_pos = 0; in stk_read() 714 size_t count, loff_t *f_pos) in v4l_stk_read() argument 721 ret = stk_read(fp, buf, count, f_pos); in v4l_stk_read()
|
/drivers/staging/android/ |
D | ashmem.c | 322 asma->file->f_pos = iocb->ki_pos; in ashmem_read_iter() 352 file->f_pos = asma->file->f_pos; in ashmem_llseek()
|
/drivers/char/xillybus/ |
D | xillybus_core.c | 667 size_t count, loff_t *f_pos) in xillybus_read() argument 1182 size_t count, loff_t *f_pos) in xillybus_write() argument 1665 loff_t pos = filp->f_pos; in xillybus_llseek() 1720 filp->f_pos = pos; in xillybus_llseek()
|
/drivers/spi/ |
D | spidev.c | 146 spidev_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos) in spidev_read() argument 176 size_t count, loff_t *f_pos) in spidev_write() argument
|
/drivers/soc/fsl/ |
D | dpaa2-console.c | 192 size_t count, loff_t *f_pos) in dpaa2_console_read() argument
|
/drivers/media/usb/tm6000/ |
D | tm6000.h | 363 loff_t *f_pos);
|
/drivers/firmware/tegra/ |
D | bpmp-debugfs.c | 331 size_t count, loff_t *f_pos) in bpmp_debug_store() argument 605 size_t count, loff_t *f_pos) in debugfs_store() argument
|
/drivers/misc/habanalabs/common/ |
D | debugfs.c | 534 size_t count, loff_t *f_pos) in mmu_asid_va_write() argument 1185 size_t count, loff_t *f_pos) in hl_debugfs_write() argument 1190 return node->info_ent->write(file, buf, count, f_pos); in hl_debugfs_write()
|
D | habanalabs.h | 1220 size_t count, loff_t *f_pos);
|
/drivers/usb/class/ |
D | usbtmc.c | 1331 size_t count, loff_t *f_pos) in usbtmc_read() argument 1471 *f_pos = *f_pos + done; in usbtmc_read() 1481 size_t count, loff_t *f_pos) in usbtmc_write() argument
|
/drivers/mtd/ |
D | mtdchar.c | 907 file->f_pos = 0; in mtdchar_ioctl() 1002 file->f_pos = 0; in mtdchar_ioctl()
|
/drivers/staging/pi433/ |
D | pi433_if.c | 763 pi433_read(struct file *filp, char __user *buf, size_t size, loff_t *f_pos) in pi433_read() argument 809 size_t count, loff_t *f_pos) in pi433_write() argument
|
/drivers/fsi/ |
D | fsi-scom.c | 420 file->f_pos = offset; in scom_llseek()
|
D | fsi-core.c | 773 file->f_pos = offset; in cfam_llseek()
|
/drivers/s390/crypto/ |
D | zcrypt_api.c | 473 size_t count, loff_t *f_pos) in zcrypt_read() argument 484 size_t count, loff_t *f_pos) in zcrypt_write() argument
|
/drivers/dma/ |
D | coh901318.c | 1340 size_t count, loff_t *f_pos) in coh901318_debugfs_read() argument 1363 ret = simple_read_from_buffer(buf, count, f_pos, dev_buf, in coh901318_debugfs_read()
|