Lines Matching refs:ses
112 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
119 if (tcon->ses->server->ops->dump_share_caps)
120 tcon->ses->server->ops->dump_share_caps(m, tcon);
238 struct cifs_ses *ses;
244 seq_puts(m, "# <tree id> <ses id> <persistent fid> <flags> <count> <pid> <uid>");
252 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
253 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
259 ses->Suid,
286 struct cifs_ses *ses;
463 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
464 spin_lock(&ses->ses_lock);
465 if (ses->ses_status == SES_EXITING) {
466 spin_unlock(&ses->ses_lock);
470 if ((ses->serverDomain == NULL) ||
471 (ses->serverOS == NULL) ||
472 (ses->serverNOS == NULL)) {
474 i, ses->ip_addr, ses->ses_count,
475 ses->capabilities, ses->ses_status);
476 if (ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST)
478 else if (ses->session_flags & SMB2_SESSION_FLAG_IS_NULL)
485 i, ses->ip_addr, ses->serverDomain,
486 ses->ses_count, ses->serverOS, ses->serverNOS,
487 ses->capabilities, ses->ses_status);
489 if (ses->expired_pwd)
491 spin_unlock(&ses->ses_lock);
494 get_security_type_str(server->ops->select_sectype(server, ses->sectype)));
497 seq_printf(m, " SessionId: 0x%llx", ses->Suid);
498 if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) {
504 if (ses->sign)
508 from_kuid(&init_user_ns, ses->linux_uid),
509 from_kuid(&init_user_ns, ses->cred_uid));
511 if (ses->dfs_root_ses) {
513 ses->dfs_root_ses->Suid);
516 spin_lock(&ses->chan_lock);
517 if (CIFS_CHAN_NEEDS_RECONNECT(ses, 0))
519 if (CIFS_CHAN_IN_RECONNECT(ses, 0))
522 if (ses->chan_count > 1) {
524 ses->chan_count-1);
525 for (j = 1; j < ses->chan_count; j++) {
526 cifs_dump_channel(m, j, &ses->chans[j]);
527 if (CIFS_CHAN_NEEDS_RECONNECT(ses, j))
529 if (CIFS_CHAN_IN_RECONNECT(ses, j))
533 spin_unlock(&ses->chan_lock);
539 if (ses->tcon_ipc)
540 cifs_debug_tcon(m, ses->tcon_ipc);
544 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
550 spin_lock(&ses->iface_lock);
551 if (ses->iface_count)
554 ses->iface_count,
555 (jiffies - ses->iface_last_update) / HZ);
557 last_iface = list_last_entry(&ses->iface_list,
563 list_for_each_entry(iface, &ses->iface_list,
575 if (is_ses_using_iface(ses, iface))
578 spin_unlock(&ses->iface_lock);
581 spin_lock(&ses->chan_lock);
582 for (j = 0; j < ses->chan_count; j++) {
583 chan_server = ses->chans[j].server;
603 spin_unlock(&ses->chan_lock);
626 struct cifs_ses *ses;
656 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
657 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
683 struct cifs_ses *ses;
734 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
735 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {