Home
last modified time | relevance | path

Searched refs:tcon (Results 1 – 25 of 55) sorted by relevance

123

/linux/fs/smb/client/
H A Dfscache.c26 struct cifs_tcon *tcon, in cifs_fscache_fill_volume_coherency() argument
30 cd->resource_id = cpu_to_le64(tcon->resource_id); in cifs_fscache_fill_volume_coherency()
31 cd->vol_create_time = tcon->vol_create_time; in cifs_fscache_fill_volume_coherency()
32 cd->vol_serial_number = cpu_to_le32(tcon->vol_serial_number); in cifs_fscache_fill_volume_coherency()
35 int cifs_fscache_get_super_cookie(struct cifs_tcon *tcon) in cifs_fscache_get_super_cookie() argument
38 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fscache_get_super_cookie()
45 if (tcon->fscache_acquired) in cifs_fscache_get_super_cookie()
48 mutex_lock(&tcon->fscache_lock); in cifs_fscache_get_super_cookie()
49 if (tcon->fscache_acquired) { in cifs_fscache_get_super_cookie()
50 mutex_unlock(&tcon->fscache_lock); in cifs_fscache_get_super_cookie()
[all …]
H A Dsmb1ops.c21 void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon, in reset_cifs_unix_caps() argument
35 __u64 saved_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in reset_cifs_unix_caps()
38 tcon->fsUnixInfo.Capability = 0; in reset_cifs_unix_caps()
39 tcon->unix_ext = 0; /* Unix Extensions disabled */ in reset_cifs_unix_caps()
43 tcon->unix_ext = 1; /* Unix Extensions supported */ in reset_cifs_unix_caps()
45 if (!tcon->unix_ext) { in reset_cifs_unix_caps()
50 if (!CIFSSMBQFSUnixInfo(xid, tcon)) { in reset_cifs_unix_caps()
51 __u64 cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in reset_cifs_unix_caps()
120 if (CIFSSMBSetFSUnixInfo(xid, tcon, cap)) { in reset_cifs_unix_caps()
421 smb1_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb1_negotiate_wsize() argument
[all …]
H A Dcifs_swn.c79 static int cifs_swn_auth_info_krb(struct cifs_tcon *tcon, struct sk_buff *skb) in cifs_swn_auth_info_krb() argument
90 static int cifs_swn_auth_info_ntlm(struct cifs_tcon *tcon, struct sk_buff *skb) in cifs_swn_auth_info_ntlm() argument
94 if (tcon->ses->user_name != NULL) { in cifs_swn_auth_info_ntlm()
95 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_USER_NAME, tcon->ses->user_name); in cifs_swn_auth_info_ntlm()
100 if (tcon->ses->password != NULL) { in cifs_swn_auth_info_ntlm()
101 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_PASSWORD, tcon->ses->password); in cifs_swn_auth_info_ntlm()
106 if (tcon->ses->domainName != NULL) { in cifs_swn_auth_info_ntlm()
107 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_DOMAIN_NAME, tcon->ses->domainName); in cifs_swn_auth_info_ntlm()
121 struct cifs_tcon *tcon) in cifs_swn_send_register_message() argument
157 if (tcon->ses->server->use_swn_dstaddr) in cifs_swn_send_register_message()
[all …]
H A Ddfs.c206 struct cifs_tcon *tcon; in __dfs_mount_share() local
224 else if (WARN_ON(!mnt_ctx->tcon)) in __dfs_mount_share()
230 tcon = mnt_ctx->tcon; in __dfs_mount_share()
231 spin_lock(&tcon->tc_lock); in __dfs_mount_share()
232 tcon->origin_fullpath = origin_fullpath; in __dfs_mount_share()
234 ref_walk_set_tcon(rw, tcon); in __dfs_mount_share()
235 spin_unlock(&tcon->tc_lock); in __dfs_mount_share()
236 queue_delayed_work(dfscache_wq, &tcon->dfs_cache_work, in __dfs_mount_share()
337 struct cifs_tcon *tcon, in tree_connect_dfs_target() argument
342 const struct smb_version_operations *ops = tcon->ses->server->ops; in tree_connect_dfs_target()
[all …]
H A Dsmb2proto.h57 struct cifs_tcon *tcon,
61 int smb2_query_reparse_point(const unsigned int xid, struct cifs_tcon *tcon,
65 int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
68 int smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
75 umode_t mode, struct cifs_tcon *tcon,
78 umode_t mode, struct cifs_tcon *tcon, const char *name,
81 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon,
83 int smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon,
85 int smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon,
88 int smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon,
[all …]
H A Dsmb2inode.c175 static void set_next_compound(struct cifs_tcon *tcon, in set_next_compound() argument
183 smb2_set_next_command(tcon, &rqst[*num_rqst]); in set_next_compound()
200 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, in smb2_compound_op() argument
212 struct cifs_ses *ses = tcon->ses; in smb2_compound_op()
245 if (smb3_encryption_required(tcon)) in smb2_compound_op()
287 rc = SMB2_open_init(tcon, server, in smb2_compound_op()
294 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
312 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
321 set_next_compound(tcon, cfile, i, num_cmds, rqst, &num_rqst); in smb2_compound_op()
322 trace_smb3_query_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
[all …]
H A Dsmb2pdu.c77 int smb3_encryption_required(const struct cifs_tcon *tcon) in smb3_encryption_required() argument
79 if (!tcon || !tcon->ses) in smb3_encryption_required()
81 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required()
82 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in smb3_encryption_required()
84 if (tcon->seal && in smb3_encryption_required()
85 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
88 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
95 const struct cifs_tcon *tcon, in smb2_hdr_assemble() argument
133 if (!tcon) in smb2_hdr_assemble()
142 shdr->Id.SyncId.TreeId = cpu_to_le32(tcon->tid); in smb2_hdr_assemble()
[all …]
H A Dlink.c136 create_mf_symlink(const unsigned int xid, struct cifs_tcon *tcon, in create_mf_symlink() argument
152 if (tcon->ses->server->ops->create_mf_symlink) in create_mf_symlink()
153 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink()
170 check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, in check_mf_symlink() argument
188 if (tcon->ses->server->ops->query_mf_symlink) in check_mf_symlink()
189 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink()
227 cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, in cifs_query_mf_symlink() argument
240 .tcon = tcon, in cifs_query_mf_symlink()
249 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &query_data); in cifs_query_mf_symlink()
261 io_parms.tcon = tcon; in cifs_query_mf_symlink()
[all …]
H A Dsmb2misc.c570 smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp) in smb2_tcon_has_lease() argument
580 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_tcon_has_lease()
609 smb2_tcon_find_pending_open_lease(struct cifs_tcon *tcon, in smb2_tcon_find_pending_open_lease() argument
618 list_for_each_entry(open, &tcon->pending_opens, olist) { in smb2_tcon_find_pending_open_lease()
643 struct cifs_tcon *tcon; in smb2_is_valid_lease_break() local
665 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break()
666 spin_lock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
668 &tcon->stats.cifs_stats.num_oplock_brks); in smb2_is_valid_lease_break()
669 if (smb2_tcon_has_lease(tcon, rsp)) { in smb2_is_valid_lease_break()
670 spin_unlock(&tcon->open_file_lock); in smb2_is_valid_lease_break()
[all …]
H A Dsmb2ops.c493 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_wsize() argument
495 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
508 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_wsize() argument
510 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
543 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_rsize() argument
545 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
559 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_rsize() argument
561 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
829 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
834 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
[all …]
H A Dconnect.c107 struct cifs_tcon *tcon = container_of(work, in smb2_query_server_interfaces() local
110 struct TCP_Server_Info *server = tcon->ses->server; in smb2_query_server_interfaces()
119 rc = server->ops->query_server_interfaces(xid, tcon, false); in smb2_query_server_interfaces()
126 queue_delayed_work(cifsiod_wq, &tcon->query_interfaces, in smb2_query_server_interfaces()
208 struct cifs_tcon *tcon; in cifs_mark_tcp_ses_conns_for_reconnect() local
278 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_mark_tcp_ses_conns_for_reconnect()
279 tcon->need_reconnect = true; in cifs_mark_tcp_ses_conns_for_reconnect()
280 spin_lock(&tcon->tc_lock); in cifs_mark_tcp_ses_conns_for_reconnect()
281 tcon->status = TID_NEED_RECON; in cifs_mark_tcp_ses_conns_for_reconnect()
282 spin_unlock(&tcon->tc_lock); in cifs_mark_tcp_ses_conns_for_reconnect()
[all …]
H A Dfile.c375 cifs_mark_open_files_invalid(struct cifs_tcon *tcon) in cifs_mark_open_files_invalid() argument
382 spin_lock(&tcon->tc_lock); in cifs_mark_open_files_invalid()
383 if (tcon->need_reconnect) in cifs_mark_open_files_invalid()
384 tcon->status = TID_NEED_RECON; in cifs_mark_open_files_invalid()
386 if (tcon->status != TID_NEED_RECON) { in cifs_mark_open_files_invalid()
387 spin_unlock(&tcon->tc_lock); in cifs_mark_open_files_invalid()
390 tcon->status = TID_IN_FILES_INVALIDATE; in cifs_mark_open_files_invalid()
391 spin_unlock(&tcon->tc_lock); in cifs_mark_open_files_invalid()
394 spin_lock(&tcon->open_file_lock); in cifs_mark_open_files_invalid()
395 list_for_each_safe(tmp, tmp1, &tcon->openFileList) { in cifs_mark_open_files_invalid()
[all …]
H A Dcifsfs.c198 struct cifs_tcon *tcon; in cifs_read_super() local
205 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_read_super()
211 if (tcon->snapshot_time) in cifs_read_super()
214 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
226 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super()
227 ((tcon->ses->capabilities & in cifs_read_super()
228 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super()
229 !tcon->unix_ext) { in cifs_read_super()
257 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx); in cifs_read_super()
272 if (tcon->nocase) in cifs_read_super()
[all …]
H A Dinode.c31 static void cifs_invalidate_cached_dir(struct cifs_tcon *tcon, in cifs_invalidate_cached_dir() argument
36 if (!tcon || !parent) in cifs_invalidate_cached_dir()
39 if (!open_cached_dir_by_dentry(tcon, parent, &parent_cfid)) { in cifs_invalidate_cached_dir()
61 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_set_ops() local
86 if (tcon->ses->server->max_read < PAGE_SIZE + MAX_CIFS_HDR_SIZE) in cifs_set_ops()
419 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix() local
431 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); in cifs_get_file_info_unix()
455 struct cifs_tcon *tcon; in cifs_get_unix_fattr() local
464 tcon = tlink_tcon(tlink); in cifs_get_unix_fattr()
465 server = tcon->ses->server; in cifs_get_unix_fattr()
[all …]
H A Dcifssmb.c72 cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) in cifs_reconnect_tcon() argument
83 if (!tcon) in cifs_reconnect_tcon()
86 ses = tcon->ses; in cifs_reconnect_tcon()
93 spin_lock(&tcon->tc_lock); in cifs_reconnect_tcon()
94 if (tcon->status == TID_EXITING) { in cifs_reconnect_tcon()
96 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon()
102 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon()
105 rc = cifs_wait_for_server_reconnect(server, tcon->retry); in cifs_reconnect_tcon()
110 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in cifs_reconnect_tcon()
130 if (!tcon->retry) in cifs_reconnect_tcon()
[all …]
H A Dcached_dir.c134 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, in open_cached_dir() argument
163 if (tcon == NULL) in open_cached_dir()
166 ses = tcon->ses; in open_cached_dir()
167 cfids = tcon->cfids; in open_cached_dir()
186 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs); in open_cached_dir()
250 cfid->tcon = tcon; in open_cached_dir()
259 if (smb3_encryption_required(tcon)) in open_cached_dir()
274 .tcon = tcon, in open_cached_dir()
285 rc = SMB2_open_init(tcon, server, in open_cached_dir()
297 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir()
[all …]
H A Dmisc.c33 struct cifs_tcon *tcon; member
171 tconInfoFree(struct cifs_tcon *tcon, enum smb3_tcon_ref_trace trace) in tconInfoFree() argument
173 if (tcon == NULL) { in tconInfoFree()
177 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, trace); in tconInfoFree()
178 free_cached_dirs(tcon->cfids); in tconInfoFree()
180 kfree(tcon->nativeFileSystem); in tconInfoFree()
181 kfree_sensitive(tcon->password); in tconInfoFree()
182 kfree(tcon->origin_fullpath); in tconInfoFree()
183 kfree(tcon); in tconInfoFree()
286 struct cifs_tcon *tcon = NULL; in cifs_autodisable_serverino() local
[all …]
H A Dcifsglob.h371 unsigned int (*negotiate_wsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx);
373 unsigned int (*negotiate_rsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx);
400 struct cifs_tcon *tcon,
405 int (*query_file_info)(const unsigned int xid, struct cifs_tcon *tcon,
409 struct cifs_tcon *tcon,
415 int (*get_srv_inum)(const unsigned int xid, struct cifs_tcon *tcon,
436 umode_t mode, struct cifs_tcon *tcon,
440 struct cifs_tcon *tcon, const char *name,
457 struct cifs_tcon *tcon,
463 struct cifs_tcon *tcon,
[all …]
H A Dcifsproto.h82 struct cifs_tcon *tcon, int add_treename);
144 int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
150 int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
152 int cifs_get_hardlink_path(struct cifs_tcon *tcon, struct inode *inode,
242 void cifs_mark_open_files_invalid(struct cifs_tcon *tcon);
243 void cifs_reopen_persistent_handles(struct cifs_tcon *tcon);
265 void cifs_close_all_deferred_files(struct cifs_tcon *tcon);
268 void cifs_close_deferred_file_under_dentry(struct cifs_tcon *tcon,
277 void cifs_put_tcon(struct cifs_tcon *tcon, enum smb3_tcon_ref_trace trace);
288 int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon);
[all …]
H A Dreparse.c18 struct dentry *dentry, struct cifs_tcon *tcon,
23 struct dentry *dentry, struct cifs_tcon *tcon,
28 struct dentry *dentry, struct cifs_tcon *tcon,
38 struct dentry *dentry, struct cifs_tcon *tcon, in create_reparse_symlink() argument
43 return create_native_symlink(xid, inode, dentry, tcon, full_path, symname); in create_reparse_symlink()
45 return mknod_nfs(xid, inode, dentry, tcon, full_path, S_IFLNK, 0, symname); in create_reparse_symlink()
47 return mknod_wsl(xid, inode, dentry, tcon, full_path, S_IFLNK, 0, symname); in create_reparse_symlink()
54 struct dentry *dentry, struct cifs_tcon *tcon, in create_native_symlink() argument
246 new = tcon->ses->server->ops->create_reparse_inode( in create_native_symlink()
248 tcon, full_path, directory, in create_native_symlink()
[all …]
H A Ddfs_cache.c1096 static bool target_share_equal(struct cifs_tcon *tcon, const char *s1) in target_share_equal() argument
1098 struct TCP_Server_Info *server = tcon->ses->server; in target_share_equal()
1099 const char *s2 = &tcon->tree_name[1]; in target_share_equal()
1123 static bool is_ses_good(struct cifs_tcon *tcon, struct cifs_ses *ses) in is_ses_good() argument
1150 ipc = cifs_setup_ipc(ses, tcon->seal); in is_ses_good()
1179 static void refresh_ses_referral(struct cifs_tcon *tcon, struct cifs_ses *ses) in refresh_ses_referral() argument
1195 if (!is_ses_good(tcon, ses)) { in refresh_ses_referral()
1211 static int __refresh_tcon_referral(struct cifs_tcon *tcon, in __refresh_tcon_referral() argument
1227 if (target_share_equal(tcon, refs[i].node_name)) { in __refresh_tcon_referral()
1248 cifs_signal_cifsd_for_reconnect(tcon->ses->server, true); in __refresh_tcon_referral()
[all …]
H A Dsmb2file.c241 if (oparms->tcon->use_resilient) { in smb2_open_file()
244 cpu_to_le32(oparms->tcon->handle_timeout); in smb2_open_file()
246 rc = SMB2_ioctl(xid, oparms->tcon, fid->persistent_fid, in smb2_open_file()
253 oparms->tcon->use_resilient = false; in smb2_open_file()
263 rc = SMB2_get_srv_num(xid, oparms->tcon, in smb2_open_file()
292 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range() local
302 max_buf = tcon->ses->server->maxBuf; in smb2_unlock_range()
347 stored_rc = smb2_lockv(xid, tcon, in smb2_unlock_range()
372 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range()
396 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_push_mand_fdlocks() local
[all …]
H A Dreaddir.c353 struct cifs_tcon *tcon; in _initiate_cifs_search() local
371 tcon = tlink_tcon(tlink); in _initiate_cifs_search()
374 tcon = tlink_tcon(cifsFile->tlink); in _initiate_cifs_search()
377 server = tcon->ses->server; in _initiate_cifs_search()
394 if (tcon->unix_ext) in _initiate_cifs_search()
396 else if (tcon->posix_extensions) in _initiate_cifs_search()
398 else if ((tcon->ses->capabilities & in _initiate_cifs_search()
399 tcon->ses->server->vals->cap_nt_find) == 0) { in _initiate_cifs_search()
411 rc = server->ops->query_dir_first(xid, tcon, full_path, cifs_sb, in _initiate_cifs_search()
685 find_cifs_entry(const unsigned int xid, struct cifs_tcon *tcon, loff_t pos, in find_cifs_entry() argument
[all …]
/linux/drivers/gpu/drm/sun4i/
H A DMakefile21 sun4i-tcon-y += sun4i_crtc.o
22 sun4i-tcon-y += sun4i_tcon_dclk.o
23 sun4i-tcon-y += sun4i_lvds.o
24 sun4i-tcon-y += sun4i_tcon.o
25 sun4i-tcon-y += sun4i_rgb.o
28 obj-$(CONFIG_DRM_SUN4I) += sun4i-tcon.o
/linux/drivers/gpu/drm/fsl-dcu/
H A Dfsl_tcon.h24 void fsl_tcon_free(struct fsl_tcon *tcon);
26 void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
27 void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);

123