Lines Matching refs:file

129 					   struct file *file)  in find_error_context()  argument
134 if ((ctxi->ctxid == rctxid) || (ctxi->file == file)) in find_error_context()
161 struct file *file = NULL; in get_context() local
169 file = (struct file *)arg; in get_context()
180 if ((file && (ctxi->file != file)) || in get_context()
181 (!file && (ctxi->ctxid != rctxid))) in get_context()
186 ctxi = find_error_context(cfg, rctxid, file); in get_context()
826 void *ctx, int ctxid, struct file *file, u32 perms, in init_context() argument
838 ctxi->file = file; in init_context()
989 static int cxlflash_cxl_release(struct inode *inode, struct file *file) in cxlflash_cxl_release() argument
991 struct cxlflash_cfg *cfg = container_of(file->f_op, struct cxlflash_cfg, in cxlflash_cxl_release()
993 void *ctx = cfg->ops->fops_get_context(file); in cxlflash_cxl_release()
1008 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_cxl_release()
1010 ctxi = get_context(cfg, ctxid, file, ctrl | CTX_CTRL_CLONE); in cxlflash_cxl_release()
1031 cfg->ops->fd_release(inode, file); in cxlflash_cxl_release()
1047 unmap_mapping_range(ctxi->file->f_mapping, 0, 0, 1); in unmap_context()
1105 struct file *file = vma->vm_file; in cxlflash_mmap_fault() local
1106 struct cxlflash_cfg *cfg = container_of(file->f_op, struct cxlflash_cfg, in cxlflash_mmap_fault()
1108 void *ctx = cfg->ops->fops_get_context(file); in cxlflash_mmap_fault()
1123 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_mmap_fault()
1177 static int cxlflash_cxl_mmap(struct file *file, struct vm_area_struct *vma) in cxlflash_cxl_mmap() argument
1179 struct cxlflash_cfg *cfg = container_of(file->f_op, struct cxlflash_cfg, in cxlflash_cxl_mmap()
1181 void *ctx = cfg->ops->fops_get_context(file); in cxlflash_cxl_mmap()
1196 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_cxl_mmap()
1205 rc = cfg->ops->fd_mmap(file, vma); in cxlflash_cxl_mmap()
1332 struct file *file = NULL; in cxlflash_disk_attach() local
1433 file = cfg->ops->get_fd(ctx, &cfg->cxl_fops, &fd); in cxlflash_disk_attach()
1444 init_context(ctxi, cfg, ctx, ctxid, file, perms, irqs); in cxlflash_disk_attach()
1463 fd_install(fd, file); in cxlflash_disk_attach()
1505 file->f_op = &null_fops; in cxlflash_disk_attach()
1506 fput(file); in cxlflash_disk_attach()
1509 file = NULL; in cxlflash_disk_attach()
1541 struct file *file; in recover_context() local
1567 file = cfg->ops->get_fd(ctx, &cfg->cxl_fops, &fd); in recover_context()
1589 ctxi->file = file; in recover_context()
1603 fd_install(fd, file); in recover_context()
1611 fput(file); in recover_context()