Lines Matching refs:file
819 * @file: file struct
825 static int ibmvmc_open(struct inode *inode, struct file *file)
829 pr_debug("%s: inode = 0x%lx, file = 0x%lx, state = 0x%x\n", __func__,
830 (unsigned long)inode, (unsigned long)file,
837 session->file = file;
838 file->private_data = session;
847 * @file: file struct
853 static int ibmvmc_close(struct inode *inode, struct file *file)
860 pr_debug("%s: file = 0x%lx, state = 0x%x\n", __func__,
861 (unsigned long)file, ibmvmc.state);
863 session = file->private_data;
894 * @file: file struct
903 static ssize_t ibmvmc_read(struct file *file, char *buf, size_t nbytes,
915 pr_debug("ibmvmc: read: file = 0x%lx, buf = 0x%lx, nbytes = 0x%lx\n",
916 (unsigned long)file, (unsigned long)buf,
928 session = file->private_data;
960 if (file->f_flags & O_NONBLOCK) {
999 * @file: file struct
1005 static unsigned int ibmvmc_poll(struct file *file, poll_table *wait)
1011 session = file->private_data;
1019 poll_wait(file, &ibmvmc_read_wait, wait);
1030 * @file: file struct
1039 static ssize_t ibmvmc_write(struct file *file, const char *buffer,
1054 session = file->private_data;
1126 inode = file_inode(file);
1130 dev_dbg(adapter->dev, "write: file = 0x%lx, count = 0x%lx\n",
1131 (unsigned long)file, (unsigned long)count);
1352 * @file: file information
1360 static long ibmvmc_ioctl(struct file *file,
1363 struct ibmvmc_file_session *session = file->private_data;
1365 pr_debug("ibmvmc: ioctl file=0x%lx, cmd=0x%x, arg=0x%lx, ses=0x%lx\n",
1366 (unsigned long)file, cmd, arg,