Lines Matching full:tcon

91 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon)  in cifs_debug_tcon()  argument
93 __u32 dev_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in cifs_debug_tcon()
95 seq_printf(m, "%s Mounts: %d ", tcon->tree_name, tcon->tc_count); in cifs_debug_tcon()
96 if (tcon->nativeFileSystem) in cifs_debug_tcon()
97 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon()
99 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics), in cifs_debug_tcon()
100 le32_to_cpu(tcon->fsAttrInfo.Attributes), in cifs_debug_tcon()
101 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength), in cifs_debug_tcon()
102 tcon->status); in cifs_debug_tcon()
110 seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number); in cifs_debug_tcon()
112 if ((tcon->seal) || in cifs_debug_tcon()
113 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon()
114 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in cifs_debug_tcon()
116 if (tcon->nocase) in cifs_debug_tcon()
118 if (tcon->unix_ext) in cifs_debug_tcon()
120 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
121 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
122 if (tcon->use_witness) in cifs_debug_tcon()
124 if (tcon->broken_sparse_sup) in cifs_debug_tcon()
126 if (tcon->need_reconnect) in cifs_debug_tcon()
128 spin_lock(&tcon->tc_lock); in cifs_debug_tcon()
129 if (tcon->origin_fullpath) { in cifs_debug_tcon()
131 tcon->origin_fullpath); in cifs_debug_tcon()
133 spin_unlock(&tcon->tc_lock); in cifs_debug_tcon()
240 struct cifs_tcon *tcon; in cifs_debug_files_proc_show() local
256 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_files_proc_show()
257 spin_lock(&tcon->open_file_lock); in cifs_debug_files_proc_show()
258 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_debug_files_proc_show()
261 tcon->tid, in cifs_debug_files_proc_show()
275 spin_unlock(&tcon->open_file_lock); in cifs_debug_files_proc_show()
289 struct cifs_tcon *tcon; in cifs_debug_dirs_proc_show() local
305 tcon = list_entry(tmp1, struct cifs_tcon, tcon_list); in cifs_debug_dirs_proc_show()
306 cfids = tcon->cfids; in cifs_debug_dirs_proc_show()
311 tcon->tid, in cifs_debug_dirs_proc_show()
356 struct cifs_tcon *tcon; in cifs_debug_data_proc_show() local
625 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_data_proc_show()
628 cifs_debug_tcon(m, tcon); in cifs_debug_data_proc_show()
708 struct cifs_tcon *tcon; in cifs_stats_proc_write() local
740 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_stats_proc_write()
741 atomic_set(&tcon->num_smbs_sent, 0); in cifs_stats_proc_write()
742 spin_lock(&tcon->stat_lock); in cifs_stats_proc_write()
743 tcon->bytes_read = 0; in cifs_stats_proc_write()
744 tcon->bytes_written = 0; in cifs_stats_proc_write()
745 tcon->stats_from_time = ktime_get_real_seconds(); in cifs_stats_proc_write()
746 spin_unlock(&tcon->stat_lock); in cifs_stats_proc_write()
748 server->ops->clear_stats(tcon); in cifs_stats_proc_write()
768 struct cifs_tcon *tcon; in cifs_stats_proc_show() local
821 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_stats_proc_show()
823 seq_printf(m, "\n%d) %s", i, tcon->tree_name); in cifs_stats_proc_show()
824 if (tcon->need_reconnect) in cifs_stats_proc_show()
827 atomic_read(&tcon->num_smbs_sent), in cifs_stats_proc_show()
828 &tcon->stats_from_time); in cifs_stats_proc_show()
830 server->ops->print_stats(m, tcon); in cifs_stats_proc_show()