Lines Matching refs:pos
199 long pos = *position; in simple_procfs_read() local
205 if (pos < 0) in simple_procfs_read()
207 if (pos >= available || !count) in simple_procfs_read()
209 if (count > available - pos) in simple_procfs_read()
210 count = available - pos; in simple_procfs_read()
212 ret = copy_to_user(to, from + pos, count); in simple_procfs_read()
214 *position = pos + ret; in simple_procfs_read()
234 long pos = 0; in procfs_lseek() local
238 pos = offset; in procfs_lseek()
241 pos = file_ptr->position + offset; in procfs_lseek()
244 pos = file_ptr->dEntry->dir_inode->file_size + offset; in procfs_lseek()
252 if (pos < 0 || pos > file_ptr->dEntry->dir_inode->file_size) in procfs_lseek()
254 file_ptr->position = pos; in procfs_lseek()
256 return pos; in procfs_lseek()