/linux-6.12.1/drivers/misc/genwqe/ |
D | card_dev.c | 43 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.12.1/fs/smb/client/ |
D | file.c | 41 static int cifs_reopen_file(struct cifsFileInfo *cfile, bool can_flush); 54 struct cifsFileInfo *open_file = req->cfile; in cifs_prepare_write() 120 if (wdata->req->cfile->invalidHandle) in cifs_issue_write() 163 server->ops->negotiate_rsize(tlink_tcon(req->cfile->tlink), in cifs_prepare_read() 212 if (req->cfile->invalidHandle) { in cifs_issue_read() 214 rc = cifs_reopen_file(req->cfile, true); in cifs_issue_read() 242 ret = cifs_get_writable_file(CIFS_I(wreq->inode), FIND_WR_ANY, &req->cfile); in cifs_begin_writeback() 267 req->cfile = cifsFileInfo_get(open_file); in cifs_init_request() 268 req->server = cifs_pick_channel(tlink_tcon(req->cfile->tlink)->ses); in cifs_init_request() 270 req->pid = req->cfile->pid; in cifs_init_request() [all …]
|
D | smb2inode.c | 175 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 …]
|
D | misc.c | 631 void cifs_queue_oplock_break(struct cifsFileInfo *cfile) in cifs_queue_oplock_break() argument 639 cifsFileInfo_get(cfile); in cifs_queue_oplock_break() 641 queue_work(cifsoplockd_wq, &cfile->oplock_break); in cifs_queue_oplock_break() 699 cifs_is_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close **pdclose) in cifs_is_deferred_close() argument 703 list_for_each_entry(dclose, &CIFS_I(d_inode(cfile->dentry))->deferred_closes, dlist) { in cifs_is_deferred_close() 704 if ((dclose->netfid == cfile->fid.netfid) && in cifs_is_deferred_close() 705 (dclose->persistent_fid == cfile->fid.persistent_fid) && in cifs_is_deferred_close() 706 (dclose->volatile_fid == cfile->fid.volatile_fid)) { in cifs_is_deferred_close() 718 cifs_add_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close *dclose) in cifs_add_deferred_close() argument 723 is_deferred = cifs_is_deferred_close(cfile, &pdclose); in cifs_add_deferred_close() [all …]
|
D | smb2file.c | 189 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 …]
|
D | readdir.c | 678 struct cifsFileInfo *cfile = file->private_data; in find_cifs_entry() local 686 if ((cfile == NULL) || (current_entry == NULL) || (num_to_ret == NULL)) in find_cifs_entry() 690 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry - in find_cifs_entry() 691 cfile->srch_inf.entries_in_buffer; in find_cifs_entry() 702 if (((index_to_find < cfile->srch_inf.index_of_last_entry) && in find_cifs_entry() 706 spin_lock(&cfile->file_info_lock); in find_cifs_entry() 707 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry() 708 cfile->invalidHandle = true; in find_cifs_entry() 709 spin_unlock(&cfile->file_info_lock); in find_cifs_entry() 711 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry() [all …]
|
D | smb2misc.c | 544 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() 679 struct cifsFileInfo *cfile; in smb2_is_valid_oplock_break() local 707 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_is_valid_oplock_break() [all …]
|
D | smb2ops.c | 994 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 …]
|
D | smb1ops.c | 624 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 …]
|
D | cifs_debug.c | 240 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()
|
D | cifsproto.h | 189 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,
|
D | inode.c | 403 struct cifsFileInfo *cfile = filp->private_data; in cifs_get_file_info_unix() local 404 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix() 408 if (cfile->symlink_target) { in cifs_get_file_info_unix() 409 fattr.cf_symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in cifs_get_file_info_unix() 416 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); in cifs_get_file_info_unix() 876 struct cifsFileInfo *cfile = filp->private_data; in cifs_get_file_info() local 877 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info() 889 rc = server->ops->query_file_info(xid, tcon, cfile, &data); in cifs_get_file_info() 2577 struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; local 2584 if (tlink_tcon(cfile->tlink)->unix_ext) [all …]
|
D | cifsfs.c | 1007 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()
|
D | smb2proto.h | 119 extern int smb2_unlock_range(struct cifsFileInfo *cfile, 121 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
|
D | cifsglob.h | 369 struct cifsFileInfo *cfile, struct cifs_open_info_data *data); 1426 struct cifsFileInfo *cfile; /* fid that owns locks */ member 1477 struct cifsFileInfo *cfile; member 1762 struct cifsFileInfo *cfile; member 2064 void cifs_queue_oplock_break(struct cifsFileInfo *cfile);
|
D | smb2pdu.c | 4529 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 …]
|
D | cifssmb.c | 1277 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); in cifs_readv_callback() 1351 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); in cifs_async_readv() 1376 smb->Fid = rdata->req->cfile->fid.netfid; in cifs_async_readv() 1647 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); in cifs_writev_callback() 1710 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); in cifs_async_writev() 1733 smb->Fid = wdata->req->cfile->fid.netfid; in cifs_async_writev() 5126 struct cifsFileInfo *cfile, __u64 size, bool set_allocation) in CIFSSMBSetFileSize() argument 5140 pSMB->hdr.Pid = cpu_to_le16((__u16)cfile->pid); in CIFSSMBSetFileSize() 5141 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(cfile->pid >> 16)); in CIFSSMBSetFileSize() 5170 pSMB->Fid = cfile->fid.netfid; in CIFSSMBSetFileSize()
|
/linux-6.12.1/drivers/mtd/nand/raw/ |
D | nandsim.c | 353 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.12.1/scripts/dtc/ |
D | dt-extract-compatibles | 129 for f in files_to_parse(args.cfile): 132 for f in files_to_parse(args.cfile):
|
/linux-6.12.1/include/linux/ |
D | cgroup.h | 117 void cgroup_file_notify(struct cgroup_file *cfile); 118 void cgroup_file_show(struct cgroup_file *cfile, bool show);
|
/linux-6.12.1/mm/ |
D | memcontrol-v1.c | 1940 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-6.12.1/kernel/cgroup/ |
D | cgroup.c | 1679 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 …]
|