Lines Matching defs:file
52 * Interface with userspace (file operations) *
55 static int serio_raw_fasync(int fd, struct file *file, int on)
57 struct serio_raw_client *client = file->private_data;
59 return fasync_helper(fd, file, on, &client->fasync);
74 static int serio_raw_open(struct inode *inode, struct file *file)
102 file->private_data = client;
124 static int serio_raw_release(struct inode *inode, struct file *file)
126 struct serio_raw_client *client = file->private_data;
157 static ssize_t serio_raw_read(struct file *file, char __user *buffer,
160 struct serio_raw_client *client = file->private_data;
171 (file->f_flags & O_NONBLOCK))
186 if (!(file->f_flags & O_NONBLOCK)) {
198 static ssize_t serio_raw_write(struct file *file, const char __user *buffer,
201 struct serio_raw_client *client = file->private_data;
239 static __poll_t serio_raw_poll(struct file *file, poll_table *wait)
241 struct serio_raw_client *client = file->private_data;
245 poll_wait(file, &serio_raw->wait, wait);