Home
last modified time | relevance | path

Searched refs:cfid (Results 1 – 7 of 7) sorted by relevance

/linux/fs/smb/client/
H A Dcached_dir.c16 static void free_cached_dir(struct cached_fid *cfid);
30 struct cached_fid *cfid; in find_or_create_cached_dir() local
33 list_for_each_entry(cfid, &cfids->entries, entry) { in find_or_create_cached_dir()
34 if (!strcmp(cfid->path, path)) { in find_or_create_cached_dir()
40 if (!cfid->time || !cfid->has_lease) { in find_or_create_cached_dir()
44 kref_get(&cfid->refcount); in find_or_create_cached_dir()
46 return cfid; in find_or_create_cached_dir()
57 cfid = init_cached_dir(path); in find_or_create_cached_dir()
58 if (cfid == NULL) { in find_or_create_cached_dir()
62 cfid->cfids = cfids; in find_or_create_cached_dir()
[all …]
H A Dreaddir.c910 struct cached_fid *cfid) in cifs_dir_emit() argument
919 if (cfid) { in cifs_dir_emit()
920 mutex_lock(&cfid->dirents.de_mutex); in cifs_dir_emit()
921 add_cached_dirent(&cfid->dirents, ctx, name, namelen, in cifs_dir_emit()
923 mutex_unlock(&cfid->dirents.de_mutex); in cifs_dir_emit()
932 struct cached_fid *cfid) in cifs_filldir() argument
1022 &fattr, cfid); in cifs_filldir()
1041 struct cached_fid *cfid = NULL; in cifs_readdir() local
1062 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, false, &cfid); in cifs_readdir()
1067 mutex_lock(&cfid->dirents.de_mutex); in cifs_readdir()
[all …]
H A Dcached_dir.h72 bool lookup_only, struct cached_fid **cfid);
75 struct cached_fid **cfid);
76 extern void close_cached_dir(struct cached_fid *cfid);
H A Dsmb2inode.c870 struct cached_fid *cfid = NULL; in smb2_query_path_info() local
893 cifs_sb, false, &cfid); in smb2_query_path_info()
897 if (cfid->file_all_info_is_valid) { in smb2_query_path_info()
898 memcpy(&data->fi, &cfid->file_all_info, in smb2_query_path_info()
902 cfid->fid.persistent_fid, in smb2_query_path_info()
903 cfid->fid.volatile_fid, in smb2_query_path_info()
906 close_cached_dir(cfid); in smb2_query_path_info()
H A Dsmb2ops.c850 struct cached_fid *cfid = NULL; in smb3_qfs_tcon() local
861 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
863 memcpy(&fid, &cfid->fid, sizeof(struct cifs_fid)); in smb3_qfs_tcon()
880 if (cfid == NULL) in smb3_qfs_tcon()
883 close_cached_dir(cfid); in smb3_qfs_tcon()
927 struct cached_fid *cfid; in smb2_is_path_accessible() local
931 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
933 if (cfid->has_lease) { in smb2_is_path_accessible()
934 close_cached_dir(cfid); in smb2_is_path_accessible()
937 close_cached_dir(cfid); in smb2_is_path_accessible()
[all …]
H A Dinode.c2566 struct cached_fid *cfid = NULL; local
2577 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2578 if (cfid->time && cifs_i->time > cfid->time) {
2579 close_cached_dir(cfid);
2582 close_cached_dir(cfid);
/linux/drivers/cpufreq/
H A Dpowernow-k7.c253 int cfid; in powernow_target() local
264 cfid = fidvidstatus.bits.CFID; in powernow_target()
265 freqs.old = fsb * fid_codes[cfid] / 10; in powernow_target()
556 unsigned int cfid; in powernow_get() local
561 cfid = fidvidstatus.bits.CFID; in powernow_get()
563 return fsb * fid_codes[cfid] / 10; in powernow_get()