Home
last modified time | relevance | path

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

/drivers/soc/qcom/
Drmtfs_mem.c82 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/
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()
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()
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.c802 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()
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/media/usb/stkwebcam/
Dstk-webcam.c652 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/
Dashmem.c322 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/
Dxillybus_core.c667 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/
Dspidev.c146 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/
Ddpaa2-console.c192 size_t count, loff_t *f_pos) in dpaa2_console_read() argument
/drivers/media/usb/tm6000/
Dtm6000.h363 loff_t *f_pos);
/drivers/firmware/tegra/
Dbpmp-debugfs.c331 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/
Ddebugfs.c534 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()
Dhabanalabs.h1220 size_t count, loff_t *f_pos);
/drivers/usb/class/
Dusbtmc.c1331 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/
Dmtdchar.c907 file->f_pos = 0; in mtdchar_ioctl()
1002 file->f_pos = 0; in mtdchar_ioctl()
/drivers/staging/pi433/
Dpi433_if.c763 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/
Dfsi-scom.c420 file->f_pos = offset; in scom_llseek()
Dfsi-core.c773 file->f_pos = offset; in cfam_llseek()
/drivers/s390/crypto/
Dzcrypt_api.c473 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/
Dcoh901318.c1340 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()