Lines Matching refs:filp
154 spidev_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos) in spidev_read() argument
163 spidev = filp->private_data; in spidev_read()
183 spidev_write(struct file *filp, const char __user *buf, in spidev_write() argument
194 spidev = filp->private_data; in spidev_write()
355 spidev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in spidev_ioctl() argument
385 spidev = filp->private_data; in spidev_ioctl()
516 spidev_compat_ioc_message(struct file *filp, unsigned int cmd, in spidev_compat_ioc_message() argument
533 spidev = filp->private_data; in spidev_compat_ioc_message()
570 spidev_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in spidev_compat_ioctl() argument
575 return spidev_compat_ioc_message(filp, cmd, arg); in spidev_compat_ioctl()
577 return spidev_ioctl(filp, cmd, (unsigned long)compat_ptr(arg)); in spidev_compat_ioctl()
583 static int spidev_open(struct inode *inode, struct file *filp) in spidev_open() argument
621 filp->private_data = spidev; in spidev_open()
622 nonseekable_open(inode, filp); in spidev_open()
635 static int spidev_release(struct inode *inode, struct file *filp) in spidev_release() argument
640 spidev = filp->private_data; in spidev_release()
641 filp->private_data = NULL; in spidev_release()