Home
last modified time | relevance | path

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

123

/openbmc/linux/fs/smb/client/
H A Dsess.c198 left = ses->chan_max - ses->chan_count; in cifs_try_adding_channels()
604 chan = &ses->chans[ses->chan_count]; in cifs_ses_add_channel()
1351 struct cifs_ses *ses = sess_data->ses; in sess_alloc_buffer() local
1405 struct cifs_ses *ses = sess_data->ses; in sess_establish_session() local
1459 struct cifs_ses *ses = sess_data->ses; in sess_auth_ntlmv2() local
1569 struct cifs_ses *ses = sess_data->ses; in sess_auth_kerberos() local
1710 struct cifs_ses *ses = sess_data->ses; in _sess_auth_rawntlmssp_assemble_req() local
1750 struct cifs_ses *ses = sess_data->ses; in sess_auth_rawntlmssp_negotiate() local
1856 struct cifs_ses *ses = sess_data->ses; in sess_auth_rawntlmssp_authenticate() local
1962 struct cifs_ses *ses = sess_data->ses; in select_sec() local
[all …]
H A Dcifsencrypt.c395 if (!ses->domainName) { in build_avpair_blob()
397 if (!ses->domainName) in build_avpair_blob()
411 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob()
413 ses->auth_key.len = 0; in build_avpair_blob()
452 if (!ses->auth_key.len || !ses->auth_key.response) in find_domain_name()
472 ses->domainName = in find_domain_name()
474 if (!ses->domainName) in find_domain_name()
505 if (!ses->auth_key.len || !ses->auth_key.response) in find_timestamp()
564 len = ses->user_name ? strlen(ses->user_name) : 0; in calc_ntlmv2_hash()
587 if (ses->domainName) { in calc_ntlmv2_hash()
[all …]
H A Dsmb2transport.c149 struct cifs_ses *ses; in smb2_find_smb_ses_unlocked() local
165 return ses; in smb2_find_smb_ses_unlocked()
174 struct cifs_ses *ses; in smb2_find_smb_ses() local
180 return ses; in smb2_find_smb_ses()
208 struct cifs_ses *ses; in smb2_find_smb_tcon() local
213 if (!ses) { in smb2_find_smb_tcon()
239 struct cifs_ses *ses; in smb2_calc_signature() local
244 if (unlikely(!ses)) { in smb2_calc_signature()
306 if (ses) in smb2_calc_signature()
455 memcpy(ses->chans[chan_index].signkey, ses->smb3signingkey, in generate_smb3signingkey()
[all …]
H A Dconnect.c1955 tcon->ses = ses; in cifs_setup_ipc()
1993 ret = ses; in cifs_find_smb_ses()
2017 __func__, ses->Suid, ses->ses_count, ses->ses_status, in __cifs_put_smb_ses()
2018 ses->tcon_ipc ? ses->tcon_ipc->tree_name : "none"); in __cifs_put_smb_ses()
2256 if (ses) { in cifs_get_smb_ses()
2361 memcpy(ses->chans[0].signkey, ses->smb3signingkey, in cifs_get_smb_ses()
2384 return ses; in cifs_get_smb_ses()
2458 ses = tcon->ses; in cifs_put_tcon()
2580 tcon->ses = ses; in cifs_get_tcon()
2867 ses = tcon->ses; in cifs_match_super()
[all …]
H A Dcifs_debug.c238 struct cifs_ses *ses; in cifs_debug_files_proc_show() local
261 ses->Suid, in cifs_debug_files_proc_show()
306 struct cifs_ses *ses; in cifs_debug_data_proc_show() local
498 i, ses->ip_addr, ses->ses_count, in cifs_debug_data_proc_show()
499 ses->capabilities, ses->ses_status); in cifs_debug_data_proc_show()
509 i, ses->ip_addr, ses->serverDomain, in cifs_debug_data_proc_show()
510 ses->ses_count, ses->serverOS, ses->serverNOS, in cifs_debug_data_proc_show()
511 ses->capabilities, ses->ses_status); in cifs_debug_data_proc_show()
528 if (ses->sign) in cifs_debug_data_proc_show()
563 if (ses->tcon_ipc) in cifs_debug_data_proc_show()
[all …]
H A Dsmb2pdu.c247 ses = tcon->ses; in smb2_reconnect()
1913 sess_data->ses = ses; in SMB2_sess_setup()
1955 if (ses && (ses->server)) in SMB2_logoff()
2164 struct cifs_ses *ses = tcon->ses; in SMB2_tdis() local
2174 if (!ses || !(ses->server)) in SMB2_tdis()
2810 struct cifs_ses *ses = tcon->ses; in smb311_posix_mkdir() local
3176 struct cifs_ses *ses = tcon->ses; in SMB2_open() local
3401 ses = tcon->ses; in SMB2_ioctl()
4204 tcon->ses = ses; in smb2_reconnect_server()
4315 if (!ses || !(ses->server)) in SMB2_flush()
[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()
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()
328 cifs_put_smb_ses(ses); in cifs_dump_full_key()
[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()
396 struct cifs_ses *ses) in __tree_connect_ipc() argument
402 spin_lock(&ses->ses_lock); in __tree_connect_ipc()
403 spin_lock(&ses->chan_lock); in __tree_connect_ipc()
407 spin_unlock(&ses->ses_lock); in __tree_connect_ipc()
412 spin_unlock(&ses->chan_lock); in __tree_connect_ipc()
413 spin_unlock(&ses->ses_lock); in __tree_connect_ipc()
[all …]
H A Dcifsproto.h172 struct cifs_ses *ses,
321 struct cifs_ses *ses,
328 struct cifs_ses *ses,
597 void __cifs_put_smb_ses(struct cifs_ses *ses);
639 cifs_ses_get_chan_index(struct cifs_ses *ses,
648 cifs_chan_in_reconnect(struct cifs_ses *ses,
733 next = ses->dfs_root_ses; in cifs_put_smb_ses()
734 __cifs_put_smb_ses(ses); in cifs_put_smb_ses()
735 } while ((ses = next)); in cifs_put_smb_ses()
750 for (; ses; ses = ses->dfs_root_ses) in cifs_smb_ses_inc_refcount()
[all …]
H A Dcifs_swn.c50 if (tcon->ses->user_name != NULL) { in cifs_swn_auth_info_ntlm()
56 if (tcon->ses->password != NULL) { in cifs_swn_auth_info_ntlm()
62 if (tcon->ses->domainName != NULL) { in cifs_swn_auth_info_ntlm()
114 if (swnreg->tcon->ses->server->use_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()
211 &swnreg->tcon->ses->server->dstaddr); in cifs_swn_send_unregister_message()
468 cifs_server_lock(tcon->ses->server); in cifs_swn_reconnect()
473 &tcon->ses->server->swn_dstaddr); in cifs_swn_reconnect()
478 tcon->ses->server->use_swn_dstaddr = true; in cifs_swn_reconnect()
[all …]
H A Dtransport.c706 spin_lock(&ses->ses_lock); in allocate_mid()
1030 if (!ses) in cifs_pick_channel()
1061 index %= ses->chan_count; in cifs_pick_channel()
1090 if (!ses || !ses->server || !server) { in compound_send_recv()
1346 rc = cifs_send_recv(xid, ses, ses->server, in SendReceive2()
1366 if (ses == NULL) { in SendReceive()
1370 server = ses->server; in SendReceive()
1477 struct cifs_ses *ses = tcon->ses; in send_lock_cancel() local
1501 struct cifs_ses *ses; in SendReceiveBlockingLock() local
1512 ses = tcon->ses; in SendReceiveBlockingLock()
[all …]
H A Ddfs_cache.c655 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in get_dfs_referral()
661 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral()
1165 spin_lock(&ses->ses_lock); in is_ses_good()
1166 spin_lock(&ses->chan_lock); in is_ses_good()
1170 spin_unlock(&ses->chan_lock); in is_ses_good()
1171 spin_unlock(&ses->ses_lock); in is_ses_good()
1213 ses = CIFS_DFS_ROOT_SES(ses); in __refresh_ses_referral()
1214 if (!is_ses_good(ses)) { in __refresh_ses_referral()
1291 struct cifs_ses *ses; in dfs_cache_refresh() local
1295 for (ses = tcon->ses; ses; ses = ses->dfs_root_ses) in dfs_cache_refresh()
[all …]
H A Dcifsfs.c203 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
216 ((tcon->ses->capabilities & in cifs_read_super()
464 if (ses->user_name == NULL) in cifs_show_security()
471 switch (ses->sectype) { in cifs_show_security()
487 if (ses->sign) in cifs_show_security()
490 if (ses->sectype == Kerberos) in cifs_show_security()
556 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0) in cifs_show_options()
720 if (tcon->ses->chan_max > 1) in cifs_show_options()
722 tcon->ses->chan_max); in cifs_show_options()
762 if (tcon->ses && tcon->ses->server) { in cifs_umount_begin()
[all …]
H A Dsmb2inode.c187 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local
206 server = cifs_pick_channel(ses); in smb2_compound_op()
301 trace_smb3_query_info_compound_enter(xid, ses->Suid, in smb2_compound_op()
432 trace_smb3_set_info_compound_enter(xid, ses->Suid, in smb2_compound_op()
617 rc = compound_send_recv(xid, ses, server, in smb2_compound_op()
626 rc = compound_send_recv(xid, ses, server, in smb2_compound_op()
702 trace_smb3_delete_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
709 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
729 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
741 trace_smb3_set_info_compound_err(xid, ses->Suid, in smb2_compound_op()
[all …]
H A Dxattr.c58 if (pTcon->ses->server->ops->set_file_info) in cifs_attrib_set()
82 if (pTcon->ses->server->ops->set_file_info) 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()
320 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get()
328 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get()
399 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr()
[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()
179 if (cap_unix(ses)) in cifs_reconnect_tcon()
305 if (cifs_chan_needs_reconnect(tcon->ses, tcon->ses->server) || in smb_init_no_reconnect()
403 struct cifs_ses *ses, in CIFSSMBNegotiate() argument
518 if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) in CIFSSMBTDis()
623 if (!ses || !ses->server) in CIFSSMBLogoff()
643 if (ses->server->sign) in CIFSSMBLogoff()
1509 if (tcon->ses == NULL) in CIFSSMBWrite()
[all …]
H A Dcifsglob.h112 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses)) argument
334 struct cifs_ses *ses,
1120 ((ses)->chans_need_reconnect == CIFS_ALL_CHANNELS_SET(ses))
1122 ((ses)->chans_need_reconnect = CIFS_ALL_CHANNELS_SET(ses))
1150 cap_unix(struct cifs_ses *ses) in cap_unix() argument
1152 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix()
1811 struct cifs_ses *ses; member
2176 if (!tcon || !tcon->ses || !tcon->ses->server) in is_tcon_dfs()
2199 if (WARN_ON_ONCE(!ses || !ses->server)) in ntlmssp_workstation_name_size()
2337 spin_lock(&ses->ses_lock); in cifs_ses_exiting()
[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
625 if (cifs_ses_exiting(ses)) in smb2_is_valid_lease_break()
676 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local
702 if (cifs_ses_exiting(ses)) in smb2_is_valid_oplock_break()
819 if (tcon->ses) in smb2_handle_cancelled_close()
820 server = tcon->ses->server; in smb2_handle_cancelled_close()
922 rc = crypto_shash_update(sha512, ses->preauth_sha_hash, in smb311_update_preauth_hash()
[all …]
H A Dmisc.c280 if (treeCon->ses) { in header_assemble()
288 if (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
492 if (cifs_ses_exiting(ses)) in is_valid_oplock_break()
1168 if (t1->ses == t2->ses && in tcon_super_cb()
1169 t1->ses->server == t2->ses->server && in tcon_super_cb()
1291 struct cifs_ses *ses = tcon->ses; in cifs_inval_name_dfs_link_error() local
1341 ses = CIFS_DFS_ROOT_SES(ses); in cifs_inval_name_dfs_link_error()
[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 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,
H A Dsmb2ops.c715 ses->iface_count++; in parse_server_interfaces()
750 ses->iface_count--; in parse_server_interfaces()
764 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces() local
1111 struct cifs_ses *ses = tcon->ses; in smb2_set_ea() local
1507 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info() local
2473 struct cifs_ses *ses; in smb2_is_network_name_deleted() local
2550 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command() local
2636 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound() local
2912 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2928 ses); in smb2_get_dfs_refer()
[all …]
/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.c1050 ses->cmd_len = scmd->cmd_len; 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()
1056 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd()
1061 memcpy(ses->cmnd, scmd->cmnd, sizeof(ses->cmnd)); in scsi_eh_prep_cmnd()
1113 scmd->cmd_len = ses->cmd_len; in scsi_eh_restore_cmnd()
1114 memcpy(scmd->cmnd, ses->cmnd, sizeof(ses->cmnd)); in scsi_eh_restore_cmnd()
1116 scmd->sdb = ses->sdb; in scsi_eh_restore_cmnd()
1117 scmd->result = ses->result; in scsi_eh_restore_cmnd()
1120 scmd->prot_op = ses->prot_op; in scsi_eh_restore_cmnd()
[all …]
/openbmc/linux/fs/nfs/
H A 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()

123