| /Linux-v5.4/fs/cifs/ |
| D | sess.c | 35 static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB) in cifs_ssetup_hdr() argument 48 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); in cifs_ssetup_hdr() 59 if (ses->server->sign) in cifs_ssetup_hdr() 62 if (ses->capabilities & CAP_UNICODE) { in cifs_ssetup_hdr() 66 if (ses->capabilities & CAP_STATUS32) { in cifs_ssetup_hdr() 70 if (ses->capabilities & CAP_DFS) { in cifs_ssetup_hdr() 74 if (ses->capabilities & CAP_UNIX) in cifs_ssetup_hdr() 103 static void unicode_domain_string(char **pbcc_area, struct cifs_ses *ses, in unicode_domain_string() argument 110 if (ses->domainName == NULL) { in unicode_domain_string() 117 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->domainName, in unicode_domain_string() [all …]
|
| D | cifsencrypt.c | 266 int setup_ntlm_response(struct cifs_ses *ses, const struct nls_table *nls_cp) in setup_ntlm_response() argument 272 if (!ses) in setup_ntlm_response() 275 ses->auth_key.response = kmalloc(temp_len, GFP_KERNEL); in setup_ntlm_response() 276 if (!ses->auth_key.response) in setup_ntlm_response() 279 ses->auth_key.len = temp_len; in setup_ntlm_response() 281 rc = SMBNTencrypt(ses->password, ses->server->cryptkey, in setup_ntlm_response() 282 ses->auth_key.response + CIFS_SESS_KEY_SIZE, nls_cp); in setup_ntlm_response() 289 rc = E_md4hash(ses->password, temp_key, nls_cp); in setup_ntlm_response() 296 rc = mdfour(ses->auth_key.response, temp_key, CIFS_SESS_KEY_SIZE); in setup_ntlm_response() 352 build_avpair_blob(struct cifs_ses *ses, const struct nls_table *nls_cp) in build_avpair_blob() argument [all …]
|
| D | smb2transport.c | 104 struct cifs_ses *ses; in smb2_find_smb_ses_unlocked() local 106 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_find_smb_ses_unlocked() 107 if (ses->Suid != ses_id) in smb2_find_smb_ses_unlocked() 109 return ses; in smb2_find_smb_ses_unlocked() 118 struct cifs_ses *ses; in smb2_find_smb_ses() local 121 ses = smb2_find_smb_ses_unlocked(server, ses_id); in smb2_find_smb_ses() 124 return ses; in smb2_find_smb_ses() 128 smb2_find_smb_sess_tcon_unlocked(struct cifs_ses *ses, __u32 tid) in smb2_find_smb_sess_tcon_unlocked() argument 132 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_find_smb_sess_tcon_unlocked() 150 struct cifs_ses *ses; in smb2_find_smb_tcon() local [all …]
|
| D | smb2pdu.c | 90 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required() 94 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 106 if (tcon && tcon->ses && tcon->ses->server) { in smb2_hdr_assemble() 107 struct TCP_Server_Info *server = tcon->ses->server; in smb2_hdr_assemble() 128 if ((tcon->ses) && (tcon->ses->server) && in smb2_hdr_assemble() 129 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) in smb2_hdr_assemble() 135 if (tcon->ses) in smb2_hdr_assemble() 136 shdr->SessionId = tcon->ses->Suid; in smb2_hdr_assemble() 151 if (tcon->ses && tcon->ses->server && tcon->ses->server->sign && in smb2_hdr_assemble() 177 tcon->ses->server->hostname); in __smb2_reconnect() [all …]
|
| D | connect.c | 406 if (tcon->ses->server == d->server) in super_cb() 478 struct cifs_ses *ses; in cifs_reconnect() local 531 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in cifs_reconnect() 532 ses->need_reconnect = true; in cifs_reconnect() 533 list_for_each(tmp2, &ses->tcon_list) { in cifs_reconnect() 537 if (ses->tcon_ipc) in cifs_reconnect() 538 ses->tcon_ipc->need_reconnect = true; in cifs_reconnect() 2858 static int match_session(struct cifs_ses *ses, struct smb_vol *vol) in match_session() argument 2861 vol->sectype != ses->sectype) in match_session() 2864 switch (ses->sectype) { in match_session() [all …]
|
| D | cifs_debug.c | 109 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon() 116 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon() 117 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon() 147 struct cifs_ses *ses; in cifs_debug_files_proc_show() local 164 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in cifs_debug_files_proc_show() 165 list_for_each(tmp1, &ses->tcon_list) { in cifs_debug_files_proc_show() 200 struct cifs_ses *ses; in cifs_debug_data_proc_show() local 333 ses = list_entry(tmp2, struct cifs_ses, in cifs_debug_data_proc_show() 335 if ((ses->serverDomain == NULL) || in cifs_debug_data_proc_show() 336 (ses->serverOS == NULL) || in cifs_debug_data_proc_show() [all …]
|
| D | ioctl.c | 66 if (tcon->ses->server->ops->ioctl_query_info) in cifs_ioctl_query_info() 67 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info() 140 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo() 232 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl() 233 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl() 248 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl() 249 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl() 268 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl() 269 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl() 288 le16_to_cpu(tcon->ses->server->cipher_type); in cifs_ioctl() [all …]
|
| D | smb2inode.c | 62 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local 154 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op() 158 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 165 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 183 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 201 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 233 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op() 272 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 299 trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 326 rc = compound_send_recv(xid, ses, flags, num_rqst - 2, in smb2_compound_op() [all …]
|
| D | dfs_cache.c | 597 update_cache_entry(const unsigned int xid, struct cifs_ses *ses, in update_cache_entry() argument 610 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in update_cache_entry() 617 rc = ses->server->ops->get_dfs_refer(xid, ses, path, &refs, &numrefs, in update_cache_entry() 640 do_dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, in do_dfs_cache_find() argument 666 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) { in do_dfs_cache_find() 681 rc = ses->server->ops->get_dfs_refer(xid, ses, path, &nrefs, in do_dfs_cache_find() 715 ce = update_cache_entry(xid, ses, nls_codepage, remap, path, in do_dfs_cache_find() 825 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, in dfs_cache_find() argument 842 ce = do_dfs_cache_find(xid, ses, nls_codepage, remap, npath, false); in dfs_cache_find() 925 int dfs_cache_update_tgthint(const unsigned int xid, struct cifs_ses *ses, in dfs_cache_update_tgthint() argument [all …]
|
| D | transport.c | 668 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument 671 if (ses->server->tcpStatus == CifsExiting) { in allocate_mid() 675 if (ses->server->tcpStatus == CifsNeedReconnect) { in allocate_mid() 680 if (ses->status == CifsNew) { in allocate_mid() 687 if (ses->status == CifsExiting) { in allocate_mid() 694 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid() 698 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid() 836 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, in SendReceiveNoRsp() argument 847 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags, &rsp_iov); in SendReceiveNoRsp() 930 cifs_setup_request(struct cifs_ses *ses, struct smb_rqst *rqst) in cifs_setup_request() argument [all …]
|
| D | cifsfs.c | 167 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super() 179 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super() 180 ((tcon->ses->capabilities & in cifs_read_super() 181 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super() 257 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs() 287 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate() 395 cifs_show_security(struct seq_file *s, struct cifs_ses *ses) in cifs_show_security() argument 397 if (ses->sectype == Unspecified) { in cifs_show_security() 398 if (ses->user_name == NULL) in cifs_show_security() 405 switch (ses->sectype) { in cifs_show_security() [all …]
|
| D | smb2misc.c | 148 struct cifs_ses *ses = NULL; in smb2_check_message() local 154 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in smb2_check_message() 155 if (ses->Suid == thdr->SessionId) in smb2_check_message() 158 ses = NULL; in smb2_check_message() 161 if (ses == NULL) { in smb2_check_message() 593 struct cifs_ses *ses; in smb2_is_valid_lease_break() local 612 ses = list_entry(tmp1, struct cifs_ses, smb_ses_list); in smb2_is_valid_lease_break() 614 list_for_each(tmp2, &ses->tcon_list) { in smb2_is_valid_lease_break() 652 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local 675 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in smb2_is_valid_oplock_break() [all …]
|
| D | xattr.c | 92 if (pTcon->ses->server->ops->set_EA) in cifs_xattr_set() 93 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_xattr_set() 109 pTcon->ses->server->ops->set_acl) in cifs_xattr_set() 110 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set() 242 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get() 243 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get() 251 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get() 254 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get() 340 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr() 341 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_listxattr()
|
| D | cifssmb.c | 143 tcon->ses->server->hostname); in __cifs_reconnect_tcon() 144 rc = CIFSTCon(0, tcon->ses, tree, tcon, nlsc); in __cifs_reconnect_tcon() 149 rc = CIFSTCon(0, tcon->ses, tcon->treeName, tcon, nlsc); in __cifs_reconnect_tcon() 157 extract_unc_hostname(tcon->ses->server->hostname, &tcp_host, in __cifs_reconnect_tcon() 177 rc = CIFSTCon(0, tcon->ses, tree, tcon, nlsc); in __cifs_reconnect_tcon() 200 return CIFSTCon(0, tcon->ses, tcon->treeName, tcon, nlsc); in __cifs_reconnect_tcon() 209 struct cifs_ses *ses; in cifs_reconnect_tcon() local 222 ses = tcon->ses; in cifs_reconnect_tcon() 223 server = ses->server; in cifs_reconnect_tcon() 275 if (!ses->need_reconnect && !tcon->need_reconnect) in cifs_reconnect_tcon() [all …]
|
| D | cifsproto.h | 98 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, 101 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, 155 struct cifs_ses *ses, 159 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses, 263 struct cifs_ses *ses); 264 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, 267 extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses); 269 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses, 304 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses, [all …]
|
| D | ntlmssp.h | 134 int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, struct cifs_ses *ses); 135 void build_ntlmssp_negotiate_blob(unsigned char *pbuffer, struct cifs_ses *ses); 137 struct cifs_ses *ses,
|
| D | smb2ops.c | 314 smb2_negotiate(const unsigned int xid, struct cifs_ses *ses) in smb2_negotiate() argument 318 ses->server->CurrentMid = 0; in smb2_negotiate() 319 rc = SMB2_negotiate(xid, ses); in smb2_negotiate() 329 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize() 354 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize() 379 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize() 405 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize() 570 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces() local 590 spin_lock(&ses->iface_lock); in SMB3_request_interfaces() 591 kfree(ses->iface_list); in SMB3_request_interfaces() [all …]
|
| D | cifs_dfs_ref.c | 298 struct cifs_ses *ses; in cifs_dfs_do_automount() local 348 ses = tcon->ses; in cifs_dfs_do_automount() 355 rc = dfs_cache_find(xid, ses, cifs_sb->local_nls, cifs_remap(cifs_sb), in cifs_dfs_do_automount() 358 rc = dfs_cache_find(xid, ses, cifs_sb->local_nls, in cifs_dfs_do_automount()
|
| D | misc.c | 267 if (treeCon->ses) { in header_assemble() 268 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble() 270 if (treeCon->ses->capabilities & CAP_STATUS32) in header_assemble() 274 buffer->Uid = treeCon->ses->Suid; 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 471 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in is_valid_oplock_break() 472 list_for_each(tmp1, &ses->tcon_list) { in is_valid_oplock_break()
|
| D | smb1ops.c | 418 cifs_negotiate(const unsigned int xid, struct cifs_ses *ses) in cifs_negotiate() argument 421 rc = CIFSSMBNegotiate(xid, ses); in cifs_negotiate() 424 set_credits(ses->server, 1); in cifs_negotiate() 425 rc = CIFSSMBNegotiate(xid, ses); in cifs_negotiate() 436 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize() 471 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() 925 rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, &referral, in cifs_unix_dfs_readlink() [all …]
|
| D | smb2proto.h | 48 extern struct mid_q_entry *smb2_setup_request(struct cifs_ses *ses, 128 extern int SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses); 129 extern int SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses, 131 extern int SMB2_logoff(const unsigned int xid, struct cifs_ses *ses); 132 extern int SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, 255 extern int smb311_update_preauth_hash(struct cifs_ses *ses,
|
| /Linux-v5.4/drivers/scsi/ |
| D | scsi_error.c | 953 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd() argument 965 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd() 966 ses->cmnd = scmd->cmnd; in scsi_eh_prep_cmnd() 967 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd() 968 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd() 969 ses->result = scmd->result; in scsi_eh_prep_cmnd() 970 ses->resid_len = scmd->req.resid_len; in scsi_eh_prep_cmnd() 971 ses->underflow = scmd->underflow; in scsi_eh_prep_cmnd() 972 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd() 973 ses->eh_eflags = scmd->eh_eflags; in scsi_eh_prep_cmnd() [all …]
|
| /Linux-v5.4/fs/nfs/ |
| D | nfs4session.c | 532 int nfs4_setup_session_slot_tables(struct nfs4_session *ses) in nfs4_setup_session_slot_tables() argument 539 tbl = &ses->fc_slot_table; in nfs4_setup_session_slot_tables() 540 tbl->session = ses; in nfs4_setup_session_slot_tables() 541 status = nfs4_realloc_slot_table(tbl, ses->fc_attrs.max_reqs, 1); in nfs4_setup_session_slot_tables() 542 if (status || !(ses->flags & SESSION4_BACK_CHAN)) /* -ENOMEM */ in nfs4_setup_session_slot_tables() 545 tbl = &ses->bc_slot_table; in nfs4_setup_session_slot_tables() 546 tbl->session = ses; in nfs4_setup_session_slot_tables() 547 status = nfs4_realloc_slot_table(tbl, ses->bc_attrs.max_reqs, 0); in nfs4_setup_session_slot_tables() 551 nfs4_release_session_slot_tables(ses); in nfs4_setup_session_slot_tables()
|
| /Linux-v5.4/drivers/usb/storage/ |
| 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()
|
| /Linux-v5.4/include/scsi/ |
| D | scsi_eh.h | 49 struct scsi_eh_save *ses, unsigned char *cmnd, 53 struct scsi_eh_save *ses);
|