Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/misc/genwqe/
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-6.1.9/fs/cifs/
Dfile.c326 struct cifsFileInfo *cfile; in cifs_new_fileinfo() local
331 cfile = kzalloc(sizeof(struct cifsFileInfo), GFP_KERNEL); in cifs_new_fileinfo()
332 if (cfile == NULL) in cifs_new_fileinfo()
333 return cfile; in cifs_new_fileinfo()
337 kfree(cfile); in cifs_new_fileinfo()
342 cfile->symlink_target = kstrdup(symlink_target, GFP_KERNEL); in cifs_new_fileinfo()
343 if (!cfile->symlink_target) { in cifs_new_fileinfo()
345 kfree(cfile); in cifs_new_fileinfo()
351 fdlocks->cfile = cfile; in cifs_new_fileinfo()
352 cfile->llist = fdlocks; in cifs_new_fileinfo()
[all …]
Dsmb2inode.c61 umode_t mode, void *ptr, int command, struct cifsFileInfo *cfile, in smb2_compound_op() argument
97 if (cfile) in smb2_compound_op()
136 if (cfile) in smb2_compound_op()
139 cfile->fid.persistent_fid, in smb2_compound_op()
140 cfile->fid.volatile_fid, in smb2_compound_op()
170 if (cfile) in smb2_compound_op()
173 cfile->fid.persistent_fid, in smb2_compound_op()
174 cfile->fid.volatile_fid, in smb2_compound_op()
254 if (cfile) in smb2_compound_op()
257 cfile->fid.persistent_fid, in smb2_compound_op()
[all …]
Dsmb2file.c188 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument
194 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range()
195 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_unlock_range()
220 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range()
252 cfile->fid.persistent_fid, in smb2_unlock_range()
253 cfile->fid.volatile_fid, in smb2_unlock_range()
262 &cfile->llist->locks); in smb2_unlock_range()
276 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range()
277 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
280 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range()
[all …]
Dmisc.c608 void cifs_queue_oplock_break(struct cifsFileInfo *cfile) in cifs_queue_oplock_break() argument
616 cifsFileInfo_get(cfile); in cifs_queue_oplock_break()
618 queue_work(cifsoplockd_wq, &cfile->oplock_break); in cifs_queue_oplock_break()
676 cifs_is_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close **pdclose) in cifs_is_deferred_close() argument
680 list_for_each_entry(dclose, &CIFS_I(d_inode(cfile->dentry))->deferred_closes, dlist) { in cifs_is_deferred_close()
681 if ((dclose->netfid == cfile->fid.netfid) && in cifs_is_deferred_close()
682 (dclose->persistent_fid == cfile->fid.persistent_fid) && in cifs_is_deferred_close()
683 (dclose->volatile_fid == cfile->fid.volatile_fid)) { in cifs_is_deferred_close()
695 cifs_add_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close *dclose) in cifs_add_deferred_close() argument
700 is_deferred = cifs_is_deferred_close(cfile, &pdclose); in cifs_add_deferred_close()
[all …]
Dreaddir.c722 struct cifsFileInfo *cfile = file->private_data; in find_cifs_entry() local
730 if ((cfile == NULL) || (current_entry == NULL) || (num_to_ret == NULL)) in find_cifs_entry()
734 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry - in find_cifs_entry()
735 cfile->srch_inf.entries_in_buffer; in find_cifs_entry()
746 if (((index_to_find < cfile->srch_inf.index_of_last_entry) && in find_cifs_entry()
750 spin_lock(&cfile->file_info_lock); in find_cifs_entry()
751 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry()
752 cfile->invalidHandle = true; in find_cifs_entry()
753 spin_unlock(&cfile->file_info_lock); in find_cifs_entry()
755 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry()
[all …]
Dsmb2misc.c550 struct cifsFileInfo *cfile; in smb2_tcon_has_lease() local
557 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_tcon_has_lease()
558 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_tcon_has_lease()
569 cfile->oplock_break_cancelled = false; in smb2_tcon_has_lease()
571 cfile->oplock_break_cancelled = true; in smb2_tcon_has_lease()
575 cfile->oplock_epoch = le16_to_cpu(rsp->Epoch); in smb2_tcon_has_lease()
576 cfile->oplock_level = lease_state; in smb2_tcon_has_lease()
578 cifs_queue_oplock_break(cfile); in smb2_tcon_has_lease()
683 struct cifsFileInfo *cfile; in smb2_is_valid_oplock_break() local
709 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_is_valid_oplock_break()
[all …]
Dsmb2ops.c865 struct cifsFileInfo *cfile, struct cifs_open_info_data *data) in smb2_query_file_info() argument
867 struct cifs_fid *fid = &cfile->fid; in smb2_query_file_info()
869 if (cfile->symlink_target) { in smb2_query_file_info()
870 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in smb2_query_file_info()
1285 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
1287 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid()
1288 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1290 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid()
1291 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid()
1292 cfile->fid.access = fid->access; in smb2_set_fid()
[all …]
Dsmb1ops.c620 struct cifsFileInfo *cfile, struct cifs_open_info_data *data) in cifs_query_file_info() argument
625 if (cfile->symlink_target) { in cifs_query_file_info()
626 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in cifs_query_file_info()
631 rc = CIFSSMBQFileInfo(xid, tcon, cfile->fid.netfid, &fi); in cifs_query_file_info()
744 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument
746 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in cifs_set_fid()
747 cfile->fid.netfid = fid->netfid; in cifs_set_fid()
862 struct cifsFileInfo *cfile) in cifs_set_compression() argument
864 return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid); in cifs_set_compression()
939 cifs_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in cifs_mand_lock() argument
[all …]
Dcifs_debug.c174 struct cifsFileInfo *cfile; in cifs_debug_files_proc_show() local
189 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_debug_files_proc_show()
193 cfile->fid.persistent_fid, in cifs_debug_files_proc_show()
194 cfile->f_flags, in cifs_debug_files_proc_show()
195 cfile->count, in cifs_debug_files_proc_show()
196 cfile->pid, in cifs_debug_files_proc_show()
197 from_kuid(&init_user_ns, cfile->uid), in cifs_debug_files_proc_show()
198 cfile->dentry); in cifs_debug_files_proc_show()
200 seq_printf(m, " %llu\n", cfile->fid.mid); in cifs_debug_files_proc_show()
Dcifsproto.h180 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
182 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
249 extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset,
261 extern bool cifs_is_deferred_close(struct cifsFileInfo *cfile,
264 extern void cifs_add_deferred_close(struct cifsFileInfo *cfile,
267 extern void cifs_del_deferred_close(struct cifsFileInfo *cfile);
387 struct cifsFileInfo *cfile, __u64 size,
Dinode.c359 struct cifsFileInfo *cfile = filp->private_data; local
360 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
364 if (cfile->symlink_target) {
365 fattr.cf_symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL);
372 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
786 struct cifsFileInfo *cfile = filp->private_data; local
787 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
796 rc = server->ops->query_file_info(xid, tcon, cfile, &data);
2407 struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; local
2414 if (tlink_tcon(cfile->tlink)->unix_ext)
[all …]
Dcifsfs.c1030 struct cifsFileInfo *cfile = file->private_data; in cifs_llseek() local
1064 if (cfile && cfile->tlink) { in cifs_llseek()
1065 tcon = tlink_tcon(cfile->tlink); in cifs_llseek()
1081 struct cifsFileInfo *cfile = file->private_data; in cifs_setlease() local
1091 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
1335 struct cifsFileInfo *cfile = dst_file->private_data; in cifs_copy_file_range() local
1337 if (cfile->swapfile) { in cifs_copy_file_range()
Dcifsglob.h330 struct cifsFileInfo *cfile, struct cifs_open_info_data *data);
1372 struct cifsFileInfo *cfile; /* fid that owns locks */ member
1425 struct cifsFileInfo *cfile; member
1445 struct cifsFileInfo *cfile; member
1480 struct cifsFileInfo *cfile; member
1759 struct cifsFileInfo *cfile; member
2029 void cifs_queue_oplock_break(struct cifsFileInfo *cfile);
Dsmb2proto.h97 extern int smb2_unlock_range(struct cifsFileInfo *cfile,
99 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
Dsmb2pdu.c4160 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback()
4232 rdata->cfile->fid.persistent_fid, in smb2_readv_callback()
4237 rdata->cfile->fid.persistent_fid, in smb2_readv_callback()
4257 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4266 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4270 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; in smb2_async_readv()
4271 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; in smb2_async_readv()
4407 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback()
4468 wdata->cfile->fid.persistent_fid, in smb2_writev_callback()
4476 wdata->cfile->fid.persistent_fid, in smb2_writev_callback()
[all …]
Dcifssmb.c1293 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback()
1350 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv()
1375 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv()
1649 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_writev_callback()
1699 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_async_writev()
1721 smb->Fid = wdata->cfile->fid.netfid; in cifs_async_writev()
5101 struct cifsFileInfo *cfile, __u64 size, bool set_allocation) in CIFSSMBSetFileSize() argument
5115 pSMB->hdr.Pid = cpu_to_le16((__u16)cfile->pid); in CIFSSMBSetFileSize()
5116 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(cfile->pid >> 16)); in CIFSSMBSetFileSize()
5145 pSMB->Fid = cfile->fid.netfid; in CIFSSMBSetFileSize()
/linux-6.1.9/drivers/mtd/nand/raw/
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-6.1.9/scripts/dtc/
Ddt-extract-compatibles62 for f in args.cfile:
/linux-6.1.9/include/linux/
Dcgroup.h118 void cgroup_file_notify(struct cgroup_file *cfile);
119 void cgroup_file_show(struct cgroup_file *cfile, bool show);
/linux-6.1.9/kernel/cgroup/
Dcgroup.c1684 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_rm_file() local
1687 cfile->kn = NULL; in cgroup_rm_file()
1690 del_timer_sync(&cfile->notify_timer); in cgroup_rm_file()
4196 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_add_file() local
4198 timer_setup(&cfile->notify_timer, cgroup_file_notify_timer, 0); in cgroup_add_file()
4201 cfile->kn = kn; in cgroup_add_file()
4458 void cgroup_file_notify(struct cgroup_file *cfile) in cgroup_file_notify() argument
4463 if (cfile->kn) { in cgroup_file_notify()
4464 unsigned long last = cfile->notified_at; in cgroup_file_notify()
4468 timer_reduce(&cfile->notify_timer, next); in cgroup_file_notify()
[all …]
/linux-6.1.9/mm/
Dmemcontrol.c4834 struct fd cfile; in memcg_write_event_control() local
4877 cfile = fdget(cfd); in memcg_write_event_control()
4878 if (!cfile.file) { in memcg_write_event_control()
4885 ret = file_permission(cfile.file, MAY_READ); in memcg_write_event_control()
4893 cdentry = cfile.file->f_path.dentry; in memcg_write_event_control()
4951 fdput(cfile); in memcg_write_event_control()
4959 fdput(cfile); in memcg_write_event_control()