Lines Matching full:tcon
92 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon) in cifs_debug_tcon() argument
94 __u32 dev_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in cifs_debug_tcon()
96 seq_printf(m, "%s Mounts: %d ", tcon->tree_name, tcon->tc_count); in cifs_debug_tcon()
97 if (tcon->nativeFileSystem) in cifs_debug_tcon()
98 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon()
100 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics), in cifs_debug_tcon()
101 le32_to_cpu(tcon->fsAttrInfo.Attributes), in cifs_debug_tcon()
102 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength), in cifs_debug_tcon()
103 tcon->status); in cifs_debug_tcon()
111 seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number); in cifs_debug_tcon()
113 if ((tcon->seal) || in cifs_debug_tcon()
114 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon()
115 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in cifs_debug_tcon()
117 if (tcon->nocase) in cifs_debug_tcon()
119 if (tcon->unix_ext) in cifs_debug_tcon()
121 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
122 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
123 if (tcon->use_witness) in cifs_debug_tcon()
125 if (tcon->broken_sparse_sup) in cifs_debug_tcon()
127 if (tcon->need_reconnect) in cifs_debug_tcon()
129 spin_lock(&tcon->tc_lock); in cifs_debug_tcon()
130 if (tcon->origin_fullpath) { in cifs_debug_tcon()
132 tcon->origin_fullpath); in cifs_debug_tcon()
134 spin_unlock(&tcon->tc_lock); in cifs_debug_tcon()
241 struct cifs_tcon *tcon; in cifs_debug_files_proc_show() local
261 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_files_proc_show()
262 spin_lock(&tcon->open_file_lock); in cifs_debug_files_proc_show()
263 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_debug_files_proc_show()
266 tcon->tid, in cifs_debug_files_proc_show()
299 spin_unlock(&tcon->open_file_lock); in cifs_debug_files_proc_show()
313 struct cifs_tcon *tcon; in cifs_debug_dirs_proc_show() local
329 tcon = list_entry(tmp1, struct cifs_tcon, tcon_list); in cifs_debug_dirs_proc_show()
330 cfids = tcon->cfids; in cifs_debug_dirs_proc_show()
340 tcon->tid, in cifs_debug_dirs_proc_show()
402 struct cifs_tcon *tcon; in cifs_debug_data_proc_show() local
670 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_data_proc_show()
673 cifs_debug_tcon(m, tcon); in cifs_debug_data_proc_show()
753 struct cifs_tcon *tcon; in cifs_stats_proc_write() local
785 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_stats_proc_write()
786 atomic_set(&tcon->num_smbs_sent, 0); in cifs_stats_proc_write()
787 spin_lock(&tcon->stat_lock); in cifs_stats_proc_write()
788 tcon->bytes_read = 0; in cifs_stats_proc_write()
789 tcon->bytes_written = 0; in cifs_stats_proc_write()
790 tcon->stats_from_time = ktime_get_real_seconds(); in cifs_stats_proc_write()
791 spin_unlock(&tcon->stat_lock); in cifs_stats_proc_write()
793 server->ops->clear_stats(tcon); in cifs_stats_proc_write()
813 struct cifs_tcon *tcon; in cifs_stats_proc_show() local
866 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_stats_proc_show()
868 seq_printf(m, "\n%d) %s", i, tcon->tree_name); in cifs_stats_proc_show()
869 if (tcon->need_reconnect) in cifs_stats_proc_show()
872 atomic_read(&tcon->num_smbs_sent), in cifs_stats_proc_show()
873 &tcon->stats_from_time); in cifs_stats_proc_show()
875 server->ops->print_stats(m, tcon); in cifs_stats_proc_show()