Home
last modified time | relevance | path

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

/linux-6.6.21/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.6.21/fs/smb/client/
Dfile.c456 struct cifsFileInfo *cfile; in cifs_new_fileinfo() local
461 cfile = kzalloc(sizeof(struct cifsFileInfo), GFP_KERNEL); in cifs_new_fileinfo()
462 if (cfile == NULL) in cifs_new_fileinfo()
463 return cfile; in cifs_new_fileinfo()
467 kfree(cfile); in cifs_new_fileinfo()
472 cfile->symlink_target = kstrdup(symlink_target, GFP_KERNEL); in cifs_new_fileinfo()
473 if (!cfile->symlink_target) { in cifs_new_fileinfo()
475 kfree(cfile); in cifs_new_fileinfo()
481 fdlocks->cfile = cfile; in cifs_new_fileinfo()
482 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
98 if (cfile) in smb2_compound_op()
139 if (cfile) in smb2_compound_op()
142 cfile->fid.persistent_fid, in smb2_compound_op()
143 cfile->fid.volatile_fid, in smb2_compound_op()
173 if (cfile) in smb2_compound_op()
176 cfile->fid.persistent_fid, in smb2_compound_op()
177 cfile->fid.volatile_fid, in smb2_compound_op()
238 if (cfile) { in smb2_compound_op()
241 cfile->fid.persistent_fid, in smb2_compound_op()
[all …]
Dmisc.c626 void cifs_queue_oplock_break(struct cifsFileInfo *cfile) in cifs_queue_oplock_break() argument
634 cifsFileInfo_get(cfile); in cifs_queue_oplock_break()
636 queue_work(cifsoplockd_wq, &cfile->oplock_break); in cifs_queue_oplock_break()
694 cifs_is_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close **pdclose) in cifs_is_deferred_close() argument
698 list_for_each_entry(dclose, &CIFS_I(d_inode(cfile->dentry))->deferred_closes, dlist) { in cifs_is_deferred_close()
699 if ((dclose->netfid == cfile->fid.netfid) && in cifs_is_deferred_close()
700 (dclose->persistent_fid == cfile->fid.persistent_fid) && in cifs_is_deferred_close()
701 (dclose->volatile_fid == cfile->fid.volatile_fid)) { in cifs_is_deferred_close()
713 cifs_add_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close *dclose) in cifs_add_deferred_close() argument
718 is_deferred = cifs_is_deferred_close(cfile, &pdclose); in cifs_add_deferred_close()
[all …]
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()
221 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range()
253 cfile->fid.persistent_fid, in smb2_unlock_range()
254 cfile->fid.volatile_fid, in smb2_unlock_range()
263 &cfile->llist->locks); in smb2_unlock_range()
277 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range()
278 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
281 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range()
[all …]
Dreaddir.c719 struct cifsFileInfo *cfile = file->private_data; in find_cifs_entry() local
727 if ((cfile == NULL) || (current_entry == NULL) || (num_to_ret == NULL)) in find_cifs_entry()
731 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry - in find_cifs_entry()
732 cfile->srch_inf.entries_in_buffer; in find_cifs_entry()
743 if (((index_to_find < cfile->srch_inf.index_of_last_entry) && in find_cifs_entry()
747 spin_lock(&cfile->file_info_lock); in find_cifs_entry()
748 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry()
749 cfile->invalidHandle = true; in find_cifs_entry()
750 spin_unlock(&cfile->file_info_lock); in find_cifs_entry()
752 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry()
[all …]
Dsmb2misc.c544 struct cifsFileInfo *cfile; in smb2_tcon_has_lease() local
551 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_tcon_has_lease()
552 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_tcon_has_lease()
563 cfile->oplock_break_cancelled = false; in smb2_tcon_has_lease()
565 cfile->oplock_break_cancelled = true; in smb2_tcon_has_lease()
569 cfile->oplock_epoch = le16_to_cpu(rsp->Epoch); in smb2_tcon_has_lease()
570 cfile->oplock_level = lease_state; in smb2_tcon_has_lease()
572 cifs_queue_oplock_break(cfile); in smb2_tcon_has_lease()
677 struct cifsFileInfo *cfile; in smb2_is_valid_oplock_break() local
703 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_is_valid_oplock_break()
[all …]
Dsmb2ops.c957 struct cifsFileInfo *cfile, struct cifs_open_info_data *data) in smb2_query_file_info() argument
959 struct cifs_fid *fid = &cfile->fid; in smb2_query_file_info()
961 if (cfile->symlink_target) { in smb2_query_file_info()
962 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in smb2_query_file_info()
1378 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
1380 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid()
1381 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1383 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid()
1384 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid()
1385 cfile->fid.access = fid->access; in smb2_set_fid()
[all …]
Dsmb1ops.c624 struct cifsFileInfo *cfile, struct cifs_open_info_data *data) in cifs_query_file_info() argument
629 if (cfile->symlink_target) { in cifs_query_file_info()
630 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in cifs_query_file_info()
635 rc = CIFSSMBQFileInfo(xid, tcon, cfile->fid.netfid, &fi); in cifs_query_file_info()
748 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument
750 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in cifs_set_fid()
751 cfile->fid.netfid = fid->netfid; in cifs_set_fid()
867 struct cifsFileInfo *cfile) in cifs_set_compression() argument
869 return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid); in cifs_set_compression()
943 cifs_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in cifs_mand_lock() argument
[all …]
Dcifs_debug.c240 struct cifsFileInfo *cfile; in cifs_debug_files_proc_show() local
255 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_debug_files_proc_show()
260 cfile->fid.persistent_fid, in cifs_debug_files_proc_show()
261 cfile->f_flags, in cifs_debug_files_proc_show()
262 cfile->count, in cifs_debug_files_proc_show()
263 cfile->pid, in cifs_debug_files_proc_show()
264 from_kuid(&init_user_ns, cfile->uid), in cifs_debug_files_proc_show()
265 cfile->dentry); in cifs_debug_files_proc_show()
267 seq_printf(m, " %llu\n", cfile->fid.mid); in cifs_debug_files_proc_show()
Dcifsproto.h186 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
188 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);
403 struct cifsFileInfo *cfile, __u64 size,
Dinode.c383 struct cifsFileInfo *cfile = filp->private_data; in cifs_get_file_info_unix() local
384 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix()
388 if (cfile->symlink_target) { in cifs_get_file_info_unix()
389 fattr.cf_symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in cifs_get_file_info_unix()
396 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); in cifs_get_file_info_unix()
886 struct cifsFileInfo *cfile = filp->private_data; in cifs_get_file_info() local
887 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info()
894 rc = server->ops->query_file_info(xid, tcon, cfile, &data); in cifs_get_file_info()
2537 struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; local
2544 if (tlink_tcon(cfile->tlink)->unix_ext)
[all …]
Dcifsfs.c1042 struct cifsFileInfo *cfile = file->private_data; in cifs_llseek() local
1076 if (cfile && cfile->tlink) { in cifs_llseek()
1077 tcon = tlink_tcon(cfile->tlink); in cifs_llseek()
1093 struct cifsFileInfo *cfile = file->private_data; in cifs_setlease() local
1103 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
1496 struct cifsFileInfo *cfile = dst_file->private_data; in cifs_copy_file_range() local
1498 if (cfile->swapfile) { in cifs_copy_file_range()
Dcifsglob.h353 struct cifsFileInfo *cfile, struct cifs_open_info_data *data);
1385 struct cifsFileInfo *cfile; /* fid that owns locks */ member
1438 struct cifsFileInfo *cfile; member
1459 struct cifsFileInfo *cfile; member
1484 struct cifsFileInfo *cfile; member
1760 struct cifsFileInfo *cfile; member
2062 void cifs_queue_oplock_break(struct cifsFileInfo *cfile);
Dsmb2proto.h103 extern int smb2_unlock_range(struct cifsFileInfo *cfile,
105 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
Dsmb2pdu.c4339 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback()
4409 rdata->cfile->fid.persistent_fid, in smb2_readv_callback()
4414 rdata->cfile->fid.persistent_fid, in smb2_readv_callback()
4434 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4444 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4448 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; in smb2_async_readv()
4449 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; in smb2_async_readv()
4591 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback()
4652 wdata->cfile->fid.persistent_fid, in smb2_writev_callback()
4660 wdata->cfile->fid.persistent_fid, in smb2_writev_callback()
[all …]
Dcifssmb.c1266 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback()
1320 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv()
1345 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv()
1619 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_writev_callback()
1669 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_async_writev()
1691 smb->Fid = wdata->cfile->fid.netfid; in cifs_async_writev()
5074 struct cifsFileInfo *cfile, __u64 size, bool set_allocation) in CIFSSMBSetFileSize() argument
5088 pSMB->hdr.Pid = cpu_to_le16((__u16)cfile->pid); in CIFSSMBSetFileSize()
5089 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(cfile->pid >> 16)); in CIFSSMBSetFileSize()
5118 pSMB->Fid = cfile->fid.netfid; in CIFSSMBSetFileSize()
/linux-6.6.21/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.6.21/scripts/dtc/
Ddt-extract-compatibles80 for f in files_to_parse(args.cfile):
/linux-6.6.21/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.6.21/kernel/cgroup/
Dcgroup.c1662 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_rm_file() local
1665 cfile->kn = NULL; in cgroup_rm_file()
1668 del_timer_sync(&cfile->notify_timer); in cgroup_rm_file()
4200 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_add_file() local
4202 timer_setup(&cfile->notify_timer, cgroup_file_notify_timer, 0); in cgroup_add_file()
4205 cfile->kn = kn; in cgroup_add_file()
4459 void cgroup_file_notify(struct cgroup_file *cfile) in cgroup_file_notify() argument
4464 if (cfile->kn) { in cgroup_file_notify()
4465 unsigned long last = cfile->notified_at; in cgroup_file_notify()
4469 timer_reduce(&cfile->notify_timer, next); in cgroup_file_notify()
[all …]
/linux-6.6.21/mm/
Dmemcontrol.c4866 struct fd cfile; in memcg_write_event_control() local
4909 cfile = fdget(cfd); in memcg_write_event_control()
4910 if (!cfile.file) { in memcg_write_event_control()
4917 ret = file_permission(cfile.file, MAY_READ); in memcg_write_event_control()
4925 cdentry = cfile.file->f_path.dentry; in memcg_write_event_control()
4983 fdput(cfile); in memcg_write_event_control()
4991 fdput(cfile); in memcg_write_event_control()