Lines Matching refs:file
46 static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) in hidraw_read() argument
48 struct hidraw_list *list = file->private_data; in hidraw_read()
68 if (file->f_flags & O_NONBLOCK) { in hidraw_read()
112 static ssize_t hidraw_send_report(struct file *file, const char __user *buffer, size_t count, unsig… in hidraw_send_report() argument
114 unsigned int minor = iminor(file_inode(file)); in hidraw_send_report()
173 static ssize_t hidraw_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppo… in hidraw_write() argument
177 ret = hidraw_send_report(file, buffer, count, HID_OUTPUT_REPORT); in hidraw_write()
192 static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned cha… in hidraw_get_report() argument
194 unsigned int minor = iminor(file_inode(file)); in hidraw_get_report()
257 static unsigned int hidraw_poll(struct file *file, poll_table *wait) in hidraw_poll() argument
259 struct hidraw_list *list = file->private_data; in hidraw_poll()
261 poll_wait(file, &list->hidraw->wait, wait); in hidraw_poll()
269 static int hidraw_open(struct inode *inode, struct file *file) in hidraw_open() argument
309 file->private_data = list; in hidraw_open()
319 static int hidraw_fasync(int fd, struct file *file, int on) in hidraw_fasync() argument
321 struct hidraw_list *list = file->private_data; in hidraw_fasync()
323 return fasync_helper(fd, file, on, &list->fasync); in hidraw_fasync()
351 static int hidraw_release(struct inode * inode, struct file * file) in hidraw_release() argument
354 struct hidraw_list *list = file->private_data; in hidraw_release()
370 static long hidraw_ioctl(struct file *file, unsigned int cmd, in hidraw_ioctl() argument
373 struct inode *inode = file_inode(file); in hidraw_ioctl()
429 ret = hidraw_send_report(file, user_arg, len, HID_FEATURE_REPORT); in hidraw_ioctl()
434 ret = hidraw_get_report(file, user_arg, len, HID_FEATURE_REPORT); in hidraw_ioctl()