Home
last modified time | relevance | path

Searched refs:cfile (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/misc/genwqe/
H A Dcard_dev.c43 static void genwqe_add_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_add_file() argument
47 cfile->opener = get_pid(task_tgid(current)); in genwqe_add_file()
49 list_add(&cfile->list, &cd->file_list); in genwqe_add_file()
53 static int genwqe_del_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_del_file() argument
58 list_del(&cfile->list); in genwqe_del_file()
60 put_pid(cfile->opener); in genwqe_del_file()
65 static void genwqe_add_pin(struct genwqe_file *cfile, struct dma_mapping *m) in genwqe_add_pin() argument
69 spin_lock_irqsave(&cfile->pin_lock, flags); in genwqe_add_pin()
70 list_add(&m->pin_list, &cfile->pin_list); in genwqe_add_pin()
71 spin_unlock_irqrestore(&cfile->pin_lock, flags); in genwqe_add_pin()
[all …]
/linux/fs/smb/client/
H A Dsmb2inode.c175 int *cmds, int num_cmds, struct cifsFileInfo *cfile, in smb2_compound_op() argument
221 if (cfile) in smb2_compound_op()
275 if (cfile) { in smb2_compound_op()
278 cfile->fid.persistent_fid, in smb2_compound_op()
279 cfile->fid.volatile_fid, in smb2_compound_op()
294 if (!rc && (!cfile || num_rqst > 1)) { in smb2_compound_op()
308 if (cfile) { in smb2_compound_op()
312 cfile->fid.persistent_fid, in smb2_compound_op()
313 cfile->fid.volatile_fid, in smb2_compound_op()
330 if (!rc && (!cfile || num_rqst > 1)) { in smb2_compound_op()
[all …]
H A Dsmb2file.c189 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument
195 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range()
196 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_unlock_range()
219 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range()
251 cfile->fid.persistent_fid, in smb2_unlock_range()
252 cfile->fid.volatile_fid, in smb2_unlock_range()
261 &cfile->llist->locks); in smb2_unlock_range()
275 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range()
276 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
279 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range()
[all …]
H A Dsmb2ops.c994 struct cifsFileInfo *cfile, struct cifs_open_info_data *data) in smb2_query_file_info() argument
996 struct cifs_fid *fid = &cfile->fid; in smb2_query_file_info()
998 if (cfile->symlink_target) { in smb2_query_file_info()
999 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in smb2_query_file_info()
1435 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
1437 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid()
1438 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1440 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid()
1441 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid()
1442 cfile->fid.access = fid->access; in smb2_set_fid()
[all …]
H A Dcifs_debug.c240 struct cifsFileInfo *cfile; in cifs_debug_files_proc_show() local
257 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_debug_files_proc_show()
262 cfile->fid.persistent_fid, in cifs_debug_files_proc_show()
263 cfile->f_flags, in cifs_debug_files_proc_show()
264 cfile->count, in cifs_debug_files_proc_show()
265 cfile->pid, in cifs_debug_files_proc_show()
266 from_kuid(&init_user_ns, cfile->uid), in cifs_debug_files_proc_show()
267 cfile->dentry); in cifs_debug_files_proc_show()
269 seq_printf(m, " %llu\n", cfile->fid.mid); in cifs_debug_files_proc_show()
H A Dcifsproto.h189 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
191 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
269 extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset,
281 extern bool cifs_is_deferred_close(struct cifsFileInfo *cfile,
284 extern void cifs_add_deferred_close(struct cifsFileInfo *cfile,
287 extern void cifs_del_deferred_close(struct cifsFileInfo *cfile);
408 struct cifsFileInfo *cfile, __u64 size,
H A Dcifsfs.c1007 struct cifsFileInfo *cfile = file->private_data; in cifs_llseek() local
1041 if (cfile && cfile->tlink) { in cifs_llseek()
1042 tcon = tlink_tcon(cfile->tlink); in cifs_llseek()
1058 struct cifsFileInfo *cfile = file->private_data; in cifs_setlease() local
1065 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
1465 struct cifsFileInfo *cfile = dst_file->private_data; in cifs_copy_file_range() local
1467 if (cfile->swapfile) { in cifs_copy_file_range()
H A Dsmb2proto.h119 extern int smb2_unlock_range(struct cifsFileInfo *cfile,
121 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
H A Dsmb2pdu.c4529 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); in smb2_readv_callback()
4607 rdata->req->cfile->fid.persistent_fid, in smb2_readv_callback()
4616 rdata->req->cfile->fid.persistent_fid, in smb2_readv_callback()
4659 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); in smb2_async_readv()
4669 io_parms.tcon = tlink_tcon(rdata->req->cfile->tlink); in smb2_async_readv()
4673 io_parms.persistent_fid = rdata->req->cfile->fid.persistent_fid; in smb2_async_readv()
4674 io_parms.volatile_fid = rdata->req->cfile->fid.volatile_fid; in smb2_async_readv()
4820 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); in smb2_writev_callback()
4891 wdata->req->cfile->fid.persistent_fid, in smb2_writev_callback()
4901 wdata->req->cfile->fid.persistent_fid, in smb2_writev_callback()
[all …]
/linux/drivers/mtd/nand/raw/
H A Dnandsim.c353 struct file *cfile; /* Open file */ member
538 struct file *cfile; in ns_alloc_device() local
542 cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); in ns_alloc_device()
543 if (IS_ERR(cfile)) in ns_alloc_device()
544 return PTR_ERR(cfile); in ns_alloc_device()
545 if (!(cfile->f_mode & FMODE_CAN_READ)) { in ns_alloc_device()
550 if (!(cfile->f_mode & FMODE_CAN_WRITE)) { in ns_alloc_device()
569 ns->cfile = cfile; in ns_alloc_device()
576 filp_close(cfile, NULL); in ns_alloc_device()
612 if (ns->cfile) { in ns_free_device()
[all …]
/linux/scripts/dtc/
H A Ddt-extract-compatibles129 for f in files_to_parse(args.cfile):
132 for f in files_to_parse(args.cfile):
/linux/include/linux/
H A Dcgroup.h117 void cgroup_file_notify(struct cgroup_file *cfile);
118 void cgroup_file_show(struct cgroup_file *cfile, bool show);
/linux/mm/
H A Dmemcontrol-v1.c1940 struct fd cfile; in memcg_write_event_control() local
1986 cfile = fdget(cfd); in memcg_write_event_control()
1987 if (!fd_file(cfile)) { in memcg_write_event_control()
1994 ret = file_permission(fd_file(cfile), MAY_READ); in memcg_write_event_control()
2002 cdentry = fd_file(cfile)->f_path.dentry; in memcg_write_event_control()
2066 fdput(cfile); in memcg_write_event_control()
2074 fdput(cfile); in memcg_write_event_control()
/linux/kernel/cgroup/
H A Dcgroup.c1679 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_rm_file() local
1682 cfile->kn = NULL; in cgroup_rm_file()
1685 del_timer_sync(&cfile->notify_timer); in cgroup_rm_file()
4260 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_add_file() local
4262 timer_setup(&cfile->notify_timer, cgroup_file_notify_timer, 0); in cgroup_add_file()
4265 cfile->kn = kn; in cgroup_add_file()
4519 void cgroup_file_notify(struct cgroup_file *cfile) in cgroup_file_notify() argument
4524 if (cfile->kn) { in cgroup_file_notify()
4525 unsigned long last = cfile->notified_at; in cgroup_file_notify()
4529 timer_reduce(&cfile->notify_timer, next); in cgroup_file_notify()
[all …]