Lines Matching defs:file
55 * Interface with userspace (file operations) *
58 static int serio_raw_fasync(int fd, struct file *file, int on)
60 struct serio_raw_client *client = file->private_data;
62 return fasync_helper(fd, file, on, &client->fasync);
77 static int serio_raw_open(struct inode *inode, struct file *file)
105 file->private_data = client;
127 static int serio_raw_release(struct inode *inode, struct file *file)
129 struct serio_raw_client *client = file->private_data;
160 static ssize_t serio_raw_read(struct file *file, char __user *buffer,
163 struct serio_raw_client *client = file->private_data;
174 (file->f_flags & O_NONBLOCK))
189 if (!(file->f_flags & O_NONBLOCK)) {
201 static ssize_t serio_raw_write(struct file *file, const char __user *buffer,
204 struct serio_raw_client *client = file->private_data;
242 static unsigned int serio_raw_poll(struct file *file, poll_table *wait)
244 struct serio_raw_client *client = file->private_data;
248 poll_wait(file, &serio_raw->wait, wait);