Home
last modified time | relevance | path

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

123

/openbmc/linux/fs/smb/client/
H A Dsess.c27 cifs_ses_add_channel(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
82 for (i = 0; i < ses->chan_count; i++) { in cifs_ses_get_chan_index()
83 if (ses->chans[i].server == server) in cifs_ses_get_chan_index()
[all …]
H A Dcifsencrypt.c387 build_avpair_blob(struct cifs_ses *ses, const struct nls_table *nls_cp) in build_avpair_blob() argument
395 if (!ses->domainName) { in build_avpair_blob()
396 ses->domainName = kstrdup(defdmname, GFP_KERNEL); in build_avpair_blob()
397 if (!ses->domainName) in build_avpair_blob()
401 dlen = strlen(ses->domainName); in build_avpair_blob()
409 kfree_sensitive(ses->auth_key.response); in build_avpair_blob()
410 ses->auth_key.len = size + 2 * dlen; in build_avpair_blob()
411 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob()
412 if (!ses->auth_key.response) { in build_avpair_blob()
413 ses->auth_key.len = 0; in build_avpair_blob()
[all …]
H A Dsmb2transport.c81 struct cifs_ses *ses = NULL; in smb3_get_sign_key() local
91 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb3_get_sign_key()
92 if (ses->Suid == ses_id) in smb3_get_sign_key()
102 spin_lock(&ses->ses_lock); in smb3_get_sign_key()
103 spin_lock(&ses->chan_lock); in smb3_get_sign_key()
105 is_binding = (cifs_chan_needs_reconnect(ses, server) && in smb3_get_sign_key()
106 ses->ses_status == SES_GOOD); in smb3_get_sign_key()
113 memcpy(key, ses->smb3signingkey, SMB3_SIGN_KEY_SIZE); in smb3_get_sign_key()
114 spin_unlock(&ses->chan_lock); in smb3_get_sign_key()
115 spin_unlock(&ses->ses_lock); in smb3_get_sign_key()
[all …]
H A Dconnect.c123 struct TCP_Server_Info *server = tcon->ses->server; in smb2_query_server_interfaces()
161 struct cifs_ses *ses; in cifs_signal_cifsd_for_reconnect() local
177 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in cifs_signal_cifsd_for_reconnect()
178 if (cifs_ses_exiting(ses)) in cifs_signal_cifsd_for_reconnect()
180 spin_lock(&ses->chan_lock); in cifs_signal_cifsd_for_reconnect()
181 for (i = 0; i < ses->chan_count; i++) { in cifs_signal_cifsd_for_reconnect()
182 if (!ses->chans[i].server) in cifs_signal_cifsd_for_reconnect()
185 spin_lock(&ses->chans[i].server->srv_lock); in cifs_signal_cifsd_for_reconnect()
186 if (ses->chans[i].server->tcpStatus != CifsExiting) in cifs_signal_cifsd_for_reconnect()
187 ses->chans[i].server->tcpStatus = CifsNeedReconnect; in cifs_signal_cifsd_for_reconnect()
[all …]
H A Dcifs_debug.c112 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon()
119 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
120 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
238 struct cifs_ses *ses; in cifs_debug_files_proc_show() local
252 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_files_proc_show()
253 if (cifs_ses_exiting(ses)) in cifs_debug_files_proc_show()
255 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_files_proc_show()
261 ses->Suid, in cifs_debug_files_proc_show()
306 struct cifs_ses *ses; in cifs_debug_data_proc_show() local
487 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_data_proc_show()
[all …]
H A 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()
84 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
140 if (tcon->ses) in smb2_hdr_assemble()
141 shdr->SessionId = cpu_to_le64(tcon->ses->Suid); in smb2_hdr_assemble()
164 cifs_chan_skip_or_disable(struct cifs_ses *ses, in cifs_chan_skip_or_disable() argument
174 ses->server->hostname); in cifs_chan_skip_or_disable()
176 spin_lock(&ses->chan_lock); in cifs_chan_skip_or_disable()
177 chan_index = cifs_ses_get_chan_index(ses, server); in cifs_chan_skip_or_disable()
[all …]
H A 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()
126 tcon_inf.session_id = tcon->ses->Suid; in smb_mnt_get_tcon_info()
145 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
223 struct cifs_ses *ses; in cifs_dump_full_key() local
241 ses = tcon->ses; in cifs_dump_full_key()
253 ses = ses_it; in cifs_dump_full_key()
259 cifs_smb_ses_inc_refcount(ses); in cifs_dump_full_key()
275 switch (ses->server->cipher_type) { in cifs_dump_full_key()
298 out.session_id = ses->Suid; in cifs_dump_full_key()
[all …]
H A Dcifsproto.h100 extern struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses);
101 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
105 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
114 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
172 struct cifs_ses *ses,
176 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
323 struct cifs_ses *ses,
325 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
330 struct cifs_ses *ses,
333 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
[all …]
H A Dtransport.c703 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument
706 spin_lock(&ses->ses_lock); in allocate_mid()
707 if (ses->ses_status == SES_NEW) { in allocate_mid()
710 spin_unlock(&ses->ses_lock); in allocate_mid()
716 if (ses->ses_status == SES_EXITING) { in allocate_mid()
719 spin_unlock(&ses->ses_lock); in allocate_mid()
724 spin_unlock(&ses->ses_lock); in allocate_mid()
726 *ppmidQ = alloc_mid(in_buf, ses->server); in allocate_mid()
729 spin_lock(&ses->server->mid_lock); in allocate_mid()
730 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid()
[all …]
H A 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 …]
H A Ddfs_cache.c646 static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses, const char *path, in get_dfs_referral() argument
655 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in get_dfs_referral()
660 cifs_dbg(FYI, "%s: ipc=%s referral=%s\n", __func__, ses->tcon_ipc->tree_name, path); in get_dfs_referral()
661 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral()
684 struct cifs_ses *ses, in cache_refresh_path() argument
719 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in cache_refresh_path()
856 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp, in dfs_cache_find() argument
868 ce = cache_refresh_path(xid, ses, npath, false); in dfs_cache_find()
1159 static bool is_ses_good(struct cifs_ses *ses) in is_ses_good() argument
1161 struct TCP_Server_Info *server = ses->server; in is_ses_good()
[all …]
H A Dcifsfs.c204 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
216 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super()
217 ((tcon->ses->capabilities & in cifs_read_super()
218 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super()
247 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx); in cifs_read_super()
313 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs()
354 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate()
473 cifs_show_security(struct seq_file *s, struct cifs_ses *ses) in cifs_show_security() argument
475 if (ses->sectype == Unspecified) { in cifs_show_security()
476 if (ses->user_name == NULL) in cifs_show_security()
[all …]
H A Dcifssmb.c72 struct cifs_ses *ses; in cifs_reconnect_tcon() local
84 ses = tcon->ses; in cifs_reconnect_tcon()
85 server = ses->server; in cifs_reconnect_tcon()
107 spin_lock(&ses->chan_lock); in cifs_reconnect_tcon()
108 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in cifs_reconnect_tcon()
109 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon()
112 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon()
114 mutex_lock(&ses->session_mutex); in cifs_reconnect_tcon()
123 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon()
132 nls_codepage = ses->local_nls; in cifs_reconnect_tcon()
[all …]
H A Dsmb2inode.c183 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local
206 server = cifs_pick_channel(ses); in smb2_compound_op()
302 ses->Suid, full_path); in smb2_compound_op()
338 ses->Suid, full_path); in smb2_compound_op()
341 trace_smb3_delete_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
348 trace_smb3_mkdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
366 trace_smb3_rmdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
401 trace_smb3_set_eof_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
433 ses->Suid, full_path); in smb2_compound_op()
472 trace_smb3_rename_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
[all …]
H A Ddfs.c75 struct cifs_ses *ses = mnt_ctx->ses; in add_root_smb_session() local
77 if (ses) { in add_root_smb_session()
79 cifs_smb_ses_inc_refcount(ses); in add_root_smb_session()
82 ctx->dfs_root_ses = ses; in add_root_smb_session()
234 else if (WARN_ON(!mnt_ctx->ses)) in __dfs_mount_share()
357 const struct smb_version_operations *ops = tcon->ses->server->ops; in tree_connect_dfs_target()
358 struct TCP_Server_Info *server = tcon->ses->server; in tree_connect_dfs_target()
388 rc = ops->tree_connect(xid, tcon->ses, tree, in tree_connect_dfs_target()
389 tcon, tcon->ses->local_nls); in tree_connect_dfs_target()
404 struct TCP_Server_Info *server = tcon->ses->server; in cifs_tree_connect()
[all …]
H A 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()
174 if (pTcon->ses->server->ops->set_acl) { in cifs_xattr_set()
195 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set()
305 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get()
306 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get()
[all …]
H A Dcifsglob.h112 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses)) argument
334 struct cifs_ses *ses,
503 int (*generate_signingkey)(struct cifs_ses *ses,
1116 #define CIFS_ALL_CHANNELS_SET(ses) \ argument
1117 ((1UL << (ses)->chan_count) - 1)
1118 #define CIFS_ALL_CHANS_GOOD(ses) \ argument
1119 (!(ses)->chans_need_reconnect)
1120 #define CIFS_ALL_CHANS_NEED_RECONNECT(ses) \ argument
1121 ((ses)->chans_need_reconnect == CIFS_ALL_CHANNELS_SET(ses))
1122 #define CIFS_SET_ALL_CHANS_NEED_RECONNECT(ses) \ argument
[all …]
H A Dmisc.c280 if (treeCon->ses) { in header_assemble()
281 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble()
283 if (treeCon->ses->capabilities & CAP_STATUS32) in header_assemble()
287 buffer->Uid = treeCon->ses->Suid; in header_assemble()
288 if (treeCon->ses->server) in header_assemble()
289 buffer->Mid = get_next_mid(treeCon->ses->server); in header_assemble()
295 if ((treeCon->ses) && (treeCon->ses->server)) in header_assemble()
296 if (treeCon->ses->server->sign) in header_assemble()
422 struct cifs_ses *ses; in is_valid_oplock_break() local
491 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in is_valid_oplock_break()
[all …]
H A 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()
613 struct cifs_ses *ses; in smb2_is_valid_lease_break() local
624 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_valid_lease_break()
625 if (cifs_ses_exiting(ses)) in smb2_is_valid_lease_break()
627 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break()
676 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local
701 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_valid_oplock_break()
702 if (cifs_ses_exiting(ses)) in smb2_is_valid_oplock_break()
[all …]
H A Dsmb2ops.c422 struct cifs_ses *ses, in smb2_negotiate() argument
430 rc = SMB2_negotiate(xid, ses, server); in smb2_negotiate()
440 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
455 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
487 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
503 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
572 size_t buf_len, struct cifs_ses *ses, bool in_mount) in parse_server_interfaces() argument
589 spin_lock(&ses->iface_lock); in parse_server_interfaces()
591 if (ses->iface_last_update && in parse_server_interfaces()
592 time_before(jiffies, ses->iface_last_update + in parse_server_interfaces()
[all …]
H A Ddfs.h133 struct cifs_ses *rses = ctx->dfs_root_ses ?: mnt_ctx->ses; in dfs_get_referral()
148 struct cifs_ses *ses = ctx->dfs_root_ses; in dfs_put_root_smb_sessions() local
151 if (!ses) in dfs_put_root_smb_sessions()
154 for (cur = ses; cur; cur = cur->dfs_root_ses) { in dfs_put_root_smb_sessions()
158 cifs_put_smb_ses(ses); in dfs_put_root_smb_sessions()
H A Dnamespace.c200 struct cifs_ses *ses; in cifs_do_automount() local
206 ses = cifs_sb_master_tcon(mntpt_sb)->ses; in cifs_do_automount()
215 mutex_lock(&ses->session_mutex); in cifs_do_automount()
216 rc = smb3_sync_session_ctx_passwords(mntpt_sb, ses); in cifs_do_automount()
217 mutex_unlock(&ses->session_mutex); in cifs_do_automount()
H A 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,
/openbmc/u-boot/arch/arm/mach-keystone/
H A Dmsmc.c54 struct mpax ses[16][8]; member
65 msmc->ses[priv_id][j].mpaxh &= 0xffffff7ful; in msmc_share_all_segments()
74 msmc->ses[priv_id][ses_pair].mpaxh = src_pfn << 12 | in msmc_map_ses_segment()
76 msmc->ses[priv_id][ses_pair].mpaxl = dst_pfn << 8 | 0x3f; in msmc_map_ses_segment()
83 *mpax++ = msmc->ses[priv_id][ses_pair].mpaxl; in msmc_get_ses_mpax()
84 *mpax = msmc->ses[priv_id][ses_pair].mpaxh; in msmc_get_ses_mpax()
91 msmc->ses[priv_id][ses_pair].mpaxl = *mpax++; in msmc_set_ses_mpax()
92 msmc->ses[priv_id][ses_pair].mpaxh = *mpax; in msmc_set_ses_mpax()
/openbmc/linux/drivers/scsi/
H A Dscsi_error.c1038 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd() argument
1050 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd()
1051 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd()
1052 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd()
1053 ses->result = scmd->result; in scsi_eh_prep_cmnd()
1054 ses->resid_len = scmd->resid_len; in scsi_eh_prep_cmnd()
1055 ses->underflow = scmd->underflow; in scsi_eh_prep_cmnd()
1056 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd()
1057 ses->eh_eflags = scmd->eh_eflags; in scsi_eh_prep_cmnd()
1061 memcpy(ses->cmnd, scmd->cmnd, sizeof(ses->cmnd)); in scsi_eh_prep_cmnd()
[all …]

123