Lines Matching refs:ses
108 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon()
115 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
116 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
170 struct cifs_ses *ses; in cifs_debug_files_proc_show() local
185 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in cifs_debug_files_proc_show()
186 list_for_each(tmp1, &ses->tcon_list) { in cifs_debug_files_proc_show()
221 struct cifs_ses *ses; in cifs_debug_data_proc_show() local
381 ses = list_entry(tmp2, struct cifs_ses, in cifs_debug_data_proc_show()
384 if ((ses->serverDomain == NULL) || in cifs_debug_data_proc_show()
385 (ses->serverOS == NULL) || in cifs_debug_data_proc_show()
386 (ses->serverNOS == NULL)) { in cifs_debug_data_proc_show()
388 i, ses->ip_addr, ses->ses_count, in cifs_debug_data_proc_show()
389 ses->capabilities, ses->status); in cifs_debug_data_proc_show()
390 if (ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST) in cifs_debug_data_proc_show()
392 else if (ses->session_flags & SMB2_SESSION_FLAG_IS_NULL) in cifs_debug_data_proc_show()
399 i, ses->ip_addr, ses->serverDomain, in cifs_debug_data_proc_show()
400 ses->ses_count, ses->serverOS, ses->serverNOS, in cifs_debug_data_proc_show()
401 ses->capabilities, ses->status); in cifs_debug_data_proc_show()
405 get_security_type_str(server->ops->select_sectype(server, ses->sectype))); in cifs_debug_data_proc_show()
408 seq_printf(m, " SessionId: 0x%llx", ses->Suid); in cifs_debug_data_proc_show()
409 if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) in cifs_debug_data_proc_show()
411 if (ses->sign) in cifs_debug_data_proc_show()
415 from_kuid(&init_user_ns, ses->linux_uid), in cifs_debug_data_proc_show()
416 from_kuid(&init_user_ns, ses->cred_uid)); in cifs_debug_data_proc_show()
418 spin_lock(&ses->chan_lock); in cifs_debug_data_proc_show()
419 if (ses->chan_count > 1) { in cifs_debug_data_proc_show()
421 ses->chan_count-1); in cifs_debug_data_proc_show()
422 for (j = 1; j < ses->chan_count; j++) in cifs_debug_data_proc_show()
423 cifs_dump_channel(m, j, &ses->chans[j]); in cifs_debug_data_proc_show()
425 spin_unlock(&ses->chan_lock); in cifs_debug_data_proc_show()
431 if (ses->tcon_ipc) in cifs_debug_data_proc_show()
432 cifs_debug_tcon(m, ses->tcon_ipc); in cifs_debug_data_proc_show()
436 list_for_each(tmp3, &ses->tcon_list) { in cifs_debug_data_proc_show()
444 spin_lock(&ses->iface_lock); in cifs_debug_data_proc_show()
445 if (ses->iface_count) in cifs_debug_data_proc_show()
447 ses->iface_count); in cifs_debug_data_proc_show()
448 for (j = 0; j < ses->iface_count; j++) { in cifs_debug_data_proc_show()
451 iface = &ses->iface_list[j]; in cifs_debug_data_proc_show()
454 if (is_ses_using_iface(ses, iface)) in cifs_debug_data_proc_show()
457 spin_unlock(&ses->iface_lock); in cifs_debug_data_proc_show()
496 struct cifs_ses *ses; in cifs_stats_proc_write() local
529 ses = list_entry(tmp2, struct cifs_ses, in cifs_stats_proc_write()
531 list_for_each(tmp3, &ses->tcon_list) { in cifs_stats_proc_write()
561 struct cifs_ses *ses; in cifs_stats_proc_show() local
610 ses = list_entry(tmp2, struct cifs_ses, in cifs_stats_proc_show()
612 list_for_each(tmp3, &ses->tcon_list) { in cifs_stats_proc_show()