Lines Matching refs:tcon
90 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon) in cifs_debug_tcon() argument
92 __u32 dev_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in cifs_debug_tcon()
94 seq_printf(m, "%s Mounts: %d ", tcon->tree_name, tcon->tc_count); in cifs_debug_tcon()
95 if (tcon->nativeFileSystem) in cifs_debug_tcon()
96 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon()
98 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics), in cifs_debug_tcon()
99 le32_to_cpu(tcon->fsAttrInfo.Attributes), in cifs_debug_tcon()
100 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength), in cifs_debug_tcon()
101 tcon->status); in cifs_debug_tcon()
109 seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number); in cifs_debug_tcon()
111 if ((tcon->seal) || in cifs_debug_tcon()
112 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon()
113 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in cifs_debug_tcon()
115 if (tcon->nocase) in cifs_debug_tcon()
117 if (tcon->unix_ext) in cifs_debug_tcon()
119 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
120 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
121 if (tcon->use_witness) in cifs_debug_tcon()
123 if (tcon->broken_sparse_sup) in cifs_debug_tcon()
125 if (tcon->need_reconnect) in cifs_debug_tcon()
127 spin_lock(&tcon->tc_lock); in cifs_debug_tcon()
128 if (tcon->origin_fullpath) { in cifs_debug_tcon()
130 tcon->origin_fullpath); in cifs_debug_tcon()
132 spin_unlock(&tcon->tc_lock); in cifs_debug_tcon()
239 struct cifs_tcon *tcon; in cifs_debug_files_proc_show() local
255 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_files_proc_show()
256 spin_lock(&tcon->open_file_lock); in cifs_debug_files_proc_show()
257 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_debug_files_proc_show()
260 tcon->tid, in cifs_debug_files_proc_show()
274 spin_unlock(&tcon->open_file_lock); in cifs_debug_files_proc_show()
307 struct cifs_tcon *tcon; in cifs_debug_data_proc_show() local
573 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_data_proc_show()
576 cifs_debug_tcon(m, tcon); in cifs_debug_data_proc_show()
656 struct cifs_tcon *tcon; in cifs_stats_proc_write() local
688 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_stats_proc_write()
689 atomic_set(&tcon->num_smbs_sent, 0); in cifs_stats_proc_write()
690 spin_lock(&tcon->stat_lock); in cifs_stats_proc_write()
691 tcon->bytes_read = 0; in cifs_stats_proc_write()
692 tcon->bytes_written = 0; in cifs_stats_proc_write()
693 tcon->stats_from_time = ktime_get_real_seconds(); in cifs_stats_proc_write()
694 spin_unlock(&tcon->stat_lock); in cifs_stats_proc_write()
696 server->ops->clear_stats(tcon); in cifs_stats_proc_write()
716 struct cifs_tcon *tcon; in cifs_stats_proc_show() local
769 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_stats_proc_show()
771 seq_printf(m, "\n%d) %s", i, tcon->tree_name); in cifs_stats_proc_show()
772 if (tcon->need_reconnect) in cifs_stats_proc_show()
775 atomic_read(&tcon->num_smbs_sent), in cifs_stats_proc_show()
776 &tcon->stats_from_time); in cifs_stats_proc_show()
778 server->ops->print_stats(m, tcon); in cifs_stats_proc_show()