• Home
  • Raw
  • Download

Lines Matching refs:tcon

431 cifs_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)  in cifs_negotiate_wsize()  argument
433 __u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_negotiate_wsize()
434 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize()
440 else if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_WRITE_CAP)) in cifs_negotiate_wsize()
446 if (!tcon->unix_ext || !(unix_cap & CIFS_UNIX_LARGE_WRITE_CAP)) in cifs_negotiate_wsize()
466 cifs_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in cifs_negotiate_rsize() argument
468 __u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_negotiate_rsize()
469 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize()
484 if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_READ_CAP)) in cifs_negotiate_rsize()
507 cifs_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in cifs_qfs_tcon() argument
510 CIFSSMBQFSDeviceInfo(xid, tcon); in cifs_qfs_tcon()
511 CIFSSMBQFSAttributeInfo(xid, tcon); in cifs_qfs_tcon()
515 cifs_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in cifs_is_path_accessible() argument
525 rc = CIFSSMBQPathInfo(xid, tcon, full_path, file_info, in cifs_is_path_accessible()
530 rc = SMBQueryInformation(xid, tcon, full_path, file_info, in cifs_is_path_accessible()
537 cifs_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, in cifs_query_path_info() argument
546 rc = CIFSSMBQPathInfo(xid, tcon, full_path, data, 0 /* not legacy */, in cifs_query_path_info()
554 rc = SMBQueryInformation(xid, tcon, full_path, data, in cifs_query_path_info()
566 oparms.tcon = tcon; in cifs_query_path_info()
580 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_path_info()
587 cifs_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in cifs_get_srv_inum() argument
602 return CIFSGetSrvInodeNumber(xid, tcon, full_path, uniqueid, in cifs_get_srv_inum()
608 cifs_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in cifs_query_file_info() argument
611 return CIFSSMBQFileInfo(xid, tcon, fid->netfid, data); in cifs_query_file_info()
615 cifs_clear_stats(struct cifs_tcon *tcon) in cifs_clear_stats() argument
617 atomic_set(&tcon->stats.cifs_stats.num_writes, 0); in cifs_clear_stats()
618 atomic_set(&tcon->stats.cifs_stats.num_reads, 0); in cifs_clear_stats()
619 atomic_set(&tcon->stats.cifs_stats.num_flushes, 0); in cifs_clear_stats()
620 atomic_set(&tcon->stats.cifs_stats.num_oplock_brks, 0); in cifs_clear_stats()
621 atomic_set(&tcon->stats.cifs_stats.num_opens, 0); in cifs_clear_stats()
622 atomic_set(&tcon->stats.cifs_stats.num_posixopens, 0); in cifs_clear_stats()
623 atomic_set(&tcon->stats.cifs_stats.num_posixmkdirs, 0); in cifs_clear_stats()
624 atomic_set(&tcon->stats.cifs_stats.num_closes, 0); in cifs_clear_stats()
625 atomic_set(&tcon->stats.cifs_stats.num_deletes, 0); in cifs_clear_stats()
626 atomic_set(&tcon->stats.cifs_stats.num_mkdirs, 0); in cifs_clear_stats()
627 atomic_set(&tcon->stats.cifs_stats.num_rmdirs, 0); in cifs_clear_stats()
628 atomic_set(&tcon->stats.cifs_stats.num_renames, 0); in cifs_clear_stats()
629 atomic_set(&tcon->stats.cifs_stats.num_t2renames, 0); in cifs_clear_stats()
630 atomic_set(&tcon->stats.cifs_stats.num_ffirst, 0); in cifs_clear_stats()
631 atomic_set(&tcon->stats.cifs_stats.num_fnext, 0); in cifs_clear_stats()
632 atomic_set(&tcon->stats.cifs_stats.num_fclose, 0); in cifs_clear_stats()
633 atomic_set(&tcon->stats.cifs_stats.num_hardlinks, 0); in cifs_clear_stats()
634 atomic_set(&tcon->stats.cifs_stats.num_symlinks, 0); in cifs_clear_stats()
635 atomic_set(&tcon->stats.cifs_stats.num_locks, 0); in cifs_clear_stats()
636 atomic_set(&tcon->stats.cifs_stats.num_acl_get, 0); in cifs_clear_stats()
637 atomic_set(&tcon->stats.cifs_stats.num_acl_set, 0); in cifs_clear_stats()
641 cifs_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in cifs_print_stats() argument
644 atomic_read(&tcon->stats.cifs_stats.num_oplock_brks)); in cifs_print_stats()
646 atomic_read(&tcon->stats.cifs_stats.num_reads), in cifs_print_stats()
647 (long long)(tcon->bytes_read)); in cifs_print_stats()
649 atomic_read(&tcon->stats.cifs_stats.num_writes), in cifs_print_stats()
650 (long long)(tcon->bytes_written)); in cifs_print_stats()
652 atomic_read(&tcon->stats.cifs_stats.num_flushes)); in cifs_print_stats()
654 atomic_read(&tcon->stats.cifs_stats.num_locks), in cifs_print_stats()
655 atomic_read(&tcon->stats.cifs_stats.num_hardlinks), in cifs_print_stats()
656 atomic_read(&tcon->stats.cifs_stats.num_symlinks)); in cifs_print_stats()
658 atomic_read(&tcon->stats.cifs_stats.num_opens), in cifs_print_stats()
659 atomic_read(&tcon->stats.cifs_stats.num_closes), in cifs_print_stats()
660 atomic_read(&tcon->stats.cifs_stats.num_deletes)); in cifs_print_stats()
662 atomic_read(&tcon->stats.cifs_stats.num_posixopens), in cifs_print_stats()
663 atomic_read(&tcon->stats.cifs_stats.num_posixmkdirs)); in cifs_print_stats()
665 atomic_read(&tcon->stats.cifs_stats.num_mkdirs), in cifs_print_stats()
666 atomic_read(&tcon->stats.cifs_stats.num_rmdirs)); in cifs_print_stats()
668 atomic_read(&tcon->stats.cifs_stats.num_renames), in cifs_print_stats()
669 atomic_read(&tcon->stats.cifs_stats.num_t2renames)); in cifs_print_stats()
671 atomic_read(&tcon->stats.cifs_stats.num_ffirst), in cifs_print_stats()
672 atomic_read(&tcon->stats.cifs_stats.num_fnext), in cifs_print_stats()
673 atomic_read(&tcon->stats.cifs_stats.num_fclose)); in cifs_print_stats()
678 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in cifs_mkdir_setinfo() argument
690 rc = CIFSSMBSetPathInfo(xid, tcon, full_path, &info, cifs_sb->local_nls, in cifs_mkdir_setinfo()
700 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file()
701 return SMBLegacyOpen(xid, oparms->tcon, oparms->path, in cifs_open_file()
721 cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon, in cifs_close_file() argument
724 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_close_file()
728 cifs_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in cifs_flush_file() argument
731 return CIFSSMBFlush(xid, tcon, fid->netfid); in cifs_flush_file()
766 struct cifs_tcon *tcon; in smb_set_file_info() local
773 tcon = tlink_tcon(open_file->tlink); in smb_set_file_info()
783 tcon = tlink_tcon(tlink); in smb_set_file_info()
785 rc = CIFSSMBSetPathInfo(xid, tcon, full_path, buf, cifs_sb->local_nls, in smb_set_file_info()
794 oparms.tcon = tcon; in smb_set_file_info()
814 rc = CIFSSMBSetFileInfo(xid, tcon, buf, fid.netfid, netpid); in smb_set_file_info()
819 CIFSSMBClose(xid, tcon, fid.netfid); in smb_set_file_info()
829 cifs_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in cifs_set_compression() argument
832 return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid); in cifs_set_compression()
836 cifs_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in cifs_query_dir_first() argument
843 rc = CIFSFindFirst(xid, tcon, path, cifs_sb, in cifs_query_dir_first()
851 cifs_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in cifs_query_dir_next() argument
855 return CIFSFindNext(xid, tcon, fid->netfid, search_flags, srch_inf); in cifs_query_dir_next()
859 cifs_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in cifs_close_dir() argument
862 return CIFSFindClose(xid, tcon, fid->netfid); in cifs_close_dir()
866 cifs_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid, in cifs_oplock_response() argument
869 return CIFSSMBLock(0, tcon, fid->netfid, current->tgid, 0, 0, 0, 0, in cifs_oplock_response()
875 cifs_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in cifs_queryfs() argument
885 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_queryfs()
886 (CIFS_POSIX_EXTENSIONS & le64_to_cpu(tcon->fsUnixInfo.Capability))) in cifs_queryfs()
887 rc = CIFSSMBQFSPosixInfo(xid, tcon, buf); in cifs_queryfs()
893 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_queryfs()
894 rc = CIFSSMBQFSInfo(xid, tcon, buf); in cifs_queryfs()
902 rc = SMBOldQFSInfo(xid, tcon, buf); in cifs_queryfs()
916 cifs_unix_dfs_readlink(const unsigned int xid, struct cifs_tcon *tcon, in cifs_unix_dfs_readlink() argument
924 rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, &referral, in cifs_unix_dfs_readlink()
942 cifs_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in cifs_query_symlink() argument
959 if (cap_unix(tcon->ses)) { in cifs_query_symlink()
960 rc = CIFSSMBUnixQuerySymLink(xid, tcon, full_path, target_path, in cifs_query_symlink()
964 rc = cifs_unix_dfs_readlink(xid, tcon, full_path, in cifs_query_symlink()
971 oparms.tcon = tcon; in cifs_query_symlink()
985 rc = CIFSSMBQuerySymLink(xid, tcon, fid.netfid, target_path, in cifs_query_symlink()
992 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_symlink()
1028 struct dentry *dentry, struct cifs_tcon *tcon, in cifs_make_node() argument
1043 if (tcon->unix_ext) { in cifs_make_node()
1062 rc = CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args, in cifs_make_node()
1094 oparms.tcon = tcon; in cifs_make_node()
1104 if (tcon->ses->server->oplocks) in cifs_make_node()
1108 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in cifs_make_node()
1119 io_parms.tcon = tcon; in cifs_make_node()
1128 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_make_node()
1134 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_make_node()
1137 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_make_node()