Lines Matching refs:file
81 static int eeprom_open(struct inode * inode, struct file * file);
82 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig);
83 static ssize_t eeprom_read(struct file * file, char * buf, size_t count,
85 static ssize_t eeprom_write(struct file * file, const char * buf, size_t count,
87 static int eeprom_close(struct inode * inode, struct file * file);
376 static int eeprom_open(struct inode * inode, struct file * file) in eeprom_open() argument
395 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig) in eeprom_lseek() argument
406 file->f_pos = offset; in eeprom_lseek()
409 file->f_pos += offset; in eeprom_lseek()
412 file->f_pos = eeprom.size - offset; in eeprom_lseek()
419 if (file->f_pos < 0) in eeprom_lseek()
421 file->f_pos = 0; in eeprom_lseek()
425 if (file->f_pos >= eeprom.size) in eeprom_lseek()
427 file->f_pos = eeprom.size - 1; in eeprom_lseek()
431 return ( file->f_pos ); in eeprom_lseek()
445 static ssize_t eeprom_read(struct file * file, char * buf, size_t count, loff_t *off) in eeprom_read() argument
510 static ssize_t eeprom_write(struct file * file, const char * buf, size_t count, in eeprom_write() argument
663 static int eeprom_close(struct inode * inode, struct file * file) in eeprom_close() argument