Lines Matching refs:tcon

76 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon)  in cifs_debug_tcon()  argument
78 __u32 dev_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in cifs_debug_tcon()
80 seq_printf(m, "%s Mounts: %d ", tcon->tree_name, tcon->tc_count); in cifs_debug_tcon()
81 if (tcon->nativeFileSystem) in cifs_debug_tcon()
82 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon()
84 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics), in cifs_debug_tcon()
85 le32_to_cpu(tcon->fsAttrInfo.Attributes), in cifs_debug_tcon()
86 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength), in cifs_debug_tcon()
87 tcon->status); in cifs_debug_tcon()
95 seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number); in cifs_debug_tcon()
97 if ((tcon->seal) || in cifs_debug_tcon()
98 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon()
99 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in cifs_debug_tcon()
101 if (tcon->nocase) in cifs_debug_tcon()
103 if (tcon->unix_ext) in cifs_debug_tcon()
105 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
106 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
107 if (tcon->use_witness) in cifs_debug_tcon()
109 if (tcon->broken_sparse_sup) in cifs_debug_tcon()
111 if (tcon->need_reconnect) in cifs_debug_tcon()
113 spin_lock(&tcon->tc_lock); in cifs_debug_tcon()
114 if (tcon->origin_fullpath) { in cifs_debug_tcon()
116 tcon->origin_fullpath); in cifs_debug_tcon()
118 spin_unlock(&tcon->tc_lock); in cifs_debug_tcon()
225 struct cifs_tcon *tcon; in cifs_debug_files_proc_show() local
245 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_files_proc_show()
246 spin_lock(&tcon->open_file_lock); in cifs_debug_files_proc_show()
247 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_debug_files_proc_show()
250 tcon->tid, in cifs_debug_files_proc_show()
290 spin_unlock(&tcon->open_file_lock); in cifs_debug_files_proc_show()
304 struct cifs_tcon *tcon; in cifs_debug_dirs_proc_show() local
320 tcon = list_entry(tmp1, struct cifs_tcon, tcon_list); in cifs_debug_dirs_proc_show()
321 cfids = tcon->cfids; in cifs_debug_dirs_proc_show()
331 tcon->tid, in cifs_debug_dirs_proc_show()
397 struct cifs_tcon *tcon; in cifs_debug_data_proc_show() local
665 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_data_proc_show()
668 cifs_debug_tcon(m, tcon); in cifs_debug_data_proc_show()
748 struct cifs_tcon *tcon; in cifs_stats_proc_write() local
780 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_stats_proc_write()
781 atomic_set(&tcon->num_smbs_sent, 0); in cifs_stats_proc_write()
782 spin_lock(&tcon->stat_lock); in cifs_stats_proc_write()
783 tcon->bytes_read = 0; in cifs_stats_proc_write()
784 tcon->bytes_written = 0; in cifs_stats_proc_write()
785 tcon->stats_from_time = ktime_get_real_seconds(); in cifs_stats_proc_write()
786 spin_unlock(&tcon->stat_lock); in cifs_stats_proc_write()
788 server->ops->clear_stats(tcon); in cifs_stats_proc_write()
808 struct cifs_tcon *tcon; in cifs_stats_proc_show() local
861 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_stats_proc_show()
863 seq_printf(m, "\n%d) %s", i, tcon->tree_name); in cifs_stats_proc_show()
864 if (tcon->need_reconnect) in cifs_stats_proc_show()
867 atomic_read(&tcon->num_smbs_sent), in cifs_stats_proc_show()
868 &tcon->stats_from_time); in cifs_stats_proc_show()
870 server->ops->print_stats(m, tcon); in cifs_stats_proc_show()