Lines Matching refs:file
219 int cxl_fd_open(struct inode *inode, struct file *file) in cxl_fd_open() argument
221 return afu_open(inode, file); in cxl_fd_open()
224 int cxl_fd_release(struct inode *inode, struct file *file) in cxl_fd_release() argument
226 return afu_release(inode, file); in cxl_fd_release()
229 long cxl_fd_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in cxl_fd_ioctl() argument
231 return afu_ioctl(file, cmd, arg); in cxl_fd_ioctl()
234 int cxl_fd_mmap(struct file *file, struct vm_area_struct *vm) in cxl_fd_mmap() argument
236 return afu_mmap(file, vm); in cxl_fd_mmap()
239 unsigned int cxl_fd_poll(struct file *file, struct poll_table_struct *poll) in cxl_fd_poll() argument
241 return afu_poll(file, poll); in cxl_fd_poll()
244 ssize_t cxl_fd_read(struct file *file, char __user *buf, size_t count, in cxl_fd_read() argument
247 return afu_read(file, buf, count, off); in cxl_fd_read()
254 struct file *cxl_get_fd(struct cxl_context *ctx, struct file_operations *fops, in cxl_get_fd()
257 struct file *file; in cxl_get_fd() local
282 file = anon_inode_getfile("cxl", fops, ctx, flags); in cxl_get_fd()
283 if (IS_ERR(file)) in cxl_get_fd()
286 file->f_mapping = ctx->mapping; in cxl_get_fd()
289 return file; in cxl_get_fd()
297 struct cxl_context *cxl_fops_get_context(struct file *file) in cxl_fops_get_context() argument
299 return file->private_data; in cxl_fops_get_context()