Lines Matching full:tcon

440 cifs_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx)  in cifs_negotiate_wsize()  argument
442 __u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_negotiate_wsize()
443 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize()
449 else if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_WRITE_CAP)) in cifs_negotiate_wsize()
455 if (!tcon->unix_ext || !(unix_cap & CIFS_UNIX_LARGE_WRITE_CAP)) in cifs_negotiate_wsize()
475 cifs_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in cifs_negotiate_rsize() argument
477 __u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_negotiate_rsize()
478 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize()
493 if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_READ_CAP)) in cifs_negotiate_rsize()
516 cifs_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in cifs_qfs_tcon() argument
519 CIFSSMBQFSDeviceInfo(xid, tcon); in cifs_qfs_tcon()
520 CIFSSMBQFSAttributeInfo(xid, tcon); in cifs_qfs_tcon()
524 cifs_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in cifs_is_path_accessible() argument
534 rc = CIFSSMBQPathInfo(xid, tcon, full_path, file_info, in cifs_is_path_accessible()
539 rc = SMBQueryInformation(xid, tcon, full_path, file_info, in cifs_is_path_accessible()
546 struct cifs_tcon *tcon, in cifs_query_path_info() argument
558 rc = CIFSSMBQPathInfo(xid, tcon, full_path, &fi, 0 /* not legacy */, cifs_sb->local_nls, in cifs_query_path_info()
563 * in tcon or mount. in cifs_query_path_info()
566 rc = SMBQueryInformation(xid, tcon, full_path, &fi, cifs_sb->local_nls, in cifs_query_path_info()
583 .tcon = tcon, in cifs_query_path_info()
597 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_path_info()
603 static int cifs_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in cifs_get_srv_inum() argument
618 return CIFSGetSrvInodeNumber(xid, tcon, full_path, uniqueid, in cifs_get_srv_inum()
623 static int cifs_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in cifs_query_file_info() argument
635 rc = CIFSSMBQFileInfo(xid, tcon, cfile->fid.netfid, &fi); in cifs_query_file_info()
642 cifs_clear_stats(struct cifs_tcon *tcon) in cifs_clear_stats() argument
644 atomic_set(&tcon->stats.cifs_stats.num_writes, 0); in cifs_clear_stats()
645 atomic_set(&tcon->stats.cifs_stats.num_reads, 0); in cifs_clear_stats()
646 atomic_set(&tcon->stats.cifs_stats.num_flushes, 0); in cifs_clear_stats()
647 atomic_set(&tcon->stats.cifs_stats.num_oplock_brks, 0); in cifs_clear_stats()
648 atomic_set(&tcon->stats.cifs_stats.num_opens, 0); in cifs_clear_stats()
649 atomic_set(&tcon->stats.cifs_stats.num_posixopens, 0); in cifs_clear_stats()
650 atomic_set(&tcon->stats.cifs_stats.num_posixmkdirs, 0); in cifs_clear_stats()
651 atomic_set(&tcon->stats.cifs_stats.num_closes, 0); in cifs_clear_stats()
652 atomic_set(&tcon->stats.cifs_stats.num_deletes, 0); in cifs_clear_stats()
653 atomic_set(&tcon->stats.cifs_stats.num_mkdirs, 0); in cifs_clear_stats()
654 atomic_set(&tcon->stats.cifs_stats.num_rmdirs, 0); in cifs_clear_stats()
655 atomic_set(&tcon->stats.cifs_stats.num_renames, 0); in cifs_clear_stats()
656 atomic_set(&tcon->stats.cifs_stats.num_t2renames, 0); in cifs_clear_stats()
657 atomic_set(&tcon->stats.cifs_stats.num_ffirst, 0); in cifs_clear_stats()
658 atomic_set(&tcon->stats.cifs_stats.num_fnext, 0); in cifs_clear_stats()
659 atomic_set(&tcon->stats.cifs_stats.num_fclose, 0); in cifs_clear_stats()
660 atomic_set(&tcon->stats.cifs_stats.num_hardlinks, 0); in cifs_clear_stats()
661 atomic_set(&tcon->stats.cifs_stats.num_symlinks, 0); in cifs_clear_stats()
662 atomic_set(&tcon->stats.cifs_stats.num_locks, 0); in cifs_clear_stats()
663 atomic_set(&tcon->stats.cifs_stats.num_acl_get, 0); in cifs_clear_stats()
664 atomic_set(&tcon->stats.cifs_stats.num_acl_set, 0); in cifs_clear_stats()
668 cifs_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in cifs_print_stats() argument
671 atomic_read(&tcon->stats.cifs_stats.num_oplock_brks)); in cifs_print_stats()
673 atomic_read(&tcon->stats.cifs_stats.num_reads), in cifs_print_stats()
674 (long long)(tcon->bytes_read)); in cifs_print_stats()
676 atomic_read(&tcon->stats.cifs_stats.num_writes), in cifs_print_stats()
677 (long long)(tcon->bytes_written)); in cifs_print_stats()
679 atomic_read(&tcon->stats.cifs_stats.num_flushes)); in cifs_print_stats()
681 atomic_read(&tcon->stats.cifs_stats.num_locks), in cifs_print_stats()
682 atomic_read(&tcon->stats.cifs_stats.num_hardlinks), in cifs_print_stats()
683 atomic_read(&tcon->stats.cifs_stats.num_symlinks)); in cifs_print_stats()
685 atomic_read(&tcon->stats.cifs_stats.num_opens), in cifs_print_stats()
686 atomic_read(&tcon->stats.cifs_stats.num_closes), in cifs_print_stats()
687 atomic_read(&tcon->stats.cifs_stats.num_deletes)); in cifs_print_stats()
689 atomic_read(&tcon->stats.cifs_stats.num_posixopens), in cifs_print_stats()
690 atomic_read(&tcon->stats.cifs_stats.num_posixmkdirs)); in cifs_print_stats()
692 atomic_read(&tcon->stats.cifs_stats.num_mkdirs), in cifs_print_stats()
693 atomic_read(&tcon->stats.cifs_stats.num_rmdirs)); in cifs_print_stats()
695 atomic_read(&tcon->stats.cifs_stats.num_renames), in cifs_print_stats()
696 atomic_read(&tcon->stats.cifs_stats.num_t2renames)); in cifs_print_stats()
698 atomic_read(&tcon->stats.cifs_stats.num_ffirst), in cifs_print_stats()
699 atomic_read(&tcon->stats.cifs_stats.num_fnext), in cifs_print_stats()
700 atomic_read(&tcon->stats.cifs_stats.num_fclose)); in cifs_print_stats()
705 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in cifs_mkdir_setinfo() argument
717 rc = CIFSSMBSetPathInfo(xid, tcon, full_path, &info, cifs_sb->local_nls, in cifs_mkdir_setinfo()
730 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file()
731 rc = SMBLegacyOpen(xid, oparms->tcon, oparms->path, in cifs_open_file()
757 cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon, in cifs_close_file() argument
760 return CIFSSMBClose(xid, tcon, fid->netfid); in cifs_close_file()
764 cifs_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in cifs_flush_file() argument
767 return CIFSSMBFlush(xid, tcon, fid->netfid); in cifs_flush_file()
802 struct cifs_tcon *tcon; in smb_set_file_info() local
809 tcon = tlink_tcon(open_file->tlink); in smb_set_file_info()
819 tcon = tlink_tcon(tlink); in smb_set_file_info()
821 rc = CIFSSMBSetPathInfo(xid, tcon, full_path, buf, cifs_sb->local_nls, in smb_set_file_info()
831 .tcon = tcon, in smb_set_file_info()
851 rc = CIFSSMBSetFileInfo(xid, tcon, buf, fid.netfid, netpid); in smb_set_file_info()
856 CIFSSMBClose(xid, tcon, fid.netfid); in smb_set_file_info()
866 cifs_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in cifs_set_compression() argument
869 return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid); in cifs_set_compression()
873 cifs_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in cifs_query_dir_first() argument
880 rc = CIFSFindFirst(xid, tcon, path, cifs_sb, in cifs_query_dir_first()
888 cifs_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in cifs_query_dir_next() argument
892 return CIFSFindNext(xid, tcon, fid->netfid, search_flags, srch_inf); in cifs_query_dir_next()
896 cifs_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in cifs_close_dir() argument
899 return CIFSFindClose(xid, tcon, fid->netfid); in cifs_close_dir()
903 cifs_oplock_response(struct cifs_tcon *tcon, __u64 persistent_fid, in cifs_oplock_response() argument
906 return CIFSSMBLock(0, tcon, net_fid, current->tgid, 0, 0, 0, 0, in cifs_oplock_response()
911 cifs_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in cifs_queryfs() argument
921 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_queryfs()
922 (CIFS_POSIX_EXTENSIONS & le64_to_cpu(tcon->fsUnixInfo.Capability))) in cifs_queryfs()
923 rc = CIFSSMBQFSPosixInfo(xid, tcon, buf); in cifs_queryfs()
929 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_queryfs()
930 rc = CIFSSMBQFSInfo(xid, tcon, buf); in cifs_queryfs()
938 rc = SMBOldQFSInfo(xid, tcon, buf); in cifs_queryfs()
952 cifs_unix_dfs_readlink(const unsigned int xid, struct cifs_tcon *tcon, in cifs_unix_dfs_readlink() argument
960 rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, &referral, in cifs_unix_dfs_readlink()
976 struct cifs_tcon *tcon, in cifs_query_symlink() argument
985 if (!cap_unix(tcon->ses)) in cifs_query_symlink()
988 rc = CIFSSMBUnixQuerySymLink(xid, tcon, full_path, target_path, in cifs_query_symlink()
991 rc = cifs_unix_dfs_readlink(xid, tcon, full_path, in cifs_query_symlink()
1039 struct dentry *dentry, struct cifs_tcon *tcon, in cifs_make_node() argument
1046 if (tcon->unix_ext) { in cifs_make_node()
1065 rc = CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args, in cifs_make_node()
1086 return cifs_sfu_make_node(xid, inode, dentry, tcon, in cifs_make_node()