Lines Matching refs:file

56 static struct file *cxl_getfile(const char *name,  in cxl_getfile()
60 struct file *file; in cxl_getfile() local
72 file = ERR_PTR(rc); in cxl_getfile()
78 file = ERR_CAST(inode); in cxl_getfile()
82 file = alloc_file_pseudo(inode, cxl_vfs_mount, name, in cxl_getfile()
84 if (IS_ERR(file)) in cxl_getfile()
87 file->private_data = priv; in cxl_getfile()
89 return file; in cxl_getfile()
97 return file; in cxl_getfile()
352 int cxl_fd_open(struct inode *inode, struct file *file) in cxl_fd_open() argument
354 return afu_open(inode, file); in cxl_fd_open()
357 int cxl_fd_release(struct inode *inode, struct file *file) in cxl_fd_release() argument
359 return afu_release(inode, file); in cxl_fd_release()
362 long cxl_fd_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in cxl_fd_ioctl() argument
364 return afu_ioctl(file, cmd, arg); in cxl_fd_ioctl()
367 int cxl_fd_mmap(struct file *file, struct vm_area_struct *vm) in cxl_fd_mmap() argument
369 return afu_mmap(file, vm); in cxl_fd_mmap()
372 __poll_t cxl_fd_poll(struct file *file, struct poll_table_struct *poll) in cxl_fd_poll() argument
374 return afu_poll(file, poll); in cxl_fd_poll()
377 ssize_t cxl_fd_read(struct file *file, char __user *buf, size_t count, in cxl_fd_read() argument
380 return afu_read(file, buf, count, off); in cxl_fd_read()
387 struct file *cxl_get_fd(struct cxl_context *ctx, struct file_operations *fops, in cxl_get_fd()
390 struct file *file; in cxl_get_fd() local
421 file = cxl_getfile(name, fops, ctx, flags); in cxl_get_fd()
423 if (IS_ERR(file)) in cxl_get_fd()
426 cxl_context_set_mapping(ctx, file->f_mapping); in cxl_get_fd()
428 return file; in cxl_get_fd()
436 struct cxl_context *cxl_fops_get_context(struct file *file) in cxl_fops_get_context() argument
438 return file->private_data; in cxl_fops_get_context()