Home
last modified time | relevance | path

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

123

/linux/drivers/soc/qcom/
A 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 …]
/linux/drivers/char/
A 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()
A 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()
A Dmem.c580 return file->f_pos = 0; in null_lseek()
598 offset += file->f_pos; in memory_lseek()
606 file->f_pos = offset; in memory_lseek()
607 ret = file->f_pos; in memory_lseek()
/linux/fs/isofs/
A Dnamei.c42 unsigned long block, f_pos, offset, block_saved, offset_saved; in isofs_find_entry() local
49 f_pos = 0; in isofs_find_entry()
53 while (f_pos < dir->i_size) { in isofs_find_entry()
70 f_pos = (f_pos + ISOFS_BLOCK_SIZE) & ~(ISOFS_BLOCK_SIZE - 1); in isofs_find_entry()
71 block = f_pos >> bufbits; in isofs_find_entry()
79 f_pos += de_len; in isofs_find_entry()
/linux/fs/squashfs/
A Ddir.c40 int i_count, u64 f_pos) in get_dir_index_using_offset() argument
48 i_count, f_pos); in get_dir_index_using_offset()
55 if (f_pos <= 3) in get_dir_index_using_offset()
56 return f_pos; in get_dir_index_using_offset()
57 f_pos -= 3; in get_dir_index_using_offset()
66 if (index > f_pos) in get_dir_index_using_offset()
/linux/drivers/net/wireless/ath/wil6210/
A 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()
/linux/drivers/sbus/char/
A 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()
/linux/fs/udf/
A Dnamei.c168 loff_t f_pos; in udf_find_entry() local
186 f_pos = udf_ext0_offset(dir); in udf_find_entry()
219 while (f_pos < size) { in udf_find_entry()
338 loff_t f_pos; in udf_add_entry() local
373 f_pos = udf_ext0_offset(dir); in udf_add_entry()
403 while (f_pos < size) { in udf_add_entry()
431 f_pos += nfidlen; in udf_add_entry()
439 f_pos -= udf_ext0_offset(dir); in udf_add_entry()
728 loff_t f_pos; in empty_dir() local
737 f_pos = udf_ext0_offset(dir); in empty_dir()
[all …]
/linux/fs/
A Dread_write.c62 file->f_pos = offset; in vfs_setpos()
101 return file->f_pos; in generic_file_llseek_size()
226 return file->f_pos; in noop_llseek()
248 retval = file->f_pos; in default_llseek()
251 offset += file->f_pos; in default_llseek()
280 file->f_pos = offset; in default_llseek()
621 f.file->f_pos = pos; in ksys_read()
645 f.file->f_pos = pos; in ksys_write()
945 f.file->f_pos = pos; in do_readv()
969 f.file->f_pos = pos; in do_writev()
[all …]
A Dseq_file.c316 offset += file->f_pos; in seq_lseek()
327 file->f_pos = 0; in seq_lseek()
333 retval = file->f_pos = offset; in seq_lseek()
336 file->f_pos = offset; in seq_lseek()
A Dioctl.c285 sr.l_start += filp->f_pos; in ioctl_preallocate()
314 sr.l_start += file->f_pos; in compat_ioctl_preallocate()
836 return put_user(i_size_read(inode) - filp->f_pos, in do_vfs_ioctl()
A Dsplice.c1065 offset = out->f_pos; in do_splice()
1083 out->f_pos = offset; in do_splice()
1098 offset = in->f_pos; in do_splice()
1106 in->f_pos = offset; in do_splice()
A Dreaddir.c63 ctx->pos = file->f_pos; in iterate_dir()
68 file->f_pos = ctx->pos; in iterate_dir()
/linux/fs/hpfs/
A Ddir.c16 hpfs_del_pos(inode, &filp->f_pos); in hpfs_dir_release()
26 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
48 if (unlikely(hpfs_add_pos(i, &filp->f_pos) < 0)) { in hpfs_dir_lseek()
54 filp->f_pos = new_off; in hpfs_dir_lseek()
149 ret = hpfs_add_pos(inode, &file->f_pos); in hpfs_readdir()
/linux/drivers/s390/char/
A 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()
/linux/drivers/media/usb/stkwebcam/
A 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()
/linux/fs/overlayfs/
A Dfile.c186 return file->f_pos; in ovl_llseek()
204 real.file->f_pos = file->f_pos; in ovl_llseek()
210 file->f_pos = real.file->f_pos; in ovl_llseek()
A Dreaddir.c802 if (!file->f_pos) in ovl_dir_llseek()
807 file->f_pos = od->realfile->f_pos; in ovl_dir_llseek()
813 offset += file->f_pos; in ovl_dir_llseek()
823 if (offset != file->f_pos) { in ovl_dir_llseek()
824 file->f_pos = offset; in ovl_dir_llseek()
/linux/kernel/power/
A Dqos.c362 size_t count, loff_t *f_pos) in cpu_latency_qos_read() argument
375 return simple_read_from_buffer(buf, count, f_pos, &value, sizeof(s32)); in cpu_latency_qos_read()
379 size_t count, loff_t *f_pos) in cpu_latency_qos_write() argument
/linux/drivers/misc/bcm-vk/
A Dbcm_vk.h491 loff_t *f_pos);
493 size_t count, loff_t *f_pos);
/linux/drivers/staging/android/
A Dashmem.c323 asma->file->f_pos = iocb->ki_pos; in ashmem_read_iter()
353 file->f_pos = asma->file->f_pos; in ashmem_llseek()
/linux/fs/configfs/
A Ddir.c1665 offset += file->f_pos; in configfs_dir_lseek()
1674 if (offset != file->f_pos) { in configfs_dir_lseek()
1675 file->f_pos = offset; in configfs_dir_lseek()
1676 if (file->f_pos >= 2) { in configfs_dir_lseek()
1680 loff_t n = file->f_pos - 2; in configfs_dir_lseek()
/linux/include/drm/ttm/
A Dttm_bo_api.h539 size_t count, loff_t *f_pos, bool write);
/linux/drivers/char/xillybus/
A 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()

Completed in 62 milliseconds

123