/Linux-v6.6/fs/smb/client/ |
D | sess.c | 27 cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses, 55 bool is_ses_using_iface(struct cifs_ses *ses, struct cifs_server_iface *iface) in is_ses_using_iface() argument 59 spin_lock(&ses->chan_lock); in is_ses_using_iface() 60 for (i = 0; i < ses->chan_count; i++) { in is_ses_using_iface() 61 if (ses->chans[i].iface == iface) { in is_ses_using_iface() 62 spin_unlock(&ses->chan_lock); in is_ses_using_iface() 66 spin_unlock(&ses->chan_lock); in is_ses_using_iface() 73 cifs_ses_get_chan_index(struct cifs_ses *ses, in cifs_ses_get_chan_index() argument 78 for (i = 0; i < ses->chan_count; i++) { in cifs_ses_get_chan_index() 79 if (ses->chans[i].server == server) in cifs_ses_get_chan_index() [all …]
|
D | cifsencrypt.c | 387 build_avpair_blob(struct cifs_ses *ses, const struct nls_table *nls_cp) in build_avpair_blob() argument 395 if (!ses->domainName) { in build_avpair_blob() 396 ses->domainName = kstrdup(defdmname, GFP_KERNEL); in build_avpair_blob() 397 if (!ses->domainName) in build_avpair_blob() 401 dlen = strlen(ses->domainName); in build_avpair_blob() 409 kfree_sensitive(ses->auth_key.response); in build_avpair_blob() 410 ses->auth_key.len = size + 2 * dlen; in build_avpair_blob() 411 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob() 412 if (!ses->auth_key.response) { in build_avpair_blob() 413 ses->auth_key.len = 0; in build_avpair_blob() [all …]
|
D | smb2transport.c | 81 struct cifs_ses *ses = NULL; in smb2_get_sign_key() local 91 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_get_sign_key() 92 if (ses->Suid == ses_id) in smb2_get_sign_key() 102 spin_lock(&ses->ses_lock); in smb2_get_sign_key() 103 spin_lock(&ses->chan_lock); in smb2_get_sign_key() 105 is_binding = (cifs_chan_needs_reconnect(ses, server) && in smb2_get_sign_key() 106 ses->ses_status == SES_GOOD); in smb2_get_sign_key() 113 memcpy(key, ses->smb3signingkey, SMB3_SIGN_KEY_SIZE); in smb2_get_sign_key() 114 spin_unlock(&ses->chan_lock); in smb2_get_sign_key() 115 spin_unlock(&ses->ses_lock); in smb2_get_sign_key() [all …]
|
D | connect.c | 153 struct cifs_ses *ses; in cifs_signal_cifsd_for_reconnect() local 168 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in cifs_signal_cifsd_for_reconnect() 169 spin_lock(&ses->chan_lock); in cifs_signal_cifsd_for_reconnect() 170 for (i = 0; i < ses->chan_count; i++) { in cifs_signal_cifsd_for_reconnect() 171 spin_lock(&ses->chans[i].server->srv_lock); in cifs_signal_cifsd_for_reconnect() 172 ses->chans[i].server->tcpStatus = CifsNeedReconnect; in cifs_signal_cifsd_for_reconnect() 173 spin_unlock(&ses->chans[i].server->srv_lock); in cifs_signal_cifsd_for_reconnect() 175 spin_unlock(&ses->chan_lock); in cifs_signal_cifsd_for_reconnect() 195 struct cifs_ses *ses, *nses; in cifs_mark_tcp_ses_conns_for_reconnect() local 209 list_for_each_entry_safe(ses, nses, &pserver->smb_ses_list, smb_ses_list) { in cifs_mark_tcp_ses_conns_for_reconnect() [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() 137 if (tcon->ses) in smb2_hdr_assemble() 138 shdr->SessionId = cpu_to_le64(tcon->ses->Suid); in smb2_hdr_assemble() 165 struct cifs_ses *ses; in smb2_reconnect() local 196 ses = tcon->ses; in smb2_reconnect() 197 if (!ses) in smb2_reconnect() 199 spin_lock(&ses->ses_lock); in smb2_reconnect() 200 if (ses->ses_status == SES_EXITING) { in smb2_reconnect() [all …]
|
D | cifs_debug.c | 110 (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in cifs_debug_tcon() 117 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon() 118 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon() 231 struct cifs_ses *ses; in cifs_debug_files_proc_show() local 245 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_files_proc_show() 246 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in cifs_debug_files_proc_show() 252 ses->Suid, in cifs_debug_files_proc_show() 279 struct cifs_ses *ses; in cifs_debug_data_proc_show() local 454 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_data_proc_show() 456 if ((ses->serverDomain == NULL) || in cifs_debug_data_proc_show() [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 cifs_smb_ses_inc_refcount(ses); 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 | dfs.c | 78 struct cifs_ses *ses = mnt_ctx->ses; in add_root_smb_session() local 80 if (ses) { in add_root_smb_session() 88 cifs_smb_ses_inc_refcount(ses); in add_root_smb_session() 90 root_ses->ses = ses; in add_root_smb_session() 94 ctx->dfs_root_ses = ses; in add_root_smb_session() 293 ctx->dfs_root_ses = mnt_ctx->ses; in dfs_mount_share() 391 struct cifs_ses *ses) in __tree_connect_ipc() argument 393 struct TCP_Server_Info *server = ses->server; in __tree_connect_ipc() 394 struct cifs_tcon *tcon = ses->tcon_ipc; in __tree_connect_ipc() 397 spin_lock(&ses->ses_lock); in __tree_connect_ipc() [all …]
|
D | cifsproto.h | 100 extern struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses); 101 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, 105 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses, 114 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, 170 struct cifs_ses *ses, 174 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses, 314 struct cifs_ses *ses, 316 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, 321 struct cifs_ses *ses, 324 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses, [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 | transport.c | 705 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument 708 spin_lock(&ses->ses_lock); in allocate_mid() 709 if (ses->ses_status == SES_NEW) { in allocate_mid() 712 spin_unlock(&ses->ses_lock); in allocate_mid() 718 if (ses->ses_status == SES_EXITING) { in allocate_mid() 721 spin_unlock(&ses->ses_lock); in allocate_mid() 726 spin_unlock(&ses->ses_lock); in allocate_mid() 728 *ppmidQ = alloc_mid(in_buf, ses->server); in allocate_mid() 731 spin_lock(&ses->server->mid_lock); in allocate_mid() 732 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid() [all …]
|
D | dfs_cache.c | 646 static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses, const char *path, in get_dfs_referral() argument 655 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in get_dfs_referral() 660 cifs_dbg(FYI, "%s: ipc=%s referral=%s\n", __func__, ses->tcon_ipc->tree_name, path); in get_dfs_referral() 661 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral() 684 struct cifs_ses *ses, in cache_refresh_path() argument 719 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in cache_refresh_path() 856 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp, in dfs_cache_find() argument 868 ce = cache_refresh_path(xid, ses, npath, false); in dfs_cache_find() 1159 static bool is_ses_good(struct cifs_ses *ses) in is_ses_good() argument 1161 struct TCP_Server_Info *server = ses->server; in is_ses_good() [all …]
|
D | smb2inode.c | 60 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local 78 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() 252 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() 285 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op() 325 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op() [all …]
|
D | cifsfs.c | 206 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super() 218 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super() 219 ((tcon->ses->capabilities & in cifs_read_super() 220 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super() 249 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx); in cifs_read_super() 315 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs() 345 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate() 463 cifs_show_security(struct seq_file *s, struct cifs_ses *ses) in cifs_show_security() argument 465 if (ses->sectype == Unspecified) { in cifs_show_security() 466 if (ses->user_name == NULL) in cifs_show_security() [all …]
|
D | cifssmb.c | 72 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() 107 spin_lock(&ses->chan_lock); in cifs_reconnect_tcon() 108 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in cifs_reconnect_tcon() 109 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon() 112 spin_unlock(&ses->chan_lock); in cifs_reconnect_tcon() 114 mutex_lock(&ses->session_mutex); in cifs_reconnect_tcon() 123 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon() 132 nls_codepage = ses->local_nls; in cifs_reconnect_tcon() [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() 192 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set() 302 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get() 303 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get() [all …]
|
D | cifsglob.h | 107 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses)) argument 303 struct cifs_ses *ses, 464 int (*generate_signingkey)(struct cifs_ses *ses, 1053 #define CIFS_ALL_CHANNELS_SET(ses) \ argument 1054 ((1UL << (ses)->chan_count) - 1) 1055 #define CIFS_ALL_CHANS_GOOD(ses) \ argument 1056 (!(ses)->chans_need_reconnect) 1057 #define CIFS_ALL_CHANS_NEED_RECONNECT(ses) \ argument 1058 ((ses)->chans_need_reconnect == CIFS_ALL_CHANNELS_SET(ses)) 1059 #define CIFS_SET_ALL_CHANS_NEED_RECONNECT(ses) \ argument [all …]
|
D | misc.c | 280 if (treeCon->ses) { in header_assemble() 281 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble() 283 if (treeCon->ses->capabilities & CAP_STATUS32) in header_assemble() 287 buffer->Uid = treeCon->ses->Suid; in header_assemble() 288 if (treeCon->ses->server) in header_assemble() 289 buffer->Mid = get_next_mid(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() 418 struct cifs_ses *ses; in is_valid_oplock_break() local 487 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in is_valid_oplock_break() [all …]
|
D | smb2misc.c | 157 struct cifs_ses *ses = NULL; in smb2_check_message() local 164 ses = iter; in smb2_check_message() 169 if (!ses) { in smb2_check_message() 619 struct cifs_ses *ses; in smb2_is_valid_lease_break() local 630 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_valid_lease_break() 631 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_lease_break() 680 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local 705 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_valid_oplock_break() 706 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_valid_oplock_break() 819 if (tcon->ses) in smb2_handle_cancelled_close() [all …]
|
D | smb2ops.c | 419 struct cifs_ses *ses, in smb2_negotiate() argument 427 rc = SMB2_negotiate(xid, ses, server); in smb2_negotiate() 437 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize() 452 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize() 484 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize() 500 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize() 569 size_t buf_len, struct cifs_ses *ses, bool in_mount) in parse_server_interfaces() argument 586 spin_lock(&ses->iface_lock); in parse_server_interfaces() 588 if (ses->iface_last_update && in parse_server_interfaces() 589 time_before(jiffies, ses->iface_last_update + in parse_server_interfaces() [all …]
|
D | ntlmssp.h | 145 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,
|
D | smb1ops.c | 424 struct cifs_ses *ses, in cifs_negotiate() argument 428 rc = CIFSSMBNegotiate(xid, ses, server); in cifs_negotiate() 432 rc = CIFSSMBNegotiate(xid, ses, server); in cifs_negotiate() 443 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_wsize() 478 struct TCP_Server_Info *server = tcon->ses->server; in cifs_negotiate_rsize() 730 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file() 921 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_queryfs() 929 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_queryfs() 960 rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, &referral, in cifs_unix_dfs_readlink() 996 if (cap_unix(tcon->ses)) { in cifs_query_symlink() [all …]
|
/Linux-v6.6/drivers/scsi/ |
D | scsi_error.c | 1037 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd() argument 1049 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd() 1050 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd() 1051 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd() 1052 ses->result = scmd->result; in scsi_eh_prep_cmnd() 1053 ses->resid_len = scmd->resid_len; in scsi_eh_prep_cmnd() 1054 ses->underflow = scmd->underflow; in scsi_eh_prep_cmnd() 1055 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd() 1056 ses->eh_eflags = scmd->eh_eflags; in scsi_eh_prep_cmnd() 1060 memcpy(ses->cmnd, scmd->cmnd, sizeof(ses->cmnd)); in scsi_eh_prep_cmnd() [all …]
|
/Linux-v6.6/fs/nfs/ |
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-v6.6/include/scsi/ |
D | scsi_eh.h | 47 struct scsi_eh_save *ses, unsigned char *cmnd, 51 struct scsi_eh_save *ses);
|