/linux-6.3-rc2/fs/cifs/ |
A D | sess.c | 171 left = ses->chan_max - ses->chan_count; in cifs_try_adding_channels() 440 chan = &ses->chans[ses->chan_count]; in cifs_ses_add_channel() 1176 struct cifs_ses *ses = sess_data->ses; in sess_alloc_buffer() local 1230 struct cifs_ses *ses = sess_data->ses; in sess_establish_session() local 1284 struct cifs_ses *ses = sess_data->ses; in sess_auth_ntlmv2() local 1394 struct cifs_ses *ses = sess_data->ses; in sess_auth_kerberos() local 1535 struct cifs_ses *ses = sess_data->ses; in _sess_auth_rawntlmssp_assemble_req() local 1575 struct cifs_ses *ses = sess_data->ses; in sess_auth_rawntlmssp_negotiate() local 1681 struct cifs_ses *ses = sess_data->ses; in sess_auth_rawntlmssp_authenticate() local 1787 struct cifs_ses *ses = sess_data->ses; in select_sec() local [all …]
|
A D | cifsencrypt.c | 395 if (!ses->domainName) { in build_avpair_blob() 397 if (!ses->domainName) in build_avpair_blob() 411 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob() 413 ses->auth_key.len = 0; in build_avpair_blob() 452 if (!ses->auth_key.len || !ses->auth_key.response) in find_domain_name() 472 ses->domainName = in find_domain_name() 474 if (!ses->domainName) in find_domain_name() 505 if (!ses->auth_key.len || !ses->auth_key.response) in find_timestamp() 564 len = ses->user_name ? strlen(ses->user_name) : 0; in calc_ntlmv2_hash() 587 if (ses->domainName) { in calc_ntlmv2_hash() [all …]
|
A D | smb2transport.c | 141 struct cifs_ses *ses; in smb2_find_smb_ses_unlocked() local 149 ++ses->ses_count; in smb2_find_smb_ses_unlocked() 150 return ses; in smb2_find_smb_ses_unlocked() 159 struct cifs_ses *ses; in smb2_find_smb_ses() local 165 return ses; in smb2_find_smb_ses() 191 struct cifs_ses *ses; in smb2_find_smb_tcon() local 196 if (!ses) { in smb2_find_smb_tcon() 222 struct cifs_ses *ses; in smb2_calc_signature() local 289 if (ses) in smb2_calc_signature() 428 memcpy(ses->chans[0].signkey, ses->smb3signingkey, in generate_smb3signingkey() [all …]
|
A D | connect.c | 1809 tcon->ses = ses; in cifs_setup_ipc() 1876 return ses; in cifs_find_smb_ses() 2121 if (ses) { in cifs_get_smb_ses() 2158 return ses; in cifs_get_smb_ses() 2219 memcpy(ses->chans[0].signkey, ses->smb3signingkey, in cifs_get_smb_ses() 2239 return ses; in cifs_get_smb_ses() 2302 ses = tcon->ses; in cifs_put_tcon() 2412 tcon->ses = ses; in cifs_get_tcon() 2686 ses = tcon->ses; in cifs_match_super() 3187 mnt_ctx->ses = ses; in cifs_mount_get_session() [all …]
|
A D | smb2pdu.c | 210 ses = tcon->ses; in smb2_reconnect() 1697 sess_data->ses = ses; in SMB2_sess_setup() 1739 if (ses && (ses->server)) in SMB2_logoff() 1943 struct cifs_ses *ses = tcon->ses; in SMB2_tdis() local 1952 if (!ses || !(ses->server)) in SMB2_tdis() 2595 struct cifs_ses *ses = tcon->ses; in smb311_posix_mkdir() local 2951 struct cifs_ses *ses = tcon->ses; in SMB2_open() local 3168 ses = tcon->ses; in SMB2_ioctl() 3885 tcon->ses = ses; in smb2_reconnect_server() 3991 if (!ses || !(ses->server)) in SMB2_flush() [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() 446 pkey_inf.Suid = tcon->ses->Suid; in cifs_ioctl() [all …]
|
A D | cifs_debug.c | 173 struct cifs_ses *ses; in cifs_debug_files_proc_show() local 219 struct cifs_ses *ses; in cifs_debug_data_proc_show() local 393 i, ses->ip_addr, ses->ses_count, in cifs_debug_data_proc_show() 394 ses->capabilities, ses->ses_status); in cifs_debug_data_proc_show() 404 i, ses->ip_addr, ses->serverDomain, in cifs_debug_data_proc_show() 405 ses->ses_count, ses->serverOS, ses->serverNOS, in cifs_debug_data_proc_show() 406 ses->capabilities, ses->ses_status); in cifs_debug_data_proc_show() 416 if (ses->sign) in cifs_debug_data_proc_show() 446 if (ses->tcon_ipc) in cifs_debug_data_proc_show() 507 struct cifs_ses *ses; in cifs_stats_proc_write() local [all …]
|
A D | transport.c | 695 spin_lock(&ses->ses_lock); in allocate_mid() 1014 if (!ses) in cifs_pick_channel() 1042 index %= ses->chan_count; in cifs_pick_channel() 1069 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() 1458 struct cifs_ses *ses = tcon->ses; in send_lock_cancel() local 1482 struct cifs_ses *ses; in SendReceiveBlockingLock() local 1493 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 cifs_server_lock(tcon->ses->server); 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 | smb2inode.c | 72 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local 90 server = cifs_pick_channel(ses); in smb2_compound_op() 372 rc = compound_send_recv(xid, ses, server, in smb2_compound_op() 377 rc = compound_send_recv(xid, ses, server, in smb2_compound_op() 413 trace_smb3_query_info_compound_err(xid, ses->Suid, in smb2_compound_op() 463 trace_smb3_delete_done(xid, ses->Suid, tcon->tid); in smb2_compound_op() 471 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op() 486 trace_smb3_rename_done(xid, ses->Suid, tcon->tid); in smb2_compound_op() 493 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op() 505 trace_smb3_set_info_compound_err(xid, ses->Suid, in smb2_compound_op() [all …]
|
A D | dfs.c | 99 struct cifs_ses *ses = mnt_ctx->ses; in get_session() local 101 mutex_lock(&ses->session_mutex); in get_session() 102 ses->dfs_root_ses = mnt_ctx->root_ses; in get_session() 103 mutex_unlock(&ses->session_mutex); in get_session() 110 if (mnt_ctx->ses) { in set_root_ses() 112 mnt_ctx->ses->ses_count++; in set_root_ses() 116 mnt_ctx->root_ses = mnt_ctx->ses; in set_root_ses() 263 mnt_ctx->root_ses = mnt_ctx->ses; in dfs_mount_share() 359 struct TCP_Server_Info *server = tcon->ses->server; in __tree_connect_dfs_target() 450 struct TCP_Server_Info *server = tcon->ses->server; in tree_connect_dfs_target() [all …]
|
A D | cifsfs.c | 202 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super() 215 ((tcon->ses->capabilities & in cifs_read_super() 462 if (ses->user_name == NULL) in cifs_show_security() 469 switch (ses->sectype) { in cifs_show_security() 485 if (ses->sign) in cifs_show_security() 488 if (ses->sectype == Kerberos) in cifs_show_security() 554 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0) in cifs_show_options() 710 if (tcon->ses->chan_max > 1) in cifs_show_options() 712 tcon->ses->chan_max); in cifs_show_options() 746 if (tcon->ses && tcon->ses->server) { in cifs_umount_begin() [all …]
|
A D | cifsproto.h | 166 struct cifs_ses *ses, 311 struct cifs_ses *ses, 318 struct cifs_ses *ses, 575 extern void cifs_put_smb_ses(struct cifs_ses *ses); 617 cifs_ses_get_chan_index(struct cifs_ses *ses, 620 cifs_chan_set_in_reconnect(struct cifs_ses *ses, 623 cifs_chan_clear_in_reconnect(struct cifs_ses *ses, 626 cifs_chan_in_reconnect(struct cifs_ses *ses, 629 cifs_chan_set_need_reconnect(struct cifs_ses *ses, 635 cifs_chan_needs_reconnect(struct cifs_ses *ses, [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() 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() 317 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get() 325 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get() 396 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr() [all …]
|
A 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() 172 if (cap_unix(ses)) in cifs_reconnect_tcon() 299 if (cifs_chan_needs_reconnect(tcon->ses, tcon->ses->server) || in smb_init_no_reconnect() 397 struct cifs_ses *ses, in CIFSSMBNegotiate() argument 512 if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) in CIFSSMBTDis() 617 if (!ses || !ses->server) in CIFSSMBLogoff() 637 if (ses->server->sign) in CIFSSMBLogoff() 1501 if (tcon->ses == NULL) in CIFSSMBWrite() [all …]
|
A D | dfs_cache.c | 751 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in get_dfs_referral() 757 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral() 780 struct cifs_ses *ses, in cache_refresh_path() argument 1133 mg->sessions[mg->num_sessions++] = ses; in dfs_cache_add_refsrv_session() 1305 struct cifs_ses *ses = CIFS_DFS_ROOT_SES(tcon->ses); in __refresh_tcon() local 1306 struct cifs_tcon *ipc = ses->tcon_ipc; in __refresh_tcon() 1381 server = tcon->ses->server; in dfs_cache_remount_fs() 1415 struct cifs_ses *ses; in refresh_cache_worker() local 1425 if (ses->tcon_ipc) { in refresh_cache_worker() 1426 ses->ses_count++; in refresh_cache_worker() [all …]
|
A D | cifsglob.h | 107 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses)) argument 293 struct cifs_ses *ses, 1069 ((1UL << (ses)->chan_count) - 1) 1071 (!(ses)->chans_need_reconnect) 1073 ((ses)->chans_need_reconnect == CIFS_ALL_CHANNELS_SET(ses)) 1075 ((ses)->chans_need_reconnect = CIFS_ALL_CHANNELS_SET(ses)) 1102 cap_unix(struct cifs_ses *ses) in cap_unix() argument 1104 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix() 1750 struct cifs_ses *ses; member 2094 if (!tcon || !tcon->ses || !tcon->ses->server) in is_tcon_dfs() [all …]
|
A 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 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 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() 820 server = tcon->ses->server; in smb2_handle_cancelled_close() 920 rc = crypto_shash_update(sha512, ses->preauth_sha_hash, in smb311_update_preauth_hash() [all …]
|
A 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,
|
A D | misc.c | 267 if (treeCon->ses) { in header_assemble() 268 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble() 274 buffer->Uid = treeCon->ses->Suid; in header_assemble() 275 if (treeCon->ses->server) in header_assemble() 282 if ((treeCon->ses) && (treeCon->ses->server)) in header_assemble() 283 if (treeCon->ses->server->sign) in header_assemble() 405 struct cifs_ses *ses; in is_valid_oplock_break() local 1108 if (tcon->ses->server == server) in tcp_super_cb() 1215 struct cifs_ses *ses = tcon->ses; in cifs_inval_name_dfs_link_error() local 1258 if (ses->server->ops->get_dfs_refer && in cifs_inval_name_dfs_link_error() [all …]
|
A D | smb2ops.c | 542 ses->iface_count--; in parse_server_interfaces() 621 ses->iface_count++; in parse_server_interfaces() 657 ses->iface_count++; in parse_server_interfaces() 697 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces() local 1024 struct cifs_ses *ses = tcon->ses; in smb2_set_ea() local 1406 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info() local 2339 struct cifs_ses *ses; in smb2_is_network_name_deleted() local 2397 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command() local 2461 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound() local 2725 ses); in smb2_get_dfs_refer() [all …]
|
A 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() 727 if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_open_file() 919 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_queryfs() 927 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_queryfs() 991 if (cap_unix(tcon->ses)) { in cifs_query_symlink() 1132 if (tcon->ses->server->oplocks) in cifs_make_node() [all …]
|
/linux-6.3-rc2/drivers/scsi/ |
A D | scsi_error.c | 1016 ses->cmd_len = scmd->cmd_len; in scsi_eh_prep_cmnd() 1018 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd() 1019 ses->result = scmd->result; in scsi_eh_prep_cmnd() 1022 ses->prot_op = scmd->prot_op; in scsi_eh_prep_cmnd() 1027 memcpy(ses->cmnd, scmd->cmnd, sizeof(ses->cmnd)); in scsi_eh_prep_cmnd() 1079 scmd->cmd_len = ses->cmd_len; in scsi_eh_restore_cmnd() 1080 memcpy(scmd->cmnd, ses->cmnd, sizeof(ses->cmnd)); in scsi_eh_restore_cmnd() 1082 scmd->sdb = ses->sdb; in scsi_eh_restore_cmnd() 1083 scmd->result = ses->result; in scsi_eh_restore_cmnd() 1086 scmd->prot_op = ses->prot_op; in scsi_eh_restore_cmnd() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/include/scsi/ |
A D | scsi_eh.h | 47 struct scsi_eh_save *ses, unsigned char *cmnd, 51 struct scsi_eh_save *ses);
|