Lines Matching refs:file
378 static long surface_dtx_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
380 struct sdtx_client *client = file->private_data;
400 static int surface_dtx_open(struct inode *inode, struct file *file)
402 struct sdtx_device *ddev = container_of(file->private_data, struct sdtx_device, mdev);
417 file->private_data = client;
439 stream_open(inode, file);
443 static int surface_dtx_release(struct inode *inode, struct file *file)
445 struct sdtx_client *client = file->private_data;
460 static ssize_t surface_dtx_read(struct file *file, char __user *buf, size_t count, loff_t *offs)
462 struct sdtx_client *client = file->private_data;
481 if (file->f_flags & O_NONBLOCK)
516 if (copied == 0 && (file->f_flags & O_NONBLOCK)) {
526 static __poll_t surface_dtx_poll(struct file *file, struct poll_table_struct *pt)
528 struct sdtx_client *client = file->private_data;
534 poll_wait(file, &client->ddev->waitq, pt);
542 static int surface_dtx_fasync(int fd, struct file *file, int on)
544 struct sdtx_client *client = file->private_data;
546 return fasync_helper(fd, file, on, &client->fasync);