Lines Matching refs:tcon
63 smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, in smb2_compound_op() argument
76 struct cifs_ses *ses = tcon->ses; in smb2_compound_op()
95 if (smb3_encryption_required(tcon)) in smb2_compound_op()
111 vars->oparms.tcon = tcon; in smb2_compound_op()
122 rc = SMB2_open_init(tcon, server, in smb2_compound_op()
129 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
141 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
150 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
159 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
167 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
175 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
185 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
194 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
202 trace_smb3_posix_query_info_compound_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
205 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
212 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
221 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
228 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
230 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
239 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
246 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
248 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
259 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
266 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
273 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
281 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
301 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
308 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
314 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
321 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
339 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
346 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
348 trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
364 rc = SMB2_close_init(tcon, server, in smb2_compound_op()
390 pr_warn_once("server share %s deleted\n", tcon->treeName); in smb2_compound_op()
391 tcon->need_reconnect = true; in smb2_compound_op()
411 tcon->tid, rc); in smb2_compound_op()
414 tcon->tid); in smb2_compound_op()
430 trace_smb3_posix_query_info_compound_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
432 trace_smb3_posix_query_info_compound_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
436 trace_smb3_delete_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
438 trace_smb3_delete_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
444 trace_smb3_mkdir_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
446 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
452 trace_smb3_hardlink_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
454 trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
459 trace_smb3_rename_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
461 trace_smb3_rename_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
466 trace_smb3_rmdir_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
468 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
473 trace_smb3_set_eof_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
475 trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
481 tcon->tid, rc); in smb2_compound_op()
484 tcon->tid); in smb2_compound_op()
506 smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_path_info() argument
513 bool no_cached_open = tcon->nohandlecache; in smb2_query_path_info()
527 rc = open_shroot(xid, tcon, cifs_sb, &cfid); in smb2_query_path_info()
531 if (tcon->crfid.file_all_info_is_valid) { in smb2_query_path_info()
533 &tcon->crfid.file_all_info); in smb2_query_path_info()
535 rc = SMB2_query_info(xid, tcon, in smb2_query_path_info()
545 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
546 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
554 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
570 smb311_posix_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, in smb311_posix_query_path_info() argument
595 cifs_get_readable_path(tcon, full_path, &cfile); in smb311_posix_query_path_info()
596 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb311_posix_query_path_info()
605 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb311_posix_query_path_info()
623 struct cifs_tcon *tcon, const char *name, in smb2_mkdir() argument
626 return smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir()
634 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in smb2_mkdir_setinfo() argument
647 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile); in smb2_mkdir_setinfo()
648 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir_setinfo()
657 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_rmdir() argument
660 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN, in smb2_rmdir()
666 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_unlink() argument
669 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN, in smb2_unlink()
675 smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_attr() argument
688 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, access, in smb2_set_path_attr()
697 smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon, in smb2_rename_path() argument
703 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile); in smb2_rename_path()
705 return smb2_set_path_attr(xid, tcon, from_name, to_name, in smb2_rename_path()
710 smb2_create_hardlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_create_hardlink() argument
714 return smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_create_hardlink()
720 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_size() argument
726 return smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_set_path_size()