Lines Matching refs:tcon
51 smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, in smb2_compound_op() argument
62 struct cifs_ses *ses = tcon->ses; in smb2_compound_op()
80 if (smb3_encryption_required(tcon)) in smb2_compound_op()
98 oparms.tcon = tcon; in smb2_compound_op()
111 rc = SMB2_open_init(tcon, &rqst[num_rqst], &oplock, &oparms, in smb2_compound_op()
117 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
130 rc = SMB2_query_info_init(tcon, &rqst[num_rqst], in smb2_compound_op()
138 rc = SMB2_query_info_init(tcon, &rqst[num_rqst], in smb2_compound_op()
146 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
154 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
158 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
165 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
175 rc = SMB2_set_info_init(tcon, &rqst[num_rqst], COMPOUND_FID, in smb2_compound_op()
181 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
183 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
193 rc = SMB2_set_info_init(tcon, &rqst[num_rqst], COMPOUND_FID, in smb2_compound_op()
199 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
201 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
213 rc = SMB2_set_info_init(tcon, &rqst[num_rqst], in smb2_compound_op()
219 rc = SMB2_set_info_init(tcon, &rqst[num_rqst], in smb2_compound_op()
225 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
233 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
254 rc = SMB2_set_info_init(tcon, &rqst[num_rqst], in smb2_compound_op()
260 rc = SMB2_set_info_init(tcon, &rqst[num_rqst], in smb2_compound_op()
265 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
272 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
291 rc = SMB2_set_info_init(tcon, &rqst[num_rqst], COMPOUND_FID, in smb2_compound_op()
297 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
299 trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
315 rc = SMB2_close_init(tcon, &rqst[num_rqst], COMPOUND_FID, in smb2_compound_op()
341 tcon->treeName); in smb2_compound_op()
342 tcon->need_reconnect = true; in smb2_compound_op()
362 tcon->tid, rc); in smb2_compound_op()
365 tcon->tid); in smb2_compound_op()
369 trace_smb3_delete_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
371 trace_smb3_delete_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
377 trace_smb3_mkdir_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
379 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
385 trace_smb3_hardlink_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
387 trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
392 trace_smb3_rename_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
394 trace_smb3_rename_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
399 trace_smb3_rmdir_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
401 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
406 trace_smb3_set_eof_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
408 trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
414 tcon->tid, rc); in smb2_compound_op()
417 tcon->tid); in smb2_compound_op()
438 smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_path_info() argument
446 bool no_cached_open = tcon->nohandlecache; in smb2_query_path_info()
459 rc = open_shroot(xid, tcon, &fid); in smb2_query_path_info()
463 if (tcon->crfid.file_all_info_is_valid) { in smb2_query_path_info()
465 &tcon->crfid.file_all_info); in smb2_query_path_info()
467 rc = SMB2_query_info(xid, tcon, fid.persistent_fid, in smb2_query_path_info()
472 close_shroot(&tcon->crfid); in smb2_query_path_info()
479 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
480 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
488 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
504 struct cifs_tcon *tcon, const char *name, in smb2_mkdir() argument
507 return smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir()
515 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in smb2_mkdir_setinfo() argument
528 cifs_get_writable_path(tcon, name, &cfile); in smb2_mkdir_setinfo()
529 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir_setinfo()
538 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_rmdir() argument
541 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN, in smb2_rmdir()
547 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_unlink() argument
550 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN, in smb2_unlink()
556 smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_attr() argument
569 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, access, in smb2_set_path_attr()
578 smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon, in smb2_rename_path() argument
584 cifs_get_writable_path(tcon, from_name, &cfile); in smb2_rename_path()
586 return smb2_set_path_attr(xid, tcon, from_name, to_name, in smb2_rename_path()
591 smb2_create_hardlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_create_hardlink() argument
595 return smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_create_hardlink()
601 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_size() argument
607 return smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_set_path_size()