/drivers/char/ |
D | powernv-op-panel.c | 43 loff_t *f_pos) in oppanel_read() argument 45 return simple_read_from_buffer(userbuf, len, f_pos, oppanel_data, in oppanel_read() 88 size_t len, loff_t *f_pos) in oppanel_write() argument 90 loff_t f_pos_prev = *f_pos; in oppanel_write() 94 if (!*f_pos) in oppanel_write() 96 else if (*f_pos >= oppanel_size) in oppanel_write() 99 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write() 106 *f_pos = f_pos_prev; in oppanel_write()
|
D | tile-srom.c | 174 size_t count, loff_t *f_pos) in srom_read() argument 195 *f_pos, bytes_this_pass); in srom_read() 208 *f_pos += hv_retval; in srom_read() 229 size_t count, loff_t *f_pos) in srom_write() argument 255 *f_pos, bytes_this_pass); in srom_write() 263 *f_pos += hv_retval; in srom_write()
|
D | mem.c | 766 return file->f_pos = 0; in null_lseek() 784 offset += file->f_pos; in memory_lseek() 791 file->f_pos = offset; in memory_lseek() 792 ret = file->f_pos; in memory_lseek()
|
D | snsc.c | 159 scdrv_read(struct file *file, char __user *buf, size_t count, loff_t *f_pos) in scdrv_read() argument 252 size_t count, loff_t *f_pos) in scdrv_write() argument
|
D | tlclk.c | 245 loff_t *f_pos) in tlclk_read() argument
|
/drivers/net/wireless/ath/wil6210/ |
D | pmc.c | 324 loff_t *f_pos) in wil_pmc_read() argument 346 (u32)count, *f_pos); in wil_pmc_read() 350 idx = *f_pos; in wil_pmc_read() 352 offset = *f_pos - (idx * pmc->descriptor_size); in wil_pmc_read() 354 if (*f_pos >= pmc_size) { in wil_pmc_read() 357 *f_pos, (u32)pmc_size); in wil_pmc_read() 364 *f_pos, idx, offset, count); in wil_pmc_read() 372 *f_pos += retval; in wil_pmc_read() 403 newpos = filp->f_pos + off; in wil_pmc_llseek() 422 filp->f_pos = newpos; in wil_pmc_llseek()
|
/drivers/sbus/char/ |
D | flash.c | 85 file->f_pos = offset; in flash_llseek() 88 file->f_pos += offset; in flash_llseek() 89 if (file->f_pos > flash.read_size) in flash_llseek() 90 file->f_pos = flash.read_size; in flash_llseek() 93 file->f_pos = flash.read_size; in flash_llseek() 100 return file->f_pos; in flash_llseek()
|
D | jsflash.c | 260 file->f_pos = offset; in jsf_lseek() 261 ret = file->f_pos; in jsf_lseek() 264 file->f_pos += offset; in jsf_lseek() 265 ret = file->f_pos; in jsf_lseek()
|
/drivers/staging/android/ |
D | vsoc.c | 335 if (managed_filp->f_pos) { in do_create_fd_scoped_permission() 336 if (managed_filp->f_pos > np->permission.end_offset) { in do_create_fd_scoped_permission() 340 managed_filp->f_pos = np->permission.end_offset; in do_create_fd_scoped_permission() 345 if (managed_filp->f_pos < np->permission.begin_offset) { in do_create_fd_scoped_permission() 346 managed_filp->f_pos = 0; in do_create_fd_scoped_permission() 348 managed_filp->f_pos -= in do_create_fd_scoped_permission() 673 if (offset > 0 && offset + filp->f_pos < 0) in vsoc_lseek() 675 offset += filp->f_pos; in vsoc_lseek() 705 filp->f_pos = offset; in vsoc_lseek()
|
D | ashmem.c | 323 asma->file->f_pos = iocb->ki_pos; in ashmem_read_iter() 353 file->f_pos = asma->file->f_pos; in ashmem_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 | 653 size_t count, loff_t *f_pos) in stk_read() argument 679 if (*f_pos == 0) { in stk_read() 689 if (count + *f_pos > dev->frame_size) in stk_read() 690 count = dev->frame_size - *f_pos; in stk_read() 700 if (copy_to_user(buf, sbuf->buffer + *f_pos, count)) in stk_read() 703 *f_pos += count; in stk_read() 705 if (*f_pos >= dev->frame_size) { in stk_read() 706 *f_pos = 0; in stk_read() 715 size_t count, loff_t *f_pos) in v4l_stk_read() argument 722 ret = stk_read(fp, buf, count, f_pos); in v4l_stk_read()
|
/drivers/staging/lustre/lnet/libcfs/ |
D | tracefile.c | 734 rc = kernel_write(filp, buf, tage->used, &filp->f_pos); in cfs_tracefile_dump_all_pages() 1017 static loff_t f_pos; in tracefiled() local 1021 if (f_pos >= (off_t)cfs_tracefile_size) in tracefiled() 1022 f_pos = 0; in tracefiled() 1023 else if (f_pos > i_size_read(file_inode(filp))) in tracefiled() 1024 f_pos = i_size_read(file_inode(filp)); in tracefiled() 1027 rc = kernel_write(filp, buf, tage->used, &f_pos); in tracefiled()
|
/drivers/rpmsg/ |
D | rpmsg_char.c | 179 size_t len, loff_t *f_pos) in rpmsg_eptdev_read() argument 226 size_t len, loff_t *f_pos) in rpmsg_eptdev_write() argument
|
/drivers/usb/class/ |
D | usbtmc.c | 592 size_t count, loff_t *f_pos) in usbtmc_read() argument 766 *f_pos = *f_pos + done; in usbtmc_read() 776 size_t count, loff_t *f_pos) in usbtmc_write() argument
|
/drivers/fsi/ |
D | fsi-scom.c | 165 file->f_pos = offset; in scom_llseek()
|
/drivers/char/xillybus/ |
D | xillybus_core.c | 670 size_t count, loff_t *f_pos) in xillybus_read() argument 1185 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()
|
/drivers/spi/ |
D | spidev.c | 154 spidev_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos) in spidev_read() argument 184 size_t count, loff_t *f_pos) in spidev_write() argument
|
/drivers/media/usb/tm6000/ |
D | tm6000.h | 372 loff_t *f_pos);
|
/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 130 rlen =fp->f_op->read(fp, (char __force __user *)buf+sum, len-sum, &fp->f_pos); in readFile()
|
/drivers/staging/lustre/lustre/llite/ |
D | dir.c | 1652 offset += file->f_pos; in ll_dir_seek() 1669 if (offset != file->f_pos) { in ll_dir_seek() 1677 file->f_pos = offset; in ll_dir_seek()
|
/drivers/mtd/ |
D | mtdchar.c | 937 file->f_pos = 0; in mtdchar_ioctl() 1032 file->f_pos = 0; in mtdchar_ioctl()
|
/drivers/staging/pi433/ |
D | pi433_if.c | 669 pi433_read(struct file *filp, char __user *buf, size_t size, loff_t *f_pos) in pi433_read() argument 720 size_t count, loff_t *f_pos) in pi433_write() argument
|
/drivers/s390/crypto/ |
D | zcrypt_api.c | 132 size_t count, loff_t *f_pos) in zcrypt_read() argument 143 size_t count, loff_t *f_pos) in zcrypt_write() argument
|
/drivers/dma/ |
D | coh901318.c | 1339 size_t count, loff_t *f_pos) in coh901318_debugfs_read() argument 1362 ret = simple_read_from_buffer(buf, count, f_pos, dev_buf, in coh901318_debugfs_read()
|