Lines Matching refs:f_pos
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()
111 if (copy_from_user(rmtfs_mem->base + *f_pos, buf, count)) in qcom_rmtfs_mem_write()
114 *f_pos += count; in qcom_rmtfs_mem_write()