Lines Matching defs:file
9 * - use *ppos as the file position, not file->f_pos.
95 static long flash_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
122 static ssize_t flash_read(struct file *file, char __user *buf, size_t size,
142 static ssize_t flash_write(struct file *file, const char __user *buf,
268 * also note that seeking relative to the "end of file" isn't supported:
271 static loff_t flash_llseek(struct file *file, loff_t offset, int orig)
292 file->f_pos = (unsigned int) offset;
293 ret = file->f_pos;
296 if ((file->f_pos + offset) > gbFlashSize) {
300 if ((file->f_pos + offset) < 0) {
304 file->f_pos += offset;
305 ret = file->f_pos;