Lines Matching defs:file

41 static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos)
43 struct hidraw_list *list = file->private_data;
63 if (file->f_flags & O_NONBLOCK) {
105 static ssize_t hidraw_send_report(struct file *file, const char __user *buffer, size_t count, unsigned char report_type)
107 unsigned int minor = iminor(file_inode(file));
162 static ssize_t hidraw_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos)
166 ret = hidraw_send_report(file, buffer, count, HID_OUTPUT_REPORT);
179 static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned char report_type)
181 unsigned int minor = iminor(file_inode(file));
251 static __poll_t hidraw_poll(struct file *file, poll_table *wait)
253 struct hidraw_list *list = file->private_data;
256 poll_wait(file, &list->hidraw->wait, wait);
264 static int hidraw_open(struct inode *inode, struct file *file)
309 file->private_data = list;
319 static int hidraw_fasync(int fd, struct file *file, int on)
321 struct hidraw_list *list = file->private_data;
323 return fasync_helper(fd, file, on, &list->fasync);
351 static int hidraw_release(struct inode * inode, struct file * file)
354 struct hidraw_list *list = file->private_data;
375 static long hidraw_ioctl(struct file *file, unsigned int cmd,
378 struct inode *inode = file_inode(file);
434 ret = hidraw_send_report(file, user_arg, len, HID_FEATURE_REPORT);
439 ret = hidraw_get_report(file, user_arg, len, HID_FEATURE_REPORT);
445 ret = hidraw_send_report(file, user_arg, len, HID_INPUT_REPORT);
450 ret = hidraw_get_report(file, user_arg, len, HID_INPUT_REPORT);
456 ret = hidraw_send_report(file, user_arg, len, HID_OUTPUT_REPORT);
461 ret = hidraw_get_report(file, user_arg, len, HID_OUTPUT_REPORT);