/Linux-v5.15/fs/cifs/ |
D | sess.c | 25 cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses, 53 bool is_ses_using_iface(struct cifs_ses *ses, struct cifs_server_iface *iface) in is_ses_using_iface() argument 57 for (i = 0; i < ses->chan_count; i++) { in is_ses_using_iface() 58 if (is_server_using_iface(ses->chans[i].server, iface)) in is_ses_using_iface() 65 int cifs_try_adding_channels(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses) in cifs_try_adding_channels() argument 67 int old_chan_count = ses->chan_count; in cifs_try_adding_channels() 68 int left = ses->chan_max - ses->chan_count; in cifs_try_adding_channels() 78 ses->chan_max); in cifs_try_adding_channels() 82 if (ses->server->dialect < SMB30_PROT_ID) { in cifs_try_adding_channels() 87 if (!(ses->server->capabilities & SMB2_GLOBAL_CAP_MULTI_CHANNEL)) { in cifs_try_adding_channels() [all …]
|
D | cifsencrypt.c | 258 build_avpair_blob(struct cifs_ses *ses, const struct nls_table *nls_cp) in build_avpair_blob() argument 266 if (!ses->domainName) { in build_avpair_blob() 267 ses->domainName = kstrdup(defdmname, GFP_KERNEL); in build_avpair_blob() 268 if (!ses->domainName) in build_avpair_blob() 272 dlen = strlen(ses->domainName); in build_avpair_blob() 280 ses->auth_key.len = size + 2 * dlen; in build_avpair_blob() 281 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob() 282 if (!ses->auth_key.response) { in build_avpair_blob() 283 ses->auth_key.len = 0; in build_avpair_blob() 287 blobptr = ses->auth_key.response; in build_avpair_blob() [all …]
|
D | smb2transport.c | 85 struct cifs_ses *ses = NULL; in smb2_get_sign_key() local 93 list_for_each_entry(ses, &it->smb_ses_list, smb_ses_list) { in smb2_get_sign_key() 94 if (ses->Suid == ses_id) in smb2_get_sign_key() 104 if (ses->binding) { in smb2_get_sign_key() 110 memcpy(key, ses->smb3signingkey, SMB3_SIGN_KEY_SIZE); in smb2_get_sign_key() 118 for (i = 0; i < ses->chan_count; i++) { in smb2_get_sign_key() 119 chan = ses->chans + i; in smb2_get_sign_key() 139 struct cifs_ses *ses; in smb2_find_smb_ses_unlocked() local 141 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_find_smb_ses_unlocked() 142 if (ses->Suid != ses_id) in smb2_find_smb_ses_unlocked() [all …]
|
D | connect.c | 215 struct cifs_ses *ses; in cifs_reconnect() local 278 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in cifs_reconnect() 279 ses->need_reconnect = true; in cifs_reconnect() 280 list_for_each(tmp2, &ses->tcon_list) { in cifs_reconnect() 284 if (ses->tcon_ipc) in cifs_reconnect() 285 ses->tcon_ipc->need_reconnect = true; in cifs_reconnect() 1509 static int match_session(struct cifs_ses *ses, struct smb3_fs_context *ctx) in match_session() argument 1512 ctx->sectype != ses->sectype) in match_session() 1519 if (ses->chan_max < ctx->max_channels) in match_session() 1522 switch (ses->sectype) { in match_session() [all …]
|
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() 131 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo() 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() 280 out.cipher_type = le16_to_cpu(ses->server->cipher_type); in cifs_dump_full_key() [all …]
|
D | smb2pdu.c | 75 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() 120 if (tcon->ses) in smb2_hdr_assemble() 121 shdr->SessionId = tcon->ses->Suid; in smb2_hdr_assemble() 148 struct cifs_ses *ses; in smb2_reconnect() local 176 if ((!tcon->ses) || (tcon->ses->status == CifsExiting) || in smb2_reconnect() 177 (!tcon->ses->server) || !server) in smb2_reconnect() 180 ses = tcon->ses; in smb2_reconnect() 232 if (!tcon->ses->need_reconnect && !tcon->need_reconnect) in smb2_reconnect() [all …]
|
D | cifs_debug.c | 108 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon() 115 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon() 116 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon() 170 struct cifs_ses *ses; in cifs_debug_files_proc_show() local 185 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in cifs_debug_files_proc_show() 186 list_for_each(tmp1, &ses->tcon_list) { in cifs_debug_files_proc_show() 221 struct cifs_ses *ses; in cifs_debug_data_proc_show() local 378 ses = list_entry(tmp2, struct cifs_ses, in cifs_debug_data_proc_show() 381 if ((ses->serverDomain == NULL) || in cifs_debug_data_proc_show() 382 (ses->serverOS == NULL) || in cifs_debug_data_proc_show() [all …]
|
D | cifs_swn.c | 50 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 …]
|
D | smb2inode.c | 63 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local 80 server = cifs_pick_channel(ses); in smb2_compound_op() 154 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op() 189 trace_smb3_posix_query_info_compound_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 192 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 199 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 217 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 235 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 268 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op() 308 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() [all …]
|
D | transport.c | 723 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument 726 if (ses->server->tcpStatus == CifsExiting) { in allocate_mid() 730 if (ses->server->tcpStatus == CifsNeedReconnect) { in allocate_mid() 735 if (ses->status == CifsNew) { in allocate_mid() 742 if (ses->status == CifsExiting) { in allocate_mid() 749 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid() 753 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid() 891 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, in SendReceiveNoRsp() argument 902 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags, &rsp_iov); in SendReceiveNoRsp() 985 cifs_setup_request(struct cifs_ses *ses, struct TCP_Server_Info *ignored, in cifs_setup_request() argument [all …]
|
D | cifsfs.c | 172 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super() 184 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super() 185 ((tcon->ses->capabilities & in cifs_read_super() 186 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super() 288 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs() 318 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate() 428 cifs_show_security(struct seq_file *s, struct cifs_ses *ses) in cifs_show_security() argument 430 if (ses->sectype == Unspecified) { in cifs_show_security() 431 if (ses->user_name == NULL) in cifs_show_security() 438 switch (ses->sectype) { in cifs_show_security() [all …]
|
D | dfs_cache.c | 95 static struct cifs_ses *find_ipc_from_server_path(struct cifs_ses **ses, const char *path) in find_ipc_from_server_path() argument 100 for (; *ses; ses++) { in find_ipc_from_server_path() 101 if (!strcasecmp(unc, (*ses)->tcon_ipc->treeName)) in find_ipc_from_server_path() 102 return *ses; in find_ipc_from_server_path() 757 static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses, const char *path, in get_dfs_referral() argument 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() 793 static int cache_refresh_path(const unsigned int xid, struct cifs_ses *ses, const char *path) in cache_refresh_path() argument 820 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in cache_refresh_path() 944 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp, in dfs_cache_find() argument [all …]
|
D | xattr.c | 58 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() 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() 325 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get() [all …]
|
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() 169 if (!ses->need_reconnect && !tcon->need_reconnect) in cifs_reconnect_tcon() 178 mutex_lock(&ses->session_mutex); in cifs_reconnect_tcon() 187 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon() 191 rc = cifs_negotiate_protocol(0, ses); in cifs_reconnect_tcon() 192 if (rc == 0 && ses->need_reconnect) in cifs_reconnect_tcon() 193 rc = cifs_setup_session(0, ses, nls_codepage); in cifs_reconnect_tcon() 197 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon() [all …]
|
D | smb2misc.c | 153 struct cifs_ses *ses = NULL; in smb2_check_message() local 157 list_for_each_entry(ses, &srvr->smb_ses_list, smb_ses_list) { in smb2_check_message() 158 if (ses->Suid == thdr->SessionId) in smb2_check_message() 162 if (list_entry_is_head(ses, &srvr->smb_ses_list, in smb2_check_message() 604 struct cifs_ses *ses; in smb2_is_valid_lease_break() local 613 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_is_valid_lease_break() 614 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break() 665 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local 687 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_is_valid_oplock_break() 688 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_oplock_break() [all …]
|
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, 104 extern int compound_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, 295 struct cifs_ses *ses); 296 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, 299 extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses); 301 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses, [all …]
|
D | ntlmssp.h | 121 int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, struct cifs_ses *ses); 122 void build_ntlmssp_negotiate_blob(unsigned char *pbuffer, struct cifs_ses *ses); 124 struct cifs_ses *ses,
|
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);
|
D | smb2ops.c | 387 smb2_negotiate(const unsigned int xid, struct cifs_ses *ses) in smb2_negotiate() argument 392 cifs_ses_server(ses)->CurrentMid = 0; in smb2_negotiate() 394 rc = SMB2_negotiate(xid, ses); in smb2_negotiate() 404 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize() 419 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize() 451 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize() 467 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize() 647 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces() local 670 spin_lock(&ses->iface_lock); in SMB3_request_interfaces() 671 kfree(ses->iface_list); in SMB3_request_interfaces() [all …]
|
D | cifs_dfs_ref.c | 310 struct cifs_ses *ses; in cifs_dfs_do_automount() local 365 ses = tcon->ses; in cifs_dfs_do_automount() 372 rc = dfs_cache_find(xid, ses, cifs_sb->local_nls, cifs_remap(cifs_sb), in cifs_dfs_do_automount() 375 rc = dfs_cache_find(xid, ses, cifs_sb->local_nls, in cifs_dfs_do_automount()
|
D | smb1ops.c | 417 cifs_negotiate(const unsigned int xid, struct cifs_ses *ses) in cifs_negotiate() argument 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() 925 rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, &referral, in cifs_unix_dfs_readlink() [all …]
|
/Linux-v5.15/drivers/scsi/ |
D | scsi_error.c | 967 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd() argument 979 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd() 980 ses->cmnd = scmd->cmnd; in scsi_eh_prep_cmnd() 981 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd() 982 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd() 983 ses->result = scmd->result; in scsi_eh_prep_cmnd() 984 ses->resid_len = scmd->req.resid_len; in scsi_eh_prep_cmnd() 985 ses->underflow = scmd->underflow; in scsi_eh_prep_cmnd() 986 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd() 987 ses->eh_eflags = scmd->eh_eflags; in scsi_eh_prep_cmnd() [all …]
|
/Linux-v5.15/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.15/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.15/include/scsi/ |
D | scsi_eh.h | 49 struct scsi_eh_save *ses, unsigned char *cmnd, 53 struct scsi_eh_save *ses);
|