Home
last modified time | relevance | path

Searched refs:ses (Results 1 – 25 of 53) sorted by relevance

123

/Linux-v6.1/fs/cifs/
Dsess.c27 cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses,
55 bool is_ses_using_iface(struct cifs_ses *ses, struct cifs_server_iface *iface) in is_ses_using_iface() argument
59 spin_lock(&ses->chan_lock); in is_ses_using_iface()
60 for (i = 0; i < ses->chan_count; i++) { in is_ses_using_iface()
61 if (ses->chans[i].iface == iface) { in is_ses_using_iface()
62 spin_unlock(&ses->chan_lock); in is_ses_using_iface()
66 spin_unlock(&ses->chan_lock); in is_ses_using_iface()
73 cifs_ses_get_chan_index(struct cifs_ses *ses, in cifs_ses_get_chan_index() argument
78 for (i = 0; i < ses->chan_count; i++) { in cifs_ses_get_chan_index()
79 if (ses->chans[i].server == server) in cifs_ses_get_chan_index()
[all …]
Dcifsencrypt.c259 build_avpair_blob(struct cifs_ses *ses, const struct nls_table *nls_cp) in build_avpair_blob() argument
267 if (!ses->domainName) { in build_avpair_blob()
268 ses->domainName = kstrdup(defdmname, GFP_KERNEL); in build_avpair_blob()
269 if (!ses->domainName) in build_avpair_blob()
273 dlen = strlen(ses->domainName); in build_avpair_blob()
281 ses->auth_key.len = size + 2 * dlen; in build_avpair_blob()
282 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob()
283 if (!ses->auth_key.response) { in build_avpair_blob()
284 ses->auth_key.len = 0; in build_avpair_blob()
288 blobptr = ses->auth_key.response; in build_avpair_blob()
[all …]
Dsmb2transport.c81 struct cifs_ses *ses = NULL; in smb2_get_sign_key() local
90 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_get_sign_key()
91 if (ses->Suid == ses_id) in smb2_get_sign_key()
100 spin_lock(&ses->chan_lock); in smb2_get_sign_key()
101 if (cifs_chan_needs_reconnect(ses, server) && in smb2_get_sign_key()
102 !CIFS_ALL_CHANS_NEED_RECONNECT(ses)) { in smb2_get_sign_key()
108 memcpy(key, ses->smb3signingkey, SMB3_SIGN_KEY_SIZE); in smb2_get_sign_key()
109 spin_unlock(&ses->chan_lock); in smb2_get_sign_key()
117 for (i = 0; i < ses->chan_count; i++) { in smb2_get_sign_key()
118 chan = ses->chans + i; in smb2_get_sign_key()
[all …]
Dconnect.c69 struct cifs_ses *ses; member
202 struct cifs_ses *ses; in cifs_signal_cifsd_for_reconnect() local
217 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in cifs_signal_cifsd_for_reconnect()
218 spin_lock(&ses->chan_lock); in cifs_signal_cifsd_for_reconnect()
219 for (i = 0; i < ses->chan_count; i++) { in cifs_signal_cifsd_for_reconnect()
220 spin_lock(&ses->chans[i].server->srv_lock); in cifs_signal_cifsd_for_reconnect()
221 ses->chans[i].server->tcpStatus = CifsNeedReconnect; in cifs_signal_cifsd_for_reconnect()
222 spin_unlock(&ses->chans[i].server->srv_lock); in cifs_signal_cifsd_for_reconnect()
224 spin_unlock(&ses->chan_lock); in cifs_signal_cifsd_for_reconnect()
244 struct cifs_ses *ses, *nses; in cifs_mark_tcp_ses_conns_for_reconnect() local
[all …]
Dsmb2pdu.c75 if (!tcon || !tcon->ses) in smb3_encryption_required()
77 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required()
81 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
120 if (tcon->ses) in smb2_hdr_assemble()
121 shdr->SessionId = cpu_to_le64(tcon->ses->Suid); in smb2_hdr_assemble()
148 struct cifs_ses *ses; in smb2_reconnect() local
183 if ((!tcon->ses) || (tcon->ses->ses_status == SES_EXITING) || in smb2_reconnect()
184 (!tcon->ses->server) || !server) in smb2_reconnect()
187 ses = tcon->ses; in smb2_reconnect()
243 spin_lock(&ses->chan_lock); in smb2_reconnect()
[all …]
Dioctl.c57 if (tcon->ses->server->ops->ioctl_query_info) in cifs_ioctl_query_info()
58 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info()
131 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
208 struct cifs_ses *ses; in cifs_dump_full_key() local
226 ses = tcon->ses; in cifs_dump_full_key()
236 ses = ses_it; in cifs_dump_full_key()
242 ses->ses_count++; in cifs_dump_full_key()
256 switch (ses->server->cipher_type) { in cifs_dump_full_key()
279 out.session_id = ses->Suid; in cifs_dump_full_key()
280 out.cipher_type = le16_to_cpu(ses->server->cipher_type); in cifs_dump_full_key()
[all …]
Dcifs_debug.c108 (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()
172 struct cifs_ses *ses; in cifs_debug_files_proc_show() local
186 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_files_proc_show()
187 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_files_proc_show()
218 struct cifs_ses *ses; in cifs_debug_data_proc_show() local
378 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_data_proc_show()
380 if ((ses->serverDomain == NULL) || in cifs_debug_data_proc_show()
381 (ses->serverOS == NULL) || in cifs_debug_data_proc_show()
[all …]
Dtransport.c719 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument
722 spin_lock(&ses->ses_lock); in allocate_mid()
723 if (ses->ses_status == SES_NEW) { in allocate_mid()
726 spin_unlock(&ses->ses_lock); in allocate_mid()
732 if (ses->ses_status == SES_EXITING) { in allocate_mid()
735 spin_unlock(&ses->ses_lock); in allocate_mid()
740 spin_unlock(&ses->ses_lock); in allocate_mid()
742 *ppmidQ = alloc_mid(in_buf, ses->server); in allocate_mid()
745 spin_lock(&ses->server->mid_lock); in allocate_mid()
746 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid()
[all …]
Dcifs_swn.c50 if (tcon->ses->user_name != NULL) { in cifs_swn_auth_info_ntlm()
51 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_USER_NAME, tcon->ses->user_name); in cifs_swn_auth_info_ntlm()
56 if (tcon->ses->password != NULL) { in cifs_swn_auth_info_ntlm()
57 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_PASSWORD, tcon->ses->password); in cifs_swn_auth_info_ntlm()
62 if (tcon->ses->domainName != NULL) { in cifs_swn_auth_info_ntlm()
63 ret = nla_put_string(skb, CIFS_GENL_ATTR_SWN_DOMAIN_NAME, tcon->ses->domainName); in cifs_swn_auth_info_ntlm()
114 if (swnreg->tcon->ses->server->use_swn_dstaddr) in cifs_swn_send_register_message()
115 addr = &swnreg->tcon->ses->server->swn_dstaddr; in cifs_swn_send_register_message()
117 addr = &swnreg->tcon->ses->server->dstaddr; in cifs_swn_send_register_message()
141 authtype = cifs_select_sectype(swnreg->tcon->ses->server, swnreg->tcon->ses->sectype); in cifs_swn_send_register_message()
[all …]
Dsmb2inode.c71 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local
89 server = cifs_pick_channel(ses); in smb2_compound_op()
163 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
198 trace_smb3_posix_query_info_compound_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
201 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
208 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
226 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
244 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
277 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
317 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
[all …]
Dcifsproto.h95 extern struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses);
96 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
100 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
109 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
165 struct cifs_ses *ses,
169 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
299 struct cifs_ses *ses,
301 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
306 struct cifs_ses *ses,
309 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
[all …]
Dcifsfs.c201 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
213 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super()
214 ((tcon->ses->capabilities & in cifs_read_super()
215 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super()
244 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx); in cifs_read_super()
310 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs()
340 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate()
458 cifs_show_security(struct seq_file *s, struct cifs_ses *ses) in cifs_show_security() argument
460 if (ses->sectype == Unspecified) { in cifs_show_security()
461 if (ses->user_name == NULL) in cifs_show_security()
[all …]
Ddfs_cache.c95 static struct cifs_ses *find_ipc_from_server_path(struct cifs_ses **ses, const char *path) in find_ipc_from_server_path() argument
100 for (; *ses; ses++) { in find_ipc_from_server_path()
101 if (!strcasecmp(unc, (*ses)->tcon_ipc->tree_name)) in find_ipc_from_server_path()
102 return *ses; in find_ipc_from_server_path()
757 static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses, const char *path, in get_dfs_referral() argument
768 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in get_dfs_referral()
773 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral()
793 static int cache_refresh_path(const unsigned int xid, struct cifs_ses *ses, const char *path) in cache_refresh_path() argument
820 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in cache_refresh_path()
944 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp, in dfs_cache_find() argument
[all …]
Dcifssmb.c70 struct cifs_ses *ses; in cifs_reconnect_tcon() local
83 ses = tcon->ses; in cifs_reconnect_tcon()
84 server = ses->server; in cifs_reconnect_tcon()
143 spin_lock(&ses->chan_lock); in cifs_reconnect_tcon()
144 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in cifs_reconnect_tcon()
145 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon()
148 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon()
169 spin_lock(&ses->chan_lock); in cifs_reconnect_tcon()
170 if (!cifs_chan_needs_reconnect(ses, server)) { in cifs_reconnect_tcon()
171 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon()
[all …]
Dxattr.c58 if (pTcon->ses->server->ops->set_file_info) in cifs_attrib_set()
59 rc = pTcon->ses->server->ops->set_file_info(inode, full_path, in cifs_attrib_set()
82 if (pTcon->ses->server->ops->set_file_info) in cifs_creation_time_set()
83 rc = pTcon->ses->server->ops->set_file_info(inode, full_path, in cifs_creation_time_set()
153 if (pTcon->ses->server->ops->set_EA) in cifs_xattr_set()
154 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_xattr_set()
171 if (pTcon->ses->server->ops->set_acl) { in cifs_xattr_set()
192 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set()
328 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get()
329 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get()
[all …]
Dcifsglob.h295 struct cifs_ses *ses,
448 int (*generate_signingkey)(struct cifs_ses *ses,
1072 #define CIFS_ALL_CHANNELS_SET(ses) \ argument
1073 ((1UL << (ses)->chan_count) - 1)
1074 #define CIFS_ALL_CHANS_GOOD(ses) \ argument
1075 (!(ses)->chans_need_reconnect)
1076 #define CIFS_ALL_CHANS_NEED_RECONNECT(ses) \ argument
1077 ((ses)->chans_need_reconnect == CIFS_ALL_CHANNELS_SET(ses))
1078 #define CIFS_SET_ALL_CHANS_NEED_RECONNECT(ses) \ argument
1079 ((ses)->chans_need_reconnect = CIFS_ALL_CHANNELS_SET(ses))
[all …]
Dsmb2misc.c157 struct cifs_ses *ses = NULL; in smb2_check_message() local
164 ses = iter; in smb2_check_message()
169 if (!ses) { in smb2_check_message()
619 struct cifs_ses *ses; in smb2_is_valid_lease_break() local
630 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_valid_lease_break()
631 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break()
680 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local
705 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_valid_oplock_break()
706 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_oplock_break()
819 if (tcon->ses) in smb2_handle_cancelled_close()
[all …]
Dntlmssp.h145 int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, struct cifs_ses *ses);
147 struct cifs_ses *ses,
151 struct cifs_ses *ses,
155 struct cifs_ses *ses,
Dsmb2ops.c402 struct cifs_ses *ses, in smb2_negotiate() argument
410 rc = SMB2_negotiate(xid, ses, server); in smb2_negotiate()
420 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
435 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
467 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
483 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
515 size_t buf_len, struct cifs_ses *ses, bool in_mount) in parse_server_interfaces() argument
532 spin_lock(&ses->iface_lock); in parse_server_interfaces()
533 ses->iface_count = 0; in parse_server_interfaces()
539 list_for_each_entry_safe(iface, niface, &ses->iface_list, in parse_server_interfaces()
[all …]
Ddfs_cache.h33 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp,
38 int dfs_cache_update_tgthint(const unsigned int xid, struct cifs_ses *ses,
47 void dfs_cache_add_refsrv_session(const uuid_t *mount_id, struct cifs_ses *ses);
Dsmb1ops.c424 struct cifs_ses *ses, in cifs_negotiate() argument
428 rc = CIFSSMBNegotiate(xid, ses, server); in cifs_negotiate()
432 rc = CIFSSMBNegotiate(xid, ses, server); in cifs_negotiate()
443 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize()
478 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize()
721 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file()
906 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_queryfs()
914 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_queryfs()
945 rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, &referral, in cifs_unix_dfs_readlink()
978 if (cap_unix(tcon->ses)) { in cifs_query_symlink()
[all …]
Dmisc.c266 if (treeCon->ses) { in header_assemble()
267 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble()
269 if (treeCon->ses->capabilities & CAP_STATUS32) in header_assemble()
273 buffer->Uid = treeCon->ses->Suid; in header_assemble()
274 if (treeCon->ses->server) in header_assemble()
275 buffer->Mid = get_next_mid(treeCon->ses->server); in header_assemble()
281 if ((treeCon->ses) && (treeCon->ses->server)) in header_assemble()
282 if (treeCon->ses->server->sign) in header_assemble()
404 struct cifs_ses *ses; in is_valid_oplock_break() local
473 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in is_valid_oplock_break()
[all …]
/Linux-v6.1/drivers/scsi/
Dscsi_error.c1001 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd() argument
1013 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd()
1014 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd()
1015 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd()
1016 ses->result = scmd->result; in scsi_eh_prep_cmnd()
1017 ses->resid_len = scmd->resid_len; in scsi_eh_prep_cmnd()
1018 ses->underflow = scmd->underflow; in scsi_eh_prep_cmnd()
1019 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd()
1020 ses->eh_eflags = scmd->eh_eflags; in scsi_eh_prep_cmnd()
1024 memcpy(ses->cmnd, scmd->cmnd, sizeof(ses->cmnd)); in scsi_eh_prep_cmnd()
[all …]
/Linux-v6.1/fs/nfs/
Dnfs4session.c536 int nfs4_setup_session_slot_tables(struct nfs4_session *ses) in nfs4_setup_session_slot_tables() argument
543 tbl = &ses->fc_slot_table; in nfs4_setup_session_slot_tables()
544 tbl->session = ses; in nfs4_setup_session_slot_tables()
545 status = nfs4_realloc_slot_table(tbl, ses->fc_attrs.max_reqs, 1); in nfs4_setup_session_slot_tables()
546 if (status || !(ses->flags & SESSION4_BACK_CHAN)) /* -ENOMEM */ in nfs4_setup_session_slot_tables()
549 tbl = &ses->bc_slot_table; in nfs4_setup_session_slot_tables()
550 tbl->session = ses; in nfs4_setup_session_slot_tables()
551 status = nfs4_realloc_slot_table(tbl, ses->bc_attrs.max_reqs, 0); in nfs4_setup_session_slot_tables()
555 nfs4_release_session_slot_tables(ses); in nfs4_setup_session_slot_tables()
/Linux-v6.1/include/scsi/
Dscsi_eh.h47 struct scsi_eh_save *ses, unsigned char *cmnd,
51 struct scsi_eh_save *ses);

123