/linux/fs/cifs/ |
A D | sess.c | 87 left = ses->chan_max - ses->chan_count; in cifs_try_adding_channels() 266 chan = ses->binding_chan = &ses->chans[ses->chan_count]; in cifs_ses_add_channel() 934 struct cifs_ses *ses = sess_data->ses; in sess_alloc_buffer() local 980 struct cifs_ses *ses = sess_data->ses; in sess_establish_session() local 1038 struct cifs_ses *ses = sess_data->ses; in sess_auth_ntlmv2() local 1147 struct cifs_ses *ses = sess_data->ses; in sess_auth_kerberos() local 1287 struct cifs_ses *ses = sess_data->ses; in _sess_auth_rawntlmssp_assemble_req() local 1326 struct cifs_ses *ses = sess_data->ses; in sess_auth_rawntlmssp_negotiate() local 1428 struct cifs_ses *ses = sess_data->ses; in sess_auth_rawntlmssp_authenticate() local 1533 type = cifs_select_sectype(ses->server, ses->sectype); in select_sec() [all …]
|
A D | cifsencrypt.c | 266 if (!ses->domainName) { in build_avpair_blob() 268 if (!ses->domainName) in build_avpair_blob() 281 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob() 283 ses->auth_key.len = 0; in build_avpair_blob() 322 if (!ses->auth_key.len || !ses->auth_key.response) in find_domain_name() 342 ses->domainName = in find_domain_name() 344 if (!ses->domainName) in find_domain_name() 375 if (!ses->auth_key.len || !ses->auth_key.response) in find_timestamp() 434 len = ses->user_name ? strlen(ses->user_name) : 0; in calc_ntlmv2_hash() 457 if (ses->domainName) { in calc_ntlmv2_hash() [all …]
|
A D | smb2transport.c | 103 if (ses->binding) { in smb2_get_sign_key() 138 struct cifs_ses *ses; in smb2_find_smb_ses_unlocked() local 143 ++ses->ses_count; in smb2_find_smb_ses_unlocked() 144 return ses; in smb2_find_smb_ses_unlocked() 159 return ses; in smb2_find_smb_ses() 190 if (!ses) { in smb2_find_smb_tcon() 223 if (!ses) { in smb2_calc_signature() 287 if (ses) in smb2_calc_signature() 410 if (ses->binding) { in generate_smb3signingkey() 425 memcpy(ses->chans[0].signkey, ses->smb3signingkey, in generate_smb3signingkey() [all …]
|
A D | connect.c | 1682 tcon->ses = ses; in cifs_setup_ipc() 1739 return ses; in cifs_find_smb_ses() 1986 if (ses) { in cifs_get_smb_ses() 2018 return ses; in cifs_get_smb_ses() 2077 memcpy(ses->chans[0].signkey, ses->smb3signingkey, in cifs_get_smb_ses() 2093 return ses; in cifs_get_smb_ses() 2153 ses = tcon->ses; in cifs_put_tcon() 2257 tcon->ses = ses; in cifs_get_tcon() 2512 ses = tcon->ses; in cifs_match_super() 3076 mnt_ctx->ses = ses; in mount_get_conns() [all …]
|
A D | ioctl.c | 57 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() 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() 309 cifs_put_smb_ses(ses); in cifs_dump_full_key() 444 pkey_inf.Suid = tcon->ses->Suid; in cifs_ioctl() [all …]
|
A D | smb2pdu.c | 183 ses = tcon->ses; in smb2_reconnect() 1664 sess_data->ses = ses; in SMB2_sess_setup() 1701 if (ses && (ses->server)) in SMB2_logoff() 1904 struct cifs_ses *ses = tcon->ses; in SMB2_tdis() local 1913 if (!ses || !(ses->server)) in SMB2_tdis() 2545 struct cifs_ses *ses = tcon->ses; in smb311_posix_mkdir() local 2906 struct cifs_ses *ses = tcon->ses; in SMB2_open() local 3127 ses = tcon->ses; in SMB2_ioctl() 3288 struct cifs_ses *ses = tcon->ses; in __SMB2_close() local 3872 if (!ses || !(ses->server)) in SMB2_flush() [all …]
|
A D | cifs_debug.c | 170 struct cifs_ses *ses; in cifs_debug_files_proc_show() local 221 struct cifs_ses *ses; in cifs_debug_data_proc_show() local 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() 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() 411 if (ses->sign) in cifs_debug_data_proc_show() 431 if (ses->tcon_ipc) in cifs_debug_data_proc_show() 496 struct cifs_ses *ses; in cifs_stats_proc_write() local [all …]
|
A D | smb2inode.c | 67 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local 84 server = cifs_pick_channel(ses); in smb2_compound_op() 367 rc = compound_send_recv(xid, ses, server, in smb2_compound_op() 372 rc = compound_send_recv(xid, ses, server, in smb2_compound_op() 403 trace_smb3_query_info_compound_err(xid, ses->Suid, in smb2_compound_op() 431 trace_smb3_delete_done(xid, ses->Suid, tcon->tid); in smb2_compound_op() 439 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op() 454 trace_smb3_rename_done(xid, ses->Suid, tcon->tid); in smb2_compound_op() 461 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op() 473 trace_smb3_set_info_compound_err(xid, ses->Suid, in smb2_compound_op() [all …]
|
A D | transport.c | 1044 if (!ses) in cifs_pick_channel() 1047 spin_lock(&ses->chan_lock); in cifs_pick_channel() 1048 if (!ses->binding) { in cifs_pick_channel() 1082 if (!ses || !ses->server || !server) { in compound_send_recv() 1326 rc = cifs_send_recv(xid, ses, ses->server, in SendReceive2() 1346 if (ses == NULL) { in SendReceive() 1350 server = ses->server; in SendReceive() 1454 struct cifs_ses *ses = tcon->ses; in send_lock_cancel() local 1478 struct cifs_ses *ses; in SendReceiveBlockingLock() local 1489 ses = tcon->ses; in SendReceiveBlockingLock() [all …]
|
A D | cifs_swn.c | 50 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 mutex_lock(&tcon->ses->server->srv_mutex); 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 …]
|
A D | cifsfs.c | 171 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super() 184 ((tcon->ses->capabilities & in cifs_read_super() 430 if (ses->user_name == NULL) in cifs_show_security() 437 switch (ses->sectype) { in cifs_show_security() 453 if (ses->sign) in cifs_show_security() 456 if (ses->sectype == Kerberos) in cifs_show_security() 522 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0) in cifs_show_options() 669 if (tcon->ses->chan_max > 1) in cifs_show_options() 671 tcon->ses->chan_max); in cifs_show_options() 702 if (tcon->ses && tcon->ses->server) { in cifs_umount_begin() [all …]
|
A D | dfs_cache.c | 100 for (; *ses; ses++) { in find_ipc_from_server_path() 102 return *ses; in find_ipc_from_server_path() 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() 1365 struct cifs_ses *ses; in __refresh_tcon() local 1375 if (IS_ERR(ses)) { in __refresh_tcon() 1377 return PTR_ERR(ses); in __refresh_tcon() 1456 server = tcon->ses->server; in dfs_cache_remount_fs() 1505 struct cifs_ses *ses; in refresh_mounts() local 1545 struct cifs_ses *ses; in refresh_cache() local [all …]
|
A D | xattr.c | 58 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() 171 if (pTcon->ses->server->ops->set_acl) { in cifs_xattr_set() 190 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set() 324 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get() 339 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get() 347 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get() 438 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr() [all …]
|
A D | cifssmb.c | 103 struct cifs_ses *ses; in cifs_reconnect_tcon() local 116 ses = tcon->ses; in cifs_reconnect_tcon() 117 server = ses->server; in cifs_reconnect_tcon() 214 if (cap_unix(ses)) in cifs_reconnect_tcon() 594 if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) in CIFSSMBTDis() 695 if (!ses || !ses->server) in CIFSSMBLogoff() 699 if (ses->need_reconnect) in CIFSSMBLogoff() 710 if (ses->server->sign) in CIFSSMBLogoff() 1755 if (tcon->ses == NULL) in CIFSSMBWrite() 4750 if (ses == NULL || ses->tcon_ipc == NULL) in CIFSGetDFSRefer() [all …]
|
A D | cifsproto.h | 99 extern struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses); 100 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, 113 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, 162 struct cifs_ses *ses, 166 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses, 296 struct cifs_ses *ses); 302 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses, 489 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses); 555 extern void cifs_put_smb_ses(struct cifs_ses *ses); 602 void cifs_ses_mark_for_reconnect(struct cifs_ses *ses); [all …]
|
A D | smb2misc.c | 152 struct cifs_ses *ses = NULL; in smb2_check_message() local 157 if (ses->Suid == le64_to_cpu(thdr->SessionId)) in smb2_check_message() 161 if (list_entry_is_head(ses, &srvr->smb_ses_list, in smb2_check_message() 603 struct cifs_ses *ses; in smb2_is_valid_lease_break() local 613 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break() 664 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local 687 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_oplock_break() 796 if (tcon->ses) in smb2_handle_cancelled_close() 797 server = tcon->ses->server; in smb2_handle_cancelled_close() 859 struct TCP_Server_Info *server = cifs_ses_server(ses); in smb311_update_preauth_hash() [all …]
|
A D | smb2ops.c | 647 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces() local 671 kfree(ses->iface_list); in SMB3_request_interfaces() 748 struct cifs_ses *ses = tcon->ses; in open_cached_dir() local 1238 struct cifs_ses *ses = tcon->ses; in smb2_set_ea() local 1617 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info() local 2523 struct cifs_ses *ses; in smb2_is_network_name_deleted() local 2578 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command() local 2642 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound() local 2854 tcon = ses->tcon_ipc; in smb2_get_dfs_refer() 2867 ses); in smb2_get_dfs_refer() [all …]
|
A D | ntlmssp.h | 121 int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, struct cifs_ses *ses); 123 struct cifs_ses *ses, 126 struct cifs_ses *ses,
|
A D | smb1ops.c | 420 rc = CIFSSMBNegotiate(xid, ses); in cifs_negotiate() 423 set_credits(ses->server, 1); in cifs_negotiate() 424 rc = CIFSSMBNegotiate(xid, ses); in cifs_negotiate() 435 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize() 470 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize() 701 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file() 886 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_queryfs() 894 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_queryfs() 958 if (cap_unix(tcon->ses)) { in cifs_query_symlink() 1103 if (tcon->ses->server->oplocks) in cifs_make_node() [all …]
|
A D | dfs_cache.h | 33 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);
|
A D | misc.c | 258 if (treeCon->ses) { in header_assemble() 259 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble() 261 if (treeCon->ses->capabilities & CAP_STATUS32) in header_assemble() 265 buffer->Uid = treeCon->ses->Suid; in header_assemble() 266 if (treeCon->ses->server) in header_assemble() 267 buffer->Mid = get_next_mid(treeCon->ses->server); in header_assemble() 273 if ((treeCon->ses) && (treeCon->ses->server)) in header_assemble() 274 if (treeCon->ses->server->sign) in header_assemble() 396 struct cifs_ses *ses; in is_valid_oplock_break() local 464 list_for_each(tmp1, &ses->tcon_list) { in is_valid_oplock_break() [all …]
|
A D | cifsglob.h | 986 struct cifs_chan *cifs_ses_binding_channel(struct cifs_ses *ses) in cifs_ses_binding_channel() argument 988 if (ses->binding) in cifs_ses_binding_channel() 989 return ses->binding_chan; in cifs_ses_binding_channel() 1003 struct TCP_Server_Info *cifs_ses_server(struct cifs_ses *ses) in cifs_ses_server() argument 1005 if (ses->binding) in cifs_ses_server() 1006 return ses->binding_chan->server; in cifs_ses_server() 1008 return ses->server; in cifs_ses_server() 1012 cap_unix(struct cifs_ses *ses) in cap_unix() argument 1014 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix() 1043 struct cifs_ses *ses; /* pointer to session associated with */ member [all …]
|
/linux/drivers/scsi/ |
A D | scsi_error.c | 1003 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd() 1004 ses->cmnd = scmd->cmnd; in scsi_eh_prep_cmnd() 1006 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd() 1007 ses->result = scmd->result; in scsi_eh_prep_cmnd() 1010 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd() 1015 scmd->cmnd = ses->eh_cmnd; in scsi_eh_prep_cmnd() 1067 scmd->cmd_len = ses->cmd_len; in scsi_eh_restore_cmnd() 1068 scmd->cmnd = ses->cmnd; in scsi_eh_restore_cmnd() 1070 scmd->sdb = ses->sdb; in scsi_eh_restore_cmnd() 1071 scmd->result = ses->result; in scsi_eh_restore_cmnd() [all …]
|
/linux/fs/nfs/ |
A D | nfs4session.c | 536 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/drivers/usb/storage/ |
A D | cypress_atacb.c | 165 struct scsi_eh_save ses; in cypress_atacb_passthrough() local 172 scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sizeof(regs)); in cypress_atacb_passthrough() 180 srb->cmnd = ses.cmnd; in cypress_atacb_passthrough() 186 scsi_eh_restore_cmnd(srb, &ses); in cypress_atacb_passthrough()
|