/Linux-v4.19/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 | 265 int setup_ntlm_response(struct cifs_ses *ses, const struct nls_table *nls_cp) in setup_ntlm_response() argument 271 if (!ses) in setup_ntlm_response() 274 ses->auth_key.response = kmalloc(temp_len, GFP_KERNEL); in setup_ntlm_response() 275 if (!ses->auth_key.response) in setup_ntlm_response() 278 ses->auth_key.len = temp_len; in setup_ntlm_response() 280 rc = SMBNTencrypt(ses->password, ses->server->cryptkey, in setup_ntlm_response() 281 ses->auth_key.response + CIFS_SESS_KEY_SIZE, nls_cp); in setup_ntlm_response() 288 rc = E_md4hash(ses->password, temp_key, nls_cp); in setup_ntlm_response() 295 rc = mdfour(ses->auth_key.response, temp_key, CIFS_SESS_KEY_SIZE); in setup_ntlm_response() 346 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 | transport.c | 513 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument 516 if (ses->server->tcpStatus == CifsExiting) { in allocate_mid() 520 if (ses->server->tcpStatus == CifsNeedReconnect) { in allocate_mid() 525 if (ses->status == CifsNew) { in allocate_mid() 532 if (ses->status == CifsExiting) { in allocate_mid() 539 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid() 543 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid() 664 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, in SendReceiveNoRsp() argument 675 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags, &rsp_iov); in SendReceiveNoRsp() 755 cifs_setup_request(struct cifs_ses *ses, struct smb_rqst *rqst) in cifs_setup_request() argument [all …]
|
D | smb2pdu.c | 87 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required() 91 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 103 if (tcon && tcon->ses && tcon->ses->server) { in smb2_hdr_assemble() 104 struct TCP_Server_Info *server = tcon->ses->server; in smb2_hdr_assemble() 125 if ((tcon->ses) && (tcon->ses->server) && in smb2_hdr_assemble() 126 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) in smb2_hdr_assemble() 132 if (tcon->ses) in smb2_hdr_assemble() 133 shdr->SessionId = tcon->ses->Suid; in smb2_hdr_assemble() 148 if (tcon->ses && tcon->ses->server && tcon->ses->server->sign && in smb2_hdr_assemble() 160 struct cifs_ses *ses; in smb2_reconnect() local [all …]
|
D | connect.c | 333 struct cifs_ses *ses; in cifs_reconnect() local 359 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in cifs_reconnect() 360 ses->need_reconnect = true; in cifs_reconnect() 361 list_for_each(tmp2, &ses->tcon_list) { in cifs_reconnect() 365 if (ses->tcon_ipc) in cifs_reconnect() 366 ses->tcon_ipc->need_reconnect = true; in cifs_reconnect() 2490 static int match_session(struct cifs_ses *ses, struct smb_vol *vol) in match_session() argument 2493 vol->sectype != ses->sectype) in match_session() 2496 switch (ses->sectype) { in match_session() 2498 if (!uid_eq(vol->cred_uid, ses->cred_uid)) in match_session() [all …]
|
D | cifs_debug.c | 121 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon() 122 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon() 153 struct cifs_ses *ses; in cifs_debug_data_proc_show() local 283 ses = list_entry(tmp2, struct cifs_ses, in cifs_debug_data_proc_show() 285 if ((ses->serverDomain == NULL) || in cifs_debug_data_proc_show() 286 (ses->serverOS == NULL) || in cifs_debug_data_proc_show() 287 (ses->serverNOS == NULL)) { in cifs_debug_data_proc_show() 289 i, ses->serverName, ses->ses_count, in cifs_debug_data_proc_show() 290 ses->capabilities, ses->status); in cifs_debug_data_proc_show() 291 if (ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST) in cifs_debug_data_proc_show() [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() 520 struct TCP_Server_Info *server = tcon->ses->server; in smb2_tcon_has_lease() 582 struct cifs_ses *ses; in smb2_is_valid_lease_break() local 601 ses = list_entry(tmp1, struct cifs_ses, smb_ses_list); in smb2_is_valid_lease_break() 603 list_for_each(tmp2, &ses->tcon_list) { in smb2_is_valid_lease_break() 641 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local [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() 110 pTcon->ses->server->ops->set_acl) in cifs_xattr_set() 111 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set() 244 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get() 245 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get() 254 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get() 257 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get() 344 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr() 345 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_listxattr()
|
D | cifsfs.c | 145 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super() 209 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs() 239 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate() 352 cifs_show_security(struct seq_file *s, struct cifs_ses *ses) in cifs_show_security() argument 354 if (ses->sectype == Unspecified) { in cifs_show_security() 355 if (ses->user_name == NULL) in cifs_show_security() 362 switch (ses->sectype) { in cifs_show_security() 384 if (ses->sign) in cifs_show_security() 424 srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr; in cifs_show_options() 426 seq_show_option(s, "vers", tcon->ses->server->vals->version_string); in cifs_show_options() [all …]
|
D | ioctl.c | 97 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo() 190 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl() 191 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl() 203 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl() 204 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl() 223 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl() 224 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
|
D | cifssmb.c | 126 struct cifs_ses *ses; in cifs_reconnect_tcon() local 138 ses = tcon->ses; in cifs_reconnect_tcon() 139 server = ses->server; in cifs_reconnect_tcon() 184 if (!ses->need_reconnect && !tcon->need_reconnect) in cifs_reconnect_tcon() 193 mutex_lock(&ses->session_mutex); in cifs_reconnect_tcon() 202 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon() 206 rc = cifs_negotiate_protocol(0, ses); in cifs_reconnect_tcon() 207 if (rc == 0 && ses->need_reconnect) in cifs_reconnect_tcon() 208 rc = cifs_setup_session(0, ses, nls_codepage); in cifs_reconnect_tcon() 212 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon() [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 | cifsproto.h | 94 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, 97 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses, 105 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, 144 struct cifs_ses *ses, 148 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses, 250 struct cifs_ses *ses); 251 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, 254 extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses); 256 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses, 291 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses, [all …]
|
D | smb2proto.h | 48 extern struct mid_q_entry *smb2_setup_request(struct cifs_ses *ses, 124 extern int SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses); 125 extern int SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses, 127 extern int SMB2_logoff(const unsigned int xid, struct cifs_ses *ses); 128 extern int SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, 239 extern int smb311_update_preauth_hash(struct cifs_ses *ses,
|
D | misc.c | 256 if (treeCon->ses) { in header_assemble() 257 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble() 259 if (treeCon->ses->capabilities & CAP_STATUS32) in header_assemble() 263 buffer->Uid = treeCon->ses->Suid; in header_assemble() 264 buffer->Mid = get_next_mid(treeCon->ses->server); in header_assemble() 270 if ((treeCon->ses) && (treeCon->ses->server)) in header_assemble() 271 if (treeCon->ses->server->sign) in header_assemble() 393 struct cifs_ses *ses; in is_valid_oplock_break() local 460 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in is_valid_oplock_break() 461 list_for_each(tmp1, &ses->tcon_list) { in is_valid_oplock_break()
|
D | file.c | 184 struct TCP_Server_Info *server = tcon->ses->server; in cifs_nt_open() 287 struct TCP_Server_Info *server = tcon->ses->server; in cifs_new_fileinfo() 370 struct TCP_Server_Info *server = tcon->ses->server; in cifsFileInfo_put() 417 struct TCP_Server_Info *server = tcon->ses->server; in cifsFileInfo_put() 476 server = tcon->ses->server; in cifs_open() 501 cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP & in cifs_open() 511 if (tcon->ses->serverNOS) in cifs_open() 513 tcon->ses->serverName, in cifs_open() 514 tcon->ses->serverNOS); in cifs_open() 599 if (cap_unix(tcon->ses) && in cifs_relock_file() [all …]
|
D | link.c | 198 if (tcon->ses->server->ops->create_mf_symlink) in create_mf_symlink() 199 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink() 228 if (tcon->ses->server->ops->query_mf_symlink) in query_mf_symlink() 229 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in query_mf_symlink() 266 if (tcon->ses->server->ops->query_mf_symlink) in check_mf_symlink() 267 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink() 550 server = tcon->ses->server; in cifs_hardlink() 631 server = tcon->ses->server; in cifs_get_link()
|
D | cifs_dfs_ref.c | 288 struct cifs_ses *ses; in cifs_dfs_do_automount() local 318 ses = tlink_tcon(tlink)->ses; in cifs_dfs_do_automount() 321 rc = get_dfs_path(xid, ses, full_path + 1, cifs_sb->local_nls, in cifs_dfs_do_automount()
|
D | dir.c | 240 struct TCP_Server_Info *server = tcon->ses->server; in cifs_do_create() 244 if (tcon->ses->server->oplocks) in cifs_do_create() 253 if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open && in cifs_do_create() 525 server = tcon->ses->server; in cifs_atomic_open() 603 server = tcon->ses->server; in cifs_create() 713 if (tcon->ses->server->oplocks) in cifs_mknod() 717 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in cifs_mknod() 737 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_mknod() 743 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_mknod() 746 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_mknod()
|
/Linux-v4.19/drivers/scsi/ |
D | scsi_error.c | 955 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd() argument 967 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd() 968 ses->cmnd = scmd->cmnd; in scsi_eh_prep_cmnd() 969 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd() 970 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd() 971 ses->next_rq = scmd->request->next_rq; in scsi_eh_prep_cmnd() 972 ses->result = scmd->result; in scsi_eh_prep_cmnd() 973 ses->underflow = scmd->underflow; in scsi_eh_prep_cmnd() 974 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd() 975 ses->eh_eflags = scmd->eh_eflags; in scsi_eh_prep_cmnd() [all …]
|
/Linux-v4.19/fs/nfs/ |
D | nfs4session.c | 528 int nfs4_setup_session_slot_tables(struct nfs4_session *ses) in nfs4_setup_session_slot_tables() argument 535 tbl = &ses->fc_slot_table; in nfs4_setup_session_slot_tables() 536 tbl->session = ses; in nfs4_setup_session_slot_tables() 537 status = nfs4_realloc_slot_table(tbl, ses->fc_attrs.max_reqs, 1); in nfs4_setup_session_slot_tables() 538 if (status || !(ses->flags & SESSION4_BACK_CHAN)) /* -ENOMEM */ in nfs4_setup_session_slot_tables() 541 tbl = &ses->bc_slot_table; in nfs4_setup_session_slot_tables() 542 tbl->session = ses; in nfs4_setup_session_slot_tables() 543 status = nfs4_realloc_slot_table(tbl, ses->bc_attrs.max_reqs, 0); in nfs4_setup_session_slot_tables() 547 nfs4_release_session_slot_tables(ses); in nfs4_setup_session_slot_tables()
|
/Linux-v4.19/drivers/usb/storage/ |
D | cypress_atacb.c | 164 struct scsi_eh_save ses; in cypress_atacb_passthrough() local 171 scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sizeof(regs)); in cypress_atacb_passthrough() 179 srb->cmnd = ses.cmnd; in cypress_atacb_passthrough() 185 scsi_eh_restore_cmnd(srb, &ses); in cypress_atacb_passthrough()
|
/Linux-v4.19/include/scsi/ |
D | scsi_eh.h | 49 struct scsi_eh_save *ses, unsigned char *cmnd, 53 struct scsi_eh_save *ses);
|
/Linux-v4.19/fs/nfsd/ |
D | nfs4callback.c | 749 … *get_backchannel_cred(struct nfs4_client *clp, struct rpc_clnt *client, struct nfsd4_session *ses) in get_backchannel_cred() argument 764 acred.uid = ses->se_cb_sec.uid; in get_backchannel_cred() 765 acred.gid = ses->se_cb_sec.gid; in get_backchannel_cred() 770 …etup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn, struct nfsd4_session *ses) in setup_callback_client() argument 804 clp->cl_cb_session = ses; in setup_callback_client() 809 args.authflavor = ses->se_cb_sec.flavor; in setup_callback_client() 818 cred = get_backchannel_cred(clp, client, ses); in setup_callback_client() 1108 struct nfsd4_session *ses = NULL; in nfsd4_process_cb_update() local 1140 ses = c->cn_session; in nfsd4_process_cb_update() 1144 err = setup_callback_client(clp, &conn, ses); in nfsd4_process_cb_update()
|